@sme.up/ketchup2 2.0.0-SNAPSHOT-20250604085635 → 2.0.0-SNAPSHOT-20250604123630

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.
@@ -1,27 +1,55 @@
1
1
  import { IconState } from '../../types/global';
2
2
  export interface IconProps {
3
+ /**
4
+ * Name or URL of the icon to display.
5
+ */
3
6
  icon: string;
7
+ /**
8
+ * Callback fired when the icon is clicked.
9
+ */
4
10
  onClick?: () => void;
11
+ /**
12
+ * Width of the icon. Can be a number (pixels) or string (e.g., '1em', '24px').
13
+ */
5
14
  width?: number | string;
15
+ /**
16
+ * Height of the icon. Can be a number (pixels) or string (e.g., '1em', '24px').
17
+ */
6
18
  height?: number | string;
19
+ /**
20
+ * Fallback icon name or URL to display when the main icon is not available.
21
+ */
7
22
  placeholderIcon?: string;
23
+ /**
24
+ * Icon color (applied via CSS `fill` or `color`, depending on implementation).
25
+ */
8
26
  color?: string;
27
+ /**
28
+ * If true, the icon appears visually disabled and is not interactive.
29
+ * @default false
30
+ */
9
31
  disabled?: boolean;
32
+ /**
33
+ * Visual state of the icon, used for conditional styling (e.g., active, warning, error).
34
+ */
10
35
  state?: IconState;
36
+ /**
37
+ * If true, rotates the icon (usually 90 or 180 degrees).
38
+ * @default false
39
+ */
11
40
  rotated?: boolean;
12
41
  /**
13
- * When true the icon/image has the `cursor:pointer`.
42
+ * If true, applies `cursor: pointer` to indicate interactivity.
14
43
  * @default false
15
44
  */
16
45
  isInteractable?: boolean;
17
46
  /**
18
- * While true it will rotate the icon
47
+ * If true, applies a spinning animation to the icon (typically used for loading states).
19
48
  * @default false
20
49
  */
21
50
  spin?: boolean;
22
51
  /**
23
- * title is the alternative text on the icon hover
24
- * @optional
52
+ * Tooltip or alternative text shown on hover (used for accessibility and UX).
25
53
  */
26
54
  title?: string;
27
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"icon-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"icon-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sme.up/ketchup2",
3
- "version": "2.0.0-SNAPSHOT-20250604085635",
3
+ "version": "2.0.0-SNAPSHOT-20250604123630",
4
4
  "description": "Sme.UP web components library",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Smeup LAB <info@smeup.com> (https://www.smeup.com/)",
@@ -60,7 +60,7 @@
60
60
  "prettier": "3.5.3",
61
61
  "rimraf": "6.0.1",
62
62
  "storybook": "9.0.4",
63
- "stylelint": "16.19.1",
63
+ "stylelint": "16.20.0",
64
64
  "stylelint-config-standard": "38.0.0",
65
65
  "stylelint-order": "7.0.0",
66
66
  "typescript": "5.8.3",