@solidpb/ui-kit 0.5.0 → 0.5.1

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.
@@ -20,7 +20,6 @@ export function createForm() {
20
20
  const Form = (props) => {
21
21
  const [values, setValues] = createStore({ ...props.data });
22
22
  const setValue = (key, value) => {
23
- console.log("Setting value", key, value);
24
23
  setValues(key, value);
25
24
  };
26
25
  const getValue = (key) => {
@@ -2,26 +2,33 @@ import { ParentComponent } from "solid-js";
2
2
  export interface TabsProps {
3
3
  defaultTab?: string;
4
4
  size?: "xs" | "sm" | "md" | "lg" | "xl";
5
+ class?: string;
5
6
  }
6
7
  export interface TabsComponents {
7
8
  Trigger: ParentComponent<{
8
9
  value: string;
10
+ class?: string;
9
11
  }>;
10
12
  Content: ParentComponent<{
11
13
  value: string;
14
+ class?: string;
12
15
  }>;
13
16
  List: ParentComponent<{
14
17
  size?: "xs" | "sm" | "md" | "lg" | "xl";
18
+ class?: string;
15
19
  }>;
16
20
  }
17
21
  export declare const Tabs: ParentComponent<TabsProps> & TabsComponents;
18
22
  export declare const TabList: ParentComponent<{
19
23
  size?: "xs" | "sm" | "md" | "lg" | "xl";
24
+ class?: string;
20
25
  }>;
21
26
  export declare const TabTrigger: ParentComponent<{
22
27
  value: string;
28
+ class?: string;
23
29
  }>;
24
30
  export declare const TabContent: ParentComponent<{
25
31
  value: string;
32
+ class?: string;
26
33
  }>;
27
34
  export default Tabs;
@@ -22,20 +22,20 @@ const tabContent = tv({
22
22
  base: "card bg-base-100 border-base-300 p-3 w-full",
23
23
  });
24
24
  export const Tabs = (props) => {
25
- return (<KTabs class={tabs({ size: props.size })} defaultValue={props.defaultTab}>
25
+ return (<KTabs class={tabs({ size: props.size, class: props.class })} defaultValue={props.defaultTab}>
26
26
  {props.children}
27
27
  </KTabs>);
28
28
  };
29
29
  export const TabList = (props) => {
30
- return <KTabs.List class={tabs({ size: props.size })}>{props.children}</KTabs.List>;
30
+ return <KTabs.List class={tabs({ size: props.size, class: props.class })}>{props.children}</KTabs.List>;
31
31
  };
32
32
  export const TabTrigger = (props) => {
33
- return (<KTabs.Trigger value={props.value} as={"a"} class={tab()}>
33
+ return (<KTabs.Trigger value={props.value} as={"a"} class={tab({ class: props.class })}>
34
34
  {props.children}
35
35
  </KTabs.Trigger>);
36
36
  };
37
37
  export const TabContent = (props) => {
38
- return (<KTabs.Content class={tabContent()} value={props.value}>
38
+ return (<KTabs.Content class={tabContent({ class: props.class })} value={props.value}>
39
39
  {props.children}
40
40
  </KTabs.Content>);
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidpb/ui-kit",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",