@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.
Files changed (70) hide show
  1. package/dist/components/ui/Label/Label.d.ts +4 -0
  2. package/dist/components/ui/ModalFooter.d.ts +7 -0
  3. package/dist/components/ui/autosuggest-input/AutoSuggestInput.d.ts +10 -0
  4. package/dist/components/ui/autosuggest-input/AutoSuggestInput.stories.d.ts +25 -0
  5. package/dist/components/ui/badge/Badge.d.ts +19 -0
  6. package/dist/components/ui/badge/Badge.stories.d.ts +10 -0
  7. package/dist/components/ui/badge/Badge.test.d.ts +1 -0
  8. package/dist/components/ui/button/Button.d.ts +11 -0
  9. package/dist/components/ui/button/Button.stories.d.ts +18 -0
  10. package/dist/components/ui/button/Button.test.d.ts +1 -0
  11. package/dist/components/ui/button-group/ButtonGroup.d.ts +24 -0
  12. package/dist/components/ui/button-group/ButtonGroup.stories.d.ts +10 -0
  13. package/dist/components/ui/button-group/ButtonGroup.test.d.ts +1 -0
  14. package/dist/components/ui/calendar.d.ts +10 -0
  15. package/dist/components/ui/checkbox/Checkbox.d.ts +15 -0
  16. package/dist/components/ui/checkbox/Checkbox.stories.d.ts +333 -0
  17. package/dist/components/ui/checkbox/Checkbox.test.d.ts +1 -0
  18. package/dist/components/ui/confirm-modal/ConfirmModal.d.ts +4 -0
  19. package/dist/components/ui/confirm-modal/ConfirmModal.stories.d.ts +25 -0
  20. package/dist/components/ui/data-state-renderer/DataStateRendere.stories.d.ts +102 -0
  21. package/dist/components/ui/data-state-renderer/DataStateRenderer.d.ts +19 -0
  22. package/dist/components/ui/date-picker/DatePicker.d.ts +7 -0
  23. package/dist/components/ui/date-picker/DatePicker.stories.d.ts +30 -0
  24. package/dist/components/ui/dialog.d.ts +17 -0
  25. package/dist/components/ui/field/Field.d.ts +24 -0
  26. package/dist/components/ui/field/Field.stories.d.ts +10 -0
  27. package/dist/components/ui/field/Filed.test.d.ts +1 -0
  28. package/dist/components/ui/input/Input.d.ts +6 -0
  29. package/dist/components/ui/input/Input.stories.d.ts +13 -0
  30. package/dist/components/ui/input/Input.test.d.ts +1 -0
  31. package/dist/components/ui/input-group.d.ts +16 -0
  32. package/dist/components/ui/loading-state/LoadingIndicator.d.ts +6 -0
  33. package/dist/components/ui/loading-state/LoadingIndicator.stories.d.ts +6 -0
  34. package/dist/components/ui/loading-state/loading-animation/LoadingAnimation.d.ts +16 -0
  35. package/dist/components/ui/main-wrapper/MainWrapper.d.ts +2 -0
  36. package/dist/components/ui/main-wrapper/MainWrapper.stories.d.ts +19 -0
  37. package/dist/components/ui/modal/Modal.d.ts +11 -0
  38. package/dist/components/ui/modal/Modal.stories.d.ts +29 -0
  39. package/dist/components/ui/popover.d.ts +10 -0
  40. package/dist/components/ui/prompt-modal/PromptModal.d.ts +8 -0
  41. package/dist/components/ui/prompt-modal/PromptModal.stories.d.ts +29 -0
  42. package/dist/components/ui/radio-group/RadioGroup.d.ts +7 -0
  43. package/dist/components/ui/radio-group/RadioGroup.stories.d.ts +13 -0
  44. package/dist/components/ui/radio-group/RadioGroup.test.d.ts +1 -0
  45. package/dist/components/ui/search-input/SearchInput.d.ts +9 -0
  46. package/dist/components/ui/search-input/SearchInput.stories.d.ts +6 -0
  47. package/dist/components/ui/searchable-select/SearchableSelect.d.ts +16 -0
  48. package/dist/components/ui/searchable-select/SearchableSelect.stories.d.ts +25 -0
  49. package/dist/components/ui/select/Select.d.ts +15 -0
  50. package/dist/components/ui/select/Select.stories.d.ts +6 -0
  51. package/dist/components/ui/select/select-components.d.ts +17 -0
  52. package/dist/components/ui/separator/separator.d.ts +4 -0
  53. package/dist/components/ui/state-indicator/StateIndicator.d.ts +22 -0
  54. package/dist/components/ui/state-indicator/StateIndicator.stories.d.ts +33 -0
  55. package/dist/components/ui/success-modal/SuccessAnimation.d.ts +1 -0
  56. package/dist/components/ui/success-modal/SuccessModal.d.ts +12 -0
  57. package/dist/components/ui/success-modal/SuccessModal.stories.d.ts +37 -0
  58. package/dist/components/ui/success-modal/SuccessTickIcon.d.ts +6 -0
  59. package/dist/components/ui/switch/Switch.d.ts +6 -0
  60. package/dist/components/ui/switch/Switch.stories.d.ts +37 -0
  61. package/dist/components/ui/text/Text.d.ts +11 -0
  62. package/dist/components/ui/text/Text.stories.d.ts +9 -0
  63. package/dist/components/ui/text/Text.test.d.ts +1 -0
  64. package/dist/components/ui/textarea/Textarea.d.ts +3 -0
  65. package/dist/components/ui/textarea/Textarea.stories.d.ts +29 -0
  66. package/dist/index.d.ts +16 -0
  67. package/dist/index.js +15125 -0
  68. package/dist/lct-logo.svg +3 -0
  69. package/dist/lib/utils.d.ts +2 -0
  70. 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
+ type Props = {
2
+ height?: number;
3
+ width?: number;
4
+ };
5
+ export default function SuccessTickIcon({ height, width }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -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,3 @@
1
+ import * as React from "react";
2
+ declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
3
+ export { Textarea };
@@ -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;
@@ -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';