mainstack-design-system 0.3.8 → 0.3.9

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.
@@ -51677,6 +51677,7 @@ const Ub = {
51677
51677
  boxShadow: "none",
51678
51678
  outlineOffset: "0px",
51679
51679
  transition: "all 100ms ease-in-out",
51680
+ cursor: "pointer",
51680
51681
  ":hover": {
51681
51682
  boxShadow: "none",
51682
51683
  cursor: "text",
@@ -51784,61 +51785,75 @@ const Ub = {
51784
51785
  CustomMultiValue: b,
51785
51786
  disabled: x,
51786
51787
  noOptionsMessage: _,
51787
- fontFamily: T
51788
+ fontFamily: T,
51789
+ openMenuOnFocus: k
51788
51790
  }) => {
51789
- const k = {}, M = y, L = b;
51790
- M && (k.Option = M), L && (k.MultiValue = L);
51791
- const I = Lt(
51791
+ const M = {}, L = y, I = b;
51792
+ L && (M.Option = L), I && (M.MultiValue = I);
51793
+ const E = Lt(
51792
51794
  null
51793
51795
  );
51794
- return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: T ?? "Degular", fontWeight: 500, children: [
51795
- e && /* @__PURE__ */ f(
51796
- dc,
51797
- {
51798
- fontSize: "1rem",
51799
- lineHeight: "1.25rem",
51800
- fontWeight: 600,
51801
- fontFamily: T ?? "Degular",
51802
- letterSpacing: "-0.004rem",
51803
- mb: "12px",
51804
- htmlFor: n,
51805
- color: x ? oe.gray200 : oe.black300,
51806
- children: e
51807
- }
51808
- ),
51809
- /* @__PURE__ */ f(
51810
- tie,
51811
- {
51812
- isMulti: v,
51813
- isClearable: v,
51814
- defaultInputValue: m,
51815
- value: c,
51816
- onChange: (E) => {
51817
- var O;
51818
- d && (d(E), (O = I == null ? void 0 : I.current) == null || O.blur());
51819
- },
51820
- ref: I,
51821
- onBlur: (E) => l && l(E),
51822
- components: {
51823
- ClearIndicator: xI,
51824
- DropdownIndicator: jb,
51825
- IndicatorSeparator: kI,
51826
- MultiValueRemove: SI,
51827
- // IndicatorsContainer,
51828
- ...k
51829
- },
51830
- id: n,
51831
- options: p,
51832
- styles: Ub,
51833
- name: a,
51834
- placeholder: i,
51835
- hideSelectedOptions: g,
51836
- closeMenuOnSelect: !v,
51837
- isDisabled: x,
51838
- noOptionsMessage: () => _ ?? "No options"
51839
- }
51840
- )
51841
- ] });
51796
+ return /* @__PURE__ */ Q(
51797
+ v1,
51798
+ {
51799
+ w: "full",
51800
+ fontFamily: T ?? "Degular",
51801
+ fontWeight: 500,
51802
+ onClick: () => {
51803
+ var O;
51804
+ (O = E == null ? void 0 : E.current) == null || O.focus();
51805
+ },
51806
+ children: [
51807
+ e && /* @__PURE__ */ f(
51808
+ dc,
51809
+ {
51810
+ fontSize: "1rem",
51811
+ lineHeight: "1.25rem",
51812
+ fontWeight: 600,
51813
+ fontFamily: T ?? "Degular",
51814
+ letterSpacing: "-0.004rem",
51815
+ mb: "12px",
51816
+ htmlFor: n,
51817
+ color: x ? oe.gray200 : oe.black300,
51818
+ children: e
51819
+ }
51820
+ ),
51821
+ /* @__PURE__ */ f(
51822
+ tie,
51823
+ {
51824
+ isMulti: v,
51825
+ isClearable: v,
51826
+ defaultInputValue: m,
51827
+ value: c,
51828
+ onChange: (O) => {
51829
+ var P;
51830
+ d && (d(O), (P = E == null ? void 0 : E.current) == null || P.blur());
51831
+ },
51832
+ ref: E,
51833
+ onBlur: (O) => l && l(O),
51834
+ components: {
51835
+ ClearIndicator: xI,
51836
+ DropdownIndicator: jb,
51837
+ IndicatorSeparator: kI,
51838
+ MultiValueRemove: SI,
51839
+ // IndicatorsContainer,
51840
+ ...M
51841
+ },
51842
+ id: n,
51843
+ options: p,
51844
+ styles: Ub,
51845
+ name: a,
51846
+ placeholder: i,
51847
+ hideSelectedOptions: g,
51848
+ closeMenuOnSelect: !v,
51849
+ isDisabled: x,
51850
+ noOptionsMessage: () => _ ?? "No options",
51851
+ openMenuOnFocus: k
51852
+ }
51853
+ )
51854
+ ]
51855
+ }
51856
+ );
51842
51857
  }, $9e = ({
51843
51858
  label: e,
51844
51859
  id: n,
@@ -23,7 +23,8 @@ export interface ISelectInputProps {
23
23
  disabled?: boolean;
24
24
  noOptionsMessage?: string;
25
25
  fontFamily?: string;
26
+ openMenuOnFocus?: boolean;
26
27
  }
27
28
  export declare const DropdownIndicator: (props: DropdownIndicatorProps) => import("react/jsx-runtime").JSX.Element;
28
- export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, openMenuOnFocus, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
29
30
  export declare const CreatableSelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",
@@ -108,4 +108,4 @@
108
108
  "url": "https://github.com/The-Mainstack/mainstack-design-system/issues"
109
109
  },
110
110
  "homepage": "https://github.com/The-Mainstack/mainstack-design-system#readme"
111
- }
111
+ }