@proj-airi/ui 0.9.0-rc.1 → 0.9.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@proj-airi/ui",
3
3
  "type": "module",
4
- "version": "0.9.0-rc.1",
4
+ "version": "0.9.0",
5
5
  "description": "A collection of UI components that used by Project AIRI",
6
6
  "author": {
7
7
  "name": "Moeru AI Project AIRI Team",
@@ -40,6 +40,7 @@ const props = withDefaults(defineProps<{
40
40
  contentWidth?: string | number
41
41
  shape?: 'rounded' | 'default'
42
42
  variant?: 'blurry' | 'default'
43
+ class?: string | string[]
43
44
  }>(), {
44
45
  placeholder: 'Select an option',
45
46
  disabled: false,
@@ -112,6 +113,7 @@ function toCssSize(value?: string | number): string | undefined {
112
113
  <SelectTrigger
113
114
  :class="[
114
115
  'group',
116
+ ...Array.isArray(props.class) ? props.class : [props.class],
115
117
  'w-full inline-flex items-center justify-between border px-3 leading-none h-9 gap-[5px] outline-none',
116
118
  props.shape === 'rounded' ? 'rounded-full' : 'rounded-lg',
117
119
  'text-sm text-neutral-700 dark:text-neutral-200 data-[placeholder]:text-neutral-400 dark:data-[placeholder]:text-neutral-500',
@@ -30,6 +30,7 @@ const props = withDefaults(defineProps<ButtonProps>(), {
30
30
  disabled: false,
31
31
  loading: false,
32
32
  size: 'md',
33
+ shape: 'pill',
33
34
  theme: 'default',
34
35
  block: false,
35
36
  })
@@ -45,7 +46,7 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
45
46
  'primary': {
46
47
  default: {
47
48
  default: [
48
- 'rounded-xl',
49
+ 'rounded-lg',
49
50
  'backdrop-blur-md',
50
51
  'bg-primary-500/15 hover:bg-primary-500/20 active:bg-primary-500/30 dark:bg-primary-700/30 dark:hover:bg-primary-700/40 dark:active:bg-primary-700/30',
51
52
  'focus:ring-primary-300/60 dark:focus:ring-primary-600/30',
@@ -58,7 +59,7 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
58
59
  'secondary': {
59
60
  default: {
60
61
  default: [
61
- 'rounded-xl',
62
+ 'rounded-lg',
62
63
  'backdrop-blur-md',
63
64
  'bg-neutral-100/55 hover:bg-neutral-400/20 active:bg-neutral-400/30 dark:bg-neutral-700/60 dark:hover:bg-neutral-700/80 dark:active:bg-neutral-700/60',
64
65
  'focus:ring-neutral-300/30 dark:focus:ring-neutral-600/60 dark:focus:ring-neutral-600/30',
@@ -71,7 +72,7 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
71
72
  'secondary-muted': {
72
73
  default: {
73
74
  default: [
74
- 'rounded-xl',
75
+ 'rounded-lg',
75
76
  'backdrop-blur-md',
76
77
  'hover:bg-neutral-50/50 active:bg-neutral-50/90 hover:dark:bg-neutral-800/50 active:dark:bg-neutral-800/90',
77
78
  'border-2 border-solid border-neutral-100/60 dark:border-neutral-800/30',
@@ -84,7 +85,7 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
84
85
  'danger': {
85
86
  default: {
86
87
  default: [
87
- 'rounded-xl',
88
+ 'rounded-lg',
88
89
  'backdrop-blur-md',
89
90
  'bg-red-500/15 hover:bg-red-500/20 active:bg-red-500/30 dark:bg-red-700/30 dark:hover:bg-red-700/40 dark:active:bg-red-700/30',
90
91
  'focus:ring-2 focus:ring-red-300/30 dark:focus:ring-red-600/60 dark:focus:ring-red-600/30',
@@ -96,7 +97,7 @@ const variantClasses: Record<ButtonVariant, Record<ButtonTheme, {
96
97
  'caution': {
97
98
  default: {
98
99
  default: [
99
- 'rounded-xl',
100
+ 'rounded-lg',
100
101
  'backdrop-blur-md',
101
102
  'bg-amber-400/20 hover:bg-amber-400/25 active:bg-amber-400/35 dark:bg-amber-500/20 dark:hover:bg-amber-500/30 dark:active:bg-amber-500/35',
102
103
  'focus:ring-2 focus:ring-amber-300/40 dark:focus:ring-amber-400/40',
@@ -151,7 +152,7 @@ const baseClasses = computed(() => {
151
152
  const theme = variant[props.theme] || variant.default
152
153
 
153
154
  return [
154
- 'rounded-lg font-medium outline-none',
155
+ 'font-medium outline-none',
155
156
  'transition-all duration-200 ease-in-out',
156
157
  'disabled:cursor-not-allowed disabled:opacity-50',
157
158
  'backdrop-blur-md',