@sigx/daisyui 0.1.6 → 0.1.7
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/dist/data/Avatar.d.ts +15 -0
- package/dist/data/Avatar.d.ts.map +1 -0
- package/dist/data/Stats.d.ts +48 -0
- package/dist/data/Stats.d.ts.map +1 -0
- package/dist/data/Table.d.ts +63 -77
- package/dist/data/Table.d.ts.map +1 -1
- package/dist/data/index.d.ts +6 -2
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +2 -2
- package/dist/{data-wxNpnX83.js → data-Cn32We_0.js} +45 -44
- package/dist/data-Cn32We_0.js.map +1 -0
- package/dist/feedback/Accordion.d.ts +2 -2
- package/dist/feedback/Modal.d.ts +1 -1
- package/dist/feedback/Steps.d.ts +1 -1
- package/dist/feedback/Timeline.d.ts +1 -0
- package/dist/feedback/Timeline.d.ts.map +1 -1
- package/dist/forms/Checkbox.d.ts +1 -1
- package/dist/forms/Checkbox.d.ts.map +1 -1
- package/dist/forms/Input.d.ts +1 -1
- package/dist/forms/Input.d.ts.map +1 -1
- package/dist/forms/Radio.d.ts +2 -2
- package/dist/forms/Range.d.ts +1 -1
- package/dist/forms/Range.d.ts.map +1 -1
- package/dist/forms/Select.d.ts +1 -1
- package/dist/forms/Select.d.ts.map +1 -1
- package/dist/forms/Textarea.d.ts +1 -1
- package/dist/forms/Textarea.d.ts.map +1 -1
- package/dist/forms/Toggle.d.ts +1 -1
- package/dist/forms/Toggle.d.ts.map +1 -1
- package/dist/forms/index.js +1 -1
- package/dist/{forms-CuvlRMro.js → forms-DzJd0M2D.js} +62 -79
- package/dist/forms-DzJd0M2D.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -0
- package/dist/layout/Card.d.ts +1 -0
- package/dist/layout/Card.d.ts.map +1 -1
- package/dist/layout/Carousel.d.ts +1 -0
- package/dist/layout/Carousel.d.ts.map +1 -1
- package/dist/layout/Chat.d.ts +1 -0
- package/dist/layout/Chat.d.ts.map +1 -1
- package/dist/layout/Hero.d.ts +1 -0
- package/dist/layout/Hero.d.ts.map +1 -1
- package/dist/layout/Join.d.ts +1 -0
- package/dist/layout/Join.d.ts.map +1 -1
- package/dist/navigation/MenuComponent.d.ts +1 -1
- package/dist/navigation/MenuComponent.d.ts.map +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/{navigation-4cwyfLvr.js → navigation-BdJ6csEU.js} +2 -7
- package/dist/navigation-BdJ6csEU.js.map +1 -0
- package/dist/shared/Icon.d.ts +17 -0
- package/dist/shared/Icon.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +19 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/index.js +1 -1
- package/dist/{theme-D9CUMvuT.js → theme-DMFZ4kf5.js} +3 -2
- package/dist/theme-DMFZ4kf5.js.map +1 -0
- package/package.json +6 -6
- package/dist/data-wxNpnX83.js.map +0 -1
- package/dist/forms-CuvlRMro.js.map +0 -1
- package/dist/navigation-4cwyfLvr.js.map +0 -1
- package/dist/theme-D9CUMvuT.js.map +0 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefineProp } from 'sigx';
|
|
2
|
+
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
4
|
+
export type AvatarProps = DefineProp<'src', string, false> & DefineProp<'alt', string, false> & DefineProp<'size', AvatarSize, false> & DefineProp<'shape', AvatarShape, false> & DefineProp<'online', boolean, false> & DefineProp<'offline', boolean, false> & DefineProp<'placeholder', string, false> & DefineProp<'class', string, false>;
|
|
5
|
+
/**
|
|
6
|
+
* Avatar component with DaisyUI styling.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <Avatar src="/user.jpg" size="md" shape="circle" online />
|
|
11
|
+
* <Avatar placeholder="JD" size="lg" />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const Avatar: import("@sigx/runtime-core").ComponentFactory<AvatarProps, void, {}>;
|
|
15
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/data/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,MAAM,CAAC;AAM7C,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE1D,MAAM,MAAM,WAAW,GACjB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAChC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAChC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,GACrC,UAAU,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,CAAC,GACvC,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,GACrC,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,GACxC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAgBzC;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,sEAkCjB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { DefineProp, DefineSlot } from 'sigx';
|
|
2
|
+
export type StatProps = DefineProp<'title', string> & DefineProp<'value', string | number> & DefineProp<'description', string, false> & DefineProp<'class', string, false> & DefineSlot<'figure'>;
|
|
3
|
+
export type StatsProps = DefineProp<'vertical', boolean, false> & DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
4
|
+
/**
|
|
5
|
+
* Stats compound component with Item sub-component.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <Stats>
|
|
10
|
+
* <Stats.Item title="Downloads" value="31K" />
|
|
11
|
+
* <Stats.Item title="Users" value="4,200" description="↗︎ 400 (22%)" />
|
|
12
|
+
* </Stats>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare const Stats: ((props: {
|
|
16
|
+
class?: string | undefined;
|
|
17
|
+
vertical?: boolean | undefined;
|
|
18
|
+
} & {} & {
|
|
19
|
+
slots?: Partial<{
|
|
20
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
21
|
+
}> | undefined;
|
|
22
|
+
} & {} & JSX.IntrinsicAttributes & import("@sigx/runtime-core").ComponentAttributeExtensions & {
|
|
23
|
+
ref?: import("@sigx/runtime-core").Ref<void> | undefined;
|
|
24
|
+
children?: any;
|
|
25
|
+
}) => import("@sigx/runtime-core").JSXElement) & {
|
|
26
|
+
__setup: import("@sigx/runtime-core").SetupFn<{
|
|
27
|
+
vertical?: boolean | undefined;
|
|
28
|
+
class?: string | undefined;
|
|
29
|
+
}, StatsProps, void, {
|
|
30
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
31
|
+
}>;
|
|
32
|
+
__name?: string;
|
|
33
|
+
__islandId?: string;
|
|
34
|
+
__props: {
|
|
35
|
+
vertical?: boolean | undefined;
|
|
36
|
+
class?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
__events: StatsProps;
|
|
39
|
+
__ref: void;
|
|
40
|
+
__slots: {
|
|
41
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
42
|
+
};
|
|
43
|
+
} & {
|
|
44
|
+
Item: import("@sigx/runtime-core").ComponentFactory<StatProps, void, {
|
|
45
|
+
figure: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=Stats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stats.d.ts","sourceRoot":"","sources":["../../src/data/Stats.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMnE,MAAM,MAAM,SAAS,GACf,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,GAC3B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,GACpC,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,GACxC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,QAAQ,CAAC,CAAC;AAiC3B,MAAM,MAAM,UAAU,GAChB,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AA4B5B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEhB,CAAC"}
|
package/dist/data/Table.d.ts
CHANGED
|
@@ -1,92 +1,78 @@
|
|
|
1
1
|
import { DefineProp, DefineSlot } from 'sigx';
|
|
2
2
|
export type TableSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
3
|
export type TableProps = DefineProp<'zebra', boolean, false> & DefineProp<'pinRows', boolean, false> & DefineProp<'pinCols', boolean, false> & DefineProp<'size', TableSize, false> & DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
4
|
-
/**
|
|
5
|
-
* Table component with DaisyUI styling.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* <Table zebra>
|
|
10
|
-
* <Thead>
|
|
11
|
-
* <Tr><Th>Name</Th><Th>Age</Th></Tr>
|
|
12
|
-
* </Thead>
|
|
13
|
-
* <Tbody>
|
|
14
|
-
* <Tr><Td>John</Td><Td>25</Td></Tr>
|
|
15
|
-
* </Tbody>
|
|
16
|
-
* </Table>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare const Table: import("@sigx/runtime-core").ComponentFactory<TableProps, void, {
|
|
20
|
-
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
21
|
-
}>;
|
|
22
4
|
export type TheadProps = DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
23
|
-
/**
|
|
24
|
-
* Table head component.
|
|
25
|
-
*/
|
|
26
|
-
export declare const Thead: import("@sigx/runtime-core").ComponentFactory<TheadProps, void, {
|
|
27
|
-
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
28
|
-
}>;
|
|
29
5
|
export type TbodyProps = DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
30
|
-
/**
|
|
31
|
-
* Table body component.
|
|
32
|
-
*/
|
|
33
|
-
export declare const Tbody: import("@sigx/runtime-core").ComponentFactory<TbodyProps, void, {
|
|
34
|
-
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
35
|
-
}>;
|
|
36
6
|
export type TrProps = DefineProp<'hover', boolean, false> & DefineProp<'active', boolean, false> & DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
37
|
-
/**
|
|
38
|
-
* Table row component.
|
|
39
|
-
*/
|
|
40
|
-
export declare const Tr: import("@sigx/runtime-core").ComponentFactory<TrProps, void, {
|
|
41
|
-
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
42
|
-
}>;
|
|
43
7
|
export type ThProps = DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
44
|
-
/**
|
|
45
|
-
* Table header cell component.
|
|
46
|
-
*/
|
|
47
|
-
export declare const Th: import("@sigx/runtime-core").ComponentFactory<ThProps, void, {
|
|
48
|
-
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
49
|
-
}>;
|
|
50
8
|
export type TdProps = DefineProp<'class', string, false> & DefineSlot<'default'>;
|
|
51
9
|
/**
|
|
52
|
-
* Table
|
|
53
|
-
*/
|
|
54
|
-
export declare const Td: import("@sigx/runtime-core").ComponentFactory<TdProps, void, {
|
|
55
|
-
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
56
|
-
}>;
|
|
57
|
-
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
58
|
-
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
59
|
-
export type AvatarProps = DefineProp<'src', string, false> & DefineProp<'alt', string, false> & DefineProp<'size', AvatarSize, false> & DefineProp<'shape', AvatarShape, false> & DefineProp<'online', boolean, false> & DefineProp<'offline', boolean, false> & DefineProp<'placeholder', string, false> & DefineProp<'class', string, false>;
|
|
60
|
-
/**
|
|
61
|
-
* Avatar component with DaisyUI styling.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```tsx
|
|
65
|
-
* <Avatar src="/user.jpg" size="md" shape="circle" online />
|
|
66
|
-
* <Avatar placeholder="JD" size="lg" />
|
|
67
|
-
* ```
|
|
68
|
-
*/
|
|
69
|
-
export declare const Avatar: import("@sigx/runtime-core").ComponentFactory<AvatarProps, void, {}>;
|
|
70
|
-
export type StatProps = DefineProp<'title', string> & DefineProp<'value', string | number> & DefineProp<'description', string, false> & DefineProp<'class', string, false> & DefineSlot<'figure'>;
|
|
71
|
-
/**
|
|
72
|
-
* Stat component for displaying statistics.
|
|
10
|
+
* Table compound component with Head, Body, Row, Th, and Td sub-components.
|
|
73
11
|
*
|
|
74
12
|
* @example
|
|
75
13
|
* ```tsx
|
|
76
|
-
* <
|
|
77
|
-
* <
|
|
78
|
-
*
|
|
79
|
-
*
|
|
14
|
+
* <Table zebra>
|
|
15
|
+
* <Table.Head>
|
|
16
|
+
* <Table.Row><Table.Th>Name</Table.Th><Table.Th>Email</Table.Th></Table.Row>
|
|
17
|
+
* </Table.Head>
|
|
18
|
+
* <Table.Body>
|
|
19
|
+
* <Table.Row><Table.Td>Alice</Table.Td><Table.Td>alice@example.com</Table.Td></Table.Row>
|
|
20
|
+
* </Table.Body>
|
|
21
|
+
* </Table>
|
|
80
22
|
* ```
|
|
81
23
|
*/
|
|
82
|
-
export declare const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
24
|
+
export declare const Table: ((props: {
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
size?: TableSize | undefined;
|
|
27
|
+
zebra?: boolean | undefined;
|
|
28
|
+
pinRows?: boolean | undefined;
|
|
29
|
+
pinCols?: boolean | undefined;
|
|
30
|
+
} & {} & {
|
|
31
|
+
slots?: Partial<{
|
|
32
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
33
|
+
}> | undefined;
|
|
34
|
+
} & {} & JSX.IntrinsicAttributes & import("@sigx/runtime-core").ComponentAttributeExtensions & {
|
|
35
|
+
ref?: import("@sigx/runtime-core").Ref<void> | undefined;
|
|
36
|
+
children?: any;
|
|
37
|
+
}) => import("@sigx/runtime-core").JSXElement) & {
|
|
38
|
+
__setup: import("@sigx/runtime-core").SetupFn<{
|
|
39
|
+
zebra?: boolean | undefined;
|
|
40
|
+
pinRows?: boolean | undefined;
|
|
41
|
+
pinCols?: boolean | undefined;
|
|
42
|
+
size?: TableSize | undefined;
|
|
43
|
+
class?: string | undefined;
|
|
44
|
+
}, TableProps, void, {
|
|
45
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
46
|
+
}>;
|
|
47
|
+
__name?: string;
|
|
48
|
+
__islandId?: string;
|
|
49
|
+
__props: {
|
|
50
|
+
zebra?: boolean | undefined;
|
|
51
|
+
pinRows?: boolean | undefined;
|
|
52
|
+
pinCols?: boolean | undefined;
|
|
53
|
+
size?: TableSize | undefined;
|
|
54
|
+
class?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
__events: TableProps;
|
|
57
|
+
__ref: void;
|
|
58
|
+
__slots: {
|
|
59
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
60
|
+
};
|
|
61
|
+
} & {
|
|
62
|
+
Head: import("@sigx/runtime-core").ComponentFactory<TheadProps, void, {
|
|
63
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
64
|
+
}>;
|
|
65
|
+
Body: import("@sigx/runtime-core").ComponentFactory<TbodyProps, void, {
|
|
66
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
67
|
+
}>;
|
|
68
|
+
Row: import("@sigx/runtime-core").ComponentFactory<TrProps, void, {
|
|
69
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
70
|
+
}>;
|
|
71
|
+
Th: import("@sigx/runtime-core").ComponentFactory<ThProps, void, {
|
|
72
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
73
|
+
}>;
|
|
74
|
+
Td: import("@sigx/runtime-core").ComponentFactory<TdProps, void, {
|
|
75
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
76
|
+
}>;
|
|
77
|
+
};
|
|
92
78
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/data/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/data/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../src/data/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMnE,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD,MAAM,MAAM,UAAU,GAChB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,GACnC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,GACrC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,GACrC,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AAqD5B,MAAM,MAAM,UAAU,GAChB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AAU5B,MAAM,MAAM,UAAU,GAChB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AAU5B,MAAM,MAAM,OAAO,GACb,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,GACnC,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AAoB5B,MAAM,MAAM,OAAO,GACb,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AAU5B,MAAM,MAAM,OAAO,GACb,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,CAAC;AAc5B;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
|
package/dist/data/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export { Table
|
|
2
|
-
export type { TableProps, TableSize, TheadProps, TbodyProps, TrProps, ThProps, TdProps
|
|
1
|
+
export { Table } from './Table';
|
|
2
|
+
export type { TableProps, TableSize, TheadProps, TbodyProps, TrProps, ThProps, TdProps } from './Table';
|
|
3
|
+
export { Avatar } from './Avatar';
|
|
4
|
+
export type { AvatarProps, AvatarSize, AvatarShape } from './Avatar';
|
|
5
|
+
export { Stats } from './Stats';
|
|
6
|
+
export type { StatProps, StatsProps } from './Stats';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/data/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EACR,UAAU,EAAE,SAAS,EACrB,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EACpD,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAErE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/data/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { Avatar,
|
|
1
|
+
import { n as Avatar, r as Table, t as Stats } from "../data-Cn32We_0.js";
|
|
2
|
+
export { Avatar, Stats, Table };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { component } from "sigx";
|
|
1
|
+
import { component, compound } from "sigx";
|
|
2
2
|
import { jsx, jsxs } from "sigx/jsx-runtime";
|
|
3
3
|
var tableSizeClasses = {
|
|
4
4
|
xs: "table-xs",
|
|
@@ -6,7 +6,7 @@ var tableSizeClasses = {
|
|
|
6
6
|
md: "",
|
|
7
7
|
lg: "table-lg"
|
|
8
8
|
};
|
|
9
|
-
const Table = component(({ props, slots }) => {
|
|
9
|
+
const Table = compound(component(({ props, slots }) => {
|
|
10
10
|
const getClasses = () => {
|
|
11
11
|
const classes = ["table"];
|
|
12
12
|
if (props.zebra) classes.push("table-zebra");
|
|
@@ -26,43 +26,44 @@ const Table = component(({ props, slots }) => {
|
|
|
26
26
|
children: slots.default?.()
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
29
|
+
}), {
|
|
30
|
+
Head: component(({ props, slots }) => {
|
|
31
|
+
return () => /* @__PURE__ */ jsx("thead", {
|
|
32
|
+
class: props.class,
|
|
33
|
+
children: slots.default?.()
|
|
34
|
+
});
|
|
35
|
+
}),
|
|
36
|
+
Body: component(({ props, slots }) => {
|
|
37
|
+
return () => /* @__PURE__ */ jsx("tbody", {
|
|
38
|
+
class: props.class,
|
|
39
|
+
children: slots.default?.()
|
|
40
|
+
});
|
|
41
|
+
}),
|
|
42
|
+
Row: component(({ props, slots }) => {
|
|
43
|
+
const getClasses = () => {
|
|
44
|
+
const classes = [];
|
|
45
|
+
if (props.hover) classes.push("hover");
|
|
46
|
+
if (props.active) classes.push("active");
|
|
47
|
+
if (props.class) classes.push(props.class);
|
|
48
|
+
return classes.join(" ");
|
|
49
|
+
};
|
|
50
|
+
return () => /* @__PURE__ */ jsx("tr", {
|
|
51
|
+
class: getClasses(),
|
|
52
|
+
children: slots.default?.()
|
|
53
|
+
});
|
|
54
|
+
}),
|
|
55
|
+
Th: component(({ props, slots }) => {
|
|
56
|
+
return () => /* @__PURE__ */ jsx("th", {
|
|
57
|
+
class: props.class,
|
|
58
|
+
children: slots.default?.()
|
|
59
|
+
});
|
|
60
|
+
}),
|
|
61
|
+
Td: component(({ props, slots }) => {
|
|
62
|
+
return () => /* @__PURE__ */ jsx("td", {
|
|
63
|
+
class: props.class,
|
|
64
|
+
children: slots.default?.()
|
|
65
|
+
});
|
|
66
|
+
})
|
|
66
67
|
});
|
|
67
68
|
var avatarSizeClasses = {
|
|
68
69
|
xs: "w-8",
|
|
@@ -108,7 +109,7 @@ const Avatar = component(({ props }) => {
|
|
|
108
109
|
}) : null
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
|
-
|
|
112
|
+
var _Stat = component(({ props, slots }) => {
|
|
112
113
|
const getClasses = () => {
|
|
113
114
|
const classes = ["stat"];
|
|
114
115
|
if (props.class) classes.push(props.class);
|
|
@@ -136,7 +137,7 @@ const Stat = component(({ props, slots }) => {
|
|
|
136
137
|
]
|
|
137
138
|
});
|
|
138
139
|
});
|
|
139
|
-
const Stats = component(({ props, slots }) => {
|
|
140
|
+
const Stats = compound(component(({ props, slots }) => {
|
|
140
141
|
const getClasses = () => {
|
|
141
142
|
const classes = ["stats", "shadow"];
|
|
142
143
|
if (props.vertical) classes.push("stats-vertical");
|
|
@@ -147,7 +148,7 @@ const Stats = component(({ props, slots }) => {
|
|
|
147
148
|
class: getClasses(),
|
|
148
149
|
children: slots.default?.()
|
|
149
150
|
});
|
|
150
|
-
});
|
|
151
|
-
export {
|
|
151
|
+
}), { Item: _Stat });
|
|
152
|
+
export { Avatar as n, Table as r, Stats as t };
|
|
152
153
|
|
|
153
|
-
//# sourceMappingURL=data-
|
|
154
|
+
//# sourceMappingURL=data-Cn32We_0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-Cn32We_0.js","names":[],"sources":["../src/data/Table.tsx","../src/data/Avatar.tsx","../src/data/Stats.tsx"],"sourcesContent":["import { component, compound, DefineProp, DefineSlot } from 'sigx';\r\n\r\n// ============================================\r\n// Table Component\r\n// ============================================\r\n\r\nexport type TableSize = 'xs' | 'sm' | 'md' | 'lg';\r\n\r\nexport type TableProps = \r\n & DefineProp<'zebra', boolean, false>\r\n & DefineProp<'pinRows', boolean, false>\r\n & DefineProp<'pinCols', boolean, false>\r\n & DefineProp<'size', TableSize, false>\r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\nconst tableSizeClasses: Record<TableSize, string> = {\r\n xs: 'table-xs',\r\n sm: 'table-sm',\r\n md: '',\r\n lg: 'table-lg'\r\n};\r\n\r\n/**\r\n * Table component with DaisyUI styling.\r\n * \r\n * @example\r\n * ```tsx\r\n * <Table zebra>\r\n * <Table.Head>\r\n * <Table.Row><Table.Th>Name</Table.Th><Table.Th>Age</Table.Th></Table.Row>\r\n * </Table.Head>\r\n * <Table.Body>\r\n * <Table.Row><Table.Td>John</Table.Td><Table.Td>25</Table.Td></Table.Row>\r\n * </Table.Body>\r\n * </Table>\r\n * ```\r\n */\r\nconst _Table = component<TableProps>(({ props, slots }) => {\r\n const getClasses = () => {\r\n const classes = ['table'];\r\n \r\n if (props.zebra) classes.push('table-zebra');\r\n if (props.pinRows) classes.push('table-pin-rows');\r\n if (props.pinCols) classes.push('table-pin-cols');\r\n if (props.size) {\r\n const sizeClass = tableSizeClasses[props.size];\r\n if (sizeClass) classes.push(sizeClass);\r\n }\r\n if (props.class) classes.push(props.class);\r\n \r\n return classes.join(' ');\r\n };\r\n\r\n return () => (\r\n <div class=\"overflow-x-auto\">\r\n <table class={getClasses()}>\r\n {slots.default?.()}\r\n </table>\r\n </div>\r\n );\r\n});\r\n\r\n// ============================================\r\n// Table Sub-Components\r\n// ============================================\r\n\r\nexport type TheadProps = \r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\nconst Thead = component<TheadProps>(({ props, slots }) => {\r\n return () => (\r\n <thead class={props.class}>\r\n {slots.default?.()}\r\n </thead>\r\n );\r\n});\r\n\r\nexport type TbodyProps = \r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\nconst Tbody = component<TbodyProps>(({ props, slots }) => {\r\n return () => (\r\n <tbody class={props.class}>\r\n {slots.default?.()}\r\n </tbody>\r\n );\r\n});\r\n\r\nexport type TrProps = \r\n & DefineProp<'hover', boolean, false>\r\n & DefineProp<'active', boolean, false>\r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\nconst Tr = component<TrProps>(({ props, slots }) => {\r\n const getClasses = () => {\r\n const classes: string[] = [];\r\n \r\n if (props.hover) classes.push('hover');\r\n if (props.active) classes.push('active');\r\n if (props.class) classes.push(props.class);\r\n \r\n return classes.join(' ');\r\n };\r\n\r\n return () => (\r\n <tr class={getClasses()}>\r\n {slots.default?.()}\r\n </tr>\r\n );\r\n});\r\n\r\nexport type ThProps = \r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\nconst Th = component<ThProps>(({ props, slots }) => {\r\n return () => (\r\n <th class={props.class}>\r\n {slots.default?.()}\r\n </th>\r\n );\r\n});\r\n\r\nexport type TdProps = \r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\nconst Td = component<TdProps>(({ props, slots }) => {\r\n return () => (\r\n <td class={props.class}>\r\n {slots.default?.()}\r\n </td>\r\n );\r\n});\r\n\r\n// ============================================\r\n// Table Compound Export\r\n// ============================================\r\n\r\n/**\r\n * Table compound component with Head, Body, Row, Th, and Td sub-components.\r\n * \r\n * @example\r\n * ```tsx\r\n * <Table zebra>\r\n * <Table.Head>\r\n * <Table.Row><Table.Th>Name</Table.Th><Table.Th>Email</Table.Th></Table.Row>\r\n * </Table.Head>\r\n * <Table.Body>\r\n * <Table.Row><Table.Td>Alice</Table.Td><Table.Td>alice@example.com</Table.Td></Table.Row>\r\n * </Table.Body>\r\n * </Table>\r\n * ```\r\n */\r\nexport const Table = compound(_Table, {\r\n Head: Thead,\r\n Body: Tbody,\r\n Row: Tr,\r\n Th,\r\n Td,\r\n});\r\n","import { component, DefineProp } from 'sigx';\r\n\r\n// ============================================\r\n// Avatar Component\r\n// ============================================\r\n\r\nexport type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';\r\nexport type AvatarShape = 'circle' | 'rounded' | 'square';\r\n\r\nexport type AvatarProps = \r\n & DefineProp<'src', string, false>\r\n & DefineProp<'alt', string, false>\r\n & DefineProp<'size', AvatarSize, false>\r\n & DefineProp<'shape', AvatarShape, false>\r\n & DefineProp<'online', boolean, false>\r\n & DefineProp<'offline', boolean, false>\r\n & DefineProp<'placeholder', string, false>\r\n & DefineProp<'class', string, false>;\r\n\r\nconst avatarSizeClasses: Record<AvatarSize, string> = {\r\n xs: 'w-8',\r\n sm: 'w-12',\r\n md: 'w-16',\r\n lg: 'w-20',\r\n xl: 'w-24'\r\n};\r\n\r\nconst avatarShapeClasses: Record<AvatarShape, string> = {\r\n circle: 'rounded-full',\r\n rounded: 'rounded-xl',\r\n square: ''\r\n};\r\n\r\n/**\r\n * Avatar component with DaisyUI styling.\r\n * \r\n * @example\r\n * ```tsx\r\n * <Avatar src=\"/user.jpg\" size=\"md\" shape=\"circle\" online />\r\n * <Avatar placeholder=\"JD\" size=\"lg\" />\r\n * ```\r\n */\r\nexport const Avatar = component<AvatarProps>(({ props }) => {\r\n const getContainerClasses = () => {\r\n const classes = ['avatar'];\r\n \r\n if (props.online) classes.push('online');\r\n if (props.offline) classes.push('offline');\r\n if (!props.src && props.placeholder) classes.push('placeholder');\r\n if (props.class) classes.push(props.class);\r\n \r\n return classes.join(' ');\r\n };\r\n\r\n const getImageClasses = () => {\r\n const classes: string[] = [];\r\n \r\n classes.push(avatarSizeClasses[props.size ?? 'md']);\r\n classes.push(avatarShapeClasses[props.shape ?? 'circle']);\r\n \r\n return classes.join(' ');\r\n };\r\n\r\n return () => (\r\n <div class={getContainerClasses()}>\r\n {props.src ? (\r\n <div class={getImageClasses()}>\r\n <img src={props.src} alt={props.alt ?? 'Avatar'} />\r\n </div>\r\n ) : props.placeholder ? (\r\n <div class={`bg-neutral text-neutral-content ${getImageClasses()}`}>\r\n <span class=\"text-xl\">{props.placeholder}</span>\r\n </div>\r\n ) : null}\r\n </div>\r\n );\r\n});\r\n","import { component, compound, DefineProp, DefineSlot } from 'sigx';\r\n\r\n// ============================================\r\n// Stat Item Component\r\n// ============================================\r\n\r\nexport type StatProps = \r\n & DefineProp<'title', string>\r\n & DefineProp<'value', string | number>\r\n & DefineProp<'description', string, false>\r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'figure'>;\r\n\r\n/**\r\n * Stats.Item component for displaying a single statistic.\r\n * \r\n * @example\r\n * ```tsx\r\n * <Stats>\r\n * <Stats.Item title=\"Total Users\" value=\"1,200\" description=\"↗︎ 400 (22%)\" />\r\n * </Stats>\r\n * ```\r\n */\r\nconst _Stat = component<StatProps>(({ props, slots }) => {\r\n const getClasses = () => {\r\n const classes = ['stat'];\r\n if (props.class) classes.push(props.class);\r\n return classes.join(' ');\r\n };\r\n\r\n return () => (\r\n <div class={getClasses()}>\r\n {slots.figure && <div class=\"stat-figure\">{slots.figure()}</div>}\r\n <div class=\"stat-title\">{props.title}</div>\r\n <div class=\"stat-value\">{props.value}</div>\r\n {props.description && <div class=\"stat-desc\">{props.description}</div>}\r\n </div>\r\n );\r\n});\r\n\r\n// ============================================\r\n// Stats Container Component\r\n// ============================================\r\n\r\nexport type StatsProps = \r\n & DefineProp<'vertical', boolean, false>\r\n & DefineProp<'class', string, false>\r\n & DefineSlot<'default'>;\r\n\r\n/**\r\n * Stats container component with DaisyUI styling.\r\n * \r\n * @example\r\n * ```tsx\r\n * <Stats>\r\n * <Stats.Item title=\"Total Users\" value=\"1,200\" description=\"↗︎ 400 (22%)\" />\r\n * <Stats.Item title=\"Revenue\" value=\"$2.6M\" description=\"↘︎ 90 (14%)\" />\r\n * </Stats>\r\n * ```\r\n */\r\nconst _Stats = component<StatsProps>(({ props, slots }) => {\r\n const getClasses = () => {\r\n const classes = ['stats', 'shadow'];\r\n if (props.vertical) classes.push('stats-vertical');\r\n if (props.class) classes.push(props.class);\r\n return classes.join(' ');\r\n };\r\n\r\n return () => (\r\n <div class={getClasses()}>\r\n {slots.default?.()}\r\n </div>\r\n );\r\n});\r\n\r\n/**\r\n * Stats compound component with Item sub-component.\r\n * \r\n * @example\r\n * ```tsx\r\n * <Stats>\r\n * <Stats.Item title=\"Downloads\" value=\"31K\" />\r\n * <Stats.Item title=\"Users\" value=\"4,200\" description=\"↗︎ 400 (22%)\" />\r\n * </Stats>\r\n * ```\r\n */\r\nexport const Stats = compound(_Stats, {\r\n Item: _Stat,\r\n});\r\n"],"mappings":";;AAgBA,IAAM,mBAA8C;CAChD,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACP;AAyID,MAAa,QAAQ,SAxHN,WAAuB,EAAE,OAAO,YAAY;CACvD,MAAM,mBAAmB;EACrB,MAAM,UAAU,CAAC,QAAQ;AAEzB,MAAI,MAAM,M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AI,OAAM;cAAc,MAAM;KAAY;GAC3C,oBAAC,OAAA;IAAI,OAAM;cAAc,MAAM;KAAY;GAC1C,MAAM,eAAe,oBAAC,OAAA;IAAI,OAAM;cAAa,MAAM;KAAkB;;GACpE;EAEZ;AAgDF,MAAa,QAAQ,SA1BN,WAAuB,EAAE,OAAO,YAAY;CACvD,MAAM,mBAAmB;EACrB,MAAM,UAAU,CAAC,SAAS,SAAS;AACnC,MAAI,MAAM,SAAU,SAAQ,KAAK,iBAAiB;AAClD,MAAI,MAAM,MAAO,SAAQ,KAAK,MAAM,MAAM;AAC1C,SAAO,QAAQ,KAAK,IAAI;;AAG5B,cACI,oBAAC,OAAA;EAAI,OAAO,YAAY;YACnB,MAAM,WAAW;GAChB;EAEZ,EAaoC,EAClC,MAAM,OACT,CAAC"}
|
|
@@ -32,7 +32,6 @@ export declare const Accordion: ((props: {
|
|
|
32
32
|
variant?: AccordionVariant | undefined;
|
|
33
33
|
type?: AccordionType | undefined;
|
|
34
34
|
items?: AccordionItem[] | undefined;
|
|
35
|
-
activeId?: import("@sigx/runtime-core").Model<string> | undefined;
|
|
36
35
|
} & {
|
|
37
36
|
"onUpdate:activeId"?: ((detail: string) => void) | undefined;
|
|
38
37
|
onChange?: ((detail: string) => void) | undefined;
|
|
@@ -41,7 +40,7 @@ export declare const Accordion: ((props: {
|
|
|
41
40
|
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
42
41
|
}> | undefined;
|
|
43
42
|
} & {
|
|
44
|
-
activeId?: import("@sigx/runtime-core").Model<string> | import("@sigx/runtime-core").ModelBinding<string> | (() => string) | undefined;
|
|
43
|
+
"model:activeId"?: import("@sigx/runtime-core").Model<string> | import("@sigx/runtime-core").ModelBinding<string> | (() => string) | undefined;
|
|
45
44
|
} & JSX.IntrinsicAttributes & import("@sigx/runtime-core").ComponentAttributeExtensions & {
|
|
46
45
|
ref?: import("@sigx/runtime-core").Ref<void> | undefined;
|
|
47
46
|
children?: any;
|
|
@@ -58,6 +57,7 @@ export declare const Accordion: ((props: {
|
|
|
58
57
|
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
59
58
|
}>;
|
|
60
59
|
__name?: string;
|
|
60
|
+
__islandId?: string;
|
|
61
61
|
__props: {
|
|
62
62
|
items?: AccordionItem[] | undefined;
|
|
63
63
|
activeId?: import("@sigx/runtime-core").Model<string> | undefined;
|
package/dist/feedback/Modal.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export type ModalActionsProps = DefineProp<'class', string, false> & DefineSlot<
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const Modal: ((props: {
|
|
10
10
|
class?: string | undefined;
|
|
11
|
-
model?: import("@sigx/runtime-core").Model<boolean> | undefined;
|
|
12
11
|
} & {
|
|
13
12
|
"onUpdate:modelValue"?: ((detail: boolean) => void) | undefined;
|
|
14
13
|
} & {
|
|
@@ -28,6 +27,7 @@ export declare const Modal: ((props: {
|
|
|
28
27
|
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
29
28
|
}>;
|
|
30
29
|
__name?: string;
|
|
30
|
+
__islandId?: string;
|
|
31
31
|
__props: {
|
|
32
32
|
model?: import("@sigx/runtime-core").Model<boolean> | undefined;
|
|
33
33
|
class?: string | undefined;
|
package/dist/feedback/Steps.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export type StepProps = DefineProp<'id', string, false> & DefineProp<'color', St
|
|
|
14
14
|
export declare const Steps: ((props: {
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
vertical?: boolean | undefined;
|
|
17
|
-
model?: import("@sigx/runtime-core").Model<string> | undefined;
|
|
18
17
|
items?: StepItem[] | undefined;
|
|
19
18
|
} & {
|
|
20
19
|
"onUpdate:modelValue"?: ((detail: string) => void) | undefined;
|
|
@@ -39,6 +38,7 @@ export declare const Steps: ((props: {
|
|
|
39
38
|
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
40
39
|
}>;
|
|
41
40
|
__name?: string;
|
|
41
|
+
__islandId?: string;
|
|
42
42
|
__props: {
|
|
43
43
|
items?: StepItem[] | undefined;
|
|
44
44
|
model?: import("@sigx/runtime-core").Model<string> | undefined;
|
|
@@ -40,6 +40,7 @@ export declare const Timeline: ((props: {
|
|
|
40
40
|
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
41
41
|
}>;
|
|
42
42
|
__name?: string;
|
|
43
|
+
__islandId?: string;
|
|
43
44
|
__props: {
|
|
44
45
|
items?: TimelineItemData[] | undefined;
|
|
45
46
|
vertical?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/feedback/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAMnE,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;CACzF;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE1G,MAAM,MAAM,aAAa,GACnB,UAAU,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,KAAK,CAAC,GAC9C,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,GAClC,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,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnB,CAAC;AAEH,YAAY,EACR,iBAAiB,IAAI,qBAAqB,EAC1C,kBAAkB,IAAI,sBAAsB,EAC5C,mBAAmB,IAAI,uBAAuB,EAC9C,gBAAgB,IAAI,oBAAoB,EAC3C,CAAC"}
|
package/dist/forms/Checkbox.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefineProp, DefineEvent, DefineModel } from "sigx";
|
|
2
2
|
export type CheckboxSize = "xs" | "sm" | "md" | "lg";
|
|
3
3
|
export type CheckboxColor = "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
4
|
-
export type CheckboxProps = DefineModel<boolean> & DefineProp<"size", CheckboxSize, false> & DefineProp<"color", CheckboxColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineProp<"label", string, false> & DefineEvent<"change", boolean>;
|
|
4
|
+
export type CheckboxProps = DefineModel<boolean> & DefineProp<"name", string, false> & DefineProp<"size", CheckboxSize, false> & DefineProp<"color", CheckboxColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineProp<"label", string, false> & DefineEvent<"change", boolean>;
|
|
5
5
|
/**
|
|
6
6
|
* Checkbox component with DaisyUI styling.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/forms/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAMvE,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE1G,M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,MAAM,QAAQ,wEAmBnB,CAAC"}
|
package/dist/forms/Input.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DefineProp, DefineEvent, DefineModel } from "sigx";
|
|
|
2
2
|
export type InputSize = "xs" | "sm" | "md" | "lg";
|
|
3
3
|
export type InputVariant = "bordered" | "ghost";
|
|
4
4
|
export type InputColor = "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
5
|
-
export type InputProps = DefineModel<string | number> & DefineProp<"placeholder", string, false> & DefineProp<"type", "text" | "password" | "email" | "number" | "search" | "url", false> & DefineProp<"size", InputSize, false> & DefineProp<"variant", InputVariant, false> & DefineProp<"color", InputColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"readOnly", boolean, false> & DefineProp<"maxLength", number, false> & DefineProp<"class", string, false> & DefineEvent<"input", InputEvent> & DefineEvent<"change", Event> & DefineEvent<"focus", FocusEvent> & DefineEvent<"blur", FocusEvent>;
|
|
5
|
+
export type InputProps = DefineModel<string | number> & DefineProp<"name", string, false> & DefineProp<"placeholder", string, false> & DefineProp<"type", "text" | "password" | "email" | "number" | "search" | "url", false> & DefineProp<"size", InputSize, false> & DefineProp<"variant", InputVariant, false> & DefineProp<"color", InputColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"readOnly", boolean, false> & DefineProp<"maxLength", number, false> & DefineProp<"class", string, false> & DefineEvent<"input", InputEvent> & DefineEvent<"change", Event> & DefineEvent<"focus", FocusEvent> & DefineEvent<"blur", FocusEvent>;
|
|
6
6
|
/**
|
|
7
7
|
* Input component with DaisyUI styling.
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/forms/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAMvE,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IA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efined;
|
|
28
28
|
disabled?: boolean | undefined;
|
|
29
|
-
color?: RadioColor | undefined;
|
|
30
|
-
model?: import("@sigx/runtime-core").Model<string> | undefined;
|
|
31
29
|
name?: string | undefined;
|
|
30
|
+
color?: RadioColor | undefined;
|
|
32
31
|
direction?: "vertical" | "horizontal" | undefined;
|
|
33
32
|
} & {
|
|
34
33
|
"onUpdate:modelValue"?: ((detail: string) => void) | undefined;
|
|
@@ -56,6 +55,7 @@ export declare const Radio: ((props: {
|
|
|
56
55
|
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
57
56
|
}>;
|
|
58
57
|
__name?: string;
|
|
58
|
+
__islandId?: string;
|
|
59
59
|
__props: {
|
|
60
60
|
model?: import("@sigx/runtime-core").Model<string> | undefined;
|
|
61
61
|
name?: string | undefined;
|
package/dist/forms/Range.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefineProp, DefineEvent, DefineModel } from "sigx";
|
|
2
2
|
export type RangeSize = "xs" | "sm" | "md" | "lg";
|
|
3
3
|
export type RangeColor = "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
4
|
-
export type RangeProps = DefineModel<number> & DefineProp<"min", number, false> & DefineProp<"max", number, false> & DefineProp<"step", number, false> & DefineProp<"size", RangeSize, false> & DefineProp<"color", RangeColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineEvent<"change", number>;
|
|
4
|
+
export type RangeProps = DefineModel<number> & DefineProp<"name", string, false> & DefineProp<"min", number, false> & DefineProp<"max", number, false> & DefineProp<"step", number, false> & DefineProp<"size", RangeSize, false> & DefineProp<"color", RangeColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineEvent<"change", number>;
|
|
5
5
|
/**
|
|
6
6
|
* Range slider component with DaisyUI styling.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.d.ts","sourceRoot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M,CAAC,GACnB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GACjC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAChC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,GAChC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GACjC,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAmBpC;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,qEAmBhB,CAAC"}
|
package/dist/forms/Select.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface SelectOption {
|
|
|
5
5
|
label: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export type SelectProps = DefineModel<string> & DefineProp<"options", SelectOption[], false> & DefineProp<"placeholder", string, false> & DefineProp<"size", InputSize, false> & DefineProp<"variant", InputVariant, false> & DefineProp<"color", InputColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineSlot<"default"> & DefineEvent<"change", string>;
|
|
8
|
+
export type SelectProps = DefineModel<string> & DefineProp<"name", string, false> & DefineProp<"options", SelectOption[], false> & DefineProp<"placeholder", string, false> & DefineProp<"size", InputSize, false> & DefineProp<"variant", InputVariant, false> & DefineProp<"color", InputColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineSlot<"default"> & DefineEvent<"change", string>;
|
|
9
9
|
/**
|
|
10
10
|
* Select component with DaisyUI styling and model binding support.
|
|
11
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/forms/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMnE,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,WAAW,GACjB,WAAW,CAAC,MAAM,CAAC,GACnB,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,KAAK,CAAC,GAC5C,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,GACxC,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,GAC1C,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,GACrB,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAmBpC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM;;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/forms/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnF,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAMnE,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,WAAW,GACjB,WAAW,CAAC,MAAM,CAAC,GACnB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,GACjC,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,EAAE,KAAK,CAAC,GAC5C,UAAU,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC,GACxC,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC,GAC1C,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,GACtC,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,GAClC,UAAU,CAAC,SAAS,CAAC,GACrB,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAmBpC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,MAAM;;EA4CjB,CAAC"}
|
package/dist/forms/Textarea.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineProp, DefineEvent, DefineModel } from "sigx";
|
|
2
2
|
import type { InputSize, InputVariant, InputColor } from "./Input";
|
|
3
|
-
export type TextareaProps = DefineModel<string> & DefineProp<"placeholder", string, false> & DefineProp<"rows", number, false> & DefineProp<"size", InputSize, false> & DefineProp<"variant", InputVariant, false> & DefineProp<"color", InputColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineEvent<"input",
|
|
3
|
+
export type TextareaProps = DefineModel<string> & DefineProp<"name", string, false> & DefineProp<"placeholder", string, false> & DefineProp<"rows", number, false> & DefineProp<"size", InputSize, false> & DefineProp<"variant", InputVariant, false> & DefineProp<"color", InputColor, false> & DefineProp<"disabled", boolean, false> & DefineProp<"class", string, false> & DefineEvent<"input", InputEvent> & DefineEvent<"change", Event>;
|
|
4
4
|
/**
|
|
5
5
|
* Textarea component with DaisyUI styling.
|
|
6
6
|
*
|