-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# Folders | ||
dist/ | ||
assets/ | ||
pages/ | ||
components/ | ||
styles/ | ||
|
||
# Files | ||
README.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# Folders | ||
dist/ | ||
assets/ | ||
.next/ | ||
.rollup.cache/ | ||
|
||
# Files | ||
README.md |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { useContext } from "react"; | ||
import { SelectContext } from "./SelectProvider"; | ||
const DisabledItem = ({ children }) => { | ||
const { classNames } = useContext(SelectContext); | ||
return (<div className={classNames && classNames.listDisabledItem | ||
? classNames.listDisabledItem | ||
: "px-2 py-2 cursor-not-allowed truncate text-gray-400 select-none"}> | ||
{children} | ||
</div>); | ||
}; | ||
export default DisabledItem; | ||
//# sourceMappingURL=DisabledItem.jsx.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from "react"; | ||
import Item from "./Item"; | ||
import { useSelectContext } from "./SelectProvider"; | ||
const GroupItem = ({ item, primaryColor }) => { | ||
const { classNames, formatGroupLabel } = useSelectContext(); | ||
return (<> | ||
{item.options.length > 0 && (<> | ||
{formatGroupLabel ? (<>{formatGroupLabel(item)}</>) : (<div className={classNames && classNames.listGroupLabel | ||
? classNames.listGroupLabel | ||
: "pr-2 py-2 cursor-default select-none truncate font-bold text-gray-700"}> | ||
{item.label} | ||
</div>)} | ||
|
||
{item.options.map((item, index) => (<Item primaryColor={primaryColor} key={index} item={item}/>))} | ||
</>)} | ||
</>); | ||
}; | ||
export default GroupItem; | ||
//# sourceMappingURL=GroupItem.jsx.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from "react"; | ||
export const CloseIcon = ({ className = "" }) => { | ||
return (<svg className={className} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> | ||
<path fillRule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clipRule="evenodd"/> | ||
</svg>); | ||
}; | ||
export const ChevronIcon = ({ className = "" }) => { | ||
return (<svg className={className} fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> | ||
<path fillRule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clipRule="evenodd"/> | ||
</svg>); | ||
}; | ||
export const SearchIcon = ({ className = "" }) => { | ||
return (<svg className={className} fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> | ||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/> | ||
</svg>); | ||
}; | ||
//# sourceMappingURL=Icons.jsx.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.