nicklabs-ui 1.0.46 → 1.0.48

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  A Vue 3 component library with glassmorphism design, built for modern web applications.
4
4
 
5
- **Version**: 1.0.39 | **Framework**: Vue 3.5+
5
+ **Version**: 1.0.48 | **Framework**: Vue 3.5+
6
6
 
7
7
  ---
8
8
 
@@ -128,11 +128,12 @@ A versatile button supporting multiple visual variants and semantic intents.
128
128
 
129
129
  | Prop | Type | Default | Description |
130
130
  |------|------|---------|-------------|
131
- | `variant` | `"none" \| "solid" \| "outline" \| "ghost" \| "mute"` | `"solid"` | Visual style |
132
- | `intent` | `"none" \| "primary" \| "error" \| "success" \| "warning" \| "info"` | `"none"` | Semantic color intent |
131
+ | `variant` | `"none" \| "solid" \| "outline" \| "bordered" \| "ghost" \| "mute" \| "link"` | `"none"` | Visual style |
132
+ | `intent` | `"none" \| "primary" \| "secondary" \| "error" \| "success" \| "warning" \| "info" \| "default" \| "purple"` | `"none"` | Semantic color intent |
133
+ | `loading` | `boolean` | `false` | Show spinner and disable interaction |
134
+ | `disabled` | `boolean` | `false` | Disable interaction |
133
135
  | `size` | `"sm" \| "md" \| "lg"` | `"md"` | Button size |
134
136
  | `radiusSize` | `"sm" \| "md" \| "lg" \| "xl" \| "full"` | `"md"` | Border radius |
135
- | `disabled` | `boolean` | `false` | Disable interaction |
136
137
  | `type` | `"button" \| "submit" \| "reset"` | `"button"` | HTML button type |
137
138
  | `square` | `boolean` | `false` | Equal width/height (icon button) |
138
139
  | `padding` | `string` | — | Custom padding override |
@@ -149,8 +150,21 @@ A versatile button supporting multiple visual variants and semantic intents.
149
150
  <!-- Variants -->
150
151
  <NButton variant="solid" intent="primary">Primary</NButton>
151
152
  <NButton variant="outline" intent="success">Success</NButton>
153
+ <NButton variant="bordered" intent="error">Bordered (intent-colored border)</NButton>
152
154
  <NButton variant="ghost" intent="warning">Warning</NButton>
153
155
  <NButton variant="mute" intent="error">Danger</NButton>
156
+ <NButton variant="link" intent="primary">Link style</NButton>
157
+
158
+ <!-- Intents -->
159
+ <NButton variant="solid" intent="secondary">Secondary</NButton>
160
+ <NButton variant="solid" intent="default">Default (grey)</NButton>
161
+ <NButton variant="solid" intent="purple">Purple</NButton>
162
+
163
+ <!-- Loading state -->
164
+ <NButton variant="solid" intent="primary" loading>Saving...</NButton>
165
+ <NButton variant="solid" intent="primary" :loading="isSubmitting" @click="submit">
166
+ Submit
167
+ </NButton>
154
168
 
155
169
  <!-- Sizes -->
156
170
  <NButton size="sm">Small</NButton>
@@ -170,7 +184,16 @@ A versatile button supporting multiple visual variants and semantic intents.
170
184
  </template>
171
185
 
172
186
  <script setup>
187
+ import { ref } from 'vue'
173
188
  import { NButton } from 'nicklabs-ui'
189
+
190
+ const isSubmitting = ref(false)
191
+
192
+ async function submit() {
193
+ isSubmitting.value = true
194
+ await doSomething()
195
+ isSubmitting.value = false
196
+ }
174
197
  </script>
175
198
  ```
176
199
 
@@ -1954,8 +1977,8 @@ interface BreadcrumbItem {
1954
1977
  }
1955
1978
 
1956
1979
  // Sizes / Variants
1957
- type NButtonVariant = 'none' | 'solid' | 'outline' | 'ghost' | 'mute'
1958
- type NButtonIntent = 'none' | 'primary' | 'error' | 'success' | 'warning' | 'info'
1980
+ type NButtonVariant = 'none' | 'solid' | 'outline' | 'bordered' | 'ghost' | 'mute' | 'link'
1981
+ type NButtonIntent = 'none' | 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'info' | 'default' | 'purple'
1959
1982
  type NButtonRadiusSize = 'sm' | 'md' | 'lg' | 'xl' | 'full'
1960
1983
  type NButtonSize = 'sm' | 'md' | 'lg'
1961
1984
  type NTagIntent = 'none' | 'primary' | 'success' | 'warning' | 'error' | 'info'