ropav 0.0.3 → 0.0.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/README.md +11 -2
- package/dist/base.css +52 -12
- package/dist/button.css +18 -1
- package/dist/button.js +2 -22
- package/dist/button.js.map +1 -1
- package/dist/card.css +88 -0
- package/dist/card.js +71 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.css +21 -6
- package/dist/checkbox.js +11 -33
- package/dist/checkbox.js.map +1 -1
- package/dist/components/button/types.d.ts +1 -1
- package/dist/components/card/card.d.ts +21 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.js +2 -0
- package/dist/components/card/types.d.ts +11 -0
- package/dist/components/checkbox/types.d.ts +1 -1
- package/dist/components/field/field.d.ts +35 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.js +2 -0
- package/dist/components/field/types.d.ts +21 -0
- package/dist/components/icon-button/icon-button.d.ts +21 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +2 -0
- package/dist/components/icon-button/types.d.ts +15 -0
- package/dist/components/radio/types.d.ts +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/field.css +40 -0
- package/dist/field.js +128 -0
- package/dist/field.js.map +1 -0
- package/dist/icon-button.css +339 -0
- package/dist/icon-button.js +63 -0
- package/dist/icon-button.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -1
- package/dist/input.css +25 -15
- package/dist/loader-circle.js +14 -0
- package/dist/loader-circle.js.map +1 -0
- package/dist/radio.css +9 -5
- package/dist/radio.js.map +1 -1
- package/dist/select.css +24 -14
- package/dist/select.js +11 -33
- package/dist/select.js.map +1 -1
- package/dist/switch.css +16 -7
- package/dist/textarea.css +24 -14
- package/package.json +15 -2
- package/src/styles/_mixins.scss +3 -3
- package/src/styles/_tokens.scss +53 -11
- package/src/styles/_variables.scss +4 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FieldControlProps, FieldProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<FieldProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
label?: (props: {}) => any;
|
|
10
|
+
} & {
|
|
11
|
+
default?: (props: {
|
|
12
|
+
id: string;
|
|
13
|
+
disabled: true | undefined;
|
|
14
|
+
required: true | undefined;
|
|
15
|
+
invalid: true | undefined;
|
|
16
|
+
labelledby: string | undefined;
|
|
17
|
+
describedby: string | undefined;
|
|
18
|
+
controlProps: FieldControlProps;
|
|
19
|
+
}) => any;
|
|
20
|
+
} & {
|
|
21
|
+
description?: (props: {}) => any;
|
|
22
|
+
} & {
|
|
23
|
+
message?: (props: {}) => any;
|
|
24
|
+
};
|
|
25
|
+
emit: {};
|
|
26
|
+
}>) => import('vue').VNode & {
|
|
27
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} : {
|
|
34
|
+
[K in keyof T as K]: T[K];
|
|
35
|
+
}) & {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface FieldControlProps {
|
|
2
|
+
id: string;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
invalid?: boolean;
|
|
6
|
+
labelledby?: string;
|
|
7
|
+
describedby?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FieldSlotProps extends FieldControlProps {
|
|
10
|
+
controlProps: FieldControlProps;
|
|
11
|
+
}
|
|
12
|
+
export interface FieldProps {
|
|
13
|
+
id?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
message?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
required?: boolean;
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IconButtonProps } from './types';
|
|
2
|
+
declare const __VLS_export: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import('vue').PublicProps & __VLS_PrettifyLocal<IconButtonProps> & (typeof globalThis extends {
|
|
4
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
5
|
+
} ? P : {});
|
|
6
|
+
expose: (exposed: {}) => void;
|
|
7
|
+
attrs: any;
|
|
8
|
+
slots: {
|
|
9
|
+
default?: (props: {}) => any;
|
|
10
|
+
};
|
|
11
|
+
emit: {};
|
|
12
|
+
}>) => import('vue').VNode & {
|
|
13
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
18
|
+
[K in keyof T]: T[K];
|
|
19
|
+
} : {
|
|
20
|
+
[K in keyof T as K]: T[K];
|
|
21
|
+
}) & {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonColor, ButtonRadius, ButtonSize, ButtonVariant } from '../button/types';
|
|
2
|
+
export type IconButtonColor = ButtonColor;
|
|
3
|
+
export type IconButtonSize = ButtonSize;
|
|
4
|
+
export type IconButtonRadius = ButtonRadius;
|
|
5
|
+
export type IconButtonVariant = ButtonVariant;
|
|
6
|
+
export interface IconButtonProps {
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
variant?: IconButtonVariant;
|
|
9
|
+
color?: IconButtonColor;
|
|
10
|
+
size?: IconButtonSize;
|
|
11
|
+
radius?: IconButtonRadius;
|
|
12
|
+
type?: 'button' | 'submit' | 'reset';
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
export type RadioColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
2
|
+
export type RadioColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
3
3
|
export type RadioSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export type RadioVariant = 'solid' | 'outline';
|
|
5
5
|
export interface RadioProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SwitchColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
|
|
1
|
+
export type SwitchColor = 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
2
2
|
export type SwitchSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
3
|
export interface SwitchProps {
|
|
4
4
|
id?: string;
|
package/dist/field.css
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.rp-field[data-v-b8c3dcbe] {
|
|
2
|
+
--_rp-field-danger: var(--rp-color-danger);
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--rp-spacing-1);
|
|
5
|
+
min-width: 0;
|
|
6
|
+
font-family: var(--rp-font-family);
|
|
7
|
+
color: var(--rp-color-text);
|
|
8
|
+
}
|
|
9
|
+
html.dark .rp-field[data-v-b8c3dcbe] {
|
|
10
|
+
--_rp-field-danger: var(--rp-color-danger-fg);
|
|
11
|
+
}
|
|
12
|
+
.rp-field__label[data-v-b8c3dcbe] {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
width: fit-content;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: var(--rp-spacing-1);
|
|
17
|
+
color: var(--rp-color-text);
|
|
18
|
+
font-size: var(--rp-font-size-sm);
|
|
19
|
+
font-weight: var(--rp-font-weight-medium);
|
|
20
|
+
line-height: var(--rp-line-height-normal);
|
|
21
|
+
}
|
|
22
|
+
.rp-field__required[data-v-b8c3dcbe] {
|
|
23
|
+
color: var(--_rp-field-danger);
|
|
24
|
+
line-height: var(--rp-line-height-none);
|
|
25
|
+
}
|
|
26
|
+
.rp-field__control[data-v-b8c3dcbe] {
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
.rp-field__description[data-v-b8c3dcbe], .rp-field__message[data-v-b8c3dcbe] {
|
|
30
|
+
margin: 0;
|
|
31
|
+
color: var(--rp-color-text-secondary);
|
|
32
|
+
font-size: var(--rp-font-size-sm);
|
|
33
|
+
line-height: var(--rp-line-height-normal);
|
|
34
|
+
}
|
|
35
|
+
.rp-field--invalid .rp-field__message[data-v-b8c3dcbe] {
|
|
36
|
+
color: var(--_rp-field-danger);
|
|
37
|
+
}
|
|
38
|
+
.rp-field--disabled .rp-field__label[data-v-b8c3dcbe], .rp-field--disabled .rp-field__description[data-v-b8c3dcbe], .rp-field--disabled .rp-field__message[data-v-b8c3dcbe] {
|
|
39
|
+
color: var(--rp-color-text-disabled);
|
|
40
|
+
}
|
package/dist/field.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import './field.css';
|
|
2
|
+
import { n as bem, t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper.js";
|
|
3
|
+
import { child, computed, createIf, createSlot, defineVaporComponent, renderEffect, setClass, setInsertionState, setProp, setText, template, toDisplayString, useId, useSlots } from "vue";
|
|
4
|
+
//#region src/components/field/field.vue?vue&type=script&setup=true&vapor=true&lang.ts
|
|
5
|
+
var t0 = template(" ");
|
|
6
|
+
var t1 = template("<span data-v-b8c3dcbe class=rp-field__required aria-hidden=true>*", 2);
|
|
7
|
+
var t2 = template("<label data-v-b8c3dcbe class=rp-field__label>");
|
|
8
|
+
var t3 = template("<p data-v-b8c3dcbe class=rp-field__description>");
|
|
9
|
+
var t4 = template("<p data-v-b8c3dcbe class=rp-field__message>");
|
|
10
|
+
var t5 = template("<div data-v-b8c3dcbe><div data-v-b8c3dcbe class=rp-field__control></div>", 1);
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/field/field.vue
|
|
13
|
+
var field_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineVaporComponent({
|
|
14
|
+
name: "RpField",
|
|
15
|
+
__name: "field",
|
|
16
|
+
props: {
|
|
17
|
+
id: {},
|
|
18
|
+
label: { default: "" },
|
|
19
|
+
description: { default: "" },
|
|
20
|
+
message: { default: "" },
|
|
21
|
+
error: { default: "" },
|
|
22
|
+
disabled: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: void 0
|
|
25
|
+
},
|
|
26
|
+
required: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
invalid: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: void 0
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
setup(__props) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const slots = useSlots();
|
|
38
|
+
const generatedId = useId();
|
|
39
|
+
const controlId = computed(() => props.id ?? `${generatedId}-control`);
|
|
40
|
+
const labelId = computed(() => `${controlId.value}-label`);
|
|
41
|
+
const descriptionId = computed(() => `${controlId.value}-description`);
|
|
42
|
+
const messageId = computed(() => `${controlId.value}-message`);
|
|
43
|
+
const isInvalid = computed(() => Boolean(props.invalid || props.error));
|
|
44
|
+
const messageText = computed(() => props.error || props.message);
|
|
45
|
+
const hasLabel = computed(() => Boolean(props.label || slots.label));
|
|
46
|
+
const hasDescription = computed(() => Boolean(props.description || slots.description));
|
|
47
|
+
const hasMessage = computed(() => Boolean(messageText.value || slots.message));
|
|
48
|
+
const controlLabelledby = computed(() => hasLabel.value ? labelId.value : void 0);
|
|
49
|
+
const controlDescribedby = computed(() => [hasDescription.value ? descriptionId.value : void 0, hasMessage.value ? messageId.value : void 0].filter(Boolean).join(" ") || void 0);
|
|
50
|
+
const rootClass = computed(() => bem("rp-field", {
|
|
51
|
+
disabled: props.disabled,
|
|
52
|
+
required: props.required,
|
|
53
|
+
invalid: isInvalid.value
|
|
54
|
+
}));
|
|
55
|
+
const controlProps = computed(() => ({
|
|
56
|
+
id: controlId.value,
|
|
57
|
+
disabled: props.disabled || void 0,
|
|
58
|
+
required: props.required || void 0,
|
|
59
|
+
invalid: isInvalid.value || void 0,
|
|
60
|
+
labelledby: controlLabelledby.value,
|
|
61
|
+
describedby: controlDescribedby.value
|
|
62
|
+
}));
|
|
63
|
+
const n23 = t5();
|
|
64
|
+
const n10 = child(n23, 1);
|
|
65
|
+
renderEffect(() => setClass(n23, rootClass.value));
|
|
66
|
+
setInsertionState(n23, 0, 0);
|
|
67
|
+
createIf(() => hasLabel.value, () => {
|
|
68
|
+
const n8 = t2();
|
|
69
|
+
renderEffect(() => {
|
|
70
|
+
setProp(n8, "id", labelId.value);
|
|
71
|
+
setProp(n8, "for", controlId.value);
|
|
72
|
+
});
|
|
73
|
+
setInsertionState(n8, null, 0);
|
|
74
|
+
createSlot("label", null, () => {
|
|
75
|
+
const n4 = t0();
|
|
76
|
+
renderEffect(() => setText(n4, toDisplayString(__props.label)));
|
|
77
|
+
return n4;
|
|
78
|
+
}, 1);
|
|
79
|
+
setInsertionState(n8, null, 1);
|
|
80
|
+
createIf(() => __props.required, () => {
|
|
81
|
+
return t1();
|
|
82
|
+
});
|
|
83
|
+
return n8;
|
|
84
|
+
});
|
|
85
|
+
setInsertionState(n10, null, 0);
|
|
86
|
+
createSlot("default", {
|
|
87
|
+
id: () => controlId.value,
|
|
88
|
+
disabled: () => __props.disabled || void 0,
|
|
89
|
+
required: () => __props.required || void 0,
|
|
90
|
+
invalid: () => isInvalid.value || void 0,
|
|
91
|
+
labelledby: () => controlLabelledby.value,
|
|
92
|
+
describedby: () => controlDescribedby.value,
|
|
93
|
+
controlProps: () => controlProps.value
|
|
94
|
+
}, null, 1);
|
|
95
|
+
setInsertionState(n23, null, 2);
|
|
96
|
+
createIf(() => hasDescription.value, () => {
|
|
97
|
+
const n16 = t3();
|
|
98
|
+
renderEffect(() => setProp(n16, "id", descriptionId.value));
|
|
99
|
+
setInsertionState(n16, null, 0);
|
|
100
|
+
createSlot("description", null, () => {
|
|
101
|
+
const n15 = t0();
|
|
102
|
+
renderEffect(() => setText(n15, toDisplayString(__props.description)));
|
|
103
|
+
return n15;
|
|
104
|
+
}, 1);
|
|
105
|
+
return n16;
|
|
106
|
+
});
|
|
107
|
+
setInsertionState(n23, null, 3);
|
|
108
|
+
createIf(() => hasMessage.value, () => {
|
|
109
|
+
const n22 = t4();
|
|
110
|
+
renderEffect(() => {
|
|
111
|
+
setProp(n22, "id", messageId.value);
|
|
112
|
+
setProp(n22, "role", isInvalid.value ? "alert" : void 0);
|
|
113
|
+
});
|
|
114
|
+
setInsertionState(n22, null, 0);
|
|
115
|
+
createSlot("message", null, () => {
|
|
116
|
+
const n21 = t0();
|
|
117
|
+
renderEffect(() => setText(n21, toDisplayString(messageText.value)));
|
|
118
|
+
return n21;
|
|
119
|
+
}, 1);
|
|
120
|
+
return n22;
|
|
121
|
+
});
|
|
122
|
+
return n23;
|
|
123
|
+
}
|
|
124
|
+
}), [["__scopeId", "data-v-b8c3dcbe"]]);
|
|
125
|
+
//#endregion
|
|
126
|
+
export { field_default as t };
|
|
127
|
+
|
|
128
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","names":[],"sources":["../src/components/field/field.vue","../src/components/field/field.vue"],"sourcesContent":["<template>\n <div :class=\"rootClass\">\n <label v-if=\"hasLabel\" :id=\"labelId\" class=\"rp-field__label\" :for=\"controlId\">\n <slot name=\"label\">{{ label }}</slot>\n <span v-if=\"required\" class=\"rp-field__required\" aria-hidden=\"true\">*</span>\n </label>\n\n <div class=\"rp-field__control\">\n <slot\n :id=\"controlId\"\n :disabled=\"disabled || undefined\"\n :required=\"required || undefined\"\n :invalid=\"isInvalid || undefined\"\n :labelledby=\"controlLabelledby\"\n :describedby=\"controlDescribedby\"\n :control-props=\"controlProps\"\n />\n </div>\n\n <p v-if=\"hasDescription\" :id=\"descriptionId\" class=\"rp-field__description\">\n <slot name=\"description\">{{ description }}</slot>\n </p>\n\n <p\n v-if=\"hasMessage\"\n :id=\"messageId\"\n class=\"rp-field__message\"\n :role=\"isInvalid ? 'alert' : undefined\"\n >\n <slot name=\"message\">{{ messageText }}</slot>\n </p>\n </div>\n</template>\n\n<script lang=\"ts\" setup vapor>\nimport { computed, useId, useSlots } from 'vue';\nimport { bem } from '@/utils/bem';\nimport type { FieldControlProps, FieldProps } from './types';\n\ndefineOptions({ name: 'RpField' });\n\nconst props = withDefaults(defineProps<FieldProps>(), {\n label: '',\n description: '',\n message: '',\n error: '',\n disabled: undefined,\n required: false,\n invalid: undefined,\n});\n\nconst slots = useSlots();\nconst generatedId = useId();\n\nconst controlId = computed(() => props.id ?? `${generatedId}-control`);\nconst labelId = computed(() => `${controlId.value}-label`);\nconst descriptionId = computed(() => `${controlId.value}-description`);\nconst messageId = computed(() => `${controlId.value}-message`);\n\nconst isInvalid = computed(() => Boolean(props.invalid || props.error));\nconst messageText = computed(() => props.error || props.message);\n\nconst hasLabel = computed(() => Boolean(props.label || slots.label));\nconst hasDescription = computed(() => Boolean(props.description || slots.description));\nconst hasMessage = computed(() => Boolean(messageText.value || slots.message));\n\nconst controlLabelledby = computed(() => (hasLabel.value ? labelId.value : undefined));\nconst controlDescribedby = computed(\n () =>\n [\n hasDescription.value ? descriptionId.value : undefined,\n hasMessage.value ? messageId.value : undefined,\n ]\n .filter(Boolean)\n .join(' ') || undefined,\n);\n\nconst rootClass = computed(() =>\n bem('rp-field', {\n disabled: props.disabled,\n required: props.required,\n invalid: isInvalid.value,\n }),\n);\n\nconst controlProps = computed<FieldControlProps>(() => ({\n id: controlId.value,\n disabled: props.disabled || undefined,\n required: props.required || undefined,\n invalid: isInvalid.value || undefined,\n labelledby: controlLabelledby.value,\n describedby: controlDescribedby.value,\n}));\n</script>\n\n<style src=\"./field.scss\" lang=\"scss\" scoped></style>\n","<template>\n <div :class=\"rootClass\">\n <label v-if=\"hasLabel\" :id=\"labelId\" class=\"rp-field__label\" :for=\"controlId\">\n <slot name=\"label\">{{ label }}</slot>\n <span v-if=\"required\" class=\"rp-field__required\" aria-hidden=\"true\">*</span>\n </label>\n\n <div class=\"rp-field__control\">\n <slot\n :id=\"controlId\"\n :disabled=\"disabled || undefined\"\n :required=\"required || undefined\"\n :invalid=\"isInvalid || undefined\"\n :labelledby=\"controlLabelledby\"\n :describedby=\"controlDescribedby\"\n :control-props=\"controlProps\"\n />\n </div>\n\n <p v-if=\"hasDescription\" :id=\"descriptionId\" class=\"rp-field__description\">\n <slot name=\"description\">{{ description }}</slot>\n </p>\n\n <p\n v-if=\"hasMessage\"\n :id=\"messageId\"\n class=\"rp-field__message\"\n :role=\"isInvalid ? 'alert' : undefined\"\n >\n <slot name=\"message\">{{ messageText }}</slot>\n </p>\n </div>\n</template>\n\n<script lang=\"ts\" setup vapor>\nimport { computed, useId, useSlots } from 'vue';\nimport { bem } from '@/utils/bem';\nimport type { FieldControlProps, FieldProps } from './types';\n\ndefineOptions({ name: 'RpField' });\n\nconst props = withDefaults(defineProps<FieldProps>(), {\n label: '',\n description: '',\n message: '',\n error: '',\n disabled: undefined,\n required: false,\n invalid: undefined,\n});\n\nconst slots = useSlots();\nconst generatedId = useId();\n\nconst controlId = computed(() => props.id ?? `${generatedId}-control`);\nconst labelId = computed(() => `${controlId.value}-label`);\nconst descriptionId = computed(() => `${controlId.value}-description`);\nconst messageId = computed(() => `${controlId.value}-message`);\n\nconst isInvalid = computed(() => Boolean(props.invalid || props.error));\nconst messageText = computed(() => props.error || props.message);\n\nconst hasLabel = computed(() => Boolean(props.label || slots.label));\nconst hasDescription = computed(() => Boolean(props.description || slots.description));\nconst hasMessage = computed(() => Boolean(messageText.value || slots.message));\n\nconst controlLabelledby = computed(() => (hasLabel.value ? labelId.value : undefined));\nconst controlDescribedby = computed(\n () =>\n [\n hasDescription.value ? descriptionId.value : undefined,\n hasMessage.value ? messageId.value : undefined,\n ]\n .filter(Boolean)\n .join(' ') || undefined,\n);\n\nconst rootClass = computed(() =>\n bem('rp-field', {\n disabled: props.disabled,\n required: props.required,\n invalid: isInvalid.value,\n }),\n);\n\nconst controlProps = computed<FieldControlProps>(() => ({\n id: controlId.value,\n disabled: props.disabled || undefined,\n required: props.required || undefined,\n invalid: isInvalid.value || undefined,\n labelledby: controlLabelledby.value,\n describedby: controlDescribedby.value,\n}));\n</script>\n\n<style src=\"./field.scss\" lang=\"scss\" scoped></style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCA,MAAM,QAAQ;EAUd,MAAM,QAAQ,SAAS;EACvB,MAAM,cAAc,MAAM;EAE1B,MAAM,YAAY,eAAe,MAAM,MAAM,GAAG,YAAY,SAAS;EACrE,MAAM,UAAU,eAAe,GAAG,UAAU,MAAM,OAAO;EACzD,MAAM,gBAAgB,eAAe,GAAG,UAAU,MAAM,aAAa;EACrE,MAAM,YAAY,eAAe,GAAG,UAAU,MAAM,SAAS;EAE7D,MAAM,YAAY,eAAe,QAAQ,MAAM,WAAW,MAAM,KAAK,CAAC;EACtE,MAAM,cAAc,eAAe,MAAM,SAAS,MAAM,OAAO;EAE/D,MAAM,WAAW,eAAe,QAAQ,MAAM,SAAS,MAAM,KAAK,CAAC;EACnE,MAAM,iBAAiB,eAAe,QAAQ,MAAM,eAAe,MAAM,WAAW,CAAC;EACrF,MAAM,aAAa,eAAe,QAAQ,YAAY,SAAS,MAAM,OAAO,CAAC;EAE7E,MAAM,oBAAoB,eAAgB,SAAS,QAAQ,QAAQ,QAAQ,KAAA,CAAU;EACrF,MAAM,qBAAqB,eAEnB,CACI,eAAe,QAAQ,cAAc,QAAQ,KAAA,GAC7C,WAAW,QAAQ,UAAU,QAAQ,KAAA,CACzC,CAAA,CACK,OAAO,OAAO,CAAA,CACd,KAAK,GAAG,KAAK,KAAA,CAC1B;EAEA,MAAM,YAAY,eACd,IAAI,YAAY;GACZ,UAAU,MAAM;GAChB,UAAU,MAAM;GAChB,SAAS,UAAU;EACvB,CAAC,CACL;EAEA,MAAM,eAAe,gBAAmC;GACpD,IAAI,UAAU;GACd,UAAU,MAAM,YAAY,KAAA;GAC5B,UAAU,MAAM,YAAY,KAAA;GAC5B,SAAS,UAAU,SAAS,KAAA;GAC5B,YAAY,kBAAkB;GAC9B,aAAa,mBAAmB;EACpC,EAAE;;;mCA3Fe,UAAA,KAAS,CAAA;;iBACL,SAAA,aAAQ;;;gBAAG,MAAI,QAAA,KAAO;gBAA2B,OAAK,UAAA,KAAS;;;cAClE,SAAY,YAAA;;mDAAI,QAAA,KAAK,CAAA,CAAA;;;;kBACf,QAAA,gBAAQ;;;;;;;GAKf,UAAI,UAAA;GACJ,gBAAU,QAAA,YAAY,KAAA;GACtB,gBAAU,QAAA,YAAY,KAAA;GACtB,eAAS,UAAA,SAAa,KAAA;GACtB,kBAAY,kBAAA;GACZ,mBAAa,mBAAA;GACb,oBAAe,aAAA;;;iBAIf,eAAA,aAAc;;mCAAG,MAAI,cAAA,KAAa,CAAA;;cACjC,eAAkB,YAAA;;oDAAI,QAAA,WAAW,CAAA,CAAA;;;;;;iBAIjC,WAAA,aAAU;;;iBACf,MAAI,UAAA,KAAS;iBAEb,QAAM,UAAA,QAAS,UAAa,KAAA,CAAS;;;cAEhC,WAAc,YAAA;;oDAAI,YAAA,KAAW,CAAA,CAAA"}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
.rp-button[data-v-4a239144] {
|
|
2
|
+
--_rp-button-accent: var(--rp-color-primary);
|
|
3
|
+
--_rp-button-accent-hover: var(--rp-color-primary-hover);
|
|
4
|
+
--_rp-button-accent-active: var(--rp-color-primary-active);
|
|
5
|
+
--_rp-button-accent-on: var(--rp-color-on-primary);
|
|
6
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-primary-subtle-bg);
|
|
7
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-primary-subtle-bg-hover);
|
|
8
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-primary-subtle-bg-active);
|
|
9
|
+
--_rp-button-accent-border: var(--rp-color-primary-border);
|
|
10
|
+
--_rp-button-accent-border-hover: var(--rp-color-primary-border-hover);
|
|
11
|
+
--_rp-button-accent-fg: var(--rp-color-primary-fg);
|
|
12
|
+
--_rp-button-bg: var(--rp-color-button-default-bg);
|
|
13
|
+
--_rp-button-bg-hover: var(--rp-color-button-default-bg-hover);
|
|
14
|
+
--_rp-button-bg-active: var(--rp-color-button-default-bg-active);
|
|
15
|
+
--_rp-button-border: var(--rp-color-border);
|
|
16
|
+
--_rp-button-border-hover: var(--rp-color-border-hover);
|
|
17
|
+
--_rp-button-border-active: var(--_rp-button-border-hover);
|
|
18
|
+
--_rp-button-fg: var(--rp-color-text);
|
|
19
|
+
--_rp-button-height: var(--rp-size-control-md);
|
|
20
|
+
--_rp-button-padding-x: var(--rp-spacing-4);
|
|
21
|
+
--_rp-button-font-size: var(--rp-font-size-base);
|
|
22
|
+
--_rp-button-radius: var(--rp-radius-sm);
|
|
23
|
+
--_rp-button-shadow: var(--rp-shadow-sm);
|
|
24
|
+
--_rp-button-shadow-hover: var(--rp-shadow-base);
|
|
25
|
+
--_rp-button-shadow-active: var(--rp-shadow-sm);
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
gap: var(--rp-spacing-2);
|
|
31
|
+
font-family: var(--rp-font-family);
|
|
32
|
+
font-weight: var(--rp-font-weight-medium);
|
|
33
|
+
line-height: var(--rp-line-height-none);
|
|
34
|
+
appearance: none;
|
|
35
|
+
background-color: var(--_rp-button-bg);
|
|
36
|
+
border: var(--rp-border-width-thin) solid var(--_rp-button-border);
|
|
37
|
+
box-shadow: var(--_rp-button-shadow);
|
|
38
|
+
color: var(--_rp-button-fg);
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: background-color var(--rp-transition-fast), color var(--rp-transition-fast), border-color var(--rp-transition-fast), box-shadow var(--rp-transition-fast), transform var(--rp-transition-fast);
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
user-select: none;
|
|
43
|
+
height: var(--_rp-button-height);
|
|
44
|
+
padding: 0 var(--_rp-button-padding-x);
|
|
45
|
+
font-size: var(--_rp-button-font-size);
|
|
46
|
+
border-radius: var(--_rp-button-radius);
|
|
47
|
+
}
|
|
48
|
+
.rp-button[data-v-4a239144]:hover:not(:disabled) {
|
|
49
|
+
background-color: var(--_rp-button-bg-hover);
|
|
50
|
+
border-color: var(--_rp-button-border-hover);
|
|
51
|
+
box-shadow: var(--_rp-button-shadow-hover);
|
|
52
|
+
}
|
|
53
|
+
.rp-button[data-v-4a239144]:active:not(:disabled) {
|
|
54
|
+
background-color: var(--_rp-button-bg-active);
|
|
55
|
+
border-color: var(--_rp-button-border-active);
|
|
56
|
+
box-shadow: var(--_rp-button-shadow-active);
|
|
57
|
+
transform: translateY(1px);
|
|
58
|
+
}
|
|
59
|
+
.rp-button--color-primary[data-v-4a239144] {
|
|
60
|
+
--_rp-button-accent: var(--rp-color-primary);
|
|
61
|
+
--_rp-button-accent-hover: var(--rp-color-primary-hover);
|
|
62
|
+
--_rp-button-accent-active: var(--rp-color-primary-active);
|
|
63
|
+
--_rp-button-accent-on: var(--rp-color-on-primary);
|
|
64
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-primary-subtle-bg);
|
|
65
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-primary-subtle-bg-hover);
|
|
66
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-primary-subtle-bg-active);
|
|
67
|
+
--_rp-button-accent-border: var(--rp-color-primary-border);
|
|
68
|
+
--_rp-button-accent-border-hover: var(--rp-color-primary-border-hover);
|
|
69
|
+
--_rp-button-accent-fg: var(--rp-color-primary-fg);
|
|
70
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
71
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
72
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
73
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
74
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
75
|
+
}
|
|
76
|
+
.rp-button--color-secondary[data-v-4a239144] {
|
|
77
|
+
--_rp-button-accent: var(--rp-color-secondary);
|
|
78
|
+
--_rp-button-accent-hover: var(--rp-color-secondary-hover);
|
|
79
|
+
--_rp-button-accent-active: var(--rp-color-secondary-active);
|
|
80
|
+
--_rp-button-accent-on: var(--rp-color-on-secondary);
|
|
81
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-secondary-subtle-bg);
|
|
82
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-secondary-subtle-bg-hover);
|
|
83
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-secondary-subtle-bg-active);
|
|
84
|
+
--_rp-button-accent-border: var(--rp-color-secondary-border);
|
|
85
|
+
--_rp-button-accent-border-hover: var(--rp-color-secondary-border-hover);
|
|
86
|
+
--_rp-button-accent-fg: var(--rp-color-secondary-fg);
|
|
87
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
88
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
89
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
90
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
91
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
92
|
+
}
|
|
93
|
+
.rp-button--color-success[data-v-4a239144] {
|
|
94
|
+
--_rp-button-accent: var(--rp-color-success);
|
|
95
|
+
--_rp-button-accent-hover: var(--rp-color-success-hover);
|
|
96
|
+
--_rp-button-accent-active: var(--rp-color-success-active);
|
|
97
|
+
--_rp-button-accent-on: var(--rp-color-on-success);
|
|
98
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-success-subtle-bg);
|
|
99
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-success-subtle-bg-hover);
|
|
100
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-success-subtle-bg-active);
|
|
101
|
+
--_rp-button-accent-border: var(--rp-color-success-border);
|
|
102
|
+
--_rp-button-accent-border-hover: var(--rp-color-success-border-hover);
|
|
103
|
+
--_rp-button-accent-fg: var(--rp-color-success-fg);
|
|
104
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
105
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
106
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
107
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
108
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
109
|
+
}
|
|
110
|
+
.rp-button--color-warning[data-v-4a239144] {
|
|
111
|
+
--_rp-button-accent: var(--rp-color-warning);
|
|
112
|
+
--_rp-button-accent-hover: var(--rp-color-warning-hover);
|
|
113
|
+
--_rp-button-accent-active: var(--rp-color-warning-active);
|
|
114
|
+
--_rp-button-accent-on: var(--rp-color-on-warning);
|
|
115
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-warning-subtle-bg);
|
|
116
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-warning-subtle-bg-hover);
|
|
117
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-warning-subtle-bg-active);
|
|
118
|
+
--_rp-button-accent-border: var(--rp-color-warning-border);
|
|
119
|
+
--_rp-button-accent-border-hover: var(--rp-color-warning-border-hover);
|
|
120
|
+
--_rp-button-accent-fg: var(--rp-color-warning-fg);
|
|
121
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
122
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
123
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
124
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
125
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
126
|
+
}
|
|
127
|
+
.rp-button--color-danger[data-v-4a239144] {
|
|
128
|
+
--_rp-button-accent: var(--rp-color-danger);
|
|
129
|
+
--_rp-button-accent-hover: var(--rp-color-danger-hover);
|
|
130
|
+
--_rp-button-accent-active: var(--rp-color-danger-active);
|
|
131
|
+
--_rp-button-accent-on: var(--rp-color-on-danger);
|
|
132
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-danger-subtle-bg);
|
|
133
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-danger-subtle-bg-hover);
|
|
134
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-danger-subtle-bg-active);
|
|
135
|
+
--_rp-button-accent-border: var(--rp-color-danger-border);
|
|
136
|
+
--_rp-button-accent-border-hover: var(--rp-color-danger-border-hover);
|
|
137
|
+
--_rp-button-accent-fg: var(--rp-color-danger-fg);
|
|
138
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
139
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
140
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
141
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
142
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
143
|
+
}
|
|
144
|
+
.rp-button--color-info[data-v-4a239144] {
|
|
145
|
+
--_rp-button-accent: var(--rp-color-info);
|
|
146
|
+
--_rp-button-accent-hover: var(--rp-color-info-hover);
|
|
147
|
+
--_rp-button-accent-active: var(--rp-color-info-active);
|
|
148
|
+
--_rp-button-accent-on: var(--rp-color-on-info);
|
|
149
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-info-subtle-bg);
|
|
150
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-info-subtle-bg-hover);
|
|
151
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-info-subtle-bg-active);
|
|
152
|
+
--_rp-button-accent-border: var(--rp-color-info-border);
|
|
153
|
+
--_rp-button-accent-border-hover: var(--rp-color-info-border-hover);
|
|
154
|
+
--_rp-button-accent-fg: var(--rp-color-info-fg);
|
|
155
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
156
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
157
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
158
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
159
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
160
|
+
}
|
|
161
|
+
.rp-button--color-neutral[data-v-4a239144] {
|
|
162
|
+
--_rp-button-accent: var(--rp-color-neutral);
|
|
163
|
+
--_rp-button-accent-hover: var(--rp-color-neutral-hover);
|
|
164
|
+
--_rp-button-accent-active: var(--rp-color-neutral-active);
|
|
165
|
+
--_rp-button-accent-on: var(--rp-color-on-neutral);
|
|
166
|
+
--_rp-button-accent-subtle-bg: var(--rp-color-neutral-subtle-bg);
|
|
167
|
+
--_rp-button-accent-subtle-bg-hover: var(--rp-color-neutral-subtle-bg-hover);
|
|
168
|
+
--_rp-button-accent-subtle-bg-active: var(--rp-color-neutral-subtle-bg-active);
|
|
169
|
+
--_rp-button-accent-border: var(--rp-color-neutral-border);
|
|
170
|
+
--_rp-button-accent-border-hover: var(--rp-color-neutral-border-hover);
|
|
171
|
+
--_rp-button-accent-fg: var(--rp-color-neutral-fg);
|
|
172
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
173
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
174
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
175
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
176
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
177
|
+
}
|
|
178
|
+
.rp-button--size-xs[data-v-4a239144] {
|
|
179
|
+
--_rp-button-height: calc(var(--rp-size-control-sm) - var(--rp-spacing-1));
|
|
180
|
+
--_rp-button-padding-x: var(--rp-spacing-2);
|
|
181
|
+
--_rp-button-font-size: var(--rp-font-size-xs);
|
|
182
|
+
}
|
|
183
|
+
.rp-button--size-sm[data-v-4a239144] {
|
|
184
|
+
--_rp-button-height: var(--rp-size-control-sm);
|
|
185
|
+
--_rp-button-padding-x: var(--rp-spacing-3);
|
|
186
|
+
--_rp-button-font-size: var(--rp-font-size-sm);
|
|
187
|
+
}
|
|
188
|
+
.rp-button--size-lg[data-v-4a239144] {
|
|
189
|
+
--_rp-button-height: var(--rp-size-control-lg);
|
|
190
|
+
--_rp-button-padding-x: var(--rp-spacing-5);
|
|
191
|
+
--_rp-button-font-size: var(--rp-font-size-lg);
|
|
192
|
+
}
|
|
193
|
+
.rp-button--size-xl[data-v-4a239144] {
|
|
194
|
+
--_rp-button-height: calc(var(--rp-size-control-lg) + var(--rp-spacing-2));
|
|
195
|
+
--_rp-button-padding-x: var(--rp-spacing-6);
|
|
196
|
+
--_rp-button-font-size: var(--rp-font-size-lg);
|
|
197
|
+
}
|
|
198
|
+
.rp-button--radius-xs[data-v-4a239144] {
|
|
199
|
+
--_rp-button-radius: var(--rp-radius-xs);
|
|
200
|
+
}
|
|
201
|
+
.rp-button--radius-sm[data-v-4a239144] {
|
|
202
|
+
--_rp-button-radius: var(--rp-radius-sm);
|
|
203
|
+
}
|
|
204
|
+
.rp-button--radius-md[data-v-4a239144] {
|
|
205
|
+
--_rp-button-radius: var(--rp-radius-md);
|
|
206
|
+
}
|
|
207
|
+
.rp-button--radius-lg[data-v-4a239144] {
|
|
208
|
+
--_rp-button-radius: var(--rp-radius-lg);
|
|
209
|
+
}
|
|
210
|
+
.rp-button--radius-xl[data-v-4a239144] {
|
|
211
|
+
--_rp-button-radius: var(--rp-radius-xl);
|
|
212
|
+
}
|
|
213
|
+
.rp-button--solid[data-v-4a239144] {
|
|
214
|
+
--_rp-button-bg: var(--_rp-button-accent);
|
|
215
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-hover);
|
|
216
|
+
--_rp-button-bg-active: var(--_rp-button-accent-active);
|
|
217
|
+
--_rp-button-border: var(--_rp-button-accent);
|
|
218
|
+
--_rp-button-border-hover: var(--_rp-button-accent-hover);
|
|
219
|
+
--_rp-button-border-active: var(--_rp-button-accent-active);
|
|
220
|
+
--_rp-button-fg: var(--_rp-button-accent-on);
|
|
221
|
+
}
|
|
222
|
+
.rp-button--subtle[data-v-4a239144] {
|
|
223
|
+
--_rp-button-bg: var(--_rp-button-accent-subtle-bg);
|
|
224
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
225
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
226
|
+
--_rp-button-border: transparent;
|
|
227
|
+
--_rp-button-border-hover: transparent;
|
|
228
|
+
--_rp-button-border-active: transparent;
|
|
229
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
230
|
+
--_rp-button-shadow: none;
|
|
231
|
+
--_rp-button-shadow-hover: none;
|
|
232
|
+
--_rp-button-shadow-active: none;
|
|
233
|
+
}
|
|
234
|
+
.rp-button--surface[data-v-4a239144] {
|
|
235
|
+
--_rp-button-bg: var(--_rp-button-accent-subtle-bg);
|
|
236
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
237
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
238
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
239
|
+
--_rp-button-border-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
240
|
+
--_rp-button-border-active: var(--_rp-button-accent-border-hover);
|
|
241
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
242
|
+
--_rp-button-shadow: none;
|
|
243
|
+
--_rp-button-shadow-hover: none;
|
|
244
|
+
--_rp-button-shadow-active: none;
|
|
245
|
+
}
|
|
246
|
+
.rp-button--outline[data-v-4a239144] {
|
|
247
|
+
--_rp-button-bg: transparent;
|
|
248
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
249
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
250
|
+
--_rp-button-border: var(--_rp-button-accent-border);
|
|
251
|
+
--_rp-button-border-hover: var(--_rp-button-accent-border-hover);
|
|
252
|
+
--_rp-button-border-active: var(--_rp-button-accent-border-hover);
|
|
253
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
254
|
+
--_rp-button-shadow: none;
|
|
255
|
+
--_rp-button-shadow-hover: none;
|
|
256
|
+
--_rp-button-shadow-active: none;
|
|
257
|
+
}
|
|
258
|
+
.rp-button--ghost[data-v-4a239144] {
|
|
259
|
+
--_rp-button-bg: transparent;
|
|
260
|
+
--_rp-button-bg-hover: var(--_rp-button-accent-subtle-bg-hover);
|
|
261
|
+
--_rp-button-bg-active: var(--_rp-button-accent-subtle-bg-active);
|
|
262
|
+
--_rp-button-border: transparent;
|
|
263
|
+
--_rp-button-border-hover: transparent;
|
|
264
|
+
--_rp-button-border-active: transparent;
|
|
265
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
266
|
+
--_rp-button-shadow: none;
|
|
267
|
+
--_rp-button-shadow-hover: none;
|
|
268
|
+
--_rp-button-shadow-active: none;
|
|
269
|
+
}
|
|
270
|
+
.rp-button--plain[data-v-4a239144] {
|
|
271
|
+
--_rp-button-bg: transparent;
|
|
272
|
+
--_rp-button-bg-hover: transparent;
|
|
273
|
+
--_rp-button-bg-active: transparent;
|
|
274
|
+
--_rp-button-border: transparent;
|
|
275
|
+
--_rp-button-border-hover: transparent;
|
|
276
|
+
--_rp-button-border-active: transparent;
|
|
277
|
+
--_rp-button-fg: var(--_rp-button-accent-fg);
|
|
278
|
+
--_rp-button-shadow: none;
|
|
279
|
+
--_rp-button-shadow-hover: none;
|
|
280
|
+
--_rp-button-shadow-active: none;
|
|
281
|
+
}
|
|
282
|
+
.rp-button[data-v-4a239144]:disabled {
|
|
283
|
+
opacity: var(--rp-opacity-disabled);
|
|
284
|
+
cursor: not-allowed;
|
|
285
|
+
box-shadow: none;
|
|
286
|
+
transform: none;
|
|
287
|
+
}
|
|
288
|
+
.rp-button[data-v-4a239144]:focus-visible {
|
|
289
|
+
outline: none;
|
|
290
|
+
border-color: var(--rp-color-primary);
|
|
291
|
+
box-shadow: 0 0 0 var(--rp-border-width-medium) var(--rp-color-focus-ring);
|
|
292
|
+
}
|
|
293
|
+
.rp-button__left[data-v-4a239144], .rp-button__right[data-v-4a239144] {
|
|
294
|
+
display: inline-flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
flex-shrink: 0;
|
|
297
|
+
}
|
|
298
|
+
.rp-button__spinner[data-v-4a239144] {
|
|
299
|
+
display: block;
|
|
300
|
+
width: 1em;
|
|
301
|
+
height: 1em;
|
|
302
|
+
flex-shrink: 0;
|
|
303
|
+
transform-origin: center;
|
|
304
|
+
animation: rp-button-spin-4a239144 700ms linear infinite;
|
|
305
|
+
}
|
|
306
|
+
@keyframes rp-button-spin-4a239144 {
|
|
307
|
+
to {
|
|
308
|
+
transform: rotate(360deg);
|
|
309
|
+
}
|
|
310
|
+
}.rp-icon-button[data-v-4a239144] {
|
|
311
|
+
width: var(--_rp-button-height);
|
|
312
|
+
padding: 0;
|
|
313
|
+
}
|
|
314
|
+
.rp-icon-button__icon[data-v-4a239144], .rp-icon-button__spinner[data-v-4a239144] {
|
|
315
|
+
width: 1em;
|
|
316
|
+
height: 1em;
|
|
317
|
+
flex-shrink: 0;
|
|
318
|
+
}
|
|
319
|
+
.rp-icon-button__icon[data-v-4a239144] {
|
|
320
|
+
display: inline-flex;
|
|
321
|
+
align-items: center;
|
|
322
|
+
justify-content: center;
|
|
323
|
+
line-height: 0;
|
|
324
|
+
}
|
|
325
|
+
.rp-icon-button__icon svg[data-v-4a239144-s] {
|
|
326
|
+
display: block;
|
|
327
|
+
width: 1em;
|
|
328
|
+
height: 1em;
|
|
329
|
+
}
|
|
330
|
+
.rp-icon-button__spinner[data-v-4a239144] {
|
|
331
|
+
display: block;
|
|
332
|
+
transform-origin: center;
|
|
333
|
+
animation: rp-icon-button-spin-4a239144 700ms linear infinite;
|
|
334
|
+
}
|
|
335
|
+
@keyframes rp-icon-button-spin-4a239144 {
|
|
336
|
+
to {
|
|
337
|
+
transform: rotate(360deg);
|
|
338
|
+
}
|
|
339
|
+
}
|