@sunggang/ui-lib 0.3.20 → 0.3.21

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/index.esm3.js CHANGED
@@ -19,10 +19,11 @@ import 'date-fns/addDays/index.js';
19
19
  import 'date-fns/format/index.js';
20
20
  import '@emotion/react';
21
21
  import '@mui/material';
22
+ import '@radix-ui/react-select';
23
+ import '@radix-ui/react-icons';
22
24
  import 'input-otp';
23
25
  import '@tanstack/react-table';
24
26
  import '@radix-ui/react-dropdown-menu';
25
- import '@radix-ui/react-icons';
26
27
 
27
28
  /* eslint-disable no-prototype-builtins */ function _instanceof$4(left, right) {
28
29
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
@@ -14,6 +14,7 @@
14
14
  "@radix-ui/react-dropdown-menu": "^2.0.6",
15
15
  "@radix-ui/react-icons": "^1.3.0",
16
16
  "@radix-ui/react-popover": "^1.0.7",
17
+ "@radix-ui/react-select": "^2.2.4",
17
18
  "@radix-ui/react-slot": "^1.0.2",
18
19
  "@radix-ui/react-switch": "^1.0.3",
19
20
  "@tanstack/react-table": "^8.16.0",
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import * as SelectPrimitive from '@radix-ui/react-select';
3
+ declare const Select: React.FC<SelectPrimitive.SelectProps>;
4
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
5
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
6
+ declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface ImageItem {
3
+ url?: string;
4
+ id?: string;
5
+ preview?: string;
6
+ }
7
+ interface PrimaryDragDropImagesProps {
8
+ imageUrls: ImageItem[];
9
+ onDragEnd: () => void;
10
+ handleRemove: (item: ImageItem) => void;
11
+ }
12
+ export declare const PrimaryDragDropImage: React.FC<PrimaryDragDropImagesProps>;
13
+ export {};
@@ -10,9 +10,10 @@ export interface DropImageProps {
10
10
  imageUrls?: ImageItem[] | undefined;
11
11
  setImageUrls?: any;
12
12
  setFiles: React.Dispatch<React.SetStateAction<File[]>>;
13
- imageStyleType: 'base' | 'custom';
13
+ imageStyleType: 'base' | 'custom' | 'primary';
14
14
  }
15
15
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-bf5e6555").R, import("@storybook/types").Args>;
16
16
  export default _default;
17
17
  export declare const Base: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DropImageProps>;
18
18
  export declare const Custom: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DropImageProps>;
19
+ export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-bf5e6555").R, DropImageProps>;
@@ -1,11 +1,13 @@
1
1
  export interface Option {
2
- value: string | number;
2
+ value?: string | number | undefined;
3
3
  name: string;
4
4
  label?: string;
5
5
  }
6
6
  export interface OptionGroup {
7
7
  label: string;
8
8
  options?: Option[];
9
+ value?: string;
10
+ name?: string;
9
11
  }
10
12
  interface RadioOption {
11
13
  label?: string;
@@ -50,6 +52,9 @@ export interface FormItem {
50
52
  icon?: string;
51
53
  option?: Options;
52
54
  hiddenArrow?: boolean;
55
+ groupLabelColor?: string;
56
+ optionHoverColor?: string;
57
+ optionSelectedBgColor?: string;
53
58
  hiddenIcon?: boolean;
54
59
  radioOptions?: RadioOption[];
55
60
  direction?: 'horizontal' | 'vertical';
@@ -0,0 +1,6 @@
1
+ import { FormItem } from '../Form/types';
2
+ type BaseSelectProps = {
3
+ item: FormItem;
4
+ };
5
+ declare const BaseSelect: ({ item }: BaseSelectProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default BaseSelect;
@@ -10,5 +10,10 @@ export interface CustomSelectProps {
10
10
  className?: string;
11
11
  hasEmptyOption?: boolean;
12
12
  }
13
+ export interface BaseSelectProps {
14
+ items: Item[];
15
+ className?: string;
16
+ hasEmptyOption?: boolean;
17
+ }
13
18
  export declare const CustomSelect: React.FC<CustomSelectProps>;
14
19
  export default CustomSelect;