@stokelp/ui 1.4.6 → 1.6.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.
@@ -8,3 +8,5 @@ export * from './switch';
8
8
  export * from './text';
9
9
  export * from './textarea';
10
10
  export * from './tabs';
11
+ export * from './select';
12
+ export * from './input';
@@ -0,0 +1,6 @@
1
+ import { InputVariantProps } from '@stokelp/styled-system/recipes';
2
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
3
+ import type { ComponentProps } from 'react';
4
+ export declare const Input: StyledComponent<"input", InputVariantProps>;
5
+ export interface InputProps extends ComponentProps<typeof Input> {
6
+ }
@@ -0,0 +1,6 @@
1
+ import { InputAddonVariantProps } from '@stokelp/styled-system/recipes';
2
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
3
+ import type { ComponentProps } from 'react';
4
+ export declare const InputAddon: StyledComponent<"div", InputAddonVariantProps>;
5
+ export interface InputAddonProps extends ComponentProps<typeof InputAddon> {
6
+ }
@@ -0,0 +1,6 @@
1
+ import { InputGroupVariantProps } from '@stokelp/styled-system/recipes';
2
+ import { StyledComponent } from '@stokelp/styled-system/jsx';
3
+ import type { ComponentProps } from 'react';
4
+ export declare const InputGroup: StyledComponent<"div", InputGroupVariantProps>;
5
+ export interface InputGroupProps extends ComponentProps<typeof InputGroup> {
6
+ }
@@ -0,0 +1,3 @@
1
+ export * from './Input';
2
+ export * from './InputAddon';
3
+ export * from './InputGroup';
@@ -0,0 +1,16 @@
1
+ import type { FC } from 'react';
2
+ import { type SelectRootProps } from '@ark-ui/react/select';
3
+ import { select } from '@stokelp/styled-system/recipes';
4
+ import { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types';
5
+ export type SelectItem = {
6
+ value: string;
7
+ label: string;
8
+ disabled?: boolean;
9
+ };
10
+ export type SelectProps = Omit<SelectRootProps<string | object>, 'items'> & {
11
+ items: SelectItem[];
12
+ emptyLabel?: string;
13
+ placeholder?: string;
14
+ usePortal?: boolean;
15
+ } & HTMLStyledProps<'div'> & RecipeVariantProps<typeof select>;
16
+ export declare const Select: FC<SelectProps>;
@@ -0,0 +1 @@
1
+ export * from './Select';
@@ -0,0 +1,7 @@
1
+ import type { FC, ReactNode } from 'react';
2
+ export interface ConditionalWrapperProps {
3
+ readonly when: boolean;
4
+ readonly children: ReactNode;
5
+ readonly wrapper: (children: ReactNode) => ReactNode;
6
+ }
7
+ export declare const ConditionalWrapper: FC<ConditionalWrapperProps>;