@rkosafo/cai.components 0.0.32 → 0.0.34

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.
@@ -808,6 +808,7 @@ export interface IButtonConfig {
808
808
  label: string;
809
809
  subLabel: string;
810
810
  }
811
+ export type IActionButtonKind = keyof typeof ACTION_BUTTON_KINDS;
811
812
  export interface ActionButtonProps {
812
813
  icon?: string;
813
814
  iconBgColor?: string;
@@ -820,8 +821,9 @@ export interface ActionButtonProps {
820
821
  showIconHover?: boolean;
821
822
  moreHeight?: boolean;
822
823
  href?: string | null;
823
- kind?: keyof typeof ACTION_BUTTON_KINDS;
824
+ kind?: IActionButtonKind;
824
825
  moreShadow?: boolean;
826
+ onclick?: () => void;
825
827
  }
826
828
  export interface IComponentDescriptor {
827
829
  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.34",
4
4
  "files": [
5
5
  "dist",
6
6
  "!dist/**/*.test.*",