@stokelp/ui 1.5.0 → 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,4 +8,5 @@ export * from './switch';
8
8
  export * from './text';
9
9
  export * from './textarea';
10
10
  export * from './tabs';
11
+ export * from './select';
11
12
  export * from './input';
@@ -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>;