@rkosafo/cai.components 0.0.32 → 0.0.33

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.
@@ -822,6 +822,7 @@ export interface ActionButtonProps {
822
822
  href?: string | null;
823
823
  kind?: keyof typeof ACTION_BUTTON_KINDS;
824
824
  moreShadow?: boolean;
825
+ onclick?: () => void;
825
826
  }
826
827
  export interface IComponentDescriptor {
827
828
  type: string;
@@ -129,6 +129,7 @@
129
129
  href = null,
130
130
  kind = 'generic',
131
131
  moreShadow = false,
132
+ onclick,
132
133
  ...rest
133
134
  }: ActionButtonProps = $props();
134
135
 
@@ -149,6 +150,7 @@
149
150
  </script>
150
151
 
151
152
  <Button
153
+ onclick={() => onclick?.()}
152
154
  color="alternative"
153
155
  href={href || ''}
154
156
  class={cn(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rkosafo/cai.components",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",