@lctafrica/ui 0.1.0 → 0.1.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.
- package/dist/components/ui/Label/Label.d.ts +4 -0
- package/dist/components/ui/ModalFooter.d.ts +7 -0
- package/dist/components/ui/autosuggest-input/AutoSuggestInput.d.ts +10 -0
- package/dist/components/ui/autosuggest-input/AutoSuggestInput.stories.d.ts +25 -0
- package/dist/components/ui/badge/Badge.d.ts +19 -0
- package/dist/components/ui/badge/Badge.stories.d.ts +10 -0
- package/dist/components/ui/badge/Badge.test.d.ts +1 -0
- package/dist/components/ui/button/Button.d.ts +11 -0
- package/dist/components/ui/button/Button.stories.d.ts +18 -0
- package/dist/components/ui/button/Button.test.d.ts +1 -0
- package/dist/components/ui/button-group/ButtonGroup.d.ts +24 -0
- package/dist/components/ui/button-group/ButtonGroup.stories.d.ts +10 -0
- package/dist/components/ui/button-group/ButtonGroup.test.d.ts +1 -0
- package/dist/components/ui/calendar.d.ts +10 -0
- package/dist/components/ui/checkbox/Checkbox.d.ts +15 -0
- package/dist/components/ui/checkbox/Checkbox.stories.d.ts +333 -0
- package/dist/components/ui/checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/ui/confirm-modal/ConfirmModal.d.ts +4 -0
- package/dist/components/ui/confirm-modal/ConfirmModal.stories.d.ts +25 -0
- package/dist/components/ui/data-state-renderer/DataStateRendere.stories.d.ts +102 -0
- package/dist/components/ui/data-state-renderer/DataStateRenderer.d.ts +19 -0
- package/dist/components/ui/date-picker/DatePicker.d.ts +7 -0
- package/dist/components/ui/date-picker/DatePicker.stories.d.ts +30 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/field/Field.d.ts +24 -0
- package/dist/components/ui/field/Field.stories.d.ts +10 -0
- package/dist/components/ui/field/Filed.test.d.ts +1 -0
- package/dist/components/ui/input/Input.d.ts +6 -0
- package/dist/components/ui/input/Input.stories.d.ts +13 -0
- package/dist/components/ui/input/Input.test.d.ts +1 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/loading-state/LoadingIndicator.d.ts +6 -0
- package/dist/components/ui/loading-state/LoadingIndicator.stories.d.ts +6 -0
- package/dist/components/ui/loading-state/loading-animation/LoadingAnimation.d.ts +16 -0
- package/dist/components/ui/main-wrapper/MainWrapper.d.ts +2 -0
- package/dist/components/ui/main-wrapper/MainWrapper.stories.d.ts +19 -0
- package/dist/components/ui/modal/Modal.d.ts +11 -0
- package/dist/components/ui/modal/Modal.stories.d.ts +29 -0
- package/dist/components/ui/popover.d.ts +10 -0
- package/dist/components/ui/prompt-modal/PromptModal.d.ts +8 -0
- package/dist/components/ui/prompt-modal/PromptModal.stories.d.ts +29 -0
- package/dist/components/ui/radio-group/RadioGroup.d.ts +7 -0
- package/dist/components/ui/radio-group/RadioGroup.stories.d.ts +13 -0
- package/dist/components/ui/radio-group/RadioGroup.test.d.ts +1 -0
- package/dist/components/ui/search-input/SearchInput.d.ts +9 -0
- package/dist/components/ui/search-input/SearchInput.stories.d.ts +6 -0
- package/dist/components/ui/searchable-select/SearchableSelect.d.ts +16 -0
- package/dist/components/ui/searchable-select/SearchableSelect.stories.d.ts +25 -0
- package/dist/components/ui/select/Select.d.ts +15 -0
- package/dist/components/ui/select/Select.stories.d.ts +6 -0
- package/dist/components/ui/select/select-components.d.ts +17 -0
- package/dist/components/ui/separator/separator.d.ts +4 -0
- package/dist/components/ui/state-indicator/StateIndicator.d.ts +22 -0
- package/dist/components/ui/state-indicator/StateIndicator.stories.d.ts +33 -0
- package/dist/components/ui/success-modal/SuccessAnimation.d.ts +1 -0
- package/dist/components/ui/success-modal/SuccessModal.d.ts +12 -0
- package/dist/components/ui/success-modal/SuccessModal.stories.d.ts +37 -0
- package/dist/components/ui/success-modal/SuccessTickIcon.d.ts +6 -0
- package/dist/components/ui/switch/Switch.d.ts +6 -0
- package/dist/components/ui/switch/Switch.stories.d.ts +37 -0
- package/dist/components/ui/text/Text.d.ts +11 -0
- package/dist/components/ui/text/Text.stories.d.ts +9 -0
- package/dist/components/ui/text/Text.test.d.ts +1 -0
- package/dist/components/ui/textarea/Textarea.d.ts +3 -0
- package/dist/components/ui/textarea/Textarea.stories.d.ts +29 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +15125 -0
- package/dist/lct-logo.svg +3 -0
- package/dist/lib/utils.d.ts +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { default as SuccessModal } from './SuccessModal';
|
|
3
|
+
declare const meta: Meta<typeof SuccessModal>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SuccessModal>;
|
|
6
|
+
/**
|
|
7
|
+
* Default
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* With close button
|
|
12
|
+
*/
|
|
13
|
+
export declare const WithCloseButton: Story;
|
|
14
|
+
/**
|
|
15
|
+
* With auto close (NEW)
|
|
16
|
+
*/
|
|
17
|
+
export declare const AutoClose: Story;
|
|
18
|
+
/**
|
|
19
|
+
* With actions (children)
|
|
20
|
+
*/
|
|
21
|
+
export declare const WithActions: Story;
|
|
22
|
+
/**
|
|
23
|
+
* Without description
|
|
24
|
+
*/
|
|
25
|
+
export declare const WithoutDescription: Story;
|
|
26
|
+
/**
|
|
27
|
+
* Without title
|
|
28
|
+
*/
|
|
29
|
+
export declare const WithoutTitle: Story;
|
|
30
|
+
/**
|
|
31
|
+
* Animation only
|
|
32
|
+
*/
|
|
33
|
+
export declare const AnimationOnly: Story;
|
|
34
|
+
/**
|
|
35
|
+
* Long content
|
|
36
|
+
*/
|
|
37
|
+
export declare const LongContent: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
size?: "sm" | "default";
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Switch };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Switch } from './Switch';
|
|
3
|
+
declare const meta: Meta<typeof Switch>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Switch>;
|
|
6
|
+
/**
|
|
7
|
+
* Default switch (unchecked)
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* Checked state
|
|
12
|
+
*/
|
|
13
|
+
export declare const Checked: Story;
|
|
14
|
+
/**
|
|
15
|
+
* Small size
|
|
16
|
+
*/
|
|
17
|
+
export declare const Small: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Disabled switch
|
|
20
|
+
*/
|
|
21
|
+
export declare const Disabled: Story;
|
|
22
|
+
/**
|
|
23
|
+
* Disabled & checked
|
|
24
|
+
*/
|
|
25
|
+
export declare const DisabledChecked: Story;
|
|
26
|
+
/**
|
|
27
|
+
* Controlled example
|
|
28
|
+
*/
|
|
29
|
+
export declare const Controlled: Story;
|
|
30
|
+
/**
|
|
31
|
+
* With label
|
|
32
|
+
*/
|
|
33
|
+
export declare const WithLabel: Story;
|
|
34
|
+
/**
|
|
35
|
+
* All sizes preview
|
|
36
|
+
*/
|
|
37
|
+
export declare const AllSizes: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
variant?: "heading" | "subheading" | "paragraph" | "description" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
interface Props extends VariantProps<typeof textVariants> {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function Text({ children, className, variant }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Text } from './Text';
|
|
3
|
+
declare const meta: Meta<typeof Text>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Text>;
|
|
6
|
+
export declare const Heading: Story;
|
|
7
|
+
export declare const Subheading: Story;
|
|
8
|
+
export declare const paragraph: Story;
|
|
9
|
+
export declare const Description: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Textarea } from './Textarea';
|
|
3
|
+
declare const meta: Meta<typeof Textarea>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Textarea>;
|
|
6
|
+
/**
|
|
7
|
+
* Default textarea
|
|
8
|
+
*/
|
|
9
|
+
export declare const Default: Story;
|
|
10
|
+
/**
|
|
11
|
+
* With predefined value
|
|
12
|
+
*/
|
|
13
|
+
export declare const WithValue: Story;
|
|
14
|
+
/**
|
|
15
|
+
* Disabled state
|
|
16
|
+
*/
|
|
17
|
+
export declare const Disabled: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Invalid state (aria-invalid)
|
|
20
|
+
*/
|
|
21
|
+
export declare const Invalid: Story;
|
|
22
|
+
/**
|
|
23
|
+
* Controlled example
|
|
24
|
+
*/
|
|
25
|
+
export declare const Controlled: Story;
|
|
26
|
+
/**
|
|
27
|
+
* With custom height
|
|
28
|
+
*/
|
|
29
|
+
export declare const CustomHeight: Story;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './components/ui/autosuggest-input/AutoSuggestInput';
|
|
2
|
+
export * from './components/ui/badge/Badge';
|
|
3
|
+
export * from './components/ui/button-group/ButtonGroup';
|
|
4
|
+
export * from './components/ui/button/Button';
|
|
5
|
+
export * from './components/ui/checkbox/Checkbox';
|
|
6
|
+
export * from './components/ui/date-picker/DatePicker';
|
|
7
|
+
export * from './components/ui/field/Field';
|
|
8
|
+
export * from './components/ui/input/Input';
|
|
9
|
+
export * from './components/ui/main-wrapper/MainWrapper';
|
|
10
|
+
export * from './components/ui/radio-group/RadioGroup';
|
|
11
|
+
export * from './components/ui/search-input/SearchInput';
|
|
12
|
+
export * from './components/ui/searchable-select/SearchableSelect';
|
|
13
|
+
export * from './components/ui/select/Select';
|
|
14
|
+
export * from './components/ui/switch/Switch';
|
|
15
|
+
export * from './components/ui/text/Text';
|
|
16
|
+
export * from './components/ui/textarea/Textarea';
|