@sigx/lynx-daisyui 0.1.0
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/LICENSE +21 -0
- package/README.md +47 -0
- package/dist/buttons/Button.d.ts +7 -0
- package/dist/data/Avatar.d.ts +4 -0
- package/dist/feedback/Alert.d.ts +6 -0
- package/dist/feedback/Badge.d.ts +7 -0
- package/dist/feedback/Loading.d.ts +6 -0
- package/dist/feedback/Modal.d.ts +48 -0
- package/dist/feedback/Progress.d.ts +4 -0
- package/dist/feedback/Skeleton.d.ts +3 -0
- package/dist/feedback/Steps.d.ts +37 -0
- package/dist/forms/Checkbox.d.ts +5 -0
- package/dist/forms/FormField.d.ts +5 -0
- package/dist/forms/Input.d.ts +6 -0
- package/dist/forms/Radio.d.ts +48 -0
- package/dist/forms/Select.d.ts +10 -0
- package/dist/forms/Textarea.d.ts +6 -0
- package/dist/forms/Toggle.d.ts +5 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +552 -0
- package/dist/index.js.map +1 -0
- package/dist/layout/Card.d.ts +51 -0
- package/dist/layout/Center.d.ts +5 -0
- package/dist/layout/Col.d.ts +6 -0
- package/dist/layout/Divider.d.ts +3 -0
- package/dist/layout/Row.d.ts +6 -0
- package/dist/layout/ScrollView.d.ts +5 -0
- package/dist/layout/Spacer.d.ts +3 -0
- package/dist/navigation/Tabs.d.ts +39 -0
- package/dist/preset/index.d.ts +2 -0
- package/dist/preset/index.js +26 -0
- package/dist/preset/index.js.map +1 -0
- package/dist/shared/styles.d.ts +19 -0
- package/dist/styles/base.css +6 -0
- package/dist/styles/components/alert.css +17 -0
- package/dist/styles/components/avatar.css +16 -0
- package/dist/styles/components/badge.css +44 -0
- package/dist/styles/components/button.css +79 -0
- package/dist/styles/components/card.css +39 -0
- package/dist/styles/components/checkbox.css +44 -0
- package/dist/styles/components/divider.css +14 -0
- package/dist/styles/components/form-field.css +25 -0
- package/dist/styles/components/input.css +31 -0
- package/dist/styles/components/loading.css +33 -0
- package/dist/styles/components/modal.css +41 -0
- package/dist/styles/components/progress.css +24 -0
- package/dist/styles/components/radio.css +50 -0
- package/dist/styles/components/select.css +56 -0
- package/dist/styles/components/skeleton.css +6 -0
- package/dist/styles/components/steps.css +40 -0
- package/dist/styles/components/tabs.css +23 -0
- package/dist/styles/components/textarea.css +31 -0
- package/dist/styles/components/toggle.css +46 -0
- package/dist/styles/components/typography.css +32 -0
- package/dist/styles/index.css +31 -0
- package/dist/styles/themes/dark.css +95 -0
- package/dist/styles/themes/light.css +95 -0
- package/dist/styles/themes/shapes.css +20 -0
- package/dist/typography/Heading.d.ts +6 -0
- package/dist/typography/Text.d.ts +8 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Andreas Ekdahl
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @sigx/lynx-daisyui
|
|
2
|
+
|
|
3
|
+
DaisyUI-flavored component library and styles for sigx-lynx. Ships a Tailwind preset, a stylesheet, and the matching JSX components (`Button`, `Input`, `Modal`, `Tabs`, …) so you can build Lynx UIs with the same idiom you'd use in `@sigx/daisyui` on web.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @sigx/lynx-daisyui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Use the components
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { Button, Input, Card } from '@sigx/lynx-daisyui';
|
|
15
|
+
|
|
16
|
+
export function LoginCard() {
|
|
17
|
+
return (
|
|
18
|
+
<Card>
|
|
19
|
+
<Input placeholder="Email" />
|
|
20
|
+
<Input type="password" placeholder="Password" />
|
|
21
|
+
<Button variant="primary">Sign in</Button>
|
|
22
|
+
</Card>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The full component surface lives under `src/{buttons,data,feedback,forms,layout,navigation,typography}` — see the package source for the current inventory.
|
|
28
|
+
|
|
29
|
+
## Use the styles
|
|
30
|
+
|
|
31
|
+
The package exports a single stylesheet you can pull in from your app entry:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import '@sigx/lynx-daisyui/styles';
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This bundles the base reset, theme tokens (light/dark), and per-component CSS. For Tailwind users, the package also ships a preset:
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
// tailwind.config.ts
|
|
41
|
+
import { daisyuiPreset } from '@sigx/lynx-daisyui/preset';
|
|
42
|
+
export default { presets: [daisyuiPreset], /* … */ };
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Status
|
|
46
|
+
|
|
47
|
+
Initial release — APIs may shift as the Lynx styling story evolves.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type ButtonVariant = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'ghost' | 'link' | 'neutral';
|
|
3
|
+
export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type ButtonProps = Define.Prop<'variant', ButtonVariant, false> & Define.Prop<'size', ButtonSize, false> & Define.Prop<'outline', boolean, false> & Define.Prop<'soft', boolean, false> & Define.Prop<'wide', boolean, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'loading', boolean, false> & Define.Prop<'block', boolean, false> & Define.Prop<'circle', boolean, false> & Define.Prop<'square', boolean, false> & Define.Prop<'active', boolean, false> & Define.Prop<'class', string, false> & Define.Slot<'default'> & Define.Event<'press', void>;
|
|
5
|
+
export declare const Button: import("@sigx/runtime-core").ComponentFactory<ButtonProps, void, {
|
|
6
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export type AvatarProps = Define.Prop<'src', string, false> & Define.Prop<'size', AvatarSize, false> & Define.Prop<'rounded', boolean | 'full', false> & Define.Prop<'placeholder', string, false> & Define.Prop<'online', boolean, false> & Define.Prop<'offline', boolean, false> & Define.Prop<'class', string, false>;
|
|
4
|
+
export declare const Avatar: import("@sigx/runtime-core").ComponentFactory<AvatarProps, void, {}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type AlertVariant = 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type AlertProps = Define.Prop<'variant', AlertVariant, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
4
|
+
export declare const Alert: import("@sigx/runtime-core").ComponentFactory<AlertProps, void, {
|
|
5
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type BadgeVariant = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'neutral' | 'ghost';
|
|
3
|
+
export type BadgeSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type BadgeProps = Define.Prop<'variant', BadgeVariant, false> & Define.Prop<'size', BadgeSize, false> & Define.Prop<'outline', boolean, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
5
|
+
export declare const Badge: import("@sigx/runtime-core").ComponentFactory<BadgeProps, void, {
|
|
6
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type LoadingType = 'spinner' | 'dots' | 'ring' | 'ball' | 'bars' | 'infinity';
|
|
3
|
+
export type LoadingSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type LoadingColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
export type LoadingProps = Define.Prop<'type', LoadingType, false> & Define.Prop<'size', LoadingSize, false> & Define.Prop<'color', LoadingColor, false> & Define.Prop<'class', string, false>;
|
|
6
|
+
export declare const Loading: import("@sigx/runtime-core").ComponentFactory<LoadingProps, void, {}>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type ModalProps = Define.Prop<'open', boolean, false> & Define.Prop<'onClose', () => void, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
3
|
+
type ModalHeaderProps = Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
4
|
+
type ModalBodyProps = Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
5
|
+
type ModalActionsProps = Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
6
|
+
export declare const Modal: ((props: {
|
|
7
|
+
class?: string | undefined;
|
|
8
|
+
onClose?: (() => void) | undefined;
|
|
9
|
+
open?: boolean | undefined;
|
|
10
|
+
} & {} & {
|
|
11
|
+
slots?: Partial<{
|
|
12
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
13
|
+
}> | undefined;
|
|
14
|
+
} & {} & JSX.IntrinsicAttributes & import("@sigx/runtime-core").ComponentAttributeExtensions & {
|
|
15
|
+
ref?: import("@sigx/runtime-core").Ref<void> | undefined;
|
|
16
|
+
children?: any;
|
|
17
|
+
}) => import("@sigx/runtime-core").JSXElement) & {
|
|
18
|
+
__setup: import("@sigx/runtime-core").SetupFn<{
|
|
19
|
+
class?: string | undefined;
|
|
20
|
+
onClose?: (() => void) | undefined;
|
|
21
|
+
open?: boolean | undefined;
|
|
22
|
+
}, ModalProps, void, {
|
|
23
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
24
|
+
}>;
|
|
25
|
+
__name?: string;
|
|
26
|
+
__islandId?: string;
|
|
27
|
+
__props: {
|
|
28
|
+
class?: string | undefined;
|
|
29
|
+
onClose?: (() => void) | undefined;
|
|
30
|
+
open?: boolean | undefined;
|
|
31
|
+
};
|
|
32
|
+
__events: ModalProps;
|
|
33
|
+
__ref: void;
|
|
34
|
+
__slots: {
|
|
35
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
36
|
+
};
|
|
37
|
+
} & {
|
|
38
|
+
Header: import("@sigx/runtime-core").ComponentFactory<ModalHeaderProps, void, {
|
|
39
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
40
|
+
}>;
|
|
41
|
+
Body: import("@sigx/runtime-core").ComponentFactory<ModalBodyProps, void, {
|
|
42
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
43
|
+
}>;
|
|
44
|
+
Actions: import("@sigx/runtime-core").ComponentFactory<ModalActionsProps, void, {
|
|
45
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type ProgressColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type ProgressProps = Define.Prop<'value', number, false> & Define.Prop<'max', number, false> & Define.Prop<'color', ProgressColor, false> & Define.Prop<'class', string, false>;
|
|
4
|
+
export declare const Progress: import("@sigx/runtime-core").ComponentFactory<ProgressProps, void, {}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type SkeletonProps = Define.Prop<'width', number | string, false> & Define.Prop<'height', number | string, false> & Define.Prop<'circle', boolean, false> & Define.Prop<'class', string, false>;
|
|
3
|
+
export declare const Skeleton: import("@sigx/runtime-core").ComponentFactory<SkeletonProps, void, {}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type StepColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error' | 'neutral';
|
|
3
|
+
export type StepsProps = Define.Prop<'vertical', boolean, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
4
|
+
export type StepProps = Define.Prop<'color', StepColor, false> & Define.Prop<'content', string, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
5
|
+
export declare const Steps: ((props: {
|
|
6
|
+
class?: string | undefined;
|
|
7
|
+
vertical?: boolean | undefined;
|
|
8
|
+
} & {} & {
|
|
9
|
+
slots?: Partial<{
|
|
10
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
} & {} & JSX.IntrinsicAttributes & import("@sigx/runtime-core").ComponentAttributeExtensions & {
|
|
13
|
+
ref?: import("@sigx/runtime-core").Ref<void> | undefined;
|
|
14
|
+
children?: any;
|
|
15
|
+
}) => import("@sigx/runtime-core").JSXElement) & {
|
|
16
|
+
__setup: import("@sigx/runtime-core").SetupFn<{
|
|
17
|
+
class?: string | undefined;
|
|
18
|
+
vertical?: boolean | undefined;
|
|
19
|
+
}, StepsProps, void, {
|
|
20
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
21
|
+
}>;
|
|
22
|
+
__name?: string;
|
|
23
|
+
__islandId?: string;
|
|
24
|
+
__props: {
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
vertical?: boolean | undefined;
|
|
27
|
+
};
|
|
28
|
+
__events: StepsProps;
|
|
29
|
+
__ref: void;
|
|
30
|
+
__slots: {
|
|
31
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
32
|
+
};
|
|
33
|
+
} & {
|
|
34
|
+
Step: import("@sigx/runtime-core").ComponentFactory<StepProps, void, {
|
|
35
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type CheckboxColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type CheckboxProps = Define.Prop<'checked', boolean, false> & Define.Prop<'color', CheckboxColor, false> & Define.Prop<'size', CheckboxSize, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'class', string, false> & Define.Event<'change', boolean>;
|
|
5
|
+
export declare const Checkbox: import("@sigx/runtime-core").ComponentFactory<CheckboxProps, void, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type FormFieldProps = Define.Prop<'label', string, false> & Define.Prop<'error', string, false> & Define.Prop<'required', boolean, false> & Define.Prop<'class', string, false> & Define.Slot<'default'>;
|
|
3
|
+
export declare const FormField: import("@sigx/runtime-core").ComponentFactory<FormFieldProps, void, {
|
|
4
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
5
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type InputSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export type InputVariant = 'bordered' | 'ghost';
|
|
4
|
+
export type InputColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
export type InputProps = Define.Prop<'placeholder', string, false> & Define.Prop<'size', InputSize, false> & Define.Prop<'variant', InputVariant, false> & Define.Prop<'color', InputColor, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'type', 'text' | 'number' | 'password', false> & Define.Prop<'class', string, false> & Define.Model<string>;
|
|
6
|
+
export declare const Input: import("@sigx/runtime-core").ComponentFactory<InputProps, void, {}>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type RadioColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type RadioSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type RadioGroupProps = Define.Prop<'value', string, false> & Define.Prop<'color', RadioColor, false> & Define.Prop<'size', RadioSize, false> & Define.Prop<'class', string, false> & Define.Slot<'default'> & Define.Event<'change', string>;
|
|
5
|
+
export type RadioItemProps = Define.Prop<'value', string, false> & Define.Prop<'label', string, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'checked', boolean, false> & Define.Prop<'color', RadioColor, false> & Define.Prop<'size', RadioSize, false> & Define.Prop<'class', string, false> & Define.Event<'select', string>;
|
|
6
|
+
export declare const Radio: ((props: {
|
|
7
|
+
class?: string | undefined;
|
|
8
|
+
color?: RadioColor | undefined;
|
|
9
|
+
size?: RadioSize | undefined;
|
|
10
|
+
value?: string | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
onChange?: ((detail: string) => void) | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
slots?: Partial<{
|
|
15
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
16
|
+
}> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
sync?: ((() => string | undefined) | [object, string]) | undefined;
|
|
19
|
+
} & {} & JSX.IntrinsicAttributes & import("@sigx/runtime-core").ComponentAttributeExtensions & {
|
|
20
|
+
ref?: import("@sigx/runtime-core").Ref<void> | undefined;
|
|
21
|
+
children?: any;
|
|
22
|
+
}) => import("@sigx/runtime-core").JSXElement) & {
|
|
23
|
+
__setup: import("@sigx/runtime-core").SetupFn<{
|
|
24
|
+
change?: import("@sigx/runtime-core").EventDefinition<string> | undefined;
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
color?: RadioColor | undefined;
|
|
27
|
+
size?: RadioSize | undefined;
|
|
28
|
+
value?: string | undefined;
|
|
29
|
+
}, RadioGroupProps, void, {
|
|
30
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
31
|
+
}>;
|
|
32
|
+
__name?: string;
|
|
33
|
+
__islandId?: string;
|
|
34
|
+
__props: {
|
|
35
|
+
change?: import("@sigx/runtime-core").EventDefinition<string> | undefined;
|
|
36
|
+
class?: string | undefined;
|
|
37
|
+
color?: RadioColor | undefined;
|
|
38
|
+
size?: RadioSize | undefined;
|
|
39
|
+
value?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
__events: RadioGroupProps;
|
|
42
|
+
__ref: void;
|
|
43
|
+
__slots: {
|
|
44
|
+
default: () => import("@sigx/runtime-core").JSXElement | import("@sigx/runtime-core").JSXElement[] | null;
|
|
45
|
+
};
|
|
46
|
+
} & {
|
|
47
|
+
Item: import("@sigx/runtime-core").ComponentFactory<RadioItemProps, void, {}>;
|
|
48
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type SelectSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export type SelectVariant = 'bordered' | 'ghost';
|
|
4
|
+
export type SelectColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
export interface SelectOption {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export type SelectProps = Define.Prop<'options', SelectOption[], false> & Define.Prop<'value', string, false> & Define.Prop<'placeholder', string, false> & Define.Prop<'size', SelectSize, false> & Define.Prop<'variant', SelectVariant, false> & Define.Prop<'color', SelectColor, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'class', string, false> & Define.Event<'change', string>;
|
|
10
|
+
export declare const Select: import("@sigx/runtime-core").ComponentFactory<SelectProps, void, {}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type TextareaSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export type TextareaVariant = 'bordered' | 'ghost';
|
|
4
|
+
export type TextareaColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
5
|
+
export type TextareaProps = Define.Prop<'placeholder', string, false> & Define.Prop<'rows', number, false> & Define.Prop<'size', TextareaSize, false> & Define.Prop<'variant', TextareaVariant, false> & Define.Prop<'color', TextareaColor, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'class', string, false> & Define.Model<string>;
|
|
6
|
+
export declare const Textarea: import("@sigx/runtime-core").ComponentFactory<TextareaProps, void, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Define } from '@sigx/lynx';
|
|
2
|
+
export type ToggleColor = 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
3
|
+
export type ToggleSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
4
|
+
export type ToggleProps = Define.Prop<'checked', boolean, false> & Define.Prop<'color', ToggleColor, false> & Define.Prop<'size', ToggleSize, false> & Define.Prop<'disabled', boolean, false> & Define.Prop<'class', string, false> & Define.Event<'change', boolean>;
|
|
5
|
+
export declare const Toggle: import("@sigx/runtime-core").ComponentFactory<ToggleProps, void, {}>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export { Button } from './buttons/Button.js';
|
|
2
|
+
export type { ButtonProps, ButtonVariant, ButtonSize } from './buttons/Button.js';
|
|
3
|
+
export { Card } from './layout/Card.js';
|
|
4
|
+
export type { CardProps } from './layout/Card.js';
|
|
5
|
+
export { Row } from './layout/Row.js';
|
|
6
|
+
export type { RowProps } from './layout/Row.js';
|
|
7
|
+
export { Col } from './layout/Col.js';
|
|
8
|
+
export type { ColProps } from './layout/Col.js';
|
|
9
|
+
export { Center } from './layout/Center.js';
|
|
10
|
+
export type { CenterProps } from './layout/Center.js';
|
|
11
|
+
export { Spacer } from './layout/Spacer.js';
|
|
12
|
+
export type { SpacerProps } from './layout/Spacer.js';
|
|
13
|
+
export { ScrollView } from './layout/ScrollView.js';
|
|
14
|
+
export type { ScrollViewProps } from './layout/ScrollView.js';
|
|
15
|
+
export { Divider } from './layout/Divider.js';
|
|
16
|
+
export type { DividerProps } from './layout/Divider.js';
|
|
17
|
+
export { Input } from './forms/Input.js';
|
|
18
|
+
export type { InputProps, InputSize, InputVariant, InputColor } from './forms/Input.js';
|
|
19
|
+
export { Toggle } from './forms/Toggle.js';
|
|
20
|
+
export type { ToggleProps, ToggleColor, ToggleSize } from './forms/Toggle.js';
|
|
21
|
+
export { Checkbox } from './forms/Checkbox.js';
|
|
22
|
+
export type { CheckboxProps, CheckboxColor, CheckboxSize } from './forms/Checkbox.js';
|
|
23
|
+
export { Select } from './forms/Select.js';
|
|
24
|
+
export type { SelectProps, SelectSize, SelectVariant, SelectColor, SelectOption } from './forms/Select.js';
|
|
25
|
+
export { Radio } from './forms/Radio.js';
|
|
26
|
+
export type { RadioGroupProps, RadioItemProps, RadioColor, RadioSize } from './forms/Radio.js';
|
|
27
|
+
export { Textarea } from './forms/Textarea.js';
|
|
28
|
+
export type { TextareaProps, TextareaSize, TextareaVariant, TextareaColor } from './forms/Textarea.js';
|
|
29
|
+
export { FormField } from './forms/FormField.js';
|
|
30
|
+
export type { FormFieldProps } from './forms/FormField.js';
|
|
31
|
+
export { Badge } from './feedback/Badge.js';
|
|
32
|
+
export type { BadgeProps, BadgeVariant, BadgeSize } from './feedback/Badge.js';
|
|
33
|
+
export { Alert } from './feedback/Alert.js';
|
|
34
|
+
export type { AlertProps, AlertVariant } from './feedback/Alert.js';
|
|
35
|
+
export { Loading } from './feedback/Loading.js';
|
|
36
|
+
export type { LoadingProps, LoadingType, LoadingSize, LoadingColor } from './feedback/Loading.js';
|
|
37
|
+
export { Progress } from './feedback/Progress.js';
|
|
38
|
+
export type { ProgressProps, ProgressColor } from './feedback/Progress.js';
|
|
39
|
+
export { Modal } from './feedback/Modal.js';
|
|
40
|
+
export type { ModalProps } from './feedback/Modal.js';
|
|
41
|
+
export { Skeleton } from './feedback/Skeleton.js';
|
|
42
|
+
export type { SkeletonProps } from './feedback/Skeleton.js';
|
|
43
|
+
export { Steps } from './feedback/Steps.js';
|
|
44
|
+
export type { StepsProps, StepProps, StepColor } from './feedback/Steps.js';
|
|
45
|
+
export { Tabs } from './navigation/Tabs.js';
|
|
46
|
+
export type { TabsProps, TabProps } from './navigation/Tabs.js';
|
|
47
|
+
export { Avatar } from './data/Avatar.js';
|
|
48
|
+
export type { AvatarProps, AvatarSize } from './data/Avatar.js';
|
|
49
|
+
export { Text } from './typography/Text.js';
|
|
50
|
+
export type { TextProps, TextSize, TextWeight, TextColor } from './typography/Text.js';
|
|
51
|
+
export { Heading } from './typography/Heading.js';
|
|
52
|
+
export type { HeadingProps, HeadingLevel } from './typography/Heading.js';
|