orio-ui 1.0.5 → 1.0.6
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
CHANGED
|
@@ -41,7 +41,7 @@ That's it! All components and composables are now auto-imported.
|
|
|
41
41
|
```vue
|
|
42
42
|
<template>
|
|
43
43
|
<div>
|
|
44
|
-
<orio-button
|
|
44
|
+
<orio-button variant="primary" @click="handleClick"> Click Me </orio-button>
|
|
45
45
|
|
|
46
46
|
<orio-input v-model="email" label="Email" placeholder="you@example.com" />
|
|
47
47
|
|
package/dist/module.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import { computed, toRefs, useAttrs, useSlots } from 'vue';
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
|
-
|
|
5
|
+
variant?: 'primary' | 'secondary' | 'subdued';
|
|
6
6
|
icon?: string;
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const props = withDefaults(defineProps<Props>(), {
|
|
12
|
-
|
|
12
|
+
variant: 'primary',
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
const { loading, disabled } = toRefs(props);
|
|
@@ -37,7 +37,7 @@ function click(event: PointerEvent) {
|
|
|
37
37
|
<orio-control-element>
|
|
38
38
|
<button
|
|
39
39
|
v-bind="attrs"
|
|
40
|
-
:class="[
|
|
40
|
+
:class="[variant, 'gradient-hover', { 'icon-only': isIconOnly }]"
|
|
41
41
|
@click="click"
|
|
42
42
|
>
|
|
43
43
|
<orio-loading-spinner v-if="loading" />
|
|
@@ -56,6 +56,8 @@ button {
|
|
|
56
56
|
border: 1px solid transparent;
|
|
57
57
|
border-radius: var(--border-radius-md);
|
|
58
58
|
padding: 8px 16px;
|
|
59
|
+
font-size: 1rem;
|
|
60
|
+
line-height: 1.5;
|
|
59
61
|
cursor: pointer;
|
|
60
62
|
display: inline-flex;
|
|
61
63
|
align-items: center;
|
|
@@ -19,6 +19,7 @@ const text = defineModel<string>({ default: '' });
|
|
|
19
19
|
border: 1px solid var(--color-border);
|
|
20
20
|
border-radius: var(--border-radius-md);
|
|
21
21
|
font-size: 1rem;
|
|
22
|
+
line-height: 1.5;
|
|
22
23
|
color: var(--color-text);
|
|
23
24
|
background-color: var(--color-bg);
|
|
24
25
|
box-sizing: border-box;
|
|
@@ -165,6 +165,7 @@ const selectorAttrs = computed(() => ({ getOptionKey, getOptionLabel }));
|
|
|
165
165
|
border-radius: var(--border-radius-md);
|
|
166
166
|
padding: 0.5rem 0.75rem;
|
|
167
167
|
font-size: 0.95rem;
|
|
168
|
+
line-height: 1.5;
|
|
168
169
|
color: var(--color-text);
|
|
169
170
|
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
|
|
170
171
|
}
|
|
@@ -22,6 +22,7 @@ const modelValue = defineModel<string>({ default: '' });
|
|
|
22
22
|
border: 1px solid var(--color-border);
|
|
23
23
|
border-radius: var(--border-radius-md);
|
|
24
24
|
font-size: 1rem;
|
|
25
|
+
line-height: 1.5;
|
|
25
26
|
color: var(--color-text);
|
|
26
27
|
background-color: var(--color-bg);
|
|
27
28
|
box-sizing: border-box;
|