independer-design-system 1.4.1 → 1.4.2

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.2.0"
6
6
  },
7
- "version": "1.4.1",
7
+ "version": "1.4.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
@@ -33,7 +33,7 @@
33
33
  <button
34
34
  v-else
35
35
  class="inline-flex cursor-pointer justify-center rounded-lg border font-semibold outline-none ring-purple transition-all ease-out focus-visible:border-purple focus-visible:ring-1"
36
- :class="[classes, loadingClasses, iconOnly]"
36
+ :class="[classes, loadingClasses, sizeClasses]"
37
37
  :disabled="disabled"
38
38
  >
39
39
  <slot>
@@ -92,13 +92,16 @@ const classes = computed(() => {
92
92
  "naked-purple": "border-transparent text-purple hover:bg-purple-200 active:bg-purple/40",
93
93
  "wire-white": "bg-transparent border-white text-white hover:bg-black/10 active:bg-black/30 ring-white focus-visible:border-white disabled:bg-transparent disabled:border-grey disabled:text-grey disabled:cursor-not-allowed",
94
94
  "naked-white": "bg-transparent border-white text-white hover:bg-black/10 active:bg-black/30 ring-white focus-visible:border-white",
95
- "link": "justify-start px-0 bg-transparent border-transparent text-purple hover:text-purple-dark active:text-purple-900"
95
+ "link": "justify-start bg-transparent border-transparent text-purple hover:text-purple-dark active:text-purple-900"
96
96
  }[props.tone];
97
97
  });
98
- const iconOnly = computed(() => {
98
+ const sizeClasses = computed(() => {
99
99
  if (props.label === void 0 && props.icon !== void 0) {
100
100
  return "p-[0.6875rem]";
101
101
  }
102
+ if (props.tone === "link") {
103
+ return "px-0 py-[0.6875rem]";
104
+ }
102
105
  return "px-3 py-[0.6875rem]";
103
106
  });
104
107
  const loadingClasses = computed(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "independer-design-system",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Vue 3 component library for the Independer Design System (DS2)",
5
5
  "repository": "arjanvanrees/independer-design-system",
6
6
  "license": "MIT",