@sunggang/ui-lib 0.1.20 → 0.1.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.esm.css CHANGED
@@ -729,6 +729,9 @@ video {
729
729
  .h-10 {
730
730
  height: 2.5rem;
731
731
  }
732
+ .h-11 {
733
+ height: 2.75rem;
734
+ }
732
735
  .h-14 {
733
736
  height: 3.5rem;
734
737
  }
package/index.esm2.js CHANGED
@@ -6600,7 +6600,6 @@ var Button = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
6600
6600
  ref: ref
6601
6601
  }, props));
6602
6602
  });
6603
- Button.displayName = "Button";
6604
6603
 
6605
6604
  function _define_property$1(obj, key, value) {
6606
6605
  if (key in obj) {
@@ -6881,7 +6880,7 @@ function _unsupported_iterable_to_array(o, minLen) {
6881
6880
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
6882
6881
  }
6883
6882
  function DateRangePicker(param) {
6884
- var className = param.className, disable = param.disable, onChange = param.onChange, dates = param.dates;
6883
+ var className = param.className, inputClassName = param.inputClassName, disable = param.disable, onChange = param.onChange, dates = param.dates;
6885
6884
  var _useState = _sliced_to_array(useState({
6886
6885
  from: (dates === null || dates === void 0 ? void 0 : dates.from) || undefined,
6887
6886
  to: (dates === null || dates === void 0 ? void 0 : dates.to) || undefined
@@ -6901,7 +6900,7 @@ function DateRangePicker(param) {
6901
6900
  children: /*#__PURE__*/ jsxs(Button, {
6902
6901
  id: "date",
6903
6902
  variant: "outline",
6904
- className: cn("w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"),
6903
+ className: cn("w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground", inputClassName),
6905
6904
  children: [
6906
6905
  /*#__PURE__*/ jsx(Calendar$1, {
6907
6906
  className: "mr-2 h-4 w-4"
@@ -6935,7 +6934,6 @@ function DateRangePicker(param) {
6935
6934
  })
6936
6935
  });
6937
6936
  }
6938
- DateRangePicker.displayName = "DateRangePicker";
6939
6937
 
6940
6938
  // Use this file to export React client components (e.g. those with 'use client' directive) or other non-server utilities
6941
6939
  var CkEditor = dynamic(function() {
package/index.esm3.js CHANGED
@@ -64138,10 +64138,6 @@ function _ts_values(o) {
64138
64138
 
64139
64139
  var Editor = /*@__PURE__*/getDefaultExportFromCjs(ckeditor.exports);
64140
64140
 
64141
- // interface CkeditorProps {
64142
- // content: string;
64143
- // setContent: (content: string) => void;
64144
- // }
64145
64141
  var CkEditor = function(param) {
64146
64142
  var content = param.content, setContent = param.setContent;
64147
64143
  return /*#__PURE__*/ jsx(dist.exports.CKEditor, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "dependencies": {
5
5
  "@radix-ui/react-popover": "^1.0.7",
6
6
  "@radix-ui/react-slot": "^1.0.2",
@@ -5,12 +5,10 @@ interface DateRangeType {
5
5
  }
6
6
  interface DateRangePickerProps {
7
7
  className?: string;
8
+ inputClassName?: string;
8
9
  disable?: boolean;
9
10
  onChange?: (date: DateRange) => void;
10
11
  dates?: DateRangeType;
11
12
  }
12
- declare function DateRangePicker({ className, disable, onChange, dates, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
13
- declare namespace DateRangePicker {
14
- var displayName: string;
15
- }
13
+ declare function DateRangePicker({ className, inputClassName, disable, onChange, dates, }: DateRangePickerProps): import("react/jsx-runtime").JSX.Element;
16
14
  export { DateRangePicker };
@@ -1,9 +1,7 @@
1
+ /// <reference types="react" />
1
2
  interface SinglePickerProps {
2
3
  disable?: boolean;
3
4
  onChange?: (date: Date) => void;
4
5
  }
5
- declare function SingleDatePicker({ disable, onChange }: SinglePickerProps): import("react/jsx-runtime").JSX.Element;
6
- declare namespace SingleDatePicker {
7
- var displayName: string;
8
- }
9
- export { SingleDatePicker };
6
+ export declare const SingleDatePicker: React.FC<SinglePickerProps>;
7
+ export default SingleDatePicker;
@@ -1,3 +1,7 @@
1
1
  /// <reference types="react" />
2
- declare const CkEditor: React.FC<any>;
2
+ interface CkEditorProps {
3
+ content: string;
4
+ setContent: React.Dispatch<React.SetStateAction<string>>;
5
+ }
6
+ declare const CkEditor: React.FC<CkEditorProps>;
3
7
  export default CkEditor;