@sunggang/ui-lib 0.2.11 → 0.2.12

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
@@ -816,9 +816,6 @@ video {
816
816
  .h-4 {
817
817
  height: 1rem;
818
818
  }
819
- .h-40 {
820
- height: 10rem;
821
- }
822
819
  .h-5 {
823
820
  height: 1.25rem;
824
821
  }
@@ -2700,10 +2697,19 @@ video {
2700
2697
  justify-content: center;
2701
2698
  }
2702
2699
 
2700
+ .lg\:p-10 {
2701
+ padding: 2.5rem;
2702
+ }
2703
+
2703
2704
  .lg\:px-8 {
2704
2705
  padding-left: 2rem;
2705
2706
  padding-right: 2rem;
2706
2707
  }
2708
+
2709
+ .lg\:text-lg {
2710
+ font-size: 1.125rem;
2711
+ line-height: 1.75rem;
2712
+ }
2707
2713
  }
2708
2714
 
2709
2715
  @media (min-width: 1280px) {
package/index.esm.js CHANGED
@@ -108059,7 +108059,7 @@ function _unsupported_iterable_to_array(o, minLen) {
108059
108059
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
108060
108060
  }
108061
108061
  var CustomSelect = function(param) {
108062
- var items = param.items, currentID = param.currentID, setCurrentID = param.setCurrentID, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className;
108062
+ var items = param.items, currentID = param.currentID, setCurrentID = param.setCurrentID, _param_className = param.className, className = _param_className === void 0 ? "" : _param_className, _param_hasEmptyOption = param.hasEmptyOption, hasEmptyOption = _param_hasEmptyOption === void 0 ? true : _param_hasEmptyOption;
108063
108063
  var _useState = _sliced_to_array(useState(false), 2), isDropdownOpen = _useState[0], setIsDropdownOpen = _useState[1];
108064
108064
  var selectRef = useRef(null);
108065
108065
  useEffect(function() {
@@ -108105,7 +108105,7 @@ var CustomSelect = function(param) {
108105
108105
  isDropdownOpen && /*#__PURE__*/ jsxs("ul", {
108106
108106
  className: "absolute z-10 mt-0 w-full bg-white border border-gray-300 rounded-lg shadow-lg",
108107
108107
  children: [
108108
- /*#__PURE__*/ jsx("li", {
108108
+ hasEmptyOption && /*#__PURE__*/ jsx("li", {
108109
108109
  className: "px-4 py-2 cursor-pointer hover:bg-gray-100",
108110
108110
  onClick: function() {
108111
108111
  setCurrentID(null);
@@ -109752,7 +109752,7 @@ function _tagged_template_literal(strings, raw) {
109752
109752
  }
109753
109753
  function _templateObject() {
109754
109754
  var data = _tagged_template_literal([
109755
- "\n .uiTabs {\n list-style: none;\n display: flex;\n }\n\n .uiTabs .uiTab {\n padding: 0.25rem 1em;\n cursor: pointer;\n transform: translateY(1px);\n transition: background-color 0.2s ease-in-out;\n text-align: center;\n font-size: 18px;\n height: 3rem;\n }\n\n .uiTabs .uiTab.selected {\n border-radius: 6px 6px 0px 0px;\n }\n"
109755
+ "\n .uiTabs {\n list-style: none;\n display: flex;\n }\n\n .uiTabs .uiTab {\n padding: 0.25rem 1em;\n cursor: pointer;\n transform: translateY(1px);\n transition: background-color 0.2s ease-in-out;\n text-align: center;\n height: 3rem;\n }\n\n .uiTabs .uiTab.selected {\n border-radius: 6px 6px 0px 0px;\n }\n"
109756
109756
  ]);
109757
109757
  _templateObject = function _templateObject() {
109758
109758
  return data;
@@ -109774,7 +109774,7 @@ var TabsPanel = function(param) {
109774
109774
  return /*#__PURE__*/ jsx("button", {
109775
109775
  type: "button",
109776
109776
  className: [
109777
- "uiTab",
109777
+ "uiTab text-sm lg:text-lg",
109778
109778
  index === activeIndex ? "border border-[#ccc] rounded-t-md ".concat(tabClassName) : ""
109779
109779
  ].join(" "),
109780
109780
  onClick: function() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "dependencies": {
5
5
  "@iconify/react": "^4.1.1",
6
6
  "@mdx-js/react": "^3.0.1",
@@ -8,6 +8,7 @@ export interface CustomSelectProps {
8
8
  currentID: string | null;
9
9
  setCurrentID: React.Dispatch<React.SetStateAction<any>>;
10
10
  className?: string;
11
+ hasEmptyOption?: boolean;
11
12
  }
12
13
  export declare const CustomSelect: React.FC<CustomSelectProps>;
13
14
  export default CustomSelect;