@nextui-org/react 1.0.0-beta.6 → 1.0.0-beta.9-dbg1

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.
Files changed (278) hide show
  1. package/cjs/avatar/avatar.js +1 -1
  2. package/cjs/avatar/avatar.styles.js +1 -1
  3. package/cjs/backdrop/backdrop.styles.js +1 -1
  4. package/cjs/button/button-icon.js +1 -1
  5. package/cjs/button/button.js +1 -1
  6. package/cjs/button/button.styles.js +1 -1
  7. package/cjs/button/utils.js +1 -1
  8. package/cjs/card/card.js +1 -1
  9. package/cjs/card/card.styles.js +1 -1
  10. package/cjs/card/index.js +1 -1
  11. package/cjs/card/use-card.js +1 -0
  12. package/cjs/checkbox/checkbox-context.js +1 -1
  13. package/cjs/checkbox/checkbox-group.js +1 -1
  14. package/cjs/checkbox/checkbox.js +1 -1
  15. package/cjs/checkbox/checkbox.styles.js +1 -1
  16. package/cjs/checkbox/use-checkbox-group.js +1 -0
  17. package/cjs/checkbox/use-checkbox.js +1 -0
  18. package/cjs/collapse/collapse.styles.js +1 -1
  19. package/cjs/css-baseline/css-baseline.js +1 -1
  20. package/cjs/dropdown/base/dropdown-item-base.js +1 -0
  21. package/cjs/dropdown/dropdown-button.js +1 -0
  22. package/cjs/dropdown/dropdown-context.js +1 -0
  23. package/cjs/dropdown/dropdown-icon.js +1 -0
  24. package/cjs/dropdown/dropdown-item.js +1 -0
  25. package/cjs/dropdown/dropdown-menu.js +1 -0
  26. package/cjs/dropdown/dropdown-section.js +1 -0
  27. package/cjs/dropdown/dropdown-trigger.js +1 -0
  28. package/cjs/dropdown/dropdown-types.js +1 -0
  29. package/cjs/dropdown/dropdown.js +1 -0
  30. package/cjs/dropdown/dropdown.styles.js +1 -0
  31. package/cjs/dropdown/index.js +1 -0
  32. package/cjs/dropdown/use-dropdown.js +1 -0
  33. package/cjs/grid/grid-container.js +1 -1
  34. package/cjs/image/image.js +1 -1
  35. package/cjs/image/image.styles.js +1 -1
  36. package/cjs/index.js +1 -1
  37. package/cjs/input/input.styles.js +1 -1
  38. package/cjs/link/link.js +1 -1
  39. package/cjs/link/link.styles.js +1 -1
  40. package/cjs/modal/modal.styles.js +1 -1
  41. package/cjs/pagination/pagination.styles.js +1 -1
  42. package/cjs/popover/popover-content.js +1 -1
  43. package/cjs/popover/popover-trigger.js +1 -1
  44. package/cjs/popover/popover.js +1 -1
  45. package/cjs/popover/popover.styles.js +1 -1
  46. package/cjs/popover/use-popover.js +1 -1
  47. package/cjs/popover/utils.js +1 -1
  48. package/cjs/radio/index.js +1 -1
  49. package/cjs/radio/radio-context.js +1 -1
  50. package/cjs/radio/radio-group.js +1 -1
  51. package/cjs/radio/radio.js +1 -1
  52. package/cjs/radio/radio.styles.js +1 -1
  53. package/cjs/radio/use-radio-group.js +1 -0
  54. package/cjs/radio/use-radio.js +1 -0
  55. package/cjs/snippet/snippet.styles.js +1 -1
  56. package/cjs/switch/switch.styles.js +1 -1
  57. package/cjs/table/table-checkbox-cell.js +1 -1
  58. package/cjs/table/table-context.js +1 -1
  59. package/cjs/table/table-select-all-checkbox.js +1 -1
  60. package/cjs/table/table.js +1 -1
  61. package/cjs/table/table.styles.js +1 -1
  62. package/cjs/table/utils.js +1 -1
  63. package/cjs/theme/colors/blue.js +1 -0
  64. package/cjs/theme/colors/cyan.js +1 -0
  65. package/cjs/theme/colors/gray.js +1 -0
  66. package/cjs/theme/colors/green.js +1 -0
  67. package/cjs/theme/colors/index.js +1 -0
  68. package/cjs/theme/colors/pink.js +1 -0
  69. package/cjs/theme/colors/purple.js +1 -0
  70. package/cjs/theme/colors/red.js +1 -0
  71. package/cjs/theme/colors/yellow.js +1 -0
  72. package/cjs/theme/common.js +1 -1
  73. package/cjs/theme/dark-theme.js +1 -1
  74. package/cjs/theme/index.js +1 -1
  75. package/cjs/theme/light-theme.js +1 -1
  76. package/cjs/theme/shared-css.js +1 -0
  77. package/cjs/theme/stitches.config.js +1 -1
  78. package/cjs/tooltip/tooltip.styles.js +1 -1
  79. package/cjs/user/index.js +1 -1
  80. package/cjs/user/user-link.js +1 -1
  81. package/cjs/user/user.js +1 -1
  82. package/cjs/user/user.styles.js +1 -1
  83. package/cjs/utils/checkmark.js +1 -0
  84. package/cjs/utils/color.js +1 -1
  85. package/cjs/utils/dom.js +1 -1
  86. package/cjs/utils/icons.js +1 -1
  87. package/cjs/utils/prop-types.js +1 -1
  88. package/dropdown/package.json +6 -0
  89. package/esm/avatar/avatar.js +1 -1
  90. package/esm/avatar/avatar.styles.js +1 -1
  91. package/esm/backdrop/backdrop.styles.js +1 -1
  92. package/esm/button/button-icon.js +1 -1
  93. package/esm/button/button.js +1 -1
  94. package/esm/button/button.styles.js +1 -1
  95. package/esm/button/utils.js +1 -1
  96. package/esm/card/card.js +1 -1
  97. package/esm/card/card.styles.js +1 -1
  98. package/esm/card/index.js +1 -1
  99. package/esm/card/use-card.js +1 -0
  100. package/esm/checkbox/checkbox-context.js +1 -1
  101. package/esm/checkbox/checkbox-group.js +1 -1
  102. package/esm/checkbox/checkbox.js +1 -1
  103. package/esm/checkbox/checkbox.styles.js +1 -1
  104. package/esm/checkbox/use-checkbox-group.js +1 -0
  105. package/esm/checkbox/use-checkbox.js +1 -0
  106. package/esm/collapse/collapse.styles.js +1 -1
  107. package/esm/css-baseline/css-baseline.js +1 -1
  108. package/esm/dropdown/base/dropdown-item-base.js +1 -0
  109. package/esm/dropdown/dropdown-button.js +1 -0
  110. package/esm/dropdown/dropdown-context.js +1 -0
  111. package/esm/dropdown/dropdown-icon.js +1 -0
  112. package/esm/dropdown/dropdown-item.js +1 -0
  113. package/esm/dropdown/dropdown-menu.js +1 -0
  114. package/esm/dropdown/dropdown-section.js +1 -0
  115. package/esm/dropdown/dropdown-trigger.js +1 -0
  116. package/esm/dropdown/dropdown-types.js +1 -0
  117. package/esm/dropdown/dropdown.js +1 -0
  118. package/esm/dropdown/dropdown.styles.js +1 -0
  119. package/esm/dropdown/index.js +1 -0
  120. package/esm/dropdown/use-dropdown.js +1 -0
  121. package/esm/grid/grid-container.js +1 -1
  122. package/esm/image/image.js +1 -1
  123. package/esm/image/image.styles.js +1 -1
  124. package/esm/index.js +1 -1
  125. package/esm/input/input.styles.js +1 -1
  126. package/esm/link/link.js +1 -1
  127. package/esm/link/link.styles.js +1 -1
  128. package/esm/modal/modal.styles.js +1 -1
  129. package/esm/pagination/pagination.styles.js +1 -1
  130. package/esm/popover/popover-content.js +1 -1
  131. package/esm/popover/popover-trigger.js +1 -1
  132. package/esm/popover/popover.js +1 -1
  133. package/esm/popover/popover.styles.js +1 -1
  134. package/esm/popover/use-popover.js +1 -1
  135. package/esm/popover/utils.js +1 -1
  136. package/esm/radio/index.js +1 -1
  137. package/esm/radio/radio-context.js +1 -1
  138. package/esm/radio/radio-group.js +1 -1
  139. package/esm/radio/radio.js +1 -1
  140. package/esm/radio/radio.styles.js +1 -1
  141. package/esm/radio/use-radio-group.js +1 -0
  142. package/esm/radio/use-radio.js +1 -0
  143. package/esm/snippet/snippet.styles.js +1 -1
  144. package/esm/switch/switch.styles.js +1 -1
  145. package/esm/table/table-checkbox-cell.js +1 -1
  146. package/esm/table/table-context.js +1 -1
  147. package/esm/table/table-select-all-checkbox.js +1 -1
  148. package/esm/table/table.js +1 -1
  149. package/esm/table/table.styles.js +1 -1
  150. package/esm/table/utils.js +1 -1
  151. package/esm/theme/colors/blue.js +1 -0
  152. package/esm/theme/colors/cyan.js +1 -0
  153. package/esm/theme/colors/gray.js +1 -0
  154. package/esm/theme/colors/green.js +1 -0
  155. package/esm/theme/colors/index.js +1 -0
  156. package/esm/theme/colors/pink.js +1 -0
  157. package/esm/theme/colors/purple.js +1 -0
  158. package/esm/theme/colors/red.js +1 -0
  159. package/esm/theme/colors/yellow.js +1 -0
  160. package/esm/theme/common.js +1 -1
  161. package/esm/theme/dark-theme.js +1 -1
  162. package/esm/theme/index.js +1 -1
  163. package/esm/theme/light-theme.js +1 -1
  164. package/esm/theme/shared-css.js +1 -0
  165. package/esm/theme/stitches.config.js +1 -1
  166. package/esm/tooltip/tooltip.styles.js +1 -1
  167. package/esm/user/index.js +1 -1
  168. package/esm/user/user-link.js +1 -1
  169. package/esm/user/user.js +1 -1
  170. package/esm/user/user.styles.js +1 -1
  171. package/esm/utils/checkmark.js +1 -0
  172. package/esm/utils/color.js +1 -1
  173. package/esm/utils/dom.js +1 -1
  174. package/esm/utils/icons.js +1 -1
  175. package/esm/utils/prop-types.js +1 -1
  176. package/package.json +29 -24
  177. package/types/avatar/avatar-group.styles.d.ts +396 -174
  178. package/types/avatar/avatar.d.ts +2372 -11
  179. package/types/avatar/avatar.styles.d.ts +2570 -98
  180. package/types/backdrop/backdrop.styles.d.ts +594 -261
  181. package/types/button/button-group.styles.d.ts +198 -87
  182. package/types/button/button-icon.d.ts +202 -89
  183. package/types/button/button.d.ts +5 -3
  184. package/types/button/button.styles.d.ts +1636 -189
  185. package/types/card/card.d.ts +8 -9
  186. package/types/card/card.styles.d.ts +3103 -350
  187. package/types/card/use-card.d.ts +301 -0
  188. package/types/checkbox/checkbox-context.d.ts +3 -11
  189. package/types/checkbox/checkbox-group.d.ts +9 -28
  190. package/types/checkbox/checkbox.d.ts +8 -40
  191. package/types/checkbox/checkbox.styles.d.ts +2193 -2021
  192. package/types/checkbox/use-checkbox-group.d.ts +30 -0
  193. package/types/checkbox/use-checkbox.d.ts +26 -0
  194. package/types/code/code.styles.d.ts +396 -174
  195. package/types/col/col.styles.d.ts +198 -87
  196. package/types/collapse/collapse.styles.d.ts +1199 -533
  197. package/types/container/container.styles.d.ts +198 -87
  198. package/types/divider/divider.styles.d.ts +396 -174
  199. package/types/dropdown/base/dropdown-item-base.d.ts +19 -0
  200. package/types/dropdown/dropdown-button.d.ts +3689 -0
  201. package/types/dropdown/dropdown-context.d.ts +728 -0
  202. package/types/dropdown/dropdown-icon.d.ts +9 -0
  203. package/types/dropdown/dropdown-item.d.ts +31 -0
  204. package/types/dropdown/dropdown-menu.d.ts +30 -0
  205. package/types/dropdown/dropdown-section.d.ts +29 -0
  206. package/types/dropdown/dropdown-trigger.d.ts +11 -0
  207. package/types/dropdown/dropdown-types.d.ts +24 -0
  208. package/types/dropdown/dropdown.d.ts +24 -0
  209. package/types/dropdown/dropdown.styles.d.ts +11869 -0
  210. package/types/dropdown/index.d.ts +9 -0
  211. package/types/dropdown/use-dropdown.d.ts +389 -0
  212. package/types/grid/grid.styles.d.ts +396 -174
  213. package/types/image/image.d.ts +5 -18
  214. package/types/image/image.styles.d.ts +594 -261
  215. package/types/index.d.ts +5 -1
  216. package/types/input/input-password.d.ts +1 -1
  217. package/types/input/input-props.d.ts +2 -2
  218. package/types/input/input.styles.d.ts +2367 -1146
  219. package/types/link/link.styles.d.ts +396 -174
  220. package/types/loading/loading.styles.d.ts +1199 -533
  221. package/types/modal/modal.styles.d.ts +1199 -533
  222. package/types/pagination/pagination.styles.d.ts +1199 -533
  223. package/types/popover/popover-content.d.ts +1147 -2
  224. package/types/popover/popover-context.d.ts +120 -0
  225. package/types/popover/popover.d.ts +4 -4
  226. package/types/popover/popover.styles.d.ts +2374 -88
  227. package/types/popover/use-popover.d.ts +83 -4
  228. package/types/popover/utils.d.ts +3 -1
  229. package/types/progress/progress.d.ts +1 -1
  230. package/types/progress/progress.styles.d.ts +396 -174
  231. package/types/radio/index.d.ts +2 -2
  232. package/types/radio/radio-context.d.ts +22 -13
  233. package/types/radio/radio-group.d.ts +9 -78
  234. package/types/radio/radio.d.ts +10 -66
  235. package/types/radio/radio.styles.d.ts +3335 -562
  236. package/types/radio/use-radio-group.d.ts +26 -0
  237. package/types/radio/use-radio.d.ts +31 -0
  238. package/types/row/row.styles.d.ts +198 -87
  239. package/types/snippet/snippet.styles.d.ts +803 -359
  240. package/types/spacer/spacer.styles.d.ts +198 -87
  241. package/types/switch/switch.d.ts +1 -1
  242. package/types/switch/switch.styles.d.ts +803 -359
  243. package/types/table/table-column-header.d.ts +198 -87
  244. package/types/table/table-sort-icon.d.ts +198 -87
  245. package/types/table/table.styles.d.ts +3745 -1856
  246. package/types/table/utils.d.ts +5 -29
  247. package/types/text/text.styles.d.ts +198 -87
  248. package/types/textarea/textarea.d.ts +1 -1
  249. package/types/theme/colors/blue.d.ts +24 -0
  250. package/types/theme/colors/cyan.d.ts +24 -0
  251. package/types/theme/colors/gray.d.ts +24 -0
  252. package/types/theme/colors/green.d.ts +24 -0
  253. package/types/theme/colors/index.d.ts +8 -0
  254. package/types/theme/colors/pink.d.ts +24 -0
  255. package/types/theme/colors/purple.d.ts +24 -0
  256. package/types/theme/colors/red.d.ts +24 -0
  257. package/types/theme/colors/yellow.d.ts +24 -0
  258. package/types/theme/common.d.ts +449 -392
  259. package/types/theme/dark-theme.d.ts +112 -22
  260. package/types/theme/light-theme.d.ts +91 -13
  261. package/types/theme/shared-css.d.ts +5237 -0
  262. package/types/theme/stitches.config.d.ts +3120 -4934
  263. package/types/theme/types.d.ts +3 -0
  264. package/types/tooltip/tooltip.d.ts +1 -1
  265. package/types/tooltip/tooltip.styles.d.ts +803 -359
  266. package/types/user/index.d.ts +1 -1
  267. package/types/user/user-link.d.ts +4 -11
  268. package/types/user/user.styles.d.ts +787 -1277
  269. package/types/utils/checkmark.d.ts +19 -0
  270. package/types/utils/color.d.ts +1 -0
  271. package/types/utils/dom.d.ts +5 -2
  272. package/types/utils/drip.d.ts +199 -88
  273. package/types/utils/prop-types.d.ts +4 -0
  274. package/umd/nextui.js +14191 -17827
  275. package/umd/nextui.min.js +1 -1
  276. package/cjs/checkbox/utils.js +0 -1
  277. package/esm/checkbox/utils.js +0 -1
  278. package/types/checkbox/utils.d.ts +0 -288
@@ -1 +1 @@
1
- import{styled as o,sharedVisuallyHidden as r,sharedFocus as a}from"../theme/stitches.config";export const StyledRadioInput=o("input",{},r);export const StyledRadioLabel=o("span",{fontSize:"$$radioSize",us:"none",d:"inline-flex",ai:"center",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},disabled:{true:{color:"$accents4"}}}});export const StyledRadioPoint=o("span",{size:"$$radioSize",br:"$$radioRadii",position:"relative",d:"inline-block",mr:"calc($$radioSize * 0.375)","&:after":{content:"",d:"block",position:"absolute",size:"$$radioSize",br:"$$radioRadii",boxSizing:"border-box",border:"2px solid $border"}},a);export const StyledRadio=o("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${StyledRadioPoint}`]:{transition:"none","&:after":{transition:"none"}}},variants:{color:{default:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primaryDark"},primary:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primaryDark"},secondary:{$$radioColor:"$colors$secondary",$$radioColorHover:"$colors$secondaryDark"},success:{$$radioColor:"$colors$success",$$radioColorHover:"$colors$successDark"},warning:{$$radioColor:"$colors$warning",$$radioColorHover:"$colors$warningDark"},error:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorDark"}},size:{xs:{$$radioSize:"$space$7"},sm:{$$radioSize:"$space$8"},md:{$$radioSize:"$space$9"},lg:{$$radioSize:"$space$10"},xl:{$$radioSize:"$space$11"}},disabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},squared:{true:{$$radioRadii:"$space$1"},false:{$$radioRadii:"$radii$rounded"}},active:{true:{[`& ${StyledRadioPoint}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}},"&:hover":{[`& ${StyledRadioPoint}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}}},animated:{true:{[`& ${StyledRadioPoint}`]:{transition:"$default","&:after":{transition:"$default"}}},false:{[`& ${StyledRadioPoint}`]:{transition:"none","&:after":{transition:"none"}}}}},defaultVariants:{size:"md",squared:!1,animated:!0},compoundVariants:[{active:!1,disabled:!1,css:{"&:hover":{[`& ${StyledRadioPoint}`]:{bg:"$border"}}}}]});export const StyledRadioGroup=o("div",{border:0,margin:0,padding:0,display:"flex",fd:"column",variants:{size:{xs:{$$radioGroupGap:"$space$7"},sm:{$$radioGroupGap:"$space$8"},md:{$$radioGroupGap:"$space$9"},lg:{$$radioGroupGap:"$space$10"},xl:{$$radioGroupGap:"$space$11"}},row:{true:{fd:"row",[`& ${StyledRadio}`]:{marginTop:0,marginRight:"$$radioGroupGap"}},false:{[`& ${StyledRadio}`]:{marginTop:"$$radioGroupGap",marginRight:0}}}},defaultVariants:{row:!1}});export const StyledRadioDescription=o("span",{color:"$accents4",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)"});
1
+ import{styled as o}from"../theme/stitches.config";import{cssFocusVisible as r}from"../theme/shared-css";export const StyledRadioText=o("span",{fontSize:"$$radioSize",us:"none",d:"inline-flex",ai:"center",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},isDisabled:{true:{color:"$accents5"}},isInvalid:{true:{color:"$error"}}}});export const StyledRadioPoint=o("span",{size:"$$radioSize",br:"$$radioRadii",position:"relative",d:"inline-block",mr:"calc($$radioSize * 0.375)","&:after":{content:"",d:"block",position:"absolute",size:"$$radioSize",br:"$$radioRadii",boxSizing:"border-box",border:"2px solid $border"}},r);export const StyledRadioLabel=o("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${StyledRadioPoint}`]:{transition:"none","&:after":{transition:"none"}}},variants:{color:{default:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primarySolidHover"},primary:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primarySolidHover"},secondary:{$$radioColor:"$colors$secondary",$$radioColorHover:"$colors$secondarySolidHover"},success:{$$radioColor:"$colors$success",$$radioColorHover:"$colors$successSolidHover"},warning:{$$radioColor:"$colors$warning",$$radioColorHover:"$colors$warningSolidHover"},error:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorSolidHover"}},size:{xs:{$$radioSize:"$space$7"},sm:{$$radioSize:"$space$8"},md:{$$radioSize:"$space$9"},lg:{$$radioSize:"$space$10"},xl:{$$radioSize:"$space$11"}},isHovered:{true:{}},isInvalid:{true:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorSolidHover",[`& ${StyledRadioPoint}`]:{"&:after":{borderColor:"$colors$error"}}}},isDisabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},isSquared:{true:{$$radioRadii:"$radii$squared"},false:{$$radioRadii:"$radii$rounded"}},isChecked:{true:{[`& ${StyledRadioPoint}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},disableAnimation:{true:{[`& ${StyledRadioPoint}`]:{transition:"none","&:after":{transition:"none"}}},false:{[`& ${StyledRadioPoint}`]:{transition:"$default","&:after":{transition:"$default"}}}}},defaultVariants:{size:"md",isSquared:!1,disableAnimation:!1},compoundVariants:[{isChecked:!0,isHovered:!0,css:{[`& ${StyledRadioPoint}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}},{isChecked:!0,isDisabled:!0,isHovered:!0,css:{[`& ${StyledRadioPoint}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}}}},{isChecked:!1,isDisabled:!1,isHovered:!0,css:{[`& ${StyledRadioPoint}`]:{bg:"$border"}}}]});export const StyledRadioDescription=o("span",{color:"$accents7",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)",variants:{isInvalid:{true:{color:"$red500"}},isDisabled:{true:{color:"$accents5"}}}});export const StyledRadioContainer=o("div",{w:"initial",position:"relative",d:"flex",fd:"row",ai:"center",jc:"flex-start"});export const StyledRadioGroupLabel=o("label",{d:"block",fontWeight:"$normal",fontSize:"calc($$checkboxSize * 0.9)",color:"$accents8",mb:"$3"});export const StyledRadioGroup=o("div",{border:0,margin:0,padding:0,display:"flex",fd:"column",variants:{size:{xs:{$$radioGroupGap:"$space$7"},sm:{$$radioGroupGap:"$space$8"},md:{$$radioGroupGap:"$space$9"},lg:{$$radioGroupGap:"$space$10"},xl:{$$radioGroupGap:"$space$11"}}}});export const StyledRadioGroupContainer=o("div",{display:"flex",flexDirection:"column",variants:{isRow:{true:{mt:0,flexDirection:"row",[`& ${StyledRadioLabel}:not(:last-child)`]:{mr:"$$radioSize"}},false:{mr:0,flexDirection:"column",[`& ${StyledRadioLabel}:not(:first-child)`]:{mt:"$$radioSize"}}}},defaultVariants:{isRow:!1}});
@@ -0,0 +1 @@
1
+ import{useMemo as o}from"react";import{useRadioGroupState as r}from"@react-stately/radio";import{useRadioGroup as a}from"@react-aria/radio";export const useRadioGroup=t=>{const{size:i="md",color:e="default",labelColor:l="default",orientation:d="vertical",isRequired:s,validationState:p,...u}=t,n=o((()=>({...u,orientation:d})),[u]),c=r(n),{radioGroupProps:m,labelProps:f}=a(n,c);return{size:i,color:e,orientation:d,labelColor:l,isRequired:s,validationState:p,radioGroupState:c,radioGroupProps:m,labelProps:f}};
@@ -0,0 +1 @@
1
+ import{useRef as o,useMemo as i}from"react";import{useRadio as e}from"@react-aria/radio";import{useHover as r}from"@react-aria/interactions";import a from"../use-warning";import{__DEV__ as t}from"../utils/assertion";import{useRadioGroupContext as l}from"./radio-context";export const useRadio=s=>{var d,n,u;const p=l(),{size:c=(null!=(d=p.size)?d:"md"),color:m=(null!=(n=p.color)?n:"default"),labelColor:v=(null!=(u=p.labelColor)?u:"default"),autoFocus:f,isSquared:b=!1,disableAnimation:R=!1,...h}=s;p&&t&&(void 0!==h.checked&&a('Remove props "checked" if in the Radio.Group.',"Radio"),void 0===h.value&&a('Props "value" must be defined if in the Radio.Group.',"Radio"));const P=o(null),{inputProps:S}=e(h,p.radioGroupState,P),z=i((()=>{var o;return null!=(o=S.disabled)&&o}),[S.disabled]),{hoverProps:C,isHovered:G}=r({isDisabled:z});return{size:c,color:m,inputRef:P,autoFocus:f,isDisabled:z,labelColor:v,isInvalid:i((()=>"invalid"===p.validationState),[p.validationState]),isHovered:G,isSquared:b,disableAnimation:R,inputProps:S,hoverProps:C}};
@@ -1 +1 @@
1
- import{styled as o,sharedFocus as r}from"../theme/stitches.config";export const StyledSnippet=o("div",{display:"flex",position:"relative",width:"initial",maxWidth:"100%",padding:"calc($space$lg * 0.75) $space$lg",br:"$lg",bg:"$background",variants:{color:{default:{$$snippetBorderColor:"$border",$$snippetBgColor:"$background",color:"$text"},primary:{$$snippetBorderColor:"$border",$$snippetBgColor:"$primary",color:"$text"},success:{$$snippetBorderColor:"$success",$$snippetBgColor:"$background",color:"$success"},warning:{$$snippetBorderColor:"$warning",$$snippetBgColor:"$background",color:"$warning"},error:{$$snippetBorderColor:"$error",$$snippetBgColor:"$background",color:"$error"},secondary:{$$snippetBorderColor:"$secondary",$$snippetBgColor:"$background",color:"$secondary"},invert:{$$snippetBorderColor:"$foreground",$$snippetBgColor:"$foreground",color:"$background"}},borderWeight:{light:{$$borderWeight:"$light"},normal:{$$borderWeight:"$normal"},bold:{$$borderWeight:"$bold"},extrabold:{$$borderWeight:"$extrabold"},black:{$$borderWeight:"$black"}},bordered:{true:{border:"$$borderWeight solid $$snippetBorderColor"}},filled:{true:{backgroundColor:"$$snippetBgColor"}}},defaultVariants:{color:"default",borderWeight:"normal",filled:!1}});export const StyledSnippetPre=o("pre",{margin:0,padding:0,border:"none",br:0,bgColor:"transparent",color:"inherit",fontSize:"$xs","*":{margin:0,padding:0,fontSize:"inherit",color:"inherit"},variants:{withCopyButton:{true:{width:"calc(100% - 2 * $lg)"},false:{width:"100%"}}}});export const StyledSnippetCopyButtonIcon=o("svg",{});export const StyledSnippetCopyButton=o("button",{display:"inline-flex",jc:"center",border:"none",ai:"flex-start",bg:"transparent",width:"calc(2 * $space$lg)",br:"$xs",color:"inherit",transition:"opacity 0.2s ease 0s",cursor:"pointer",us:"none","@motion":{transition:"none"},"&:hover":{opacity:"0.7"},[`& ${StyledSnippetCopyButtonIcon}`]:{path:{fill:"$accents6"}}},r);
1
+ import{styled as r}from"../theme/stitches.config";import{sharedFocus as o}from"../theme/shared-css";export const StyledSnippet=r("div",{display:"flex",position:"relative",width:"initial",maxWidth:"100%",padding:"calc($space$lg * 0.75) $space$lg",br:"$lg",bg:"$background",variants:{color:{default:{$$snippetBorderColor:"$border",$$snippetBgColor:"$background",color:"$text"},primary:{$$snippetBorderColor:"$border",$$snippetBgColor:"$primary",color:"$text"},success:{$$snippetBorderColor:"$success",$$snippetBgColor:"$background",color:"$success"},warning:{$$snippetBorderColor:"$warning",$$snippetBgColor:"$background",color:"$warning"},error:{$$snippetBorderColor:"$error",$$snippetBgColor:"$background",color:"$error"},secondary:{$$snippetBorderColor:"$secondary",$$snippetBgColor:"$background",color:"$secondary"},invert:{$$snippetBorderColor:"$foreground",$$snippetBgColor:"$foreground",color:"$background"}},borderWeight:{light:{$$borderWeight:"$light"},normal:{$$borderWeight:"$normal"},bold:{$$borderWeight:"$bold"},extrabold:{$$borderWeight:"$extrabold"},black:{$$borderWeight:"$black"}},bordered:{true:{border:"$$borderWeight solid $$snippetBorderColor"}},filled:{true:{backgroundColor:"$$snippetBgColor"}}},defaultVariants:{color:"default",borderWeight:"normal",filled:!1}});export const StyledSnippetPre=r("pre",{margin:0,padding:0,border:"none",br:0,bgColor:"transparent",color:"inherit",fontSize:"$sm","*":{margin:0,padding:0,fontSize:"inherit",color:"inherit"},variants:{withCopyButton:{true:{width:"calc(100% - 2 * $lg)"},false:{width:"100%"}}}});export const StyledSnippetCopyButtonIcon=r("svg",{});export const StyledSnippetCopyButton=r("button",{display:"inline-flex",jc:"center",border:"none",ai:"flex-start",bg:"transparent",width:"calc(2 * $space$lg)",br:"$xs",color:"inherit",transition:"opacity 0.2s ease 0s",cursor:"pointer",us:"none","@motion":{transition:"none"},"&:hover":{opacity:"0.7"},[`& ${StyledSnippetCopyButtonIcon}`]:{path:{fill:"$accents6"}}},o);
@@ -1 +1 @@
1
- import{styled as t,sharedFocus as i,sharedVisuallyHidden as $}from"../theme/stitches.config";export const StyledSwitchContainer=t("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primaryDark"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primaryDark"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondaryDark"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successDark"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningDark"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorDark"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}});export const StyledSwitchInput=t("input",{},$);export const StyledSwitchCircle=t("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"50%",transform:"translateY(-50%)",left:"calc($$switchWidth / 15)",transition:"left 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}});export const StyledSwitch=t("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor",[`& ${StyledSwitchCircle}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7)"},"&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${StyledSwitchCircle}`]:{left:"calc(($$switchWidth / 15) - ($$switchBorderW / 2))",bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${StyledSwitchCircle}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${StyledSwitchCircle}`]:{bg:"$accents3"}}},animated:{true:{"&:active":{[`& ${StyledSwitchCircle}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${StyledSwitchCircle}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${StyledSwitchCircle}`]:{bg:"$accents2"},"&:hover:not(&:active)":{bg:"$accents3"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{animated:!0,checked:!1,css:{"&:active":{[`& ${StyledSwitchCircle}`]:{left:"calc($$switchWidth / 7.5)"}}}},{animated:!0,checked:!0,css:{"&:active":{[`& ${StyledSwitchCircle}`]:{left:"calc(100% - ($$switchWidth / 5) - $$switchHeight * 0.7)"}}}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${StyledSwitchCircle}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7 + ($$switchBorderW / 2))",bg:"$background"}}}]},i);
1
+ import{styled as t}from"../theme/stitches.config";import{sharedFocus as i,sharedVisuallyHidden as o}from"../theme/shared-css";export const StyledSwitchContainer=t("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primarySolidHover"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondarySolidHover"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successSolidHover"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningSolidHover"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorSolidHover"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}});export const StyledSwitchInput=t("input",{},o);export const StyledSwitchCircle=t("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"50%",transform:"translateY(-50%)",left:"calc($$switchWidth / 15)",transition:"left 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}});export const StyledSwitch=t("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor",[`& ${StyledSwitchCircle}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7)"},"&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${StyledSwitchCircle}`]:{left:"calc(($$switchWidth / 15) - ($$switchBorderW / 2))",bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${StyledSwitchCircle}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${StyledSwitchCircle}`]:{bg:"$accents4"}}},animated:{true:{"&:active":{[`& ${StyledSwitchCircle}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${StyledSwitchCircle}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${StyledSwitchCircle}`]:{bg:"$accents0"},"&:hover:not(&:active)":{bg:"$accents4"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{animated:!0,checked:!1,css:{"&:active":{[`& ${StyledSwitchCircle}`]:{left:"calc($$switchWidth / 7.5)"}}}},{animated:!0,checked:!0,css:{"&:active":{[`& ${StyledSwitchCircle}`]:{left:"calc(100% - ($$switchWidth / 5) - $$switchHeight * 0.7)"}}}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${StyledSwitchCircle}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7 + ($$switchBorderW / 2))",bg:"$background"}}}]},i);
@@ -1 +1 @@
1
- import e,{useRef as r,useImperativeHandle as o}from"react";import{useTableCell as t,useTableSelectionCheckbox as l}from"@react-aria/table";import{useFocusRing as i}from"@react-aria/focus";import{mergeProps as a}from"@react-aria/utils";import c from"../checkbox";import{StyledTableCell as s}from"./table.styles";import{mapPropsToCheckboxAttr as m}from"./utils";import n from"../utils/clsx";import{jsx as p}from"react/jsx-runtime";const u=e.forwardRef((({cell:e,state:u,color:f,animated:b,...x},d)=>{const h=r(null);o(d,(()=>null==h?void 0:h.current));const{gridCellProps:k}=t({node:e},u,h),{checkboxProps:y}=l({key:(null==e?void 0:e.parentKey)||e.key},u),{isFocusVisible:N,focusProps:C}=i(),P=m(y);return p(s,{ref:h,isFocusVisible:N,className:n("nextui-table-checkbox-cell",x.className),...a(k,C,x),children:p(c,{...P,color:f,animated:b,css:{display:"inherit"}})})}));u.displayName="NextUI.TableCheckboxCell",u.toString=()=>".nextui-table-checkbox-cell";export default u;
1
+ import e,{useRef as r,useImperativeHandle as o}from"react";import{useTableCell as t,useTableSelectionCheckbox as l}from"@react-aria/table";import{useFocusRing as i}from"@react-aria/focus";import{mergeProps as a}from"@react-aria/utils";import c from"../checkbox";import{StyledTableCell as s}from"./table.styles";import m from"../utils/clsx";import{jsx as n}from"react/jsx-runtime";const p=e.forwardRef((({cell:e,state:p,color:u,animated:f,...b},x)=>{const d=r(null);o(x,(()=>null==d?void 0:d.current));const{gridCellProps:h}=t({node:e},p,d),{checkboxProps:k}=l({key:(null==e?void 0:e.parentKey)||e.key},p),{isFocusVisible:y,focusProps:N}=i();return n(s,{ref:d,isFocusVisible:y,className:m("nextui-table-checkbox-cell",b.className),...a(h,N,b),children:n(c,{...k,color:u,disableAnimation:!f,css:{display:"inherit"}})})}));p.displayName="NextUI.TableCheckboxCell",p.toString=()=>".nextui-table-checkbox-cell";export default p;
@@ -1 +1 @@
1
- import e from"react";import{jsx as t}from"react/jsx-runtime";const o={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0};export const TableContext=e.createContext(o);export const useTableContext=()=>e.useContext(TableContext);export default{Provider:({children:r,defaultValues:n})=>{const[a,l]=e.useState((null==n?void 0:n.footerAlign)||o.footerAlign),[s,i]=e.useState(void 0===(null==n?void 0:n.animated)?o.animated:null==n?void 0:n.animated),[u,c]=e.useState(null==n?void 0:n.collection),[d,m]=e.useState(o.rowsPerPage),[P,g]=e.useState(o.currentPage),[x,C]=e.useState(null==n?void 0:n.color),v=e.useMemo((()=>({animated:s,footerAlign:a,collection:u,rowsPerPage:d,currentPage:P,color:x,setFooterAlign:l,setCollection:c,setAnimated:i,setRowsPerPage:m,setColor:C,setCurrentPage:g})),[s,x,u,a,d,P]);return t(TableContext.Provider,{value:v,children:r})},Consumer:TableContext.Consumer};
1
+ import e from"react";import{jsx as t}from"react/jsx-runtime";const o={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0};export const TableContext=e.createContext(o);export const useTableContext=()=>e.useContext(TableContext);export default{Provider:({children:r,defaultValues:n})=>{const[a,l]=e.useState((null==n?void 0:n.footerAlign)||o.footerAlign),[s,i]=e.useState(void 0===(null==n?void 0:n.animated)?o.animated:null==n?void 0:n.animated),[u,d]=e.useState(null==n?void 0:n.collection),[c,P]=e.useState(void 0===(null==n?void 0:n.rowsPerPage)?o.rowsPerPage:null==n?void 0:n.rowsPerPage),[g,m]=e.useState(o.currentPage),[v,x]=e.useState(null==n?void 0:n.color),C=e.useMemo((()=>({animated:s,footerAlign:a,collection:u,rowsPerPage:c,currentPage:g,color:v,setFooterAlign:l,setCollection:d,setAnimated:i,setRowsPerPage:P,setColor:x,setCurrentPage:m})),[s,v,u,a,c,g]);return t(TableContext.Provider,{value:C,children:r})},Consumer:TableContext.Consumer};
@@ -1 +1 @@
1
- import e,{useRef as o,useImperativeHandle as r}from"react";import{useTableColumnHeader as t,useTableSelectAllCheckbox as l}from"@react-aria/table";import{VisuallyHidden as a}from"@react-aria/visually-hidden";import{useFocusRing as c}from"@react-aria/focus";import{mergeProps as i}from"@react-aria/utils";import s from"../checkbox";import{StyledTableHeaderCell as m}from"./table.styles";import{mapPropsToCheckboxAttr as n}from"./utils";import u from"../utils/clsx";import{jsx as f}from"react/jsx-runtime";const p=e.forwardRef((({column:e,state:p,color:d,animated:b,...x},h)=>{const k=o(null);r(h,(()=>null==k?void 0:k.current));const y="single"===p.selectionManager.selectionMode,{columnHeaderProps:N}=t({node:e},p,k),{checkboxProps:$}=l(p),{isFocusVisible:g,focusProps:P}=c(),j=n($);return f(m,{ref:k,isFocusVisible:g,className:u("nextui-table-select-all-checkbox",x.className),...i(N,P,x),children:y?f(a,{children:$["aria-label"]}):f(s,{...j,color:d,animated:b,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"}})})}));p.displayName="NextUI.TableSelectAllCheckbox",p.toString=()=>".nextui-table-select-all-checkbox";export default p;
1
+ import e,{useRef as o,useImperativeHandle as r}from"react";import{useTableColumnHeader as t,useTableSelectAllCheckbox as l}from"@react-aria/table";import{VisuallyHidden as a}from"@react-aria/visually-hidden";import{useFocusRing as c}from"@react-aria/focus";import{mergeProps as i}from"@react-aria/utils";import s from"../checkbox";import{StyledTableHeaderCell as m}from"./table.styles";import n from"../utils/clsx";import{jsx as u}from"react/jsx-runtime";const b=e.forwardRef((({column:e,state:b,color:d,animated:f,...p},x)=>{const h=o(null);r(x,(()=>null==h?void 0:h.current));const k="single"===b.selectionManager.selectionMode,{columnHeaderProps:y}=t({node:e},b,h),{checkboxProps:N}=l(b),{isFocusVisible:$,focusProps:g}=c();return u(m,{ref:h,isFocusVisible:$,className:n("nextui-table-select-all-checkbox",p.className),...i(y,g,p),children:k?u(a,{children:N["aria-label"]}):u(s,{...N,color:d,disableAnimation:!f,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"}})})}));b.displayName="NextUI.TableSelectAllCheckbox",b.toString=()=>".nextui-table-select-all-checkbox";export default b;
@@ -1 +1 @@
1
- import e,{useImperativeHandle as o,useRef as t}from"react";import{useTable as r}from"@react-aria/table";import{useTableState as l}from"@react-stately/table";import{Spacer as i}from"../index";import a from"./table-row-group";import n from"./table-column-header";import s from"./table-header-row";import c from"./table-select-all-checkbox";import m from"./table-pagination";import d from"./table-footer";import h from"./table-body";import{hasChild as p,pickSingleChild as u}from"../utils/collections";import{StyledTable as b,StyledTableContainer as f}from"./table.styles";import x from"./table-context";import{excludedTableProps as w}from"../utils/prop-types";import{isInfinityScroll as g}from"./utils";import v from"../utils/with-defaults";import y from"../utils/clsx";import{jsx as k}from"react/jsx-runtime";import{jsxs as N}from"react/jsx-runtime";const C=e.forwardRef(((v,C)=>{const{selectionMode:S,selectionBehavior:j,hideLoading:M,children:P,shadow:L,color:B,animated:I,borderWeight:O,bordered:R,containerCss:W,...E}=v,[F,T]=u(P,m),U=p(P,m),V=l({...v,children:F,showSelectionCheckboxes:void 0!==v.showSelectionCheckboxes?v.showSelectionCheckboxes:"multiple"===S&&"replace"!==j});Object.keys(E).forEach((e=>{w.indexOf(e)>-1&&delete E[e]}));const q=t(null);o(C,(()=>null==q?void 0:q.current));const{collection:z}=V,{gridProps:A}=r(v,V,q),D=e.useMemo((()=>({collection:z,color:B,animated:I})),[z,I,B]);return k(x.Provider,{defaultValues:D,children:k(f,{shadow:L,borderWeight:O,bordered:R,className:"nextui-table-container",css:{...W},children:N(b,{ref:q,color:B,shadow:L,animated:I,hoverable:"none"!==S||E.hoverable,isMultiple:"multiple"===S,hasPagination:U,className:y("nextui-table",E.className),...A,...E,children:[N(a,{as:"thead",isFixed:g(z),children:[z.headerRows.map((e=>k(s,{item:e,state:V,children:[...e.childNodes].map((e=>{var o;return null!=e&&null!=(o=e.props)&&o.isSelectionCell?k(c,{column:e,state:V,color:B,animated:I},null==e?void 0:e.key):k(n,{column:e,state:V,animated:I},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!E.sticked&&k(i,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),k(h,{state:V,color:B,collection:z,animated:I,hasPagination:U,hideLoading:M}),U&&N(d,{children:[k(i,{as:"tr",className:"nextui-table-hidden-row",y:.6}),k("tr",{role:"row",children:k("th",{tabIndex:-1,role:"columnheader",colSpan:z.columnCount,children:T})})]})]})})})}));C.displayName="NextUI.Table",C.toString=()=>".nextui-table";export default v(C,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"});
1
+ import e,{useImperativeHandle as o,useRef as t}from"react";import{useTable as r}from"@react-aria/table";import{useTableState as i}from"@react-stately/table";import{Spacer as l}from"../index";import a from"./table-row-group";import n from"./table-column-header";import s from"./table-header-row";import c from"./table-select-all-checkbox";import m from"./table-pagination";import d from"./table-footer";import h from"./table-body";import{pickSingleChild as p}from"../utils/collections";import{StyledTable as u,StyledTableContainer as b}from"./table.styles";import f from"./table-context";import{excludedTableProps as x}from"../utils/prop-types";import{isInfinityScroll as g,hasPaginationChild as w}from"./utils";import v from"../utils/with-defaults";import y from"../utils/clsx";import{jsx as k}from"react/jsx-runtime";import{jsxs as P}from"react/jsx-runtime";const N=e.forwardRef(((v,N)=>{const{selectionMode:C,selectionBehavior:S,hideLoading:j,children:M,shadow:L,color:B,animated:I,borderWeight:O,bordered:R,containerCss:W,...E}=v,[F,T]=p(M,m),{hasPagination:U,rowsPerPage:V}=w(M,m),q=i({...v,children:F,showSelectionCheckboxes:void 0!==v.showSelectionCheckboxes?v.showSelectionCheckboxes:"multiple"===C&&"replace"!==S});Object.keys(E).forEach((e=>{x.indexOf(e)>-1&&delete E[e]}));const z=t(null);o(N,(()=>null==z?void 0:z.current));const{collection:A}=q,{gridProps:D}=r(v,q,z),G=e.useMemo((()=>({collection:A,color:B,animated:I,rowsPerPage:V})),[A,I,B,V]);return k(f.Provider,{defaultValues:G,children:k(b,{shadow:L,borderWeight:O,bordered:R,className:"nextui-table-container",css:{...W},children:P(u,{ref:z,color:B,shadow:L,animated:I,hoverable:"none"!==C||E.hoverable,isMultiple:"multiple"===C,hasPagination:U,className:y("nextui-table",E.className),...D,...E,children:[P(a,{as:"thead",isFixed:g(A),children:[A.headerRows.map((e=>k(s,{item:e,state:q,children:[...e.childNodes].map((e=>{var o;return null!=e&&null!=(o=e.props)&&o.isSelectionCell?k(c,{column:e,state:q,color:B,animated:I},null==e?void 0:e.key):k(n,{column:e,state:q,animated:I},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!E.sticked&&k(l,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),k(h,{state:q,color:B,collection:A,animated:I,hasPagination:U,hideLoading:j}),U&&P(d,{children:[k(l,{as:"tr",className:"nextui-table-hidden-row",y:.6}),k("tr",{role:"row",children:k("th",{tabIndex:-1,role:"columnheader",colSpan:A.columnCount,children:T})})]})]})})})}));N.displayName="NextUI.Table",N.toString=()=>".nextui-table";export default v(N,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"});
@@ -1 +1 @@
1
- import{styled as e,cssFocusVisible as l}from"../theme/stitches.config";export const StyledTableHeaderRow=e("tr",{ov:"visible"});export const StyledTableColumnHeader=e("th",{height:"$14",cursor:"default",bg:"$accents1",color:"$accents6",fontSize:"$tiny",textAlign:"left",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",br:"$md 0 0 $md"},"&:last-child":{pr:"$8",br:"0 $md $md 0"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}},animated:{false:{transition:"none"}},allowsSorting:{true:{transition:"background 0.25s ease 0s, color 0.25s ease 0s",cursor:"pointer","@motion":{transition:"none"},"&:hover":{color:"$accents7",bg:"$accents2"}}}},defaultVariants:{align:"left",animated:!0},compoundVariants:[{animated:!1,allowsSorting:!0,css:{transition:"none"}}]},l);export const StyledTableHeaderCell=e(StyledTableColumnHeader,l);export const StyledTableFooter=e("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}});export const StyledBaseTableCell=e("td",{});export const StyledTableCell=e(StyledBaseTableCell,{position:"relative",userSelect:"none",py:"$5",pr:"$5",zIndex:"$2",ov:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:first-child":{pl:"$8"},"&:last-child":{pr:"$8"},"&:before":{zIndex:"-$1",transition:"background 0.25s ease 0s, opacity 0.25s ease 0s",content:'""',position:"absolute",size:"100%",top:0,left:0,opacity:0},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}}},l);export const StyledTableRow=e("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${StyledTableCell}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},l);export const StyledTableRowGroup=e("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",[`& ${StyledTableRow}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}});export const StyledTableLoadingRow=e("tr",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - $space$14)",variants:{isAtEnd:{true:{height:"$space$18"}},isAbsolute:{true:{position:"absolute",left:"0",top:"$10"}}}});export const StyledTable=e("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${StyledTableCell}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${StyledTableCell}:before`]:{transition:"none"}}},color:{primary:{$$tableRowColor:"$colors$primaryLight",$$tableRowTextColor:"$colors$primary"},secondary:{$$tableRowColor:"$colors$secondaryLight",$$tableRowTextColor:"$colors$secondary"},success:{$$tableRowColor:"$colors$successLight",$$tableRowTextColor:"$colors$success"},warning:{$$tableRowColor:"$colors$warningLight",$$tableRowTextColor:"$colors$warning"},error:{$$tableRowColor:"$colors$errorLight",$$tableRowTextColor:"$colors$error"}},striped:{true:{[`& ${StyledTableRow}[aria-selected=false]:nth-child(even)`]:{[`& ${StyledTableCell}`]:{bg:"$accents1"}},[`& ${StyledTableRow}:nth-child(even)`]:{[`& ${StyledTableCell}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${StyledTableCell}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${StyledTableColumnHeader}:first-child`]:{br:"$lg 0 0 0"},[`& ${StyledTableColumnHeader}:last-child`]:{br:"0 $lg 0 0"}}},lineWeight:{light:{$$tableLineWeight:"$borderWeights$light"},normal:{$$tableLineWeight:"$borderWeights$normal"},bold:{$$tableLineWeight:"$borderWeights$bold"},extrabold:{$$tableLineWeight:"$borderWeights$extrabold"},black:{$$tableLineWeight:"$borderWeights$black"}},headerLined:{true:{[`& ${StyledTableColumnHeader}`]:{position:"relative",bg:"transparent","&:after":{content:"",position:"absolute",left:0,right:0,bottom:0,height:"calc($$tableLineWeight * 1.5)",bg:"$accents2"},"&:first-child":{ml:"$12",br:"0","&:after":{left:"$space$md"}},"&:last-child":{br:"0","&:after":{right:"$space$md"}}}}},lined:{true:{[`& ${StyledTableRow}:not(:last-child)`]:{position:"relative",[`& ${StyledTableCell}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${StyledTableCell}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${StyledTableCell}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${StyledTableRow}[aria-selected=true]:not(last-child)`]:{[`& ${StyledTableCell}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${StyledTableCell}:first-child`]:{br:"$md 0 0 $md"},[`& ${StyledTableCell}:last-child`]:{br:"0 $md $md 0"},[`& ${StyledTableRow}`]:{cursor:"pointer"},[`& ${StyledTableRow}[aria-selected=false]`]:{"&:hover":{[`& ${StyledTableCell}:before`]:{opacity:1,bg:"$accents1"}}},[`& ${StyledTableRow}[aria-selected=true]`]:{"&:hover":{[`& ${StyledTableCell}:before`]:{opacity:.8}}}},false:{[`& ${StyledTableCell}`]:{userSelect:"all"}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${StyledTableCell}`]:{py:"$1"},[`& ${StyledTableColumnHeader}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${StyledTableRow}:not(:first-child):not(:last-child)`]:{[`& ${StyledTableCell}:first-child`]:{br:0},[`& ${StyledTableCell}:last-child`]:{br:0}},[`& ${StyledTableRow}:first-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"$md 0 0 0"},[`& ${StyledTableCell}:last-child`]:{br:"0 $md 0 0"}},[`& ${StyledTableRow}:last-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0 0 0 $md"},[`& ${StyledTableCell}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${StyledTableRow}:first-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0"},[`& ${StyledTableCell}:last-child`]:{br:"0"}}}},{compact:!0,shadow:!0,css:{p:"$md $sm"}},{compact:!0,sticked:!0,css:{p:0}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!1,css:{[`& ${StyledTableRow}:not(:last-child)`]:{[`& ${StyledTableCell}`]:{br:"0"}},[`& ${StyledTableRow}:last-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0 0 0 $md"},[`& ${StyledTableCell}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${StyledTableRow}`]:{[`& ${StyledTableCell}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${StyledTableRow}:last-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0"},[`& ${StyledTableCell}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}});export const StyledTableContainer=e("div",{display:"flex",flexDirection:"column",br:"$xl",overflowX:"auto",overflowY:"hidden",variants:{shadow:{true:{bs:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}}},defaultVariants:{shadow:!0,borderWeight:"normal"}});
1
+ import{styled as e}from"../theme/stitches.config";import{cssFocusVisible as t}from"../theme/shared-css";export const StyledTableHeaderRow=e("tr",{ov:"visible"});export const StyledTableColumnHeader=e("th",{height:"$14",cursor:"default",bg:"$accents0",color:"$accents7",fontSize:"$xs",textAlign:"left",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",br:"$md 0 0 $md"},"&:last-child":{pr:"$8",br:"0 $md $md 0"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}},animated:{false:{transition:"none"}},allowsSorting:{true:{transition:"background 0.25s ease 0s, color 0.25s ease 0s",cursor:"pointer","@motion":{transition:"none"},"&:hover":{color:"$accents8",bg:"$accents1"}}}},defaultVariants:{align:"left",animated:!0},compoundVariants:[{animated:!1,allowsSorting:!0,css:{transition:"none"}}]},t);export const StyledTableHeaderCell=e(StyledTableColumnHeader,t);export const StyledTableFooter=e("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}});export const StyledBaseTableCell=e("td",{});export const StyledTableCell=e(StyledBaseTableCell,{position:"relative",userSelect:"none",py:"$5",pr:"$5",zIndex:"$2",ov:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:first-child":{pl:"$8"},"&:last-child":{pr:"$8"},"&:before":{zIndex:"-$1",transition:"background 0.25s ease 0s, opacity 0.25s ease 0s",content:'""',position:"absolute",size:"100%",top:0,left:0,opacity:0,transform:"translateZ(0)",backfaceVisibility:"hidden"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}}},t);export const StyledTableRow=e("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${StyledTableCell}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},t);export const StyledTableRowGroup=e("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",[`& ${StyledTableRow}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}});export const StyledTableLoadingRow=e("tr",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - $space$14)",variants:{isAtEnd:{true:{height:"$space$18"}},isAbsolute:{true:{position:"absolute",left:"0",top:"$10"}}}});export const StyledTable=e("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${StyledTableCell}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${StyledTableCell}:before`]:{transition:"none"}}},color:{primary:{$$tableRowColor:"$colors$primaryLight",$$tableRowTextColor:"$colors$primaryLightContrast"},secondary:{$$tableRowColor:"$colors$secondaryLight",$$tableRowTextColor:"$colors$secondaryLightContrast"},success:{$$tableRowColor:"$colors$successLight",$$tableRowTextColor:"$colors$successLightContrast"},warning:{$$tableRowColor:"$colors$warningLight",$$tableRowTextColor:"$colors$warningLightContrast"},error:{$$tableRowColor:"$colors$errorLight",$$tableRowTextColor:"$colors$errorLightContrast"}},striped:{true:{[`& ${StyledTableRow}[aria-selected=false]:nth-child(even)`]:{[`& ${StyledTableCell}`]:{bg:"$accents0"}},[`& ${StyledTableRow}:nth-child(even)`]:{[`& ${StyledTableCell}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${StyledTableCell}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${StyledTableColumnHeader}:first-child`]:{br:"$lg 0 0 0"},[`& ${StyledTableColumnHeader}:last-child`]:{br:"0 $lg 0 0"}}},lineWeight:{light:{$$tableLineWeight:"$borderWeights$light"},normal:{$$tableLineWeight:"$borderWeights$normal"},bold:{$$tableLineWeight:"$borderWeights$bold"},extrabold:{$$tableLineWeight:"$borderWeights$extrabold"},black:{$$tableLineWeight:"$borderWeights$black"}},headerLined:{true:{[`& ${StyledTableColumnHeader}`]:{position:"relative",bg:"transparent","&:after":{content:"",position:"absolute",left:0,right:0,bottom:0,height:"calc($$tableLineWeight * 1.5)",bg:"$accents1"},"&:first-child":{ml:"$12",br:"0","&:after":{left:"$space$md"}},"&:last-child":{br:"0","&:after":{right:"$space$md"}}}}},lined:{true:{[`& ${StyledTableRow}:not(:last-child)`]:{position:"relative",[`& ${StyledTableCell}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${StyledTableCell}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${StyledTableCell}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${StyledTableRow}[aria-selected=true]:not(last-child)`]:{[`& ${StyledTableCell}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${StyledTableCell}:first-child`]:{br:"$md 0 0 $md"},[`& ${StyledTableCell}:last-child`]:{br:"0 $md $md 0"},[`& ${StyledTableRow}`]:{cursor:"pointer"},[`& ${StyledTableRow}[aria-selected=false]`]:{"&:hover":{[`& ${StyledTableCell}:before`]:{opacity:1,bg:"$accents0"}}},[`& ${StyledTableRow}[aria-selected=true]`]:{"&:hover":{[`& ${StyledTableCell}:before`]:{opacity:.8}}}},false:{[`& ${StyledTableCell}`]:{userSelect:"all"}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${StyledTableCell}`]:{py:"$1"},[`& ${StyledTableColumnHeader}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${StyledTableRow}:not(:first-child):not(:last-child)`]:{[`& ${StyledTableCell}:first-child`]:{br:0},[`& ${StyledTableCell}:last-child`]:{br:0}},[`& ${StyledTableRow}:first-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"$md 0 0 0"},[`& ${StyledTableCell}:last-child`]:{br:"0 $md 0 0"}},[`& ${StyledTableRow}:last-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0 0 0 $md"},[`& ${StyledTableCell}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${StyledTableRow}:first-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0"},[`& ${StyledTableCell}:last-child`]:{br:"0"}}}},{compact:!0,shadow:!0,css:{p:"$md $sm"}},{compact:!0,sticked:!0,css:{p:0}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!1,css:{[`& ${StyledTableRow}:not(:last-child)`]:{[`& ${StyledTableCell}`]:{br:"0"}},[`& ${StyledTableRow}:last-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0 0 0 $md"},[`& ${StyledTableCell}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${StyledTableRow}`]:{[`& ${StyledTableCell}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${StyledTableRow}:last-child`]:{[`& ${StyledTableCell}:first-child`]:{br:"0"},[`& ${StyledTableCell}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}});export const StyledTableContainer=e("div",{display:"flex",flexDirection:"column",br:"$xl",overflowX:"auto",overflowY:"hidden",variants:{shadow:{true:{bs:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}}},defaultVariants:{shadow:!0,borderWeight:"normal"}});
@@ -1 +1 @@
1
- export const isInfinityScroll=e=>{var t;const n=null==(t=e.body)?void 0:t.props;return void 0!==(null==n?void 0:n.loadingState)&&"function"==typeof(null==n?void 0:n.onLoadMore)};export const mapPropsToCheckboxAttr=e=>{const{isSelected:t,defaultSelected:n,isIndeterminate:o,isReadOnly:i,isRequired:d,...r}=e;return{checked:t,initialChecked:n,indeterminate:o,readOnly:i,required:d,...r}};
1
+ import o from"react";export const hasPaginationChild=(n,i)=>{const r=o.Children.toArray(n).find((n=>o.isValidElement(n)&&n.type===i));var t;return o.isValidElement(r)?{hasPagination:!0,rowsPerPage:(null==r||null==(t=r.props)?void 0:t.rowsPerPage)||0}:{hasPagination:!1,rowsPerPage:0}};export const isInfinityScroll=o=>{var n;const i=null==(n=o.body)?void 0:n.props;return void 0!==(null==i?void 0:i.loadingState)&&"function"==typeof(null==i?void 0:i.onLoadMore)};
@@ -0,0 +1 @@
1
+ export const blue={blue50:"#EDF5FF",blue100:"#E1EFFF",blue200:"#CEE4FE",blue300:"#B7D5F8",blue400:"#96C1F2",blue500:"#5EA2EF",blue600:"#0072F5",blue700:"#005FCC",blue800:"#004799",blue900:"#00254D"};export const blueDark={blue50:"#10253E",blue100:"#102C4C",blue200:"#0F3158",blue300:"#0D3868",blue400:"#0A4281",blue500:"#0952A5",blue600:"#0072F5",blue700:"#3694FF",blue800:"#3694FF",blue900:"#EAF4FF"};
@@ -0,0 +1 @@
1
+ export const cyan={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"};export const cyanDark={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"};
@@ -0,0 +1 @@
1
+ export const gray={gray50:"#F1F3F5",gray100:"#ECEEF0",gray200:"#E6E8EB",gray300:"#DFE3E6",gray400:"#D7DBDF",gray500:"#C1C8CD",gray600:"#889096",gray700:"#7E868C",gray800:"#687076",gray900:"#11181C"};export const grayDark={gray50:"#16181A",gray100:"#26292B",gray200:"#2B2F31",gray300:"#313538",gray400:"#3A3F42",gray500:"#4C5155",gray600:"#697177",gray700:"#787F85",gray800:"#9BA1A6",gray900:"#ECEDEE"};
@@ -0,0 +1 @@
1
+ export const green={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"};export const greenDark={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"};
@@ -0,0 +1 @@
1
+ export*from"./blue";export*from"./purple";export*from"./green";export*from"./yellow";export*from"./red";export*from"./cyan";export*from"./pink";export*from"./gray";
@@ -0,0 +1 @@
1
+ export const pink={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"};export const pinkDark={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"};
@@ -0,0 +1 @@
1
+ export const purple={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"};export const purpleDark={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"};
@@ -0,0 +1 @@
1
+ export const red={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"};export const redDark={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"};
@@ -0,0 +1 @@
1
+ export const yellow={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"};export const yellowDark={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"};
@@ -1 +1 @@
1
- import{defaultThemeMap as e}from"@stitches/react";export const defaultTokens={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{tiny:".75rem",xs:"0.875rem",base:"1rem",sm:"1.25rem",md:"1.5rem",lg:"2.25rem",xl:"3rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,md:1.5,lg:1.625,xl:1.75},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",link:"opacity 0.25s ease 0s, background 0.25s ease 0s",card:"transform 0.25s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}};export const defaultColors={white:"#ffffff",black:"#000000",blue100:"#bfd8fc",blue200:"#98D5FD",blue300:"#64B8FB",blue400:"#3D9CF7",blue500:"#0070F3",blue600:"#0056D0",blue700:"#0040AE",blue800:"#002D8C",blue900:"#002074",purple100:"#dbc8f0",purple200:"#DDA9F9",purple300:"#C17CEF",purple400:"#A258DF",purple500:"#7928ca",purple600:"#5E1DAD",purple700:"#461491",purple800:"#310C75",purple900:"#220760",green100:"#dafee8",green200:"#A1F9AC",green300:"#6FEE8D",green400:"#4ADE7B",green500:"#17c964",green600:"#10AC63",green700:"#0B905F",green800:"#077457",green900:"#046050",yellow100:"#fce6c7",yellow200:"#FEE7A6",yellow300:"#FCD57A",yellow400:"#F9C258",yellow500:"#f5a623",yellow600:"#D28519",yellow700:"#B06811",yellow800:"#8E4D0B",yellow900:"#753A06",red100:"#fbc4d5",red200:"#FDA0A5",red300:"#FB7085",red400:"#F74C77",red500:"#f21361",red600:"#D00D65",red700:"#AE0963",red800:"#8C065C",red900:"#740357",cyan100:"#EEFFF4",cyan200:"#DDFFED",cyan300:"#CCFFE9",cyan400:"#BFFFEA",cyan500:"#AAFFEC",cyan600:"#7CDBCF",cyan700:"#55B7B4",cyan800:"#368D93",cyan900:"#206C7A",pink100:"#FFDBE7",pink200:"#FFB8D6",pink300:"#FF94CC",pink400:"#FF7ACC",pink500:"#ff4ecd",pink600:"#DB39BD",pink700:"#B727AA",pink800:"#921893",pink900:"#6E0E7A",gray100:"#F4F4F4",gray200:"#EAEAEA",gray300:"#C1C1C1",gray400:"#999999",gray500:"#888888",gray600:"#666666",gray700:"#444444",gray800:"#333333",gray900:"#111111",primaryLight:"$blue100",primary:"$blue500",primaryDark:"$blue600",primaryShadow:"$blue100",secondaryLight:"$purple100",secondary:"$purple500",secondaryDark:"$purple600",secondaryShadow:"$purple100",successLight:"$green100",success:"$green500",successDark:"$green600",successShadow:"$green100",warningLight:"$yellow100",warning:"$yellow500",warningDark:"$yellow600",warningShadow:"$yellow100",errorLight:"$red100",error:"$red500",errorDark:"$red600",errorShadow:"$red100",gradient:"linear-gradient(112deg, $cyan500 -63.59%, $pink500 -20.3%, $blue500 70.46%)",link:"$blue500"};export const defaultMedia={xs:`(min-width: ${defaultTokens.breakpoints.xs})`,sm:`(min-width: ${defaultTokens.breakpoints.sm})`,md:`(min-width: ${defaultTokens.breakpoints.md})`,lg:`(min-width: ${defaultTokens.breakpoints.lg})`,xl:`(min-width: ${defaultTokens.breakpoints.xl})`,xsMax:`(max-width: ${defaultTokens.breakpoints.xs})`,smMax:`(max-width: ${defaultTokens.breakpoints.sm})`,mdMax:`(max-width: ${defaultTokens.breakpoints.md})`,lgMax:`(max-width: ${defaultTokens.breakpoints.lg})`,xlMax:`(max-width: ${defaultTokens.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};export const defaultUtils={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:`${e}66`}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})};export const defaultThemeMap={...e,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"};export default{prefix:"nextui",theme:{...defaultTokens,colors:defaultColors,shadows:{}},media:defaultMedia,utils:defaultUtils,themeMap:defaultThemeMap};
1
+ import{defaultThemeMap as e}from"@stitches/react";export const defaultTokens={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem",xl8:"6rem",xl9:"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,base:1.5,md:1.5,lg:1.75,xl:1.75,xl2:2,xl3:2.25,xl4:2.5,xl5:1,xl6:1,xl7:1,xl8:1,xl9:1},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",link:"opacity 0.25s ease 0s, background 0.25s ease 0s",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.25s ease, transform 0.25s ease, color 0.15s ease, box-shadow 0.25s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}};export const defaultColors={white:"#ffffff",black:"#000000",primaryLight:"$blue200",primaryLightHover:"$blue300",primaryLightActive:"$blue400",primaryLightContrast:"$blue600",primary:"$blue600",primaryBorder:"$blue500",primaryBorderHover:"$blue600",primarySolidHover:"$blue700",primarySolidContrast:"$white",primaryShadow:"$blue500",secondaryLight:"$purple200",secondaryLightHover:"$purple300",secondaryLightActive:"$purple400",secondaryLightContrast:"$purple600",secondary:"$purple600",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondarySolidContrast:"$white",secondaryShadow:"$purple500",successLight:"$green200",successLightHover:"$green300",successLightActive:"$green400",successLightContrast:"$green700",success:"$green600",successBorder:"$green500",successBorderHover:"$green600",successSolidHover:"$green700",successSolidContrast:"$white",successShadow:"$green500",warningLight:"$yellow200",warningLightHover:"$yellow300",warningLightActive:"$yellow400",warningLightContrast:"$yellow700",warning:"$yellow600",warningBorder:"$yellow500",warningBorderHover:"$yellow600",warningSolidHover:"$yellow700",warningSolidContrast:"$white",warningShadow:"$yellow500",errorLight:"$red200",errorLightHover:"$red300",errorLightActive:"$red400",errorLightContrast:"$red600",error:"$red600",errorBorder:"$red500",errorBorderHover:"$red600",errorSolidHover:"$red700",errorSolidContrast:"$white",errorShadow:"$red500",neutralLight:"$gray100",neutralLightHover:"$gray200",neutralLightActive:"$gray300",neutralLightContrast:"$gray800",neutral:"$gray600",neutralBorder:"$gray400",neutralBorderHover:"$gray500",neutralSolidHover:"$gray600",neutralSolidContrast:"$white",neutralShadow:"$gray400",gradient:"linear-gradient(112deg, $cyan600 -63.59%, $pink600 -20.3%, $blue600 70.46%)",accents0:"$gray50",accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",border:"$gray300"};export const defaultMedia={xs:`(min-width: ${defaultTokens.breakpoints.xs})`,sm:`(min-width: ${defaultTokens.breakpoints.sm})`,md:`(min-width: ${defaultTokens.breakpoints.md})`,lg:`(min-width: ${defaultTokens.breakpoints.lg})`,xl:`(min-width: ${defaultTokens.breakpoints.xl})`,xsMax:`(max-width: ${defaultTokens.breakpoints.xs})`,smMax:`(max-width: ${defaultTokens.breakpoints.sm})`,mdMax:`(max-width: ${defaultTokens.breakpoints.md})`,lgMax:`(max-width: ${defaultTokens.breakpoints.lg})`,xlMax:`(max-width: ${defaultTokens.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};export const defaultUtils={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:e}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),ds:e=>({dropShadow:e}),shadow:e=>({boxShadow:e}),dshadow:e=>({dropShadow:e}),dropShadow:e=>({filter:`$dropShadows${e}`}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),truncateText:e=>({maxWidth:e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})};export const defaultThemeMap={...e,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"};export default{prefix:"nextui",theme:{...defaultTokens,colors:defaultColors,shadows:{},dropShadows:{}},media:defaultMedia,utils:defaultUtils,themeMap:defaultThemeMap};
@@ -1 +1 @@
1
- export default{colors:{accents1:"$gray900",accents2:"$gray800",accents3:"$gray700",accents4:"$gray600",accents5:"$gray500",accents6:"$gray400",accents7:"$gray300",accents8:"$gray200",accents9:"$gray100",blue900:"#001835",purple900:"#1c0631",green900:"#033116",yellow900:"#3d2705",red900:"#3c0216",primaryLight:"$blue900",primaryShadow:"$blue600",secondaryLight:"$purple900",secondaryShadow:"$purple600",successLight:"$green900",successShadow:"$green600",warningLight:"$yellow900",warningShadow:"$yellow600",errorLight:"$red900",errorShadow:"$red600",background:"$black",foreground:"$white",backgroundContrast:"$accents1",text:"$white",codeLight:"#16272e",code:"#6cc0e1",border:"$gray700",selection:"#ff4ecd"},shadows:{xs:"-4px 0 15px rgb(0 0 0 / 50%)",sm:"0 5px 20px -5px rgba(20, 20, 20, 0.1)",md:"0 8px 30px rgba(20, 20, 20, 0.15)",lg:"0 30px 60px rgba(20, 20, 20, 0.15)",xl:"0 40px 80px rgba(20, 20, 20, 0.25)"}};
1
+ import{blueDark as r,greenDark as e,purpleDark as p,yellowDark as o,redDark as g,cyanDark as t,pinkDark as a,grayDark as d}from"./colors";export default{colors:{background:"$black",foreground:"$white",backgroundContrast:"$accents0",...r,...p,...e,...o,...g,...t,...a,...d,primaryLight:"$blue50",primaryLightHover:"$blue100",primaryLightActive:"$blue200",primaryLightContrast:"$blue600",secondaryLight:"$purple50",secondaryLightHover:"$purple100",secondaryLightActive:"$purple200",secondaryLightContrast:"$purple800",secondary:"$purple700",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondaryShadow:"$purple500",successLight:"$green50",successLightHover:"$green100",successLightActive:"$green200",warningLight:"$yellow50",warningLightHover:"$yellow100",warningLightActive:"$yellow200",errorLight:"$red50",errorLightHover:"$red100",errorLightActive:"$red200",errorLightContrast:"$red700",neutralLight:"$gray200",neutralLightHover:"$gray300",neutralLightActive:"$gray400",neutralSolidContrast:"$white",text:"$gray900",link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800"},shadows:{xs:"0 2px 8px 1px rgb(0 0 0 / 0.07), 0 1px 1px -1px rgb(0 0 0 / 0.04)",sm:"0 2px 8px 2px rgb(0 0 0 / 0.07), 0 2px 4px -1px rgb(0 0 0 / 0.04)",md:"0 12px 20px 6px rgb(0 0 0 / 0.08)",lg:"0 12px 34px 6px rgb(0 0 0 / 0.18)",xl:"0 25px 65px 0px rgb(0 0 0 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(0 0 0 / 0.07)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.04))",md:"drop-shadow(0 4px 12px rgb(0 0 0 / 0.08)) drop-shadow(0 20px 8px rgb(0 0 0 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(0 0 0 / 0.15)) drop-shadow(0 12px 14px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(0 0 0 / 0.35))"}};
@@ -1 +1 @@
1
- export*from"./types";export*from"./stitches.config";export{default as NextUIProvider}from"./theme-provider";
1
+ export*from"./types";export*from"./stitches.config";export*from"./colors";export{default as NextUIProvider}from"./theme-provider";
@@ -1 +1 @@
1
- export default{colors:{accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",background:"$white",foreground:"$black",backgroundContrast:"$white",text:"$gray800",codeLight:"$pink100",code:"$pink600",border:"$gray200",selection:"$blue200"},shadows:{xs:"-4px 0 4px rgb(0 0 0 / 5%);",sm:"0 5px 20px -5px rgba(0, 0, 0, 0.1)",md:"0 8px 30px rgba(0, 0, 0, 0.15)",lg:"0 30px 60px rgba(0, 0, 0, 0.15)",xl:"0 40px 80px rgba(0, 0, 0, 0.25)"}};
1
+ import{blue as p,purple as x,green as r,yellow as o,red as d,cyan as g,pink as b,gray as s}from"./colors";export default{colors:{background:"$white",foreground:"$black",backgroundContrast:"$white",...p,...x,...r,...o,...d,...g,...b,...s,text:"$gray900",link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200"},shadows:{xs:"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)",sm:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",md:"0 12px 20px 6px rgb(104 112 118 / 0.08)",lg:"0 12px 34px 6px rgb(104 112 118 / 0.18)",xl:"0 25px 65px 0px rgb(104 112 118 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))",md:"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))"}};
@@ -0,0 +1 @@
1
+ import{css as o}from"./stitches.config";export const sharedFocus=o({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});export const cssFocusVisible=o({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});export const cssNoBlurriness=o({transform:"translateZ(0)",backfaceVisibility:"hidden"});export const sharedVisuallyHidden=o({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});export const sharedDialogPopup=o({'&[aria-haspopup="true"]&[aria-expanded="true"]':{opacity:.7,transform:"scale(0.97)"}});
@@ -1 +1 @@
1
- import{createStitches as e}from"@stitches/react";import o from"./common";import t from"./light-theme";import s from"./dark-theme";import r from"../utils/deep-merge";export const getStitchesTheme=e=>r(e,o.theme);const c=e({...o,theme:{...o.theme,shadows:{...t.shadows},colors:{...o.theme.colors,...t.colors}}});export const createThemeBase=c.createTheme;export const styled=c.styled;export const css=c.css;export const globalCss=c.globalCss;export const keyframes=c.keyframes;export const getCssText=c.getCssText;export const theme=c.theme;export const config=c.config;export const sharedFocus=css({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});export const cssFocusVisible=css({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});export const sharedVisuallyHidden=css({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});export const createTheme=({type:e,theme:o,className:c})=>{if(!e)throw new Error("Theme type is required");return createThemeBase(c||`${e}-theme`,r("dark"===e?s:t,o))};
1
+ import{createStitches as e}from"@stitches/react";import t from"./common";import o from"./light-theme";import s from"./dark-theme";import r from"../utils/deep-merge";export const getStitchesTheme=e=>r(e,t.theme);const m=e({...t,theme:{...t.theme,shadows:{...o.shadows},dropShadows:{...o.dropShadows},colors:{...t.theme.colors,...o.colors}}});export const createThemeBase=m.createTheme;export const styled=m.styled;export const css=m.css;export const globalCss=m.globalCss;export const keyframes=m.keyframes;export const getCssText=m.getCssText;export const theme=m.theme;export const config=m.config;export const createTheme=({type:e,theme:t,className:m})=>{if(!e)throw new Error("Theme type is required");return createThemeBase(m||`${e}-theme`,r("dark"===e?s:o,t))};
@@ -1 +1 @@
1
- import{styled as o}from"../theme/stitches.config";export const StyledTooltipTrigger=o("div",{width:"max-content",display:"inherit"});export const StyledTooltipArrow=o("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"});export const StyledTooltip=o("div",{position:"relative",fs:"$xs",padding:0,variants:{hideArrow:{false:{[`& ${StyledTooltipArrow}`]:{display:"block"}}}}});export const StyledTooltipContent=o("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}});
1
+ import{styled as o}from"../theme/stitches.config";export const StyledTooltipTrigger=o("div",{width:"max-content",display:"inherit"});export const StyledTooltipArrow=o("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"});export const StyledTooltip=o("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${StyledTooltipArrow}`]:{display:"block"}}}}});export const StyledTooltipContent=o("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}});
package/esm/user/index.js CHANGED
@@ -1 +1 @@
1
- import e from"./user";import r from"./user-link";e.Link=r;export{StyledUser,StyledUserInfo,StyledUserName,StyledUserDesc,StyledUserLink}from"./user.styles";export default e;
1
+ import e from"./user";import r from"./user-link";e.Link=r;export{StyledUser,StyledUserInfo,StyledUserName,StyledUserDesc}from"./user.styles";export default e;
@@ -1 +1 @@
1
- import r from"react";import e from"../link";import{StyledUserLink as o}from"./user.styles";import{__DEV__ as t}from"../utils/assertion";import{jsx as i}from"react/jsx-runtime";const m=r.forwardRef((({href:r,className:t,children:m,...s},n)=>i(o,{...s,children:i(e,{ref:n,href:r,color:"primary",target:"_blank",rel:"noopener",children:m})})));t&&(m.displayName="NextUI.UserLink"),m.toString=()=>".nextui-user-link";const s=r.memo(m);export default s;
1
+ import r from"react";import e from"../link";import t from"../utils/clsx";import{__DEV__ as o}from"../utils/assertion";import{jsx as i}from"react/jsx-runtime";const s=r.forwardRef(((r,o)=>{const{rel:s="noopener",color:n="primary",target:l="_blank",className:m,children:a,...c}=r;return i(e,{ref:o,rel:s,color:n,target:l,className:t("nextui-user-link",m),...c,children:a})}));o&&(s.displayName="NextUI.UserLink"),s.toString=()=>".nextui-user-link";const n=r.memo(s);export default n;
package/esm/user/user.js CHANGED
@@ -1 +1 @@
1
- import e from"react";import{Avatar as r}from"../index";import{useDOMRef as s}from"../utils/dom";import{__DEV__ as t}from"../utils/assertion";import{StyledUser as o,StyledUserInfo as i,StyledUserName as a,StyledUserDesc as m}from"./user.styles";import{jsx as n}from"react/jsx-runtime";import{jsxs as c}from"react/jsx-runtime";export const User=e.forwardRef(((e,t)=>{const{src:d,text:u,name:l,children:x,altText:p,color:f,squared:N,bordered:U,size:h,description:j,...z}=e,b=s(t);return c(o,{ref:b,...z,children:[n(r,{className:"nextui-user-avatar",src:d,color:f,squared:N,zoomed:e.zoomed,pointer:e.pointer,bordered:U,text:u,size:h,alt:p}),c(i,{className:"nextui-user-info",children:[n(a,{className:"nextui-user-name",children:l}),n(m,{className:"nextui-user-desc",children:j||x})]})]})}));t&&(User.displayName="NextUI.User"),User.toString=()=>".nextui-user";export default User;
1
+ import r from"react";import{Avatar as e}from"../index";import{useFocusRing as s}from"@react-aria/focus";import{mergeProps as o}from"@react-aria/utils";import{useDOMRef as t}from"../utils/dom";import{__DEV__ as i}from"../utils/assertion";import{StyledUser as a,StyledUserInfo as n,StyledUserName as c,StyledUserDesc as m}from"./user.styles";import{jsx as u}from"react/jsx-runtime";import{jsxs as d}from"react/jsx-runtime";export const User=r.forwardRef(((r,i)=>{const{as:l,css:p,src:x,text:f,name:b,children:N,altText:U,color:h,squared:j,bordered:z,size:g,description:q,zoomed:y,pointer:F,...R}=r,V=t(i),{isFocusVisible:k,focusProps:v}=s();return d(a,{ref:V,as:l,...o(R,v),css:o("button"===l?{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}:{},p),isFocusVisible:k,children:[u(e,{className:"nextui-user-avatar",src:x,color:h,squared:j,zoomed:y,pointer:F,bordered:z,text:f,size:g,alt:U}),d(n,{className:"nextui-user-info",children:[u(c,{className:"nextui-user-name",children:b}),u(m,{className:"nextui-user-desc",children:q||N})]})]})}));i&&(User.displayName="NextUI.User"),User.toString=()=>".nextui-user";export default User;
@@ -1 +1 @@
1
- import{styled as e}from"../theme/stitches.config";export const StyledUser=e("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%"});export const StyledUserInfo=e("div",{ml:"$sm",d:"inline-flex",fd:"column",whiteSpace:"nowrap"});export const StyledUserName=e("span",{fontSize:"$xs",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"});export const StyledUserDesc=e("span",{fontSize:"$tiny",color:"$accents4","*:first-child":{mt:0},"*:last-child":{mb:0}});export const StyledUserLink=e("a",{a:{"&:hover":{opacity:.7}}});
1
+ import{styled as e}from"../theme/stitches.config";import{cssFocusVisible as t,sharedDialogPopup as s,cssNoBlurriness as o}from"../theme/shared-css";export const StyledUser=e("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s","@motion":{transition:"none"}},t,o,s);export const StyledUserInfo=e("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"});export const StyledUserName=e("span",{fontSize:"$sm",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"});export const StyledUserDesc=e("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}});
@@ -0,0 +1 @@
1
+ import t from"react";import{styled as r,keyframes as e}from"../theme/stitches.config";import s from"./clsx";import{__DEV__ as o}from"./assertion";import{jsx as i}from"react/jsx-runtime";export const stroke=e({"100%":{strokeDashoffset:0}});const a=r("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${stroke} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),c=t=>{const{width:r=24,height:e=24,size:o,strokeWidth:c=3,fill:m="currentColor",css:h,className:n}=t;return i(a,{role:"img",width:o||r,height:o||e,className:s("nextui-checkmark",n),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52",css:{...h},children:i("path",{stroke:m,strokeWidth:c,fill:"none",d:"M14.1 27.2l7.1 7.2 16.7-16.8"})})};o&&(c.displayName="NextUI.Checkmark"),c.toString=()=>".nextui-checkmark";export default c;
@@ -1 +1 @@
1
- import{normalColors as t}from"./prop-types";export const getCssVar=t=>{if("undefined"!=typeof document||!t){const r=isCssVar(t)?t.replace("var(","").replace(")",""):`--${t}`;return getComputedStyle(document.documentElement).getPropertyValue(r)}return""};export const isCssVar=t=>!(!t||0!==(null==t?void 0:t.indexOf("var(")));export const isHex=t=>/#[a-fA-F0-9]{3,6}/g.test(t);export const hexToRGBA=(t,r=1)=>{let e=0,o=0,n=0;return 4==t.length?(e="0x"+t[1]+t[1],o="0x"+t[2]+t[2],n="0x"+t[3]+t[3]):7==t.length&&(e="0x"+t[1]+t[2],o="0x"+t[3]+t[4],n="0x"+t[5]+t[6]),`rgba(${+e}, ${+o},${+n},${r})`};export const isNormalColor=r=>{let e=t.find((t=>t===r));return null!=e};export const isColor=t=>{let r=(new Option).style;return r.color=t,r.color==t};export const hexToRgb=t=>{const r=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((t,r,e,o)=>`${r}${r}${e}${e}${o}${o}`)),e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);if(!e)throw new Error(`Next UI: Unsupported ${t} color.`);return[Number.parseInt(e[1],16),Number.parseInt(e[2],16),Number.parseInt(e[3],16)]};export const hexFromString=(t,r="",e=!1)=>{const o=t.match(/#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}$/g);return o&&o.length>0?e?o[o.length-1]:o:r};export const colorToRgbValues=t=>{const r=isCssVar(t)?getCssVar(t):t;if("#"===r.charAt(0))return hexToRgb(r);const e=r.replace(/ /g,""),o=r.substr(0,4),n=e.match(/\((.+)\)/);if(!o.startsWith("rgb")||!n)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return n[1].split(",").map((t=>Number.parseFloat(t)))};export const addColorAlpha=(t,r=1)=>{if(!t)return"";const e=isCssVar(t)?getCssVar(t):t;if(/#[a-fA-F0-9]{3,6}/g.test(e))return hexToRGBA(e,r);if(!/^#|rgb|RGB/.test(e))return e;const[o,n,s]=colorToRgbValues(e);return`rgba(${o}, ${n}, ${s}, ${r>1?1:r<0?0:r})`};function r(t,r){return r=r||2,(new Array(r).join("0")+t).slice(-r)}export const invertHex=(t,e=!0)=>{let o=isCssVar(t)?getCssVar(t):t;if(0===o.indexOf("#")&&(o=o.slice(1)),3===o.length&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]),6!==o.length)return t;let n=parseInt(o.slice(0,2),16),s=parseInt(o.slice(2,4),16),a=parseInt(o.slice(4,6),16);return e?.299*n+.587*s+.114*a>186?"#000000":"#FFFFFF":(n=255-n,s=255-s,a=255-a,"#"+r(n.toString(16))+r(s.toString(16))+r(a.toString(16)))};
1
+ import{normalColors as t,simpleColors as r}from"./prop-types";export const getCssVar=t=>{if("undefined"!=typeof document||!t){const r=isCssVar(t)?t.replace("var(","").replace(")",""):`--${t}`;return getComputedStyle(document.documentElement).getPropertyValue(r)}return""};export const isCssVar=t=>!(!t||0!==(null==t?void 0:t.indexOf("var(")));export const isHex=t=>/#[a-fA-F0-9]{3,6}/g.test(t);export const hexToRGBA=(t,r=1)=>{let e=0,o=0,n=0;return 4==t.length?(e="0x"+t[1]+t[1],o="0x"+t[2]+t[2],n="0x"+t[3]+t[3]):7==t.length&&(e="0x"+t[1]+t[2],o="0x"+t[3]+t[4],n="0x"+t[5]+t[6]),`rgba(${+e}, ${+o},${+n},${r})`};export const isNormalColor=r=>{let e=t.find((t=>t===r));return null!=e};export const isSimpleColor=t=>{let e=r.find((r=>r===t));return null!=e};export const isColor=t=>{let r=(new Option).style;return r.color=t,r.color==t};export const hexToRgb=t=>{const r=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((t,r,e,o)=>`${r}${r}${e}${e}${o}${o}`)),e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);if(!e)throw new Error(`Next UI: Unsupported ${t} color.`);return[Number.parseInt(e[1],16),Number.parseInt(e[2],16),Number.parseInt(e[3],16)]};export const hexFromString=(t,r="",e=!1)=>{const o=t.match(/#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}$/g);return o&&o.length>0?e?o[o.length-1]:o:r};export const colorToRgbValues=t=>{const r=isCssVar(t)?getCssVar(t):t;if("#"===r.charAt(0))return hexToRgb(r);const e=r.replace(/ /g,""),o=r.substr(0,4),n=e.match(/\((.+)\)/);if(!o.startsWith("rgb")||!n)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return n[1].split(",").map((t=>Number.parseFloat(t)))};export const addColorAlpha=(t,r=1)=>{if(!t)return"";const e=isCssVar(t)?getCssVar(t):t;if(/#[a-fA-F0-9]{3,6}/g.test(e))return hexToRGBA(e,r);if(!/^#|rgb|RGB/.test(e))return e;const[o,n,s]=colorToRgbValues(e);return`rgba(${o}, ${n}, ${s}, ${r>1?1:r<0?0:r})`};function e(t,r){return r=r||2,(new Array(r).join("0")+t).slice(-r)}export const invertHex=(t,r=!0)=>{let o=isCssVar(t)?getCssVar(t):t;if(0===o.indexOf("#")&&(o=o.slice(1)),3===o.length&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]),6!==o.length)return t;let n=parseInt(o.slice(0,2),16),s=parseInt(o.slice(2,4),16),l=parseInt(o.slice(4,6),16);return r?.299*n+.587*s+.114*l>186?"#000000":"#FFFFFF":(n=255-n,s=255-s,l=255-l,"#"+e(n.toString(16))+e(s.toString(16))+e(l.toString(16)))};
package/esm/utils/dom.js CHANGED
@@ -1 +1 @@
1
- import{useImperativeHandle as e,useRef as t}from"react";export function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}export const isBrowser=canUseDOM();export function detectDeviceType(e){const{userAgent:t}=e;return/(tablet)|(iPad)|(Nexus 9)/i.test(t)?"tablet":/(mobi)/i.test(t)?"phone":"desktop"}export function detectOS(e){return!!isBrowser&&function(e){const{userAgent:t,platform:r}=e;switch(!0){case/Android/.test(t):return"Android";case/iPhone|iPad|iPod/.test(r):return"iOS";case/Win/.test(r):return"Windows";case/Mac/.test(r):return"Mac";case/CrOS/.test(t):return"Chrome OS";case/Firefox/.test(t):return"Firefox OS";default:return null}}(window.navigator)===e}export function detectBrowser(e){return!!isBrowser&&function(e){const{userAgent:t,vendor:r}=e,n=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case n&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(r):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e}export function detectTouch(){return!!isBrowser&&(null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend)}export function createDOMRef(e){return{UNSAFE_getDOMNode:()=>e.current}}export function createFocusableRef(e,t=e){return{...createDOMRef(e),focus(){t.current&&t.current.focus()}}}export function useDOMRef(r){const n=t(null);return e(r,(()=>n.current)),n}export function useFocusableRef(r,n){const o=t(null);return e(r,(()=>createFocusableRef(o,n))),o}export function unwrapDOMRef(e){return{get current(){return e.current&&e.current.UNSAFE_getDOMNode()}}}
1
+ import{useImperativeHandle as e,useLayoutEffect as t,useRef as r}from"react";export function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}export const isBrowser=canUseDOM();export function detectDeviceType(e){const{userAgent:t}=e;return/(tablet)|(iPad)|(Nexus 9)/i.test(t)?"tablet":/(mobi)/i.test(t)?"phone":"desktop"}export function detectOS(e){return!!isBrowser&&function(e){const{userAgent:t,platform:r}=e;switch(!0){case/Android/.test(t):return"Android";case/iPhone|iPad|iPod/.test(r):return"iOS";case/Win/.test(r):return"Windows";case/Mac/.test(r):return"Mac";case/CrOS/.test(t):return"Chrome OS";case/Firefox/.test(t):return"Firefox OS";default:return null}}(window.navigator)===e}export function detectBrowser(e){return!!isBrowser&&function(e){const{userAgent:t,vendor:r}=e,n=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case n&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(r):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e}export function detectTouch(){return!!isBrowser&&(null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend)}export function createDOMRef(e){return{UNSAFE_getDOMNode:()=>e.current}}export function createFocusableRef(e,t=e){return{...createDOMRef(e),focus(){t.current&&t.current.focus()}}}export function useDOMRef(t){const n=r(null);return e(t,(()=>n.current)),n}export function useFocusableRef(t,n){const o=r(null);return e(t,(()=>createFocusableRef(o,n))),o}export function useSyncRef(e,r){t((()=>{if(e&&e.ref&&r&&r.current)return e.ref.current=r.current,()=>{var t;null!=(t=e.ref)&&t.current&&(e.ref.current=null)}}),[e,r])}
@@ -1 +1 @@
1
- import e from"react";import{jsx as t}from"react/jsx-runtime";import{jsxs as i}from"react/jsx-runtime";export const Sun=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>r?t("svg",{viewBox:"0 0 512 512",width:n||h||24,height:n||l||24,...d,children:t("path",{fill:o,d:"M256 118a22 22 0 01-22-22V48a22 22 0 0144 0v48a22 22 0 01-22 22zM256 486a22 22 0 01-22-22v-48a22 22 0 0144 0v48a22 22 0 01-22 22zM369.14 164.86a22 22 0 01-15.56-37.55l33.94-33.94a22 22 0 0131.11 31.11l-33.94 33.94a21.93 21.93 0 01-15.55 6.44zM108.92 425.08a22 22 0 01-15.55-37.56l33.94-33.94a22 22 0 1131.11 31.11l-33.94 33.94a21.94 21.94 0 01-15.56 6.45zM464 278h-48a22 22 0 010-44h48a22 22 0 010 44zM96 278H48a22 22 0 010-44h48a22 22 0 010 44zM403.08 425.08a21.94 21.94 0 01-15.56-6.45l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.55 37.56zM142.86 164.86a21.89 21.89 0 01-15.55-6.44l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.56 37.55zM256 358a102 102 0 11102-102 102.12 102.12 0 01-102 102z"})}):i("svg",{viewBox:"0 0 512 512",width:n||h||24,height:n||l||24,...d,children:[t("path",{fill:"none",stroke:o,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"}),t("circle",{cx:256,cy:256,r:80,fill:"none",stroke:o,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32})]});export const Mail=({theme:e,fill:o,size:r,height:n,width:l,...h})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",...h,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[t("path",{d:"M12 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v3"}),t("path",{d:"M17 9l-3.13 2.5a3.166 3.166 0 01-3.75 0L7 9M19.21 14.77l-3.539 3.54a1.232 1.232 0 00-.3.59l-.19 1.35a.635.635 0 00.76.76l1.35-.19a1.189 1.189 0 00.59-.3l3.54-3.54a1.365 1.365 0 000-2.22 1.361 1.361 0 00-2.211.01zM18.7 15.28a3.185 3.185 0 002.22 2.22"})]})});export const Moon=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",o?{viewBox:"0 0 512 512",width:r||l||24,height:r||n||24,...s,children:t("path",{fill:i,d:"M152.62 126.77c0-33 4.85-66.35 17.23-94.77C87.54 67.83 32 151.89 32 247.38 32 375.85 136.15 480 264.62 480c95.49 0 179.55-55.54 215.38-137.85-28.42 12.38-61.8 17.23-94.77 17.23-128.47 0-232.61-104.14-232.61-232.61z"})}:{viewBox:"0 0 512 512",width:r||l||24,height:r||n||24,...s,children:t("path",{d:"M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32})});export const Lock=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>{const a=o;return t("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:n||h||24,height:n||l||24,viewBox:"0 0 24 24",...d,children:i("g",{transform:"translate(3.5 2)",children:[t("path",{d:"M9.121,6.653V4.5A4.561,4.561,0,0,0,0,4.484V6.653",transform:"translate(3.85 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.4,0,7.66,0Z",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};export const Unlock=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>{const a=o;return t("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:n||h||24,height:n||l||24,viewBox:"0 0 24 24",...d,children:i("g",{transform:"translate(3.5 2)",children:[t("path",{d:"M8.927,3.237A4.562,4.562,0,0,0,0,4.484V6.653",transform:"translate(3.849 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.406,0,7.66,0Z",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};export const Password=({theme:e,fill:o,size:r,height:n,width:l,...h})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",...h,children:i("g",{fill:o,children:[t("path",{d:"M18.75 8v2.1a12.984 12.984 0 00-1.5-.1V8c0-3.15-.89-5.25-5.25-5.25S6.75 4.85 6.75 8v2a12.984 12.984 0 00-1.5.1V8c0-2.9.7-6.75 6.75-6.75S18.75 5.1 18.75 8z"}),t("path",{d:"M18.75 10.1a12.984 12.984 0 00-1.5-.1H6.75a12.984 12.984 0 00-1.5.1C2.7 10.41 2 11.66 2 15v2c0 4 1 5 5 5h10c4 0 5-1 5-5v-2c0-3.34-.7-4.59-3.25-4.9zM8.71 16.71A1.052 1.052 0 018 17a1 1 0 01-.38-.08 1.032 1.032 0 01-.33-.21A1.052 1.052 0 017 16a1 1 0 01.08-.38 1.155 1.155 0 01.21-.33 1.032 1.032 0 01.33-.21 1 1 0 011.09.21 1.155 1.155 0 01.21.33A1 1 0 019 16a1.052 1.052 0 01-.29.71zm4.21-.33a1.155 1.155 0 01-.21.33A1.052 1.052 0 0112 17a1.033 1.033 0 01-.71-.29 1.155 1.155 0 01-.21-.33A1 1 0 0111 16a1.033 1.033 0 01.29-.71 1.047 1.047 0 011.42 0A1.033 1.033 0 0113 16a1 1 0 01-.08.38zm3.79.33a1.014 1.014 0 01-1.42 0 1.014 1.014 0 010-1.42 1.047 1.047 0 011.42 0c.04.05.08.1.12.16a.556.556 0 01.09.17.636.636 0 01.06.18 1.5 1.5 0 01.02.2 1.052 1.052 0 01-.29.71z"})]})});export const Notification=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.707 8.796c0 1.256.332 1.997 1.063 2.85.553.628.73 1.435.73 2.31 0 .874-.287 1.704-.863 2.378a4.537 4.537 0 01-2.9 1.413c-1.571.134-3.143.247-4.736.247-1.595 0-3.166-.068-4.737-.247a4.532 4.532 0 01-2.9-1.413 3.616 3.616 0 01-.864-2.378c0-.875.178-1.682.73-2.31.754-.854 1.064-1.594 1.064-2.85V8.37c0-1.682.42-2.781 1.283-3.858C7.861 2.942 9.919 2 11.956 2h.09c2.08 0 4.204.987 5.466 2.625.82 1.054 1.195 2.108 1.195 3.745v.426zM9.074 20.061c0-.504.462-.734.89-.833.5-.106 3.545-.106 4.045 0 .428.099.89.33.89.833-.025.48-.306.904-.695 1.174a3.635 3.635 0 01-1.713.731 3.795 3.795 0 01-1.008 0 3.618 3.618 0 01-1.714-.732c-.39-.269-.67-.694-.695-1.173z",fill:i})});export const User=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>t("svg",{"data-name":"Iconly/Curved/Profile",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n||h||24,height:n||l||24,...d,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[t("path",{"data-name":"Stroke 1",d:"M11.845 21.662C8.153 21.662 5 21.088 5 18.787s3.133-4.425 6.845-4.425c3.692 0 6.845 2.1 6.845 4.4s-3.134 2.9-6.845 2.9z"}),t("path",{"data-name":"Stroke 3",d:"M11.837 11.174a4.372 4.372 0 10-.031 0z"})]})});export const VolumeUp=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r||l||24,height:r||n||24,fill:"none",...s,children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.357 6.45c-.05-.486-.103-.99-.232-1.494C12.775 3.752 11.801 3 10.758 3c-.582-.002-1.318.356-1.736.72l-3.46 2.897h-1.81c-1.333 0-2.404 1.027-2.607 2.51-.172 1.424-.214 4.11 0 5.677.186 1.567 1.21 2.579 2.607 2.579h1.81l3.527 2.94c.362.315 1 .676 1.588.676l.105.001c1.063 0 2-.78 2.35-1.98.133-.509.18-.985.224-1.445l.001-.008.047-.459c.18-1.487.18-8.739 0-10.215l-.047-.442zm4.05.045a.907.907 0 00-1.279-.237.957.957 0 00-.228 1.308c.802 1.182 1.243 2.756 1.243 4.434 0 1.677-.441 3.252-1.243 4.434a.956.956 0 00.23 1.308.905.905 0 001.277-.237c1.012-1.492 1.571-3.447 1.571-5.505s-.559-4.013-1.571-5.505zM19.29 3.22a.905.905 0 011.277.236C22.136 5.767 23 8.802 23 12c0 3.2-.864 6.234-2.433 8.544a.902.902 0 01-1.276.236.957.957 0 01-.23-1.308c1.356-1.999 2.104-4.653 2.104-7.472 0-2.818-.748-5.472-2.105-7.471a.958.958 0 01.23-1.308z",fill:i})});export const Camera=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.44 6.236c.04.07.11.12.2.12 2.4 0 4.36 1.958 4.36 4.355v5.934A4.368 4.368 0 0117.64 21H6.36A4.361 4.361 0 012 16.645V10.71a4.361 4.361 0 014.36-4.355c.08 0 .16-.04.19-.12l.06-.12.106-.222a97.79 97.79 0 01.714-1.486C7.89 3.51 8.67 3.01 9.64 3h4.71c.97.01 1.76.51 2.22 1.408.157.315.397.822.629 1.31l.141.299.1.22zm-.73 3.836c0 .5.4.9.9.9s.91-.4.91-.9-.41-.909-.91-.909-.9.41-.9.91zm-6.44 1.548c.47-.47 1.08-.719 1.73-.719.65 0 1.26.25 1.72.71.46.459.71 1.068.71 1.717A2.438 2.438 0 0112 15.756c-.65 0-1.26-.25-1.72-.71a2.408 2.408 0 01-.71-1.717v-.01c-.01-.63.24-1.24.7-1.699zm4.5 4.485a3.91 3.91 0 01-2.77 1.15 3.921 3.921 0 01-3.93-3.926 3.865 3.865 0 011.14-2.767A3.921 3.921 0 0112 9.402c1.05 0 2.04.41 2.78 1.15.74.749 1.15 1.738 1.15 2.777a3.958 3.958 0 01-1.16 2.776z",fill:i})});export const Activity=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>t("svg",{"data-name":"Iconly/Curved/Activity",xmlns:"http://www.w3.org/2000/svg",width:n||h||24,height:n||l||24,viewBox:"0 0 24 24",...d,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[t("path",{d:"M6.918 14.854l2.993-3.889 3.414 2.68 2.929-3.78"}),t("path",{d:"M19.668 2.35a1.922 1.922 0 11-1.922 1.922 1.921 1.921 0 011.922-1.922z"}),t("path",{d:"M20.756 9.269a20.809 20.809 0 01.194 3.034c0 6.938-2.312 9.25-9.25 9.25s-9.25-2.312-9.25-9.25 2.313-9.25 9.25-9.25a20.931 20.931 0 012.983.187"})]})});export const Plus=({theme:e,fill:o,size:r,height:n,width:l,...h})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",...h,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[t("path",{d:"M6 12h12"}),t("path",{d:"M12 18V6"})]})});export const Minus=({theme:e,fill:i,size:o,height:r,width:n,...l})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",...l,children:t("path",{d:"M6 12h12",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});export const Eye=({fill:e,size:o,height:r,width:n,...l})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[t("path",{d:"M12.9833 10C12.9833 11.65 11.65 12.9833 10 12.9833C8.35 12.9833 7.01666 11.65 7.01666 10C7.01666 8.35 8.35 7.01666 10 7.01666C11.65 7.01666 12.9833 8.35 12.9833 10Z",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M9.99999 16.8916C12.9417 16.8916 15.6833 15.1583 17.5917 12.1583C18.3417 10.9833 18.3417 9.00831 17.5917 7.83331C15.6833 4.83331 12.9417 3.09998 9.99999 3.09998C7.05833 3.09998 4.31666 4.83331 2.40833 7.83331C1.65833 9.00831 1.65833 10.9833 2.40833 12.1583C4.31666 15.1583 7.05833 16.8916 9.99999 16.8916Z",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});export const Edit=({fill:e,size:o,height:r,width:n,...l})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[t("path",{d:"M11.05 3.00002L4.20835 10.2417C3.95002 10.5167 3.70002 11.0584 3.65002 11.4334L3.34169 14.1334C3.23335 15.1084 3.93335 15.775 4.90002 15.6084L7.58335 15.15C7.95835 15.0834 8.48335 14.8084 8.74168 14.525L15.5834 7.28335C16.7667 6.03335 17.3 4.60835 15.4583 2.86668C13.625 1.14168 12.2334 1.75002 11.05 3.00002Z",stroke:e,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M9.90833 4.20831C10.2667 6.50831 12.1333 8.26665 14.45 8.49998",stroke:e,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M2.5 18.3333H17.5",stroke:e,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})]});export const Delete=({fill:e,size:o,height:r,width:n,...l})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[t("path",{d:"M17.5 4.98332C14.725 4.70832 11.9333 4.56665 9.15 4.56665C7.5 4.56665 5.85 4.64998 4.2 4.81665L2.5 4.98332",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7.08331 4.14169L7.26665 3.05002C7.39998 2.25835 7.49998 1.66669 8.90831 1.66669H11.0916C12.5 1.66669 12.6083 2.29169 12.7333 3.05835L12.9166 4.14169",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M15.7084 7.61664L15.1667 16.0083C15.075 17.3166 15 18.3333 12.675 18.3333H7.32502C5.00002 18.3333 4.92502 17.3166 4.83335 16.0083L4.29169 7.61664",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8.60834 13.75H11.3833",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7.91669 10.4167H12.0834",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});
1
+ import t from"react";import{jsx as e}from"react/jsx-runtime";import{jsxs as i}from"react/jsx-runtime";export const Sun=({theme:t,fill:o,filled:r,size:n,height:h,width:l,label:s,...d})=>r?e("svg",{viewBox:"0 0 512 512",width:n||l||24,height:n||h||24,...d,children:e("path",{fill:o,d:"M256 118a22 22 0 01-22-22V48a22 22 0 0144 0v48a22 22 0 01-22 22zM256 486a22 22 0 01-22-22v-48a22 22 0 0144 0v48a22 22 0 01-22 22zM369.14 164.86a22 22 0 01-15.56-37.55l33.94-33.94a22 22 0 0131.11 31.11l-33.94 33.94a21.93 21.93 0 01-15.55 6.44zM108.92 425.08a22 22 0 01-15.55-37.56l33.94-33.94a22 22 0 1131.11 31.11l-33.94 33.94a21.94 21.94 0 01-15.56 6.45zM464 278h-48a22 22 0 010-44h48a22 22 0 010 44zM96 278H48a22 22 0 010-44h48a22 22 0 010 44zM403.08 425.08a21.94 21.94 0 01-15.56-6.45l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.55 37.56zM142.86 164.86a21.89 21.89 0 01-15.55-6.44l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.56 37.55zM256 358a102 102 0 11102-102 102.12 102.12 0 01-102 102z"})}):i("svg",{viewBox:"0 0 512 512",width:n||l||24,height:n||h||24,...d,children:[e("path",{fill:"none",stroke:o,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,d:"M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94"}),e("circle",{cx:256,cy:256,r:80,fill:"none",stroke:o,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32})]});export const Mail=({theme:t,fill:o,size:r,height:n,width:h,...l})=>e("svg",{width:r||h||24,height:r||n||24,viewBox:"0 0 24 24",...l,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[e("path",{d:"M12 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v3"}),e("path",{d:"M17 9l-3.13 2.5a3.166 3.166 0 01-3.75 0L7 9M19.21 14.77l-3.539 3.54a1.232 1.232 0 00-.3.59l-.19 1.35a.635.635 0 00.76.76l1.35-.19a1.189 1.189 0 00.59-.3l3.54-3.54a1.365 1.365 0 000-2.22 1.361 1.361 0 00-2.211.01zM18.7 15.28a3.185 3.185 0 002.22 2.22"})]})});export const Moon=({theme:t,fill:i,filled:o,size:r,height:n,width:h,label:l,...s})=>e("svg",o?{viewBox:"0 0 512 512",width:r||h||24,height:r||n||24,...s,children:e("path",{fill:i,d:"M152.62 126.77c0-33 4.85-66.35 17.23-94.77C87.54 67.83 32 151.89 32 247.38 32 375.85 136.15 480 264.62 480c95.49 0 179.55-55.54 215.38-137.85-28.42 12.38-61.8 17.23-94.77 17.23-128.47 0-232.61-104.14-232.61-232.61z"})}:{viewBox:"0 0 512 512",width:r||h||24,height:r||n||24,...s,children:e("path",{d:"M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32})});export const Lock=({theme:t,fill:o,filled:r,size:n,height:h,width:l,label:s,...d})=>{const a=o;return e("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:n||l||24,height:n||h||24,viewBox:"0 0 24 24",...d,children:i("g",{transform:"translate(3.5 2)",children:[e("path",{d:"M9.121,6.653V4.5A4.561,4.561,0,0,0,0,4.484V6.653",transform:"translate(3.85 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),e("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),e("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.4,0,7.66,0Z",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};export const Unlock=({theme:t,fill:o,filled:r,size:n,height:h,width:l,label:s,...d})=>{const a=o;return e("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:n||l||24,height:n||h||24,viewBox:"0 0 24 24",...d,children:i("g",{transform:"translate(3.5 2)",children:[e("path",{d:"M8.927,3.237A4.562,4.562,0,0,0,0,4.484V6.653",transform:"translate(3.849 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),e("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),e("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.406,0,7.66,0Z",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};export const Password=({theme:t,fill:o,size:r,height:n,width:h,...l})=>e("svg",{width:r||h||24,height:r||n||24,viewBox:"0 0 24 24",...l,children:i("g",{fill:o,children:[e("path",{d:"M18.75 8v2.1a12.984 12.984 0 00-1.5-.1V8c0-3.15-.89-5.25-5.25-5.25S6.75 4.85 6.75 8v2a12.984 12.984 0 00-1.5.1V8c0-2.9.7-6.75 6.75-6.75S18.75 5.1 18.75 8z"}),e("path",{d:"M18.75 10.1a12.984 12.984 0 00-1.5-.1H6.75a12.984 12.984 0 00-1.5.1C2.7 10.41 2 11.66 2 15v2c0 4 1 5 5 5h10c4 0 5-1 5-5v-2c0-3.34-.7-4.59-3.25-4.9zM8.71 16.71A1.052 1.052 0 018 17a1 1 0 01-.38-.08 1.032 1.032 0 01-.33-.21A1.052 1.052 0 017 16a1 1 0 01.08-.38 1.155 1.155 0 01.21-.33 1.032 1.032 0 01.33-.21 1 1 0 011.09.21 1.155 1.155 0 01.21.33A1 1 0 019 16a1.052 1.052 0 01-.29.71zm4.21-.33a1.155 1.155 0 01-.21.33A1.052 1.052 0 0112 17a1.033 1.033 0 01-.71-.29 1.155 1.155 0 01-.21-.33A1 1 0 0111 16a1.033 1.033 0 01.29-.71 1.047 1.047 0 011.42 0A1.033 1.033 0 0113 16a1 1 0 01-.08.38zm3.79.33a1.014 1.014 0 01-1.42 0 1.014 1.014 0 010-1.42 1.047 1.047 0 011.42 0c.04.05.08.1.12.16a.556.556 0 01.09.17.636.636 0 01.06.18 1.5 1.5 0 01.02.2 1.052 1.052 0 01-.29.71z"})]})});export const Notification=({theme:t,fill:i,filled:o,size:r,height:n,width:h,label:l,...s})=>e("svg",{width:r||h||24,height:r||n||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.707 8.796c0 1.256.332 1.997 1.063 2.85.553.628.73 1.435.73 2.31 0 .874-.287 1.704-.863 2.378a4.537 4.537 0 01-2.9 1.413c-1.571.134-3.143.247-4.736.247-1.595 0-3.166-.068-4.737-.247a4.532 4.532 0 01-2.9-1.413 3.616 3.616 0 01-.864-2.378c0-.875.178-1.682.73-2.31.754-.854 1.064-1.594 1.064-2.85V8.37c0-1.682.42-2.781 1.283-3.858C7.861 2.942 9.919 2 11.956 2h.09c2.08 0 4.204.987 5.466 2.625.82 1.054 1.195 2.108 1.195 3.745v.426zM9.074 20.061c0-.504.462-.734.89-.833.5-.106 3.545-.106 4.045 0 .428.099.89.33.89.833-.025.48-.306.904-.695 1.174a3.635 3.635 0 01-1.713.731 3.795 3.795 0 01-1.008 0 3.618 3.618 0 01-1.714-.732c-.39-.269-.67-.694-.695-1.173z",fill:i})});export const User=({theme:t,fill:o,filled:r,size:n,height:h,width:l,label:s,...d})=>e("svg",{"data-name":"Iconly/Curved/Profile",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n||l||24,height:n||h||24,...d,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[e("path",{"data-name":"Stroke 1",d:"M11.845 21.662C8.153 21.662 5 21.088 5 18.787s3.133-4.425 6.845-4.425c3.692 0 6.845 2.1 6.845 4.4s-3.134 2.9-6.845 2.9z"}),e("path",{"data-name":"Stroke 3",d:"M11.837 11.174a4.372 4.372 0 10-.031 0z"})]})});export const VolumeUp=({theme:t,fill:i,filled:o,size:r,height:n,width:h,label:l,...s})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r||h||24,height:r||n||24,fill:"none",...s,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.357 6.45c-.05-.486-.103-.99-.232-1.494C12.775 3.752 11.801 3 10.758 3c-.582-.002-1.318.356-1.736.72l-3.46 2.897h-1.81c-1.333 0-2.404 1.027-2.607 2.51-.172 1.424-.214 4.11 0 5.677.186 1.567 1.21 2.579 2.607 2.579h1.81l3.527 2.94c.362.315 1 .676 1.588.676l.105.001c1.063 0 2-.78 2.35-1.98.133-.509.18-.985.224-1.445l.001-.008.047-.459c.18-1.487.18-8.739 0-10.215l-.047-.442zm4.05.045a.907.907 0 00-1.279-.237.957.957 0 00-.228 1.308c.802 1.182 1.243 2.756 1.243 4.434 0 1.677-.441 3.252-1.243 4.434a.956.956 0 00.23 1.308.905.905 0 001.277-.237c1.012-1.492 1.571-3.447 1.571-5.505s-.559-4.013-1.571-5.505zM19.29 3.22a.905.905 0 011.277.236C22.136 5.767 23 8.802 23 12c0 3.2-.864 6.234-2.433 8.544a.902.902 0 01-1.276.236.957.957 0 01-.23-1.308c1.356-1.999 2.104-4.653 2.104-7.472 0-2.818-.748-5.472-2.105-7.471a.958.958 0 01.23-1.308z",fill:i})});export const Camera=({theme:t,fill:i,filled:o,size:r,height:n,width:h,label:l,...s})=>e("svg",{width:r||h||24,height:r||n||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.44 6.236c.04.07.11.12.2.12 2.4 0 4.36 1.958 4.36 4.355v5.934A4.368 4.368 0 0117.64 21H6.36A4.361 4.361 0 012 16.645V10.71a4.361 4.361 0 014.36-4.355c.08 0 .16-.04.19-.12l.06-.12.106-.222a97.79 97.79 0 01.714-1.486C7.89 3.51 8.67 3.01 9.64 3h4.71c.97.01 1.76.51 2.22 1.408.157.315.397.822.629 1.31l.141.299.1.22zm-.73 3.836c0 .5.4.9.9.9s.91-.4.91-.9-.41-.909-.91-.909-.9.41-.9.91zm-6.44 1.548c.47-.47 1.08-.719 1.73-.719.65 0 1.26.25 1.72.71.46.459.71 1.068.71 1.717A2.438 2.438 0 0112 15.756c-.65 0-1.26-.25-1.72-.71a2.408 2.408 0 01-.71-1.717v-.01c-.01-.63.24-1.24.7-1.699zm4.5 4.485a3.91 3.91 0 01-2.77 1.15 3.921 3.921 0 01-3.93-3.926 3.865 3.865 0 011.14-2.767A3.921 3.921 0 0112 9.402c1.05 0 2.04.41 2.78 1.15.74.749 1.15 1.738 1.15 2.777a3.958 3.958 0 01-1.16 2.776z",fill:i})});export const Activity=({theme:t,fill:o,filled:r,size:n,height:h,width:l,label:s,...d})=>e("svg",{"data-name":"Iconly/Curved/Activity",xmlns:"http://www.w3.org/2000/svg",width:n||l||24,height:n||h||24,viewBox:"0 0 24 24",...d,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[e("path",{d:"M6.918 14.854l2.993-3.889 3.414 2.68 2.929-3.78"}),e("path",{d:"M19.668 2.35a1.922 1.922 0 11-1.922 1.922 1.921 1.921 0 011.922-1.922z"}),e("path",{d:"M20.756 9.269a20.809 20.809 0 01.194 3.034c0 6.938-2.312 9.25-9.25 9.25s-9.25-2.312-9.25-9.25 2.313-9.25 9.25-9.25a20.931 20.931 0 012.983.187"})]})});export const Plus=({theme:t,fill:o,size:r,height:n,width:h,...l})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:r||h||24,height:r||n||24,viewBox:"0 0 24 24",...l,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[e("path",{d:"M6 12h12"}),e("path",{d:"M12 18V6"})]})});export const Minus=({theme:t,fill:i,size:o,height:r,width:n,...h})=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",...h,children:e("path",{d:"M6 12h12",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});export const Eye=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M12.9833 10C12.9833 11.65 11.65 12.9833 10 12.9833C8.35 12.9833 7.01666 11.65 7.01666 10C7.01666 8.35 8.35 7.01666 10 7.01666C11.65 7.01666 12.9833 8.35 12.9833 10Z",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M9.99999 16.8916C12.9417 16.8916 15.6833 15.1583 17.5917 12.1583C18.3417 10.9833 18.3417 9.00831 17.5917 7.83331C15.6833 4.83331 12.9417 3.09998 9.99999 3.09998C7.05833 3.09998 4.31666 4.83331 2.40833 7.83331C1.65833 9.00831 1.65833 10.9833 2.40833 12.1583C4.31666 15.1583 7.05833 16.8916 9.99999 16.8916Z",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});export const Edit=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M11.05 3.00002L4.20835 10.2417C3.95002 10.5167 3.70002 11.0584 3.65002 11.4334L3.34169 14.1334C3.23335 15.1084 3.93335 15.775 4.90002 15.6084L7.58335 15.15C7.95835 15.0834 8.48335 14.8084 8.74168 14.525L15.5834 7.28335C16.7667 6.03335 17.3 4.60835 15.4583 2.86668C13.625 1.14168 12.2334 1.75002 11.05 3.00002Z",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M9.90833 4.20831C10.2667 6.50831 12.1333 8.26665 14.45 8.49998",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M2.5 18.3333H17.5",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})]});export const Delete=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M17.5 4.98332C14.725 4.70832 11.9333 4.56665 9.15 4.56665C7.5 4.56665 5.85 4.64998 4.2 4.81665L2.5 4.98332",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M7.08331 4.14169L7.26665 3.05002C7.39998 2.25835 7.49998 1.66669 8.90831 1.66669H11.0916C12.5 1.66669 12.6083 2.29169 12.7333 3.05835L12.9166 4.14169",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M15.7084 7.61664L15.1667 16.0083C15.075 17.3166 15 18.3333 12.675 18.3333H7.32502C5.00002 18.3333 4.92502 17.3166 4.83335 16.0083L4.29169 7.61664",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M8.60834 13.75H11.3833",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M7.91669 10.4167H12.0834",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});export const ChevronDown=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{width:i||r||24,height:i||o||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})});export const ChevronDownBold=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{width:i||r||24,height:i||o||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"M17.9188 8.17969H11.6888H6.07877C5.11877 8.17969 4.63877 9.33969 5.31877 10.0197L10.4988 15.1997C11.3288 16.0297 12.6788 16.0297 13.5088 15.1997L15.4788 13.2297L18.6888 10.0197C19.3588 9.33969 18.8788 8.17969 17.9188 8.17969Z",fill:t})});export const NewFile=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M8 2V5",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M16 2V5",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M21 8.5V13.63C20.11 12.92 18.98 12.5 17.75 12.5C16.52 12.5 15.37 12.93 14.47 13.66C13.26 14.61 12.5 16.1 12.5 17.75C12.5 18.73 12.78 19.67 13.26 20.45C13.63 21.06 14.11 21.59 14.68 22H8C4.5 22 3 20 3 17V8.5C3 5.5 4.5 3.5 8 3.5H16C19.5 3.5 21 5.5 21 8.5Z",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M7 11H13",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M7 16H9.62",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M23 17.75C23 18.73 22.72 19.67 22.24 20.45C21.96 20.93 21.61 21.35 21.2 21.69C20.28 22.51 19.08 23 17.75 23C16.6 23 15.54 22.63 14.68 22C14.11 21.59 13.63 21.06 13.26 20.45C12.78 19.67 12.5 18.73 12.5 17.75C12.5 16.1 13.26 14.61 14.47 13.66C15.37 12.93 16.52 12.5 17.75 12.5C18.98 12.5 20.11 12.92 21 13.63C22.22 14.59 23 16.08 23 17.75Z",stroke:t,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),e("path",{d:"M17.75 20.25C17.75 18.87 18.87 17.75 20.25 17.75C18.87 17.75 17.75 16.63 17.75 15.25C17.75 16.63 16.63 17.75 15.25 17.75C16.63 17.75 17.75 18.87 17.75 20.25Z",stroke:t,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});export const AddNoteBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{opacity:.4,d:"M7.37 22h9.25a4.87 4.87 0 0 0 4.87-4.87V8.37a4.87 4.87 0 0 0-4.87-4.87H7.37A4.87 4.87 0 0 0 2.5 8.37v8.75c0 2.7 2.18 4.88 4.87 4.88Z",fill:t}),e("path",{d:"M8.29 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM15.71 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM12 14.75h-1.69V13c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.75H7c-.41 0-.75.34-.75.75s.34.75.75.75h1.81V18c0 .41.34.75.75.75s.75-.34.75-.75v-1.75H12c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z",fill:t})]});export const CopyDocumentBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{opacity:.4,d:"M15.5 13.15h-2.17c-1.78 0-3.23-1.44-3.23-3.23V7.75c0-.41-.33-.75-.75-.75H6.18C3.87 7 2 8.5 2 11.18v6.64C2 20.5 3.87 22 6.18 22h5.89c2.31 0 4.18-1.5 4.18-4.18V13.9c0-.42-.34-.75-.75-.75Z",fill:t}),e("path",{d:"M17.82 2H11.93C9.67 2 7.84 3.44 7.76 6.01c.06 0 .11-.01.17-.01h5.89C16.13 6 18 7.5 18 10.18V16.83c0 .06-.01.11-.01.16 2.23-.07 4.01-1.55 4.01-4.16V6.18C22 3.5 20.13 2 17.82 2Z",fill:t}),e("path",{d:"M11.98 7.15c-.31-.31-.84-.1-.84.33v2.62c0 1.1.93 2 2.07 2 .71.01 1.7.01 2.55.01.43 0 .65-.5.35-.8-1.09-1.09-3.03-3.04-4.13-4.16Z",fill:t})]});export const EditDocumentBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{opacity:.4,d:"M15.48 3H7.52C4.07 3 2 5.06 2 8.52v7.95C2 19.94 4.07 22 7.52 22h7.95c3.46 0 5.52-2.06 5.52-5.52V8.52C21 5.06 18.93 3 15.48 3Z",fill:t}),e("path",{d:"M21.02 2.98c-1.79-1.8-3.54-1.84-5.38 0L14.51 4.1c-.1.1-.13.24-.09.37.7 2.45 2.66 4.41 5.11 5.11.03.01.08.01.11.01.1 0 .2-.04.27-.11l1.11-1.12c.91-.91 1.36-1.78 1.36-2.67 0-.9-.45-1.79-1.36-2.71ZM17.86 10.42c-.27-.13-.53-.26-.77-.41-.2-.12-.4-.25-.59-.39-.16-.1-.34-.25-.52-.4-.02-.01-.08-.06-.16-.14-.31-.25-.64-.59-.95-.96-.02-.02-.08-.08-.13-.17-.1-.11-.25-.3-.38-.51-.11-.14-.24-.34-.36-.55-.15-.25-.28-.5-.4-.76-.13-.28-.23-.54-.32-.79L7.9 10.72c-.35.35-.69 1.01-.76 1.5l-.43 2.98c-.09.63.08 1.22.47 1.61.33.33.78.5 1.28.5.11 0 .22-.01.33-.02l2.97-.42c.49-.07 1.15-.4 1.5-.76l5.38-5.38c-.25-.08-.5-.19-.78-.31Z",fill:t})]});export const DeleteDocumentBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M21.07 5.23c-1.61-.16-3.22-.28-4.84-.37v-.01l-.22-1.3c-.15-.92-.37-2.3-2.71-2.3h-2.62c-2.33 0-2.55 1.32-2.71 2.29l-.21 1.28c-.93.06-1.86.12-2.79.21l-2.04.2c-.42.04-.72.41-.68.82.04.41.4.71.82.67l2.04-.2c5.24-.52 10.52-.32 15.82.21h.08c.38 0 .71-.29.75-.68a.766.766 0 0 0-.69-.82Z",fill:t}),e("path",{opacity:.399,d:"M19.23 8.14c-.24-.25-.57-.39-.91-.39H5.68c-.34 0-.68.14-.91.39-.23.25-.36.59-.34.94l.62 10.26c.11 1.52.25 3.42 3.74 3.42h6.42c3.49 0 3.63-1.89 3.74-3.42l.62-10.25c.02-.36-.11-.7-.34-.95Z",fill:t}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.58 17a.75.75 0 0 1 .75-.75h3.33a.75.75 0 0 1 0 1.5h-3.33a.75.75 0 0 1-.75-.75ZM8.75 13a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Z",fill:t})]});
@@ -1 +1 @@
1
- export const tuple=(...e)=>e;tuple("xs","sm","md","lg","xl");export const normalColors=tuple("default","primary","secondary","success","warning","error","gradient");export const simpleColors=tuple("default","primary","secondary","success","warning","error");export const extendedColors=tuple("default","primary","secondary","success","warning","error","invert","gradient");export const extendedColorsNoGradient=tuple("default","primary","secondary","success","warning","error","invert");export const extraColors=tuple("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan");export const normalLoaders=tuple("default","points","points-opacity","gradient","spinner");export const normalWeights=tuple("light","normal","bold","extrabold","black");export const textWeights=tuple("normal","bold","lighter","bolder","inherit","initial","revert","unset");export const textTransforms=tuple("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset");tuple("default","slient","prevent"),tuple("hover","click"),tuple("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),tuple("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),tuple("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),tuple("start","center","end","left","right"),tuple("flex-start","center","flex-end","space-between","space-around","space-evenly"),tuple("flex-start","flex-end","center","stretch","baseline"),tuple("stretch","center","flex-start","flex-end","space-between","space-around"),tuple("row","row-reverse","column","column-reverse"),tuple("nowrap","wrap","wrap-reverse"),tuple("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),tuple("left","right"),tuple("start","center","end");export const excludedInputPropsForTextarea=tuple("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css");export const excludedTableProps=tuple("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");tuple("toggle","replace"),tuple("none","single","multiple");
1
+ export const tuple=(...e)=>e;tuple("xs","sm","md","lg","xl");export const normalColors=tuple("default","primary","secondary","success","warning","error","gradient");export const simpleColors=tuple("default","primary","secondary","success","warning","error");export const extendedColors=tuple("default","primary","secondary","success","warning","error","invert","gradient");export const extendedColorsNoGradient=tuple("default","primary","secondary","success","warning","error","invert");export const extraColors=tuple("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan");export const normalLoaders=tuple("default","points","points-opacity","gradient","spinner");export const normalWeights=tuple("light","normal","bold","extrabold","black");export const textWeights=tuple("normal","bold","lighter","bolder","inherit","initial","revert","unset");export const textTransforms=tuple("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset");tuple("default","slient","prevent"),tuple("hover","click"),tuple("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),tuple("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),tuple("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),tuple("start","center","end","left","right"),tuple("flex-start","center","flex-end","space-between","space-around","space-evenly"),tuple("flex-start","flex-end","center","stretch","baseline"),tuple("stretch","center","flex-start","flex-end","space-between","space-around"),tuple("row","row-reverse","column","column-reverse"),tuple("nowrap","wrap","wrap-reverse"),tuple("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),tuple("left","right"),tuple("start","center","end");export const excludedInputPropsForTextarea=tuple("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css");export const excludedTableProps=tuple("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");tuple("toggle","replace"),tuple("none","single","multiple"),tuple("flat","light","solid","shadow"),tuple("flat","bordered","shadow");