@dataloop-ai/components 0.20.181 → 0.20.182

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": "@dataloop-ai/components",
3
- "version": "0.20.181",
3
+ "version": "0.20.182",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -169,6 +169,10 @@ export default defineComponent({
169
169
  * The name of the icon to go inside the button
170
170
  */
171
171
  icon: { type: String, default: '' },
172
+ /**
173
+ * The size of the icon inside the button. If not provided, will be calculated based on button size
174
+ */
175
+ iconSize: { type: String, default: null, required: false },
172
176
  overflow: { type: Boolean, default: false, required: false },
173
177
  /**
174
178
  * The tooltip displayed when hovering over the button
@@ -295,7 +299,7 @@ export default defineComponent({
295
299
  return this.isActionable ? 0 : -1
296
300
  },
297
301
  iconSizePX(): string {
298
- return setIconSize(this.$props.size)
302
+ return this.iconSize || setIconSize(this.$props.size)
299
303
  },
300
304
  hasLabel(): boolean {
301
305
  return !!this.label