visits-style 1.4.12 → 1.4.13
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/dist/forms/Select/index.d.ts +2 -0
- package/dist/index.cjs.js +2 -1
- package/dist/index.es.js +2 -1
- package/package.json +2 -2
|
@@ -22,6 +22,8 @@ export interface Props extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
|
22
22
|
optional?: boolean;
|
|
23
23
|
/** エラーが発生しても、エラーメッセージを出さないようにする */
|
|
24
24
|
noErrorMessage?: boolean;
|
|
25
|
+
/** 矢印をカスタムしたい場合 */
|
|
26
|
+
arrow?: ReactNode;
|
|
25
27
|
}
|
|
26
28
|
declare const Select: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSelectElement>>;
|
|
27
29
|
export default Select;
|
package/dist/index.cjs.js
CHANGED
|
@@ -336,6 +336,7 @@ const Select = React.forwardRef(({
|
|
|
336
336
|
outline,
|
|
337
337
|
optional,
|
|
338
338
|
noErrorMessage,
|
|
339
|
+
arrow,
|
|
339
340
|
...rest
|
|
340
341
|
}, ref) => {
|
|
341
342
|
const list = React.useMemo(() => options.map((item) => typeof item === "string" ? /* @__PURE__ */ jsxRuntime.jsx("option", { value: item, children: render ? render(item) : item }, item) : /* @__PURE__ */ jsxRuntime.jsx("option", { value: item.id, children: render ? render(item.name) : item.name }, item.id)), [options, render]);
|
|
@@ -344,7 +345,7 @@ const Select = React.forwardRef(({
|
|
|
344
345
|
placeholder && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "", disabled: !optional, children: placeholder }),
|
|
345
346
|
list
|
|
346
347
|
] }),
|
|
347
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDown, {}),
|
|
348
|
+
arrow || /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, {}),
|
|
348
349
|
/* @__PURE__ */ jsxRuntime.jsx(HelpMessage, { help, error, noErrorMessage })
|
|
349
350
|
] });
|
|
350
351
|
});
|
package/dist/index.es.js
CHANGED
|
@@ -328,6 +328,7 @@ const Select = forwardRef(({
|
|
|
328
328
|
outline,
|
|
329
329
|
optional,
|
|
330
330
|
noErrorMessage,
|
|
331
|
+
arrow,
|
|
331
332
|
...rest
|
|
332
333
|
}, ref) => {
|
|
333
334
|
const list = useMemo(() => options.map((item) => typeof item === "string" ? /* @__PURE__ */ jsx("option", { value: item, children: render ? render(item) : item }, item) : /* @__PURE__ */ jsx("option", { value: item.id, children: render ? render(item.name) : item.name }, item.id)), [options, render]);
|
|
@@ -336,7 +337,7 @@ const Select = forwardRef(({
|
|
|
336
337
|
placeholder && /* @__PURE__ */ jsx("option", { value: "", disabled: !optional, children: placeholder }),
|
|
337
338
|
list
|
|
338
339
|
] }),
|
|
339
|
-
/* @__PURE__ */ jsx(ChevronDown, {}),
|
|
340
|
+
arrow || /* @__PURE__ */ jsx(ChevronDown, {}),
|
|
340
341
|
/* @__PURE__ */ jsx(HelpMessage, { help, error, noErrorMessage })
|
|
341
342
|
] });
|
|
342
343
|
});
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "visits-style",
|
|
3
3
|
"repository": "https://github.com/visits-works/visits-style",
|
|
4
4
|
"homepage": "https://github.com/visits-works/visits-style",
|
|
5
|
-
"version": "1.4.
|
|
5
|
+
"version": "1.4.13",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.cjs.js",
|
|
8
8
|
"module": "./dist/index.es.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"styled-components": ">=6.0.5"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@floating-ui/react": "^0.26.
|
|
30
|
+
"@floating-ui/react": "^0.26.6",
|
|
31
31
|
"eslint-config-react-app": "^7.0.1",
|
|
32
32
|
"polished": "^4.2.2"
|
|
33
33
|
}
|