vueless 0.0.522 → 0.0.523

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "0.0.522",
3
+ "version": "0.0.523",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
6
6
  "keywords": [
@@ -116,8 +116,6 @@ defineExpose({
116
116
  :data-test="dataTest"
117
117
  >
118
118
  <template v-if="loading">
119
- <!-- Label is needed to prevent changing button height -->
120
- <div tabindex="-1" class="invisible w-0" v-text="label" />
121
119
  <ULoader :loading="loading" :size="loaderSize" :color="iconColor" v-bind="loaderAttrs" />
122
120
  </template>
123
121
 
@@ -183,5 +181,8 @@ defineExpose({
183
181
  />
184
182
  </slot>
185
183
  </template>
184
+
185
+ <!-- This is needed to prevent changing button height -->
186
+ <div v-if="!label || loading" tabindex="-1" class="invisible w-0" v-text="'invisible'" />
186
187
  </component>
187
188
  </template>
@@ -1,7 +1,7 @@
1
1
  export default /*tw*/ {
2
2
  button: {
3
3
  base: `
4
- flex items-center justify-center font-medium whitespace-nowrap
4
+ flex items-center justify-center font-medium !leading-snug whitespace-nowrap
5
5
  border border-transparent outline-none transition
6
6
  disabled:cursor-not-allowed cursor-pointer
7
7
  disabled:ring-0 disabled:ring-offset-0
@@ -51,7 +51,10 @@ export default /*tw*/ {
51
51
  true: "!ring-0 !ring-offset-0",
52
52
  },
53
53
  loading: {
54
- true: "pointer-events-none gap-0",
54
+ true: "gap-0 pointer-events-none",
55
+ },
56
+ label: {
57
+ false: "gap-0",
55
58
  },
56
59
  block: {
57
60
  true: "w-full",
@@ -13,6 +13,7 @@ export default function useAttrs(props: UButtonProps): UseAttrs<Config> {
13
13
  const mutatedProps = computed(() => ({
14
14
  leftIcon: Boolean(props.leftIcon) || hasSlotContent(slots["left"]),
15
15
  rightIcon: Boolean(props.rightIcon) || hasSlotContent(slots["right"]),
16
+ label: Boolean(props.label),
16
17
  }));
17
18
 
18
19
  const keysAttrs = getKeysAttrs(mutatedProps);
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.522",
4
+ "version": "0.0.523",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",