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
|
|
51790
|
-
|
|
51791
|
-
const
|
|
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(
|
|
51795
|
-
|
|
51796
|
-
|
|
51797
|
-
|
|
51798
|
-
|
|
51799
|
-
|
|
51800
|
-
|
|
51801
|
-
|
|
51802
|
-
|
|
51803
|
-
|
|
51804
|
-
|
|
51805
|
-
|
|
51806
|
-
|
|
51807
|
-
|
|
51808
|
-
|
|
51809
|
-
|
|
51810
|
-
|
|
51811
|
-
|
|
51812
|
-
|
|
51813
|
-
|
|
51814
|
-
|
|
51815
|
-
|
|
51816
|
-
|
|
51817
|
-
|
|
51818
|
-
|
|
51819
|
-
|
|
51820
|
-
|
|
51821
|
-
|
|
51822
|
-
|
|
51823
|
-
|
|
51824
|
-
|
|
51825
|
-
|
|
51826
|
-
|
|
51827
|
-
|
|
51828
|
-
|
|
51829
|
-
|
|
51830
|
-
|
|
51831
|
-
|
|
51832
|
-
|
|
51833
|
-
|
|
51834
|
-
|
|
51835
|
-
|
|
51836
|
-
|
|
51837
|
-
|
|
51838
|
-
|
|
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.
|
|
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
|
+
}
|