@nswds/ui 5.3.0 → 5.5.0

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 (83) hide show
  1. package/dist/components/accordion.d.ts +9 -0
  2. package/dist/components/accordion.js +80 -0
  3. package/dist/components/accordion.js.map +1 -0
  4. package/dist/components/avatar.d.ts +13 -0
  5. package/dist/components/avatar.js +92 -0
  6. package/dist/components/avatar.js.map +1 -0
  7. package/dist/components/badge.d.ts +1 -1
  8. package/dist/components/breadcrumb.d.ts +12 -0
  9. package/dist/components/breadcrumb.js +94 -0
  10. package/dist/components/breadcrumb.js.map +1 -0
  11. package/dist/components/button-group.d.ts +15 -0
  12. package/dist/components/button-group.js +77 -0
  13. package/dist/components/button-group.js.map +1 -0
  14. package/dist/components/button.d.ts +1 -1
  15. package/dist/components/carousel.d.ts +34 -0
  16. package/dist/components/carousel.js +186 -0
  17. package/dist/components/carousel.js.map +1 -0
  18. package/dist/components/checkbox.d.ts +6 -0
  19. package/dist/components/checkbox.js +31 -0
  20. package/dist/components/checkbox.js.map +1 -0
  21. package/dist/components/combobox.d.ts +26 -0
  22. package/dist/components/combobox.js +242 -0
  23. package/dist/components/combobox.js.map +1 -0
  24. package/dist/components/direction.d.ts +1 -0
  25. package/dist/components/direction.js +4 -0
  26. package/dist/components/direction.js.map +1 -0
  27. package/dist/components/header.d.ts +1 -1
  28. package/dist/components/header.js +37 -9
  29. package/dist/components/header.js.map +1 -1
  30. package/dist/components/input-group.d.ts +23 -0
  31. package/dist/components/input-group.js +136 -0
  32. package/dist/components/input-group.js.map +1 -0
  33. package/dist/components/input-otp.d.ts +13 -0
  34. package/dist/components/input-otp.js +79 -0
  35. package/dist/components/input-otp.js.map +1 -0
  36. package/dist/components/kbd.d.ts +6 -0
  37. package/dist/components/kbd.js +30 -0
  38. package/dist/components/kbd.js.map +1 -0
  39. package/dist/components/logo.d.ts +15 -1
  40. package/dist/components/logo.js +59 -50
  41. package/dist/components/logo.js.map +1 -1
  42. package/dist/components/masthead.d.ts +1 -1
  43. package/dist/components/native-select.d.ts +10 -0
  44. package/dist/components/native-select.js +60 -0
  45. package/dist/components/native-select.js.map +1 -0
  46. package/dist/components/pagination.d.ts +23 -0
  47. package/dist/components/pagination.js +112 -0
  48. package/dist/components/pagination.js.map +1 -0
  49. package/dist/components/progress.d.ts +10 -0
  50. package/dist/components/progress.js +67 -0
  51. package/dist/components/progress.js.map +1 -0
  52. package/dist/components/radio-group.d.ts +8 -0
  53. package/dist/components/radio-group.js +41 -0
  54. package/dist/components/radio-group.js.map +1 -0
  55. package/dist/components/select.d.ts +17 -0
  56. package/dist/components/select.js +177 -0
  57. package/dist/components/select.js.map +1 -0
  58. package/dist/components/skip-link.d.ts +1 -1
  59. package/dist/components/slider.d.ts +2 -82
  60. package/dist/components/slider.js +39 -106
  61. package/dist/components/slider.js.map +1 -1
  62. package/dist/components/switch.d.ts +8 -0
  63. package/dist/components/switch.js +34 -0
  64. package/dist/components/switch.js.map +1 -0
  65. package/dist/components/table.d.ts +12 -0
  66. package/dist/components/table.js +87 -0
  67. package/dist/components/table.js.map +1 -0
  68. package/dist/components/tabs.d.ts +14 -0
  69. package/dist/components/tabs.js +76 -0
  70. package/dist/components/tabs.js.map +1 -0
  71. package/dist/components/textarea.d.ts +5 -0
  72. package/dist/components/textarea.js +20 -0
  73. package/dist/components/textarea.js.map +1 -0
  74. package/dist/components/toggle-group.d.ts +14 -0
  75. package/dist/components/toggle-group.js +73 -0
  76. package/dist/components/toggle-group.js.map +1 -0
  77. package/dist/components/toggle.d.ts +12 -0
  78. package/dist/components/toggle.js +45 -0
  79. package/dist/components/toggle.js.map +1 -0
  80. package/dist/index.d.ts +38 -1
  81. package/dist/index.js +22 -0
  82. package/dist/styles.css +1 -1
  83. package/package.json +3 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/logo.tsx"],"names":[],"mappings":";;;AAQO,SAAS,KAAK,EAAE,QAAA,GAAW,WAAW,GAAA,EAAK,GAAG,OAAM,EAAc;AACvE,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,SAAA,EAAU,QAAA,EAAA,gBAAA,EAAc,CAAA;AAAA,oBACxC,IAAA,CAAC,SAAI,GAAA,EAAU,OAAA,EAAQ,eAAc,aAAA,EAAY,MAAA,EAAQ,GAAG,KAAA,EAC1D,QAAA,EAAA;AAAA,sBAAA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,QAAA,EAAS,SAAA;AAAA,UACT,QAAA,EAAS,SAAA;AAAA,UACT,CAAA,EAAE,8tFAAA;AAAA,UACF,SAAA,EAAW,IAAA;AAAA,YACT,aAAa,SAAA,IAAa,mCAAA;AAAA,YAAA,CACzB,QAAA,KAAa,UAAA,IAAc,QAAA,KAAa,YAAA,KAAiB,YAAA;AAAA,YAC1D,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA,OACF;AAAA,sBAEA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,QAAA,EAAS,SAAA;AAAA,UACT,QAAA,EAAS,SAAA;AAAA,UACT,CAAA,EAAE,gmDAAA;AAAA,UACF,SAAA,EAAW,IAAA;AAAA,YACT,aAAa,SAAA,IAAa,mCAAA;AAAA,YAAA,CACzB,QAAA,KAAa,UAAA,IAAc,QAAA,KAAa,YAAA,KAAiB,YAAA;AAAA,YAC1D,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA,OACF;AAAA,sBAEA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,CAAA,EAAE,4iFAAA;AAAA,UACF,SAAA,EAAW,IAAA;AAAA,YAAA,CACR,QAAA,KAAa,SAAA,IAAa,QAAA,KAAa,UAAA,KACtC,kCAAA;AAAA,YACF,aAAa,YAAA,IAAgB,YAAA;AAAA,YAC7B,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA,OACF;AAAA,sBAEA,GAAA;AAAA,QAAC,MAAA;AAAA,QAAA;AAAA,UACC,CAAA,EAAE,ueAAA;AAAA,UACF,SAAA,EAAW,IAAA;AAAA,YAAA,CACR,QAAA,KAAa,SAAA,IAAa,QAAA,KAAa,UAAA,KACtC,kCAAA;AAAA,YACF,aAAa,YAAA,IAAgB,YAAA;AAAA,YAC7B,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA;AACF,KAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ","file":"logo.js","sourcesContent":["import clsx from 'clsx'\nimport type { ComponentPropsWithoutRef, Ref } from 'react'\n\ntype LogoProps = ComponentPropsWithoutRef<'svg'> & {\n logoType?: 'default' | 'reversed' | 'mono-white' | 'mono-black'\n ref?: Ref<SVGSVGElement>\n}\n\nexport function Logo({ logoType = 'default', ref, ...props }: LogoProps) {\n return (\n <>\n <span className='sr-only'>NSW Government</span>\n <svg ref={ref} viewBox='0 0 259 280' aria-hidden='true' {...props}>\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d='M24.208 270.207h-5.045v-4.277l11.15.054v13.676H26.08v-2.491c-.266.278-.553.556-.86.833-.673.585-1.49 1.07-2.433 1.434-.96.373-2.143.564-3.513.564-2.33 0-4.385-.539-6.109-1.6-1.727-1.065-3.073-2.594-4.007-4.538-.926-1.927-1.395-4.231-1.395-6.85 0-2.657.494-4.994 1.47-6.946.971-1.96 2.363-3.498 4.132-4.571 1.768-1.065 3.849-1.604 6.183-1.604 1.515 0 2.915.245 4.156.725 1.255.485 2.36 1.157 3.273 1.985a9.61 9.61 0 0 1 2.192 2.852 8.196 8.196 0 0 1 .872 3.319l.021.435h-6.038l-.062-.339a5.22 5.22 0 0 0-.814-1.981 4.562 4.562 0 0 0-1.537-1.43c-.614-.352-1.345-.531-2.175-.531-1.005 0-1.931.261-2.741.775-.806.51-1.458 1.351-1.935 2.495-.486 1.169-.731 2.74-.731 4.679 0 1.579.162 2.897.482 3.925.311 1.011.739 1.819 1.266 2.403.523.581 1.117.991 1.773 1.219a6.036 6.036 0 0 0 2.089.369c.669 0 1.27-.112 1.79-.328.523-.224.98-.514 1.354-.866.377-.356.676-.746.884-1.152.216-.41.349-.816.399-1.21l.14-1.028Zm20.878-16.312c2.354 0 4.435.534 6.179 1.587 1.752 1.061 3.13 2.59 4.086 4.546.947 1.935 1.428 4.281 1.428 6.967 0 2.648-.473 4.969-1.412 6.9-.946 1.948-2.317 3.469-4.073 4.521-1.744 1.053-3.837 1.583-6.212 1.583-2.396 0-4.502-.534-6.254-1.583-1.753-1.044-3.135-2.557-4.099-4.505-.947-1.927-1.428-4.252-1.428-6.912 0-2.673.486-5.015 1.449-6.954.968-1.956 2.355-3.486 4.12-4.551 1.764-1.061 3.853-1.599 6.216-1.599Zm0 21.185c1.117 0 2.093-.265 2.898-.787.802-.523 1.433-1.372 1.881-2.516.453-1.185.686-2.772.686-4.712 0-1.993-.237-3.618-.698-4.832-.444-1.181-1.08-2.056-1.885-2.603-.814-.543-1.782-.82-2.878-.82-1.1 0-2.072.277-2.886.82-.81.543-1.453 1.422-1.906 2.611-.47 1.223-.706 2.843-.706 4.82 0 1.944.237 3.531.702 4.712.452 1.148 1.092 1.997 1.902 2.515.81.527 1.781.792 2.89.792Zm23.764-2.93-6.162-17.829H57.09l8.654 25.251h6.195l8.73-25.251h-5.607L68.85 272.15Zm30.312-2.827H88.863v5.206l12.043.016v5.027H83.103v-25.251h17.632l-.016 4.99H88.892v5.089h10.27v4.923Zm22.482-1.529c.685-.613 1.246-1.401 1.678-2.341.419-.933.635-2.081.635-3.419 0-1.497-.311-2.835-.93-3.983-.619-1.169-1.599-2.093-2.919-2.756-1.3-.647-2.973-.974-4.975-.974h-10.738v25.243h5.759v-9.404h4.24l3.991 9.404h6.046l-4.651-10.456c.673-.357 1.3-.8 1.864-1.314Zm-3.513-5.64c0 .999-.336 1.79-1.025 2.428-.69.63-1.649.949-2.857.949h-4.095v-6.606h4.456c1.038 0 1.873.286 2.545.875.657.576.976 1.347.976 2.354Zm15.159-7.833 10.527 15.23v-15.23h5.776v25.251h-5.086l-10.98-15.86v15.86h-5.759v-25.251h5.522Zm33.949 16.461-5.29-16.461h-7.894v25.251h5.809v-16.266l5.124 16.266h4.485l5.162-16.357v16.357h5.826v-25.251h-7.878l-5.344 16.461Zm33.727-1.459h-10.298v5.206l12.046.016v5.027h-17.806v-25.251h17.636l-.021 4.99h-11.818v5.089h10.261v4.923Zm21.494.228-10.523-15.23h-5.527v25.251h5.756v-15.86l10.979 15.86h5.087v-25.251h-5.772v15.23Zm15.586-10.004h-7.388v-5.226h20.402v5.226h-7.217v20.025h-5.797v-20.025Z'\n className={clsx(\n logoType === 'default' && 'fill-nsw-blue-800 dark:fill-white',\n (logoType === 'reversed' || logoType === 'mono-white') && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d='M146.699 209.236c-1.482-2.395-3.717-4.571-6.64-6.465-2.919-1.894-6.897-3.34-11.81-4.297l-13.678-2.814c-4.132-.891-6.981-2.043-8.468-3.419-1.449-1.343-2.184-3.129-2.184-5.309 0-1.388.316-2.652.943-3.759.623-1.111 1.528-2.093 2.687-2.922 1.166-.828 2.616-1.483 4.306-1.943 1.711-.469 3.633-.705 5.714-.705 2.74 0 5.211.361 7.346 1.078 2.109.713 3.857 1.881 5.194 3.481 1.338 1.6 2.16 3.775 2.442 6.465l.038.373h16.971l-.008-.427c-.075-4.575-1.371-8.773-3.85-12.474-2.483-3.705-6.141-6.681-10.879-8.852-4.726-2.164-10.623-3.262-17.528-3.262-5.801 0-11.117 1.011-15.805 3.009-4.7 2.002-8.475 4.89-11.212 8.587-2.749 3.717-4.12 8.164-4.078 13.224.112 6.175 1.99 11.186 5.577 14.903 3.576 3.697 8.476 6.158 14.567 7.306l13.795 2.81c2.529.502 4.825 1.16 6.823 1.96 1.96.784 3.525 1.803 4.651 3.03 1.1 1.197 1.657 2.772 1.657 4.67 0 2.114-.694 3.9-2.06 5.301-1.4 1.434-3.301 2.515-5.643 3.224-2.388.721-5.058 1.086-7.936 1.086-2.807 0-5.394-.435-7.686-1.297-2.28-.85-4.194-2.093-5.689-3.693-1.491-1.591-2.513-3.585-3.04-5.918l-.075-.327H83.846l.045.46c.407 4.045 1.666 7.629 3.738 10.659 2.068 3.009 4.717 5.545 7.873 7.551 3.148 1.993 6.677 3.514 10.494 4.513a46.33 46.33 0 0 0 11.693 1.5c6.466 0 12.2-1.019 17.046-3.034 4.867-2.022 8.717-4.807 11.449-8.276 2.753-3.493 4.148-7.476 4.148-11.848 0-2.064-.232-4.36-.697-6.822-.478-2.482-1.466-4.948-2.936-7.327ZM25.937 191.763l36.916 53.312H77.87v-79.724H61.072v51.282L25.754 165.53l-.125-.179H9.19v79.724h16.748v-53.312Zm196.637 24.577 14.388-50.987h16.457l-23.587 79.724h-13.367l-14.554-50.469-14.659 50.469h-13.147l-23.533-79.724h16.511l14.384 50.979 14.389-50.979h12.167l14.551 50.987Z'\n className={clsx(\n logoType === 'default' && 'fill-nsw-blue-800 dark:fill-white',\n (logoType === 'reversed' || logoType === 'mono-white') && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n\n <path\n d='M122.291 145.572c-19.75-2.424-38.934 3.904-72.69-5.263-3.447-.937-4.718 2.694-2.854 5.736 9.07 14.803 54.881 3.203 75.635 1.065.906-.095.814-1.426-.091-1.538ZM208.735 140.309c-33.756 9.167-52.941 2.839-72.691 5.263-.905.112-1 1.447-.091 1.538 20.759 2.138 66.566 13.738 75.635-1.065 1.864-3.042.594-6.673-2.853-5.736ZM59.882 119.132c-6.864-10.058-12.474-21.31-16.818-33.69-13.101 3.826-26.51 9.346-40.16 16.57a5.388 5.388 0 0 0-2.902 4.67 5.38 5.38 0 0 0 2.653 4.812c26.431 15.802 52.273 24.841 76.93 26.933-7.34-4.475-14.072-11.044-19.703-19.295ZM23.059 85.513a201.529 201.529 0 0 1 17.976-6.233c-2.126-6.896-3.87-14.12-5.249-21.658-6.827-.85-13.89-1.4-21.199-1.641-.062 0-.128-.004-.19-.004a5.391 5.391 0 0 0-4.647 2.602 5.383 5.383 0 0 0-.12 5.483c4.243 7.659 8.724 14.808 13.429 21.45ZM88.005 135.572c4.099 1.807 8.293 2.818 12.358 3.029-9.953-7.12-17.773-19.192-22.278-34.58-5.805-19.81-7.745-41.666-5.83-65.247-7.832-4.936-16.32-9.557-25.46-13.85a5.428 5.428 0 0 0-5.402.43 5.396 5.396 0 0 0-2.388 4.841c2.126 34.215 10.95 62.915 26.223 85.298 6.404 9.391 14.281 16.332 22.777 20.079ZM107.488 23.577A253.323 253.323 0 0 0 92.235 6.735c-1.063-1.078-2.433-1.65-3.85-1.65-.506 0-1.017.075-1.523.224-1.923.568-3.314 2.106-3.733 4.115-1.072 5.164-3.11 15.69-4.012 26.101 7.014 4.613 13.492 9.49 19.426 14.621 2.3-8.757 5.29-17.63 8.945-26.569ZM255.42 102.007c-13.65-7.223-27.058-12.744-40.16-16.569-4.343 12.38-9.953 23.631-16.818 33.689-5.63 8.255-12.362 14.82-19.708 19.296 24.658-2.093 50.5-11.132 76.931-26.934 1.715-1.024 2.707-2.822 2.653-4.811-.045-1.99-1.133-3.734-2.898-4.671ZM235.273 85.513c4.705-6.643 9.186-13.796 13.43-21.455.963-1.74.922-3.788-.121-5.483a5.4 5.4 0 0 0-4.837-2.598c-7.309.24-14.377.796-21.199 1.641-1.375 7.539-3.123 14.762-5.249 21.658a203.803 203.803 0 0 1 17.976 6.237ZM180.247 104.025c-4.505 15.384-12.329 27.46-22.278 34.58 4.065-.211 8.263-1.227 12.358-3.034 8.496-3.746 16.373-10.688 22.777-20.075 15.273-22.383 24.097-51.082 26.223-85.297a5.394 5.394 0 0 0-2.388-4.84 5.428 5.428 0 0 0-5.402-.432c-9.14 4.29-17.628 8.91-25.46 13.85 1.915 23.582-.029 45.434-5.83 65.248ZM179.214 35.52c-.901-10.406-2.94-20.932-4.011-26.1-.416-2.01-1.811-3.547-3.733-4.115a5.39 5.39 0 0 0-1.524-.224c-1.416 0-2.787.572-3.85 1.65-5.485 5.549-10.568 11.164-15.252 16.842 3.654 8.939 6.644 17.812 8.949 26.565 5.934-5.127 12.407-10.005 19.421-14.617ZM129.144 87.229c6.64-13.092 17.246-24.829 25.21-32.243-4.372-17.779-11.104-34.55-20.397-52.097C132.998 1.078 131.195 0 129.148 0s-3.845 1.082-4.808 2.889c-9.389 17.604-16.237 35.122-20.377 52.093 8.313 7.688 19.28 20.224 25.181 32.247Z'\n className={clsx(\n (logoType === 'default' || logoType === 'reversed') &&\n 'fill-nsw-red-600 dark:fill-white',\n logoType === 'mono-white' && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n\n <path\n d='M153.541 133.686c6.885-4.833 13.77-13.254 18.139-24.97 8.458-22.681 9.334-47.945 8.122-65.823-15.331 10.215-39.665 31.55-47.975 54.36-3.911 10.734-5.734 25.355-2.72 33.511 1.259 3.411 3.401 5.997 6.345 7.227 4.46 1.865 11.312.456 18.089-4.305ZM125.713 95.261c-2.027-4.724-4.261-9.18-7.728-14.186-9.809-14.16-23.026-26.933-39.475-38.185-.17 2.652-2.57 31.297 5.851 59.304 6.408 21.302 17.354 29.98 23.354 33.333 6.038 3.369 11.561 4.165 18.039 2.557-6.565-8.935-5.747-27.27-.041-42.823Z'\n className={clsx(\n (logoType === 'default' || logoType === 'reversed') &&\n 'fill-nsw-red-600 dark:fill-white',\n logoType === 'mono-white' && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n </svg>\n </>\n )\n}\n\nexport type { LogoProps }\n"]}
1
+ {"version":3,"sources":["../../src/components/logo.tsx"],"names":[],"mappings":";;;AAsBO,SAAS,IAAA,CAAK,EAAE,QAAA,GAAW,SAAA,EAAW,WAAW,MAAA,EAAQ,GAAA,EAAK,GAAG,KAAA,EAAM,EAAc;AAC1F,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,SAAA,EAAU,QAAA,EAAA,gBAAA,EAAc,CAAA;AAAA,oBACxC,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,OAAA,EAAS,QAAA,KAAa,KAAA,GAAQ,aAAA,GAAgB,aAAA;AAAA,QAC9C,aAAA,EAAY,MAAA;AAAA,QACX,GAAG,KAAA;AAAA,QAEH,QAAA,EAAA;AAAA,UAAA,QAAA,KAAa,MAAA,mBACZ,GAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,QAAA,EAAS,SAAA;AAAA,cACT,QAAA,EAAS,SAAA;AAAA,cACT,CAAA,EAAE,8tFAAA;AAAA,cACF,SAAA,EAAW,IAAA;AAAA,gBACT,aAAa,SAAA,IAAa,mCAAA;AAAA,gBAAA,CACzB,QAAA,KAAa,UAAA,IAAc,QAAA,KAAa,YAAA,KAAiB,YAAA;AAAA,gBAC1D,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA,WACF,GACE,IAAA;AAAA,0BAEJ,GAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,QAAA,EAAS,SAAA;AAAA,cACT,QAAA,EAAS,SAAA;AAAA,cACT,CAAA,EAAE,gmDAAA;AAAA,cACF,SAAA,EAAW,IAAA;AAAA,gBACT,aAAa,SAAA,IAAa,mCAAA;AAAA,gBAAA,CACzB,QAAA,KAAa,UAAA,IAAc,QAAA,KAAa,YAAA,KAAiB,YAAA;AAAA,gBAC1D,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA,WACF;AAAA,0BAEA,GAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,CAAA,EAAE,4iFAAA;AAAA,cACF,SAAA,EAAW,IAAA;AAAA,gBAAA,CACR,QAAA,KAAa,SAAA,IAAa,QAAA,KAAa,UAAA,KACtC,kCAAA;AAAA,gBACF,aAAa,YAAA,IAAgB,YAAA;AAAA,gBAC7B,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA,WACF;AAAA,0BAEA,GAAA;AAAA,YAAC,MAAA;AAAA,YAAA;AAAA,cACC,CAAA,EAAE,ueAAA;AAAA,cACF,SAAA,EAAW,IAAA;AAAA,gBAAA,CACR,QAAA,KAAa,SAAA,IAAa,QAAA,KAAa,UAAA,KACtC,kCAAA;AAAA,gBACF,aAAa,YAAA,IAAgB,YAAA;AAAA,gBAC7B,aAAa,YAAA,IAAgB;AAAA;AAC/B;AAAA;AACF;AAAA;AAAA;AACF,GAAA,EACF,CAAA;AAEJ","file":"logo.js","sourcesContent":["import clsx from 'clsx'\nimport type { ComponentPropsWithoutRef, Ref } from 'react'\n\ntype LogoProps = ComponentPropsWithoutRef<'svg'> & {\n logoType?: 'default' | 'reversed' | 'mono-white' | 'mono-black'\n /**\n * Which wordmark rows the lockup draws.\n *\n * - `'full'` (default) — the complete lockup: waratah, \"NSW\" and \"Government\".\n * - `'nsw'` — drops the \"Government\" row, leaving the waratah and \"NSW\". The\n * viewBox crops to the shorter mark (`0 0 259 247` vs `0 0 259 280`) so it\n * still sits flush to every edge and `w-auto` keeps the narrower aspect\n * ratio. Useful where horizontal space is tight, e.g. a mobile header.\n *\n * The visually-hidden accessible name stays \"NSW Government\" for both — the\n * mark identifies the same organisation whichever rows are drawn, so screen\n * readers announce it identically.\n */\n wordmark?: 'full' | 'nsw'\n ref?: Ref<SVGSVGElement>\n}\n\nexport function Logo({ logoType = 'default', wordmark = 'full', ref, ...props }: LogoProps) {\n return (\n <>\n <span className='sr-only'>NSW Government</span>\n <svg\n ref={ref}\n viewBox={wordmark === 'nsw' ? '0 0 259 247' : '0 0 259 280'}\n aria-hidden='true'\n {...props}\n >\n {wordmark === 'full' ? (\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d='M24.208 270.207h-5.045v-4.277l11.15.054v13.676H26.08v-2.491c-.266.278-.553.556-.86.833-.673.585-1.49 1.07-2.433 1.434-.96.373-2.143.564-3.513.564-2.33 0-4.385-.539-6.109-1.6-1.727-1.065-3.073-2.594-4.007-4.538-.926-1.927-1.395-4.231-1.395-6.85 0-2.657.494-4.994 1.47-6.946.971-1.96 2.363-3.498 4.132-4.571 1.768-1.065 3.849-1.604 6.183-1.604 1.515 0 2.915.245 4.156.725 1.255.485 2.36 1.157 3.273 1.985a9.61 9.61 0 0 1 2.192 2.852 8.196 8.196 0 0 1 .872 3.319l.021.435h-6.038l-.062-.339a5.22 5.22 0 0 0-.814-1.981 4.562 4.562 0 0 0-1.537-1.43c-.614-.352-1.345-.531-2.175-.531-1.005 0-1.931.261-2.741.775-.806.51-1.458 1.351-1.935 2.495-.486 1.169-.731 2.74-.731 4.679 0 1.579.162 2.897.482 3.925.311 1.011.739 1.819 1.266 2.403.523.581 1.117.991 1.773 1.219a6.036 6.036 0 0 0 2.089.369c.669 0 1.27-.112 1.79-.328.523-.224.98-.514 1.354-.866.377-.356.676-.746.884-1.152.216-.41.349-.816.399-1.21l.14-1.028Zm20.878-16.312c2.354 0 4.435.534 6.179 1.587 1.752 1.061 3.13 2.59 4.086 4.546.947 1.935 1.428 4.281 1.428 6.967 0 2.648-.473 4.969-1.412 6.9-.946 1.948-2.317 3.469-4.073 4.521-1.744 1.053-3.837 1.583-6.212 1.583-2.396 0-4.502-.534-6.254-1.583-1.753-1.044-3.135-2.557-4.099-4.505-.947-1.927-1.428-4.252-1.428-6.912 0-2.673.486-5.015 1.449-6.954.968-1.956 2.355-3.486 4.12-4.551 1.764-1.061 3.853-1.599 6.216-1.599Zm0 21.185c1.117 0 2.093-.265 2.898-.787.802-.523 1.433-1.372 1.881-2.516.453-1.185.686-2.772.686-4.712 0-1.993-.237-3.618-.698-4.832-.444-1.181-1.08-2.056-1.885-2.603-.814-.543-1.782-.82-2.878-.82-1.1 0-2.072.277-2.886.82-.81.543-1.453 1.422-1.906 2.611-.47 1.223-.706 2.843-.706 4.82 0 1.944.237 3.531.702 4.712.452 1.148 1.092 1.997 1.902 2.515.81.527 1.781.792 2.89.792Zm23.764-2.93-6.162-17.829H57.09l8.654 25.251h6.195l8.73-25.251h-5.607L68.85 272.15Zm30.312-2.827H88.863v5.206l12.043.016v5.027H83.103v-25.251h17.632l-.016 4.99H88.892v5.089h10.27v4.923Zm22.482-1.529c.685-.613 1.246-1.401 1.678-2.341.419-.933.635-2.081.635-3.419 0-1.497-.311-2.835-.93-3.983-.619-1.169-1.599-2.093-2.919-2.756-1.3-.647-2.973-.974-4.975-.974h-10.738v25.243h5.759v-9.404h4.24l3.991 9.404h6.046l-4.651-10.456c.673-.357 1.3-.8 1.864-1.314Zm-3.513-5.64c0 .999-.336 1.79-1.025 2.428-.69.63-1.649.949-2.857.949h-4.095v-6.606h4.456c1.038 0 1.873.286 2.545.875.657.576.976 1.347.976 2.354Zm15.159-7.833 10.527 15.23v-15.23h5.776v25.251h-5.086l-10.98-15.86v15.86h-5.759v-25.251h5.522Zm33.949 16.461-5.29-16.461h-7.894v25.251h5.809v-16.266l5.124 16.266h4.485l5.162-16.357v16.357h5.826v-25.251h-7.878l-5.344 16.461Zm33.727-1.459h-10.298v5.206l12.046.016v5.027h-17.806v-25.251h17.636l-.021 4.99h-11.818v5.089h10.261v4.923Zm21.494.228-10.523-15.23h-5.527v25.251h5.756v-15.86l10.979 15.86h5.087v-25.251h-5.772v15.23Zm15.586-10.004h-7.388v-5.226h20.402v5.226h-7.217v20.025h-5.797v-20.025Z'\n className={clsx(\n logoType === 'default' && 'fill-nsw-blue-800 dark:fill-white',\n (logoType === 'reversed' || logoType === 'mono-white') && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n ) : null}\n\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d='M146.699 209.236c-1.482-2.395-3.717-4.571-6.64-6.465-2.919-1.894-6.897-3.34-11.81-4.297l-13.678-2.814c-4.132-.891-6.981-2.043-8.468-3.419-1.449-1.343-2.184-3.129-2.184-5.309 0-1.388.316-2.652.943-3.759.623-1.111 1.528-2.093 2.687-2.922 1.166-.828 2.616-1.483 4.306-1.943 1.711-.469 3.633-.705 5.714-.705 2.74 0 5.211.361 7.346 1.078 2.109.713 3.857 1.881 5.194 3.481 1.338 1.6 2.16 3.775 2.442 6.465l.038.373h16.971l-.008-.427c-.075-4.575-1.371-8.773-3.85-12.474-2.483-3.705-6.141-6.681-10.879-8.852-4.726-2.164-10.623-3.262-17.528-3.262-5.801 0-11.117 1.011-15.805 3.009-4.7 2.002-8.475 4.89-11.212 8.587-2.749 3.717-4.12 8.164-4.078 13.224.112 6.175 1.99 11.186 5.577 14.903 3.576 3.697 8.476 6.158 14.567 7.306l13.795 2.81c2.529.502 4.825 1.16 6.823 1.96 1.96.784 3.525 1.803 4.651 3.03 1.1 1.197 1.657 2.772 1.657 4.67 0 2.114-.694 3.9-2.06 5.301-1.4 1.434-3.301 2.515-5.643 3.224-2.388.721-5.058 1.086-7.936 1.086-2.807 0-5.394-.435-7.686-1.297-2.28-.85-4.194-2.093-5.689-3.693-1.491-1.591-2.513-3.585-3.04-5.918l-.075-.327H83.846l.045.46c.407 4.045 1.666 7.629 3.738 10.659 2.068 3.009 4.717 5.545 7.873 7.551 3.148 1.993 6.677 3.514 10.494 4.513a46.33 46.33 0 0 0 11.693 1.5c6.466 0 12.2-1.019 17.046-3.034 4.867-2.022 8.717-4.807 11.449-8.276 2.753-3.493 4.148-7.476 4.148-11.848 0-2.064-.232-4.36-.697-6.822-.478-2.482-1.466-4.948-2.936-7.327ZM25.937 191.763l36.916 53.312H77.87v-79.724H61.072v51.282L25.754 165.53l-.125-.179H9.19v79.724h16.748v-53.312Zm196.637 24.577 14.388-50.987h16.457l-23.587 79.724h-13.367l-14.554-50.469-14.659 50.469h-13.147l-23.533-79.724h16.511l14.384 50.979 14.389-50.979h12.167l14.551 50.987Z'\n className={clsx(\n logoType === 'default' && 'fill-nsw-blue-800 dark:fill-white',\n (logoType === 'reversed' || logoType === 'mono-white') && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n\n <path\n d='M122.291 145.572c-19.75-2.424-38.934 3.904-72.69-5.263-3.447-.937-4.718 2.694-2.854 5.736 9.07 14.803 54.881 3.203 75.635 1.065.906-.095.814-1.426-.091-1.538ZM208.735 140.309c-33.756 9.167-52.941 2.839-72.691 5.263-.905.112-1 1.447-.091 1.538 20.759 2.138 66.566 13.738 75.635-1.065 1.864-3.042.594-6.673-2.853-5.736ZM59.882 119.132c-6.864-10.058-12.474-21.31-16.818-33.69-13.101 3.826-26.51 9.346-40.16 16.57a5.388 5.388 0 0 0-2.902 4.67 5.38 5.38 0 0 0 2.653 4.812c26.431 15.802 52.273 24.841 76.93 26.933-7.34-4.475-14.072-11.044-19.703-19.295ZM23.059 85.513a201.529 201.529 0 0 1 17.976-6.233c-2.126-6.896-3.87-14.12-5.249-21.658-6.827-.85-13.89-1.4-21.199-1.641-.062 0-.128-.004-.19-.004a5.391 5.391 0 0 0-4.647 2.602 5.383 5.383 0 0 0-.12 5.483c4.243 7.659 8.724 14.808 13.429 21.45ZM88.005 135.572c4.099 1.807 8.293 2.818 12.358 3.029-9.953-7.12-17.773-19.192-22.278-34.58-5.805-19.81-7.745-41.666-5.83-65.247-7.832-4.936-16.32-9.557-25.46-13.85a5.428 5.428 0 0 0-5.402.43 5.396 5.396 0 0 0-2.388 4.841c2.126 34.215 10.95 62.915 26.223 85.298 6.404 9.391 14.281 16.332 22.777 20.079ZM107.488 23.577A253.323 253.323 0 0 0 92.235 6.735c-1.063-1.078-2.433-1.65-3.85-1.65-.506 0-1.017.075-1.523.224-1.923.568-3.314 2.106-3.733 4.115-1.072 5.164-3.11 15.69-4.012 26.101 7.014 4.613 13.492 9.49 19.426 14.621 2.3-8.757 5.29-17.63 8.945-26.569ZM255.42 102.007c-13.65-7.223-27.058-12.744-40.16-16.569-4.343 12.38-9.953 23.631-16.818 33.689-5.63 8.255-12.362 14.82-19.708 19.296 24.658-2.093 50.5-11.132 76.931-26.934 1.715-1.024 2.707-2.822 2.653-4.811-.045-1.99-1.133-3.734-2.898-4.671ZM235.273 85.513c4.705-6.643 9.186-13.796 13.43-21.455.963-1.74.922-3.788-.121-5.483a5.4 5.4 0 0 0-4.837-2.598c-7.309.24-14.377.796-21.199 1.641-1.375 7.539-3.123 14.762-5.249 21.658a203.803 203.803 0 0 1 17.976 6.237ZM180.247 104.025c-4.505 15.384-12.329 27.46-22.278 34.58 4.065-.211 8.263-1.227 12.358-3.034 8.496-3.746 16.373-10.688 22.777-20.075 15.273-22.383 24.097-51.082 26.223-85.297a5.394 5.394 0 0 0-2.388-4.84 5.428 5.428 0 0 0-5.402-.432c-9.14 4.29-17.628 8.91-25.46 13.85 1.915 23.582-.029 45.434-5.83 65.248ZM179.214 35.52c-.901-10.406-2.94-20.932-4.011-26.1-.416-2.01-1.811-3.547-3.733-4.115a5.39 5.39 0 0 0-1.524-.224c-1.416 0-2.787.572-3.85 1.65-5.485 5.549-10.568 11.164-15.252 16.842 3.654 8.939 6.644 17.812 8.949 26.565 5.934-5.127 12.407-10.005 19.421-14.617ZM129.144 87.229c6.64-13.092 17.246-24.829 25.21-32.243-4.372-17.779-11.104-34.55-20.397-52.097C132.998 1.078 131.195 0 129.148 0s-3.845 1.082-4.808 2.889c-9.389 17.604-16.237 35.122-20.377 52.093 8.313 7.688 19.28 20.224 25.181 32.247Z'\n className={clsx(\n (logoType === 'default' || logoType === 'reversed') &&\n 'fill-nsw-red-600 dark:fill-white',\n logoType === 'mono-white' && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n\n <path\n d='M153.541 133.686c6.885-4.833 13.77-13.254 18.139-24.97 8.458-22.681 9.334-47.945 8.122-65.823-15.331 10.215-39.665 31.55-47.975 54.36-3.911 10.734-5.734 25.355-2.72 33.511 1.259 3.411 3.401 5.997 6.345 7.227 4.46 1.865 11.312.456 18.089-4.305ZM125.713 95.261c-2.027-4.724-4.261-9.18-7.728-14.186-9.809-14.16-23.026-26.933-39.475-38.185-.17 2.652-2.57 31.297 5.851 59.304 6.408 21.302 17.354 29.98 23.354 33.333 6.038 3.369 11.561 4.165 18.039 2.557-6.565-8.935-5.747-27.27-.041-42.823Z'\n className={clsx(\n (logoType === 'default' || logoType === 'reversed') &&\n 'fill-nsw-red-600 dark:fill-white',\n logoType === 'mono-white' && 'fill-white',\n logoType === 'mono-black' && 'fill-black dark:fill-white',\n )}\n />\n </svg>\n </>\n )\n}\n\nexport type { LogoProps }\n"]}
@@ -10,7 +10,7 @@ declare const mastheadColors: {
10
10
  };
11
11
  type MastheadColor = keyof typeof mastheadColors;
12
12
  declare const mastheadVariants: (props?: ({
13
- color?: "white" | "grey" | "light" | "dark" | null | undefined;
13
+ color?: "light" | "white" | "grey" | "dark" | null | undefined;
14
14
  } & class_variance_authority_types.ClassProp) | undefined) => string;
15
15
  declare const mastheadContainerVariants: (props?: ({
16
16
  container?: "fluid" | "contained" | null | undefined;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+
3
+ type NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & {
4
+ size?: 'sm' | 'default';
5
+ };
6
+ declare function NativeSelect({ className, size, ...props }: NativeSelectProps): React.JSX.Element;
7
+ declare function NativeSelectOption({ className, ...props }: React.ComponentProps<'option'>): React.JSX.Element;
8
+ declare function NativeSelectOptGroup({ className, ...props }: React.ComponentProps<'optgroup'>): React.JSX.Element;
9
+
10
+ export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
@@ -0,0 +1,60 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { IconExpandMore } from '../icons/expand-more.js';
3
+ import { cn } from '../lib/utils.js';
4
+
5
+ function NativeSelect({ className, size = "default", ...props }) {
6
+ return /* @__PURE__ */ jsxs(
7
+ "div",
8
+ {
9
+ className: cn(
10
+ "group/native-select relative w-fit has-[select:disabled]:opacity-50",
11
+ className
12
+ ),
13
+ "data-slot": "native-select-wrapper",
14
+ "data-size": size,
15
+ children: [
16
+ /* @__PURE__ */ jsx(
17
+ "select",
18
+ {
19
+ "data-slot": "native-select",
20
+ "data-size": size,
21
+ className: "h-7 w-full min-w-0 appearance-none rounded-md border border-input bg-input/20 py-0.5 ps-2 pe-6 text-xs/relaxed transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem] dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
22
+ ...props
23
+ }
24
+ ),
25
+ /* @__PURE__ */ jsx(
26
+ IconExpandMore,
27
+ {
28
+ className: "pointer-events-none absolute end-1.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground select-none group-data-[size=sm]/native-select:size-3 group-data-[size=sm]/native-select:-translate-y-[calc(--spacing(1.25))]",
29
+ "aria-hidden": "true",
30
+ "data-slot": "native-select-icon"
31
+ }
32
+ )
33
+ ]
34
+ }
35
+ );
36
+ }
37
+ function NativeSelectOption({ className, ...props }) {
38
+ return /* @__PURE__ */ jsx(
39
+ "option",
40
+ {
41
+ "data-slot": "native-select-option",
42
+ className: cn("bg-[Canvas] text-[CanvasText]", className),
43
+ ...props
44
+ }
45
+ );
46
+ }
47
+ function NativeSelectOptGroup({ className, ...props }) {
48
+ return /* @__PURE__ */ jsx(
49
+ "optgroup",
50
+ {
51
+ "data-slot": "native-select-optgroup",
52
+ className: cn("bg-[Canvas] text-[CanvasText]", className),
53
+ ...props
54
+ }
55
+ );
56
+ }
57
+
58
+ export { NativeSelect, NativeSelectOptGroup, NativeSelectOption };
59
+ //# sourceMappingURL=native-select.js.map
60
+ //# sourceMappingURL=native-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/native-select.tsx"],"names":[],"mappings":";;;;AASA,SAAS,aAAa,EAAE,SAAA,EAAW,OAAO,SAAA,EAAW,GAAG,OAAM,EAAsB;AAClF,EAAA,uBACE,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,EAAA;AAAA,QACT,qEAAA;AAAA,QACA;AAAA,OACF;AAAA,MACA,WAAA,EAAU,uBAAA;AAAA,MACV,WAAA,EAAW,IAAA;AAAA,MAEX,QAAA,EAAA;AAAA,wBAAA,GAAA;AAAA,UAAC,QAAA;AAAA,UAAA;AAAA,YACC,WAAA,EAAU,eAAA;AAAA,YACV,WAAA,EAAW,IAAA;AAAA,YACX,SAAA,EAAU,onBAAA;AAAA,YACT,GAAG;AAAA;AAAA,SACN;AAAA,wBACA,GAAA;AAAA,UAAC,cAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAU,4NAAA;AAAA,YACV,aAAA,EAAY,MAAA;AAAA,YACZ,WAAA,EAAU;AAAA;AAAA;AACZ;AAAA;AAAA,GACF;AAEJ;AAEA,SAAS,kBAAA,CAAmB,EAAE,SAAA,EAAW,GAAG,OAAM,EAAmC;AACnF,EAAA,uBACE,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,sBAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,+BAAA,EAAiC,SAAS,CAAA;AAAA,MACvD,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,oBAAA,CAAqB,EAAE,SAAA,EAAW,GAAG,OAAM,EAAqC;AACvF,EAAA,uBACE,GAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,wBAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,+BAAA,EAAiC,SAAS,CAAA;AAAA,MACvD,GAAG;AAAA;AAAA,GACN;AAEJ","file":"native-select.js","sourcesContent":["import * as React from 'react'\n\nimport { IconExpandMore } from '../icons/expand-more.js'\nimport { cn } from '../lib/utils.js'\n\ntype NativeSelectProps = Omit<React.ComponentProps<'select'>, 'size'> & {\n size?: 'sm' | 'default'\n}\n\nfunction NativeSelect({ className, size = 'default', ...props }: NativeSelectProps) {\n return (\n <div\n className={cn(\n 'group/native-select relative w-fit has-[select:disabled]:opacity-50',\n className,\n )}\n data-slot='native-select-wrapper'\n data-size={size}\n >\n <select\n data-slot='native-select'\n data-size={size}\n className='h-7 w-full min-w-0 appearance-none rounded-md border border-input bg-input/20 py-0.5 ps-2 pe-6 text-xs/relaxed transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-[size=sm]:h-6 data-[size=sm]:text-[0.625rem] dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40'\n {...props}\n />\n <IconExpandMore\n className='pointer-events-none absolute end-1.5 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground select-none group-data-[size=sm]/native-select:size-3 group-data-[size=sm]/native-select:-translate-y-[calc(--spacing(1.25))]'\n aria-hidden='true'\n data-slot='native-select-icon'\n />\n </div>\n )\n}\n\nfunction NativeSelectOption({ className, ...props }: React.ComponentProps<'option'>) {\n return (\n <option\n data-slot='native-select-option'\n className={cn('bg-[Canvas] text-[CanvasText]', className)}\n {...props}\n />\n )\n}\n\nfunction NativeSelectOptGroup({ className, ...props }: React.ComponentProps<'optgroup'>) {\n return (\n <optgroup\n data-slot='native-select-optgroup'\n className={cn('bg-[Canvas] text-[CanvasText]', className)}\n {...props}\n />\n )\n}\n\nexport { NativeSelect, NativeSelectOptGroup, NativeSelectOption }\n"]}
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ import { Button } from './button.js';
3
+ import 'class-variance-authority/types';
4
+ import '@base-ui/react/button';
5
+ import 'class-variance-authority';
6
+ import './link.js';
7
+
8
+ declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
9
+ declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): React.JSX.Element;
10
+ declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): React.JSX.Element;
11
+ type PaginationLinkProps = {
12
+ isActive?: boolean;
13
+ } & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
14
+ declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): React.JSX.Element;
15
+ declare function PaginationPrevious({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
16
+ text?: string;
17
+ }): React.JSX.Element;
18
+ declare function PaginationNext({ className, text, ...props }: React.ComponentProps<typeof PaginationLink> & {
19
+ text?: string;
20
+ }): React.JSX.Element;
21
+ declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
22
+
23
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
@@ -0,0 +1,112 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { IconChevronLeft } from '../icons/chevron-left.js';
3
+ import { IconChevronRight } from '../icons/chevron-right.js';
4
+ import { IconMoreHoriz } from '../icons/more-horiz.js';
5
+ import { cn } from '../lib/utils.js';
6
+ import { Button } from './button.js';
7
+
8
+ function Pagination({ className, ...props }) {
9
+ return /* @__PURE__ */ jsx(
10
+ "nav",
11
+ {
12
+ role: "navigation",
13
+ "aria-label": "pagination",
14
+ "data-slot": "pagination",
15
+ className: cn("mx-auto flex w-full justify-center", className),
16
+ ...props
17
+ }
18
+ );
19
+ }
20
+ function PaginationContent({ className, ...props }) {
21
+ return /* @__PURE__ */ jsx(
22
+ "ul",
23
+ {
24
+ "data-slot": "pagination-content",
25
+ className: cn("flex items-center gap-0.5", className),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function PaginationItem({ ...props }) {
31
+ return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", ...props });
32
+ }
33
+ function PaginationLink({ className, isActive, size = "icon", ...props }) {
34
+ return /* @__PURE__ */ jsx(
35
+ Button,
36
+ {
37
+ variant: isActive ? "outline" : "ghost",
38
+ size,
39
+ className: cn(className),
40
+ nativeButton: false,
41
+ render: /* @__PURE__ */ jsx(
42
+ "a",
43
+ {
44
+ "aria-current": isActive ? "page" : void 0,
45
+ "data-slot": "pagination-link",
46
+ "data-active": isActive,
47
+ ...props
48
+ }
49
+ )
50
+ }
51
+ );
52
+ }
53
+ function PaginationPrevious({
54
+ className,
55
+ text = "Previous",
56
+ ...props
57
+ }) {
58
+ return /* @__PURE__ */ jsxs(
59
+ PaginationLink,
60
+ {
61
+ "aria-label": "Go to previous page",
62
+ size: "default",
63
+ className: cn("ps-2!", className),
64
+ ...props,
65
+ children: [
66
+ /* @__PURE__ */ jsx(IconChevronLeft, { "data-icon": "inline-start", className: "rtl:rotate-180" }),
67
+ /* @__PURE__ */ jsx("span", { className: "max-sm:hidden sm:block", children: text })
68
+ ]
69
+ }
70
+ );
71
+ }
72
+ function PaginationNext({
73
+ className,
74
+ text = "Next",
75
+ ...props
76
+ }) {
77
+ return /* @__PURE__ */ jsxs(
78
+ PaginationLink,
79
+ {
80
+ "aria-label": "Go to next page",
81
+ size: "default",
82
+ className: cn("pe-2!", className),
83
+ ...props,
84
+ children: [
85
+ /* @__PURE__ */ jsx("span", { className: "max-sm:hidden sm:block", children: text }),
86
+ /* @__PURE__ */ jsx(IconChevronRight, { "data-icon": "inline-end", className: "rtl:rotate-180" })
87
+ ]
88
+ }
89
+ );
90
+ }
91
+ function PaginationEllipsis({ className, ...props }) {
92
+ return /* @__PURE__ */ jsxs(
93
+ "span",
94
+ {
95
+ "aria-hidden": true,
96
+ "data-slot": "pagination-ellipsis",
97
+ className: cn(
98
+ "flex size-7 items-center justify-center [&_svg:not([class*='size-'])]:size-3.5",
99
+ className
100
+ ),
101
+ ...props,
102
+ children: [
103
+ /* @__PURE__ */ jsx(IconMoreHoriz, {}),
104
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
105
+ ]
106
+ }
107
+ );
108
+ }
109
+
110
+ export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
111
+ //# sourceMappingURL=pagination.js.map
112
+ //# sourceMappingURL=pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/pagination.tsx"],"names":[],"mappings":";;;;;;;AAQA,SAAS,UAAA,CAAW,EAAE,SAAA,EAAW,GAAG,OAAM,EAAgC;AACxE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAK,YAAA;AAAA,MACL,YAAA,EAAW,YAAA;AAAA,MACX,WAAA,EAAU,YAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,oCAAA,EAAsC,SAAS,CAAA;AAAA,MAC5D,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,iBAAA,CAAkB,EAAE,SAAA,EAAW,GAAG,OAAM,EAA+B;AAC9E,EAAA,uBACE,GAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,oBAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,2BAAA,EAA6B,SAAS,CAAA;AAAA,MACnD,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,cAAA,CAAe,EAAE,GAAG,KAAA,EAAM,EAA+B;AAChE,EAAA,uBAAO,GAAA,CAAC,IAAA,EAAA,EAAG,WAAA,EAAU,iBAAA,EAAmB,GAAG,KAAA,EAAO,CAAA;AACpD;AAOA,SAAS,cAAA,CAAe,EAAE,SAAA,EAAW,QAAA,EAAU,OAAO,MAAA,EAAQ,GAAG,OAAM,EAAwB;AAC7F,EAAA,uBACE,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,OAAA,EAAS,WAAW,SAAA,GAAY,OAAA;AAAA,MAChC,IAAA;AAAA,MACA,SAAA,EAAW,GAAG,SAAS,CAAA;AAAA,MACvB,YAAA,EAAc,KAAA;AAAA,MACd,MAAA,kBACE,GAAA;AAAA,QAAC,GAAA;AAAA,QAAA;AAAA,UACC,cAAA,EAAc,WAAW,MAAA,GAAS,MAAA;AAAA,UAClC,WAAA,EAAU,iBAAA;AAAA,UACV,aAAA,EAAa,QAAA;AAAA,UACZ,GAAG;AAAA;AAAA;AACN;AAAA,GAEJ;AAEJ;AAEA,SAAS,kBAAA,CAAmB;AAAA,EAC1B,SAAA;AAAA,EACA,IAAA,GAAO,UAAA;AAAA,EACP,GAAG;AACL,CAAA,EAAoE;AAClE,EAAA,uBACE,IAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAW,qBAAA;AAAA,MACX,IAAA,EAAK,SAAA;AAAA,MACL,SAAA,EAAW,EAAA,CAAG,OAAA,EAAS,SAAS,CAAA;AAAA,MAC/B,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,eAAA,EAAA,EAAgB,WAAA,EAAU,cAAA,EAAe,SAAA,EAAU,gBAAA,EAAiB,CAAA;AAAA,wBACrE,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,wBAAA,EAA0B,QAAA,EAAA,IAAA,EAAK;AAAA;AAAA;AAAA,GACjD;AAEJ;AAEA,SAAS,cAAA,CAAe;AAAA,EACtB,SAAA;AAAA,EACA,IAAA,GAAO,MAAA;AAAA,EACP,GAAG;AACL,CAAA,EAAoE;AAClE,EAAA,uBACE,IAAA;AAAA,IAAC,cAAA;AAAA,IAAA;AAAA,MACC,YAAA,EAAW,iBAAA;AAAA,MACX,IAAA,EAAK,SAAA;AAAA,MACL,SAAA,EAAW,EAAA,CAAG,OAAA,EAAS,SAAS,CAAA;AAAA,MAC/B,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,wBAAA,EAA0B,QAAA,EAAA,IAAA,EAAK,CAAA;AAAA,wBAC/C,GAAA,CAAC,gBAAA,EAAA,EAAiB,WAAA,EAAU,YAAA,EAAa,WAAU,gBAAA,EAAiB;AAAA;AAAA;AAAA,GACtE;AAEJ;AAEA,SAAS,kBAAA,CAAmB,EAAE,SAAA,EAAW,GAAG,OAAM,EAAiC;AACjF,EAAA,uBACE,IAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,aAAA,EAAW,IAAA;AAAA,MACX,WAAA,EAAU,qBAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,gFAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,CAAA;AAAA,wBACf,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,SAAA,EAAU,QAAA,EAAA,YAAA,EAAU;AAAA;AAAA;AAAA,GACtC;AAEJ","file":"pagination.js","sourcesContent":["import * as React from 'react'\n\nimport { IconChevronLeft } from '../icons/chevron-left.js'\nimport { IconChevronRight } from '../icons/chevron-right.js'\nimport { IconMoreHoriz } from '../icons/more-horiz.js'\nimport { cn } from '../lib/utils.js'\nimport { Button } from './button.js'\n\nfunction Pagination({ className, ...props }: React.ComponentProps<'nav'>) {\n return (\n <nav\n role='navigation'\n aria-label='pagination'\n data-slot='pagination'\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n )\n}\n\nfunction PaginationContent({ className, ...props }: React.ComponentProps<'ul'>) {\n return (\n <ul\n data-slot='pagination-content'\n className={cn('flex items-center gap-0.5', className)}\n {...props}\n />\n )\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<'li'>) {\n return <li data-slot='pagination-item' {...props} />\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean\n} & Pick<React.ComponentProps<typeof Button>, 'size'> &\n React.ComponentProps<'a'>\n\nfunction PaginationLink({ className, isActive, size = 'icon', ...props }: PaginationLinkProps) {\n return (\n <Button\n variant={isActive ? 'outline' : 'ghost'}\n size={size}\n className={cn(className)}\n nativeButton={false}\n render={\n <a\n aria-current={isActive ? 'page' : undefined}\n data-slot='pagination-link'\n data-active={isActive}\n {...props}\n />\n }\n />\n )\n}\n\nfunction PaginationPrevious({\n className,\n text = 'Previous',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink\n aria-label='Go to previous page'\n size='default'\n className={cn('ps-2!', className)}\n {...props}\n >\n <IconChevronLeft data-icon='inline-start' className='rtl:rotate-180' />\n <span className='max-sm:hidden sm:block'>{text}</span>\n </PaginationLink>\n )\n}\n\nfunction PaginationNext({\n className,\n text = 'Next',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink\n aria-label='Go to next page'\n size='default'\n className={cn('pe-2!', className)}\n {...props}\n >\n <span className='max-sm:hidden sm:block'>{text}</span>\n <IconChevronRight data-icon='inline-end' className='rtl:rotate-180' />\n </PaginationLink>\n )\n}\n\nfunction PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n aria-hidden\n data-slot='pagination-ellipsis'\n className={cn(\n \"flex size-7 items-center justify-center [&_svg:not([class*='size-'])]:size-3.5\",\n className,\n )}\n {...props}\n >\n <IconMoreHoriz />\n <span className='sr-only'>More pages</span>\n </span>\n )\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { Progress as Progress$1 } from '@base-ui/react/progress';
3
+
4
+ declare function Progress({ className, children, value, ...props }: Progress$1.Root.Props): React.JSX.Element;
5
+ declare function ProgressTrack({ className, ...props }: Progress$1.Track.Props): React.JSX.Element;
6
+ declare function ProgressIndicator({ className, ...props }: Progress$1.Indicator.Props): React.JSX.Element;
7
+ declare function ProgressLabel({ className, ...props }: Progress$1.Label.Props): React.JSX.Element;
8
+ declare function ProgressValue({ className, ...props }: Progress$1.Value.Props): React.JSX.Element;
9
+
10
+ export { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue };
@@ -0,0 +1,67 @@
1
+ "use client"
2
+ import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { Progress as Progress$1 } from '@base-ui/react/progress';
4
+ import { cn } from '../lib/utils.js';
5
+
6
+ function Progress({ className, children, value, ...props }) {
7
+ return /* @__PURE__ */ jsxs(
8
+ Progress$1.Root,
9
+ {
10
+ value,
11
+ "data-slot": "progress",
12
+ className: cn("flex flex-wrap gap-3", className),
13
+ ...props,
14
+ children: [
15
+ children,
16
+ /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })
17
+ ]
18
+ }
19
+ );
20
+ }
21
+ function ProgressTrack({ className, ...props }) {
22
+ return /* @__PURE__ */ jsx(
23
+ Progress$1.Track,
24
+ {
25
+ className: cn(
26
+ "relative flex h-1 w-full items-center overflow-x-hidden rounded-md bg-muted",
27
+ className
28
+ ),
29
+ "data-slot": "progress-track",
30
+ ...props
31
+ }
32
+ );
33
+ }
34
+ function ProgressIndicator({ className, ...props }) {
35
+ return /* @__PURE__ */ jsx(
36
+ Progress$1.Indicator,
37
+ {
38
+ "data-slot": "progress-indicator",
39
+ className: cn("h-full bg-primary transition-all", className),
40
+ ...props
41
+ }
42
+ );
43
+ }
44
+ function ProgressLabel({ className, ...props }) {
45
+ return /* @__PURE__ */ jsx(
46
+ Progress$1.Label,
47
+ {
48
+ className: cn("text-xs/relaxed font-medium", className),
49
+ "data-slot": "progress-label",
50
+ ...props
51
+ }
52
+ );
53
+ }
54
+ function ProgressValue({ className, ...props }) {
55
+ return /* @__PURE__ */ jsx(
56
+ Progress$1.Value,
57
+ {
58
+ className: cn("ms-auto text-xs/relaxed text-muted-foreground tabular-nums", className),
59
+ "data-slot": "progress-value",
60
+ ...props
61
+ }
62
+ );
63
+ }
64
+
65
+ export { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue };
66
+ //# sourceMappingURL=progress.js.map
67
+ //# sourceMappingURL=progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/progress.tsx"],"names":["ProgressPrimitive"],"mappings":";;;;AAMA,SAAS,SAAS,EAAE,SAAA,EAAW,UAAU,KAAA,EAAO,GAAG,OAAM,EAAiC;AACxF,EAAA,uBACE,IAAA;AAAA,IAACA,UAAA,CAAkB,IAAA;AAAA,IAAlB;AAAA,MACC,KAAA;AAAA,MACA,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,sBAAA,EAAwB,SAAS,CAAA;AAAA,MAC9C,GAAG,KAAA;AAAA,MAEH,QAAA,EAAA;AAAA,QAAA,QAAA;AAAA,wBACD,GAAA,CAAC,aAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,iBAAA,EAAA,EAAkB,CAAA,EACrB;AAAA;AAAA;AAAA,GACF;AAEJ;AAEA,SAAS,aAAA,CAAc,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkC;AAC7E,EAAA,uBACE,GAAA;AAAA,IAACA,UAAA,CAAkB,KAAA;AAAA,IAAlB;AAAA,MACC,SAAA,EAAW,EAAA;AAAA,QACT,6EAAA;AAAA,QACA;AAAA,OACF;AAAA,MACA,WAAA,EAAU,gBAAA;AAAA,MACT,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,iBAAA,CAAkB,EAAE,SAAA,EAAW,GAAG,OAAM,EAAsC;AACrF,EAAA,uBACE,GAAA;AAAA,IAACA,UAAA,CAAkB,SAAA;AAAA,IAAlB;AAAA,MACC,WAAA,EAAU,oBAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,kCAAA,EAAoC,SAAS,CAAA;AAAA,MAC1D,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,aAAA,CAAc,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkC;AAC7E,EAAA,uBACE,GAAA;AAAA,IAACA,UAAA,CAAkB,KAAA;AAAA,IAAlB;AAAA,MACC,SAAA,EAAW,EAAA,CAAG,6BAAA,EAA+B,SAAS,CAAA;AAAA,MACtD,WAAA,EAAU,gBAAA;AAAA,MACT,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,aAAA,CAAc,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkC;AAC7E,EAAA,uBACE,GAAA;AAAA,IAACA,UAAA,CAAkB,KAAA;AAAA,IAAlB;AAAA,MACC,SAAA,EAAW,EAAA,CAAG,4DAAA,EAA8D,SAAS,CAAA;AAAA,MACrF,WAAA,EAAU,gBAAA;AAAA,MACT,GAAG;AAAA;AAAA,GACN;AAEJ","file":"progress.js","sourcesContent":["'use client'\n\nimport { Progress as ProgressPrimitive } from '@base-ui/react/progress'\n\nimport { cn } from '../lib/utils.js'\n\nfunction Progress({ className, children, value, ...props }: ProgressPrimitive.Root.Props) {\n return (\n <ProgressPrimitive.Root\n value={value}\n data-slot='progress'\n className={cn('flex flex-wrap gap-3', className)}\n {...props}\n >\n {children}\n <ProgressTrack>\n <ProgressIndicator />\n </ProgressTrack>\n </ProgressPrimitive.Root>\n )\n}\n\nfunction ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) {\n return (\n <ProgressPrimitive.Track\n className={cn(\n 'relative flex h-1 w-full items-center overflow-x-hidden rounded-md bg-muted',\n className,\n )}\n data-slot='progress-track'\n {...props}\n />\n )\n}\n\nfunction ProgressIndicator({ className, ...props }: ProgressPrimitive.Indicator.Props) {\n return (\n <ProgressPrimitive.Indicator\n data-slot='progress-indicator'\n className={cn('h-full bg-primary transition-all', className)}\n {...props}\n />\n )\n}\n\nfunction ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) {\n return (\n <ProgressPrimitive.Label\n className={cn('text-xs/relaxed font-medium', className)}\n data-slot='progress-label'\n {...props}\n />\n )\n}\n\nfunction ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props) {\n return (\n <ProgressPrimitive.Value\n className={cn('ms-auto text-xs/relaxed text-muted-foreground tabular-nums', className)}\n data-slot='progress-value'\n {...props}\n />\n )\n}\n\nexport { Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue }\n"]}
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Radio } from '@base-ui/react/radio';
3
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
4
+
5
+ declare function RadioGroup({ className, ...props }: RadioGroup$1.Props): React.JSX.Element;
6
+ declare function RadioGroupItem({ className, ...props }: Radio.Root.Props): React.JSX.Element;
7
+
8
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,41 @@
1
+ "use client"
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { Radio } from '@base-ui/react/radio';
4
+ import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
5
+ import { cn } from '../lib/utils.js';
6
+
7
+ function RadioGroup({ className, ...props }) {
8
+ return /* @__PURE__ */ jsx(
9
+ RadioGroup$1,
10
+ {
11
+ "data-slot": "radio-group",
12
+ className: cn("grid w-full gap-3", className),
13
+ ...props
14
+ }
15
+ );
16
+ }
17
+ function RadioGroupItem({ className, ...props }) {
18
+ return /* @__PURE__ */ jsx(
19
+ Radio.Root,
20
+ {
21
+ "data-slot": "radio-group-item",
22
+ className: cn(
23
+ "group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary",
24
+ className
25
+ ),
26
+ ...props,
27
+ children: /* @__PURE__ */ jsx(
28
+ Radio.Indicator,
29
+ {
30
+ "data-slot": "radio-group-indicator",
31
+ className: "flex size-4 items-center justify-center",
32
+ children: /* @__PURE__ */ jsx("span", { className: "absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground rtl:translate-x-1/2" })
33
+ }
34
+ )
35
+ }
36
+ );
37
+ }
38
+
39
+ export { RadioGroup, RadioGroupItem };
40
+ //# sourceMappingURL=radio-group.js.map
41
+ //# sourceMappingURL=radio-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/radio-group.tsx"],"names":["RadioGroupPrimitive","RadioPrimitive"],"mappings":";;;;;AAOA,SAAS,UAAA,CAAW,EAAE,SAAA,EAAW,GAAG,OAAM,EAA8B;AACtE,EAAA,uBACE,GAAA;AAAA,IAACA,YAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,aAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,mBAAA,EAAqB,SAAS,CAAA;AAAA,MAC3C,GAAG;AAAA;AAAA,GACN;AAEJ;AAEA,SAAS,cAAA,CAAe,EAAE,SAAA,EAAW,GAAG,OAAM,EAA8B;AAC1E,EAAA,uBACE,GAAA;AAAA,IAACC,KAAA,CAAe,IAAA;AAAA,IAAf;AAAA,MACC,WAAA,EAAU,kBAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,2yBAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,KAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA;AAAA,QAACA,KAAA,CAAe,SAAA;AAAA,QAAf;AAAA,UACC,WAAA,EAAU,uBAAA;AAAA,UACV,SAAA,EAAU,yCAAA;AAAA,UAEV,QAAA,kBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAU,4HAAA,EAA6H;AAAA;AAAA;AAC/I;AAAA,GACF;AAEJ","file":"radio-group.js","sourcesContent":["'use client'\n\nimport { Radio as RadioPrimitive } from '@base-ui/react/radio'\nimport { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group'\n\nimport { cn } from '../lib/utils.js'\n\nfunction RadioGroup({ className, ...props }: RadioGroupPrimitive.Props) {\n return (\n <RadioGroupPrimitive\n data-slot='radio-group'\n className={cn('grid w-full gap-3', className)}\n {...props}\n />\n )\n}\n\nfunction RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {\n return (\n <RadioPrimitive.Root\n data-slot='radio-group-item'\n className={cn(\n 'group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary',\n className,\n )}\n {...props}\n >\n <RadioPrimitive.Indicator\n data-slot='radio-group-indicator'\n className='flex size-4 items-center justify-center'\n >\n <span className='absolute start-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground rtl:translate-x-1/2' />\n </RadioPrimitive.Indicator>\n </RadioPrimitive.Root>\n )\n}\n\nexport { RadioGroup, RadioGroupItem }\n"]}
@@ -0,0 +1,17 @@
1
+ import { Select as Select$1 } from '@base-ui/react/select';
2
+ import * as React from 'react';
3
+
4
+ declare const Select: typeof Select$1.Root;
5
+ declare function SelectGroup({ className, ...props }: Select$1.Group.Props): React.JSX.Element;
6
+ declare function SelectValue({ className, ...props }: Select$1.Value.Props): React.JSX.Element;
7
+ declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
8
+ size?: 'sm' | 'default';
9
+ }): React.JSX.Element;
10
+ declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): React.JSX.Element;
11
+ declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): React.JSX.Element;
12
+ declare function SelectItem({ className, children, ...props }: Select$1.Item.Props): React.JSX.Element;
13
+ declare function SelectSeparator({ className, ...props }: Select$1.Separator.Props): React.JSX.Element;
14
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollUpArrow>): React.JSX.Element;
15
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof Select$1.ScrollDownArrow>): React.JSX.Element;
16
+
17
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,177 @@
1
+ "use client"
2
+ import { jsx, jsxs } from 'react/jsx-runtime';
3
+ import { Select as Select$1 } from '@base-ui/react/select';
4
+ import { IconCheck } from '../icons/check.js';
5
+ import { IconExpandLess } from '../icons/expand-less.js';
6
+ import { IconExpandMore } from '../icons/expand-more.js';
7
+ import { cn } from '../lib/utils.js';
8
+
9
+ const Select = Select$1.Root;
10
+ function SelectGroup({ className, ...props }) {
11
+ return /* @__PURE__ */ jsx(
12
+ Select$1.Group,
13
+ {
14
+ "data-slot": "select-group",
15
+ className: cn("scroll-my-1 p-1", className),
16
+ ...props
17
+ }
18
+ );
19
+ }
20
+ function SelectValue({ className, ...props }) {
21
+ return /* @__PURE__ */ jsx(
22
+ Select$1.Value,
23
+ {
24
+ "data-slot": "select-value",
25
+ className: cn("flex flex-1 text-start", className),
26
+ ...props
27
+ }
28
+ );
29
+ }
30
+ function SelectTrigger({
31
+ className,
32
+ size = "default",
33
+ children,
34
+ ...props
35
+ }) {
36
+ return /* @__PURE__ */ jsxs(
37
+ Select$1.Trigger,
38
+ {
39
+ "data-slot": "select-trigger",
40
+ "data-size": size,
41
+ className: cn(
42
+ "flex w-fit items-center justify-between gap-1.5 rounded-md border border-input bg-input/20 px-2 py-1.5 text-xs/relaxed whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-2 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-7 data-[size=sm]:h-6 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",
43
+ className
44
+ ),
45
+ ...props,
46
+ children: [
47
+ children,
48
+ /* @__PURE__ */ jsx(
49
+ Select$1.Icon,
50
+ {
51
+ render: /* @__PURE__ */ jsx(IconExpandMore, { className: "pointer-events-none size-3.5 text-muted-foreground" })
52
+ }
53
+ )
54
+ ]
55
+ }
56
+ );
57
+ }
58
+ function SelectContent({
59
+ className,
60
+ children,
61
+ side = "bottom",
62
+ sideOffset = 4,
63
+ align = "center",
64
+ alignOffset = 0,
65
+ alignItemWithTrigger = true,
66
+ ...props
67
+ }) {
68
+ return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsx(
69
+ Select$1.Positioner,
70
+ {
71
+ side,
72
+ sideOffset,
73
+ align,
74
+ alignOffset,
75
+ alignItemWithTrigger,
76
+ className: "isolate z-50",
77
+ children: /* @__PURE__ */ jsxs(
78
+ Select$1.Popup,
79
+ {
80
+ "data-slot": "select-content",
81
+ "data-align-trigger": alignItemWithTrigger,
82
+ className: cn(
83
+ "relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-start-2 data-[side=inline-start]:slide-in-from-end-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
84
+ className
85
+ ),
86
+ ...props,
87
+ children: [
88
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
89
+ /* @__PURE__ */ jsx(Select$1.List, { children }),
90
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
91
+ ]
92
+ }
93
+ )
94
+ }
95
+ ) });
96
+ }
97
+ function SelectLabel({ className, ...props }) {
98
+ return /* @__PURE__ */ jsx(
99
+ Select$1.GroupLabel,
100
+ {
101
+ "data-slot": "select-label",
102
+ className: cn("px-2 py-1.5 text-xs text-muted-foreground", className),
103
+ ...props
104
+ }
105
+ );
106
+ }
107
+ function SelectItem({ className, children, ...props }) {
108
+ return /* @__PURE__ */ jsxs(
109
+ Select$1.Item,
110
+ {
111
+ "data-slot": "select-item",
112
+ className: cn(
113
+ "relative flex min-h-7 w-full cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
114
+ className
115
+ ),
116
+ ...props,
117
+ children: [
118
+ /* @__PURE__ */ jsx(Select$1.ItemText, { className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap", children }),
119
+ /* @__PURE__ */ jsx(
120
+ Select$1.ItemIndicator,
121
+ {
122
+ render: /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute end-2 flex items-center justify-center" }),
123
+ children: /* @__PURE__ */ jsx(IconCheck, { className: "pointer-events-none" })
124
+ }
125
+ )
126
+ ]
127
+ }
128
+ );
129
+ }
130
+ function SelectSeparator({ className, ...props }) {
131
+ return /* @__PURE__ */ jsx(
132
+ Select$1.Separator,
133
+ {
134
+ "data-slot": "select-separator",
135
+ className: cn("pointer-events-none -mx-1 my-1 h-px bg-border/50", className),
136
+ ...props
137
+ }
138
+ );
139
+ }
140
+ function SelectScrollUpButton({
141
+ className,
142
+ ...props
143
+ }) {
144
+ return /* @__PURE__ */ jsx(
145
+ Select$1.ScrollUpArrow,
146
+ {
147
+ "data-slot": "select-scroll-up-button",
148
+ className: cn(
149
+ "top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",
150
+ className
151
+ ),
152
+ ...props,
153
+ children: /* @__PURE__ */ jsx(IconExpandLess, {})
154
+ }
155
+ );
156
+ }
157
+ function SelectScrollDownButton({
158
+ className,
159
+ ...props
160
+ }) {
161
+ return /* @__PURE__ */ jsx(
162
+ Select$1.ScrollDownArrow,
163
+ {
164
+ "data-slot": "select-scroll-down-button",
165
+ className: cn(
166
+ "bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-3.5",
167
+ className
168
+ ),
169
+ ...props,
170
+ children: /* @__PURE__ */ jsx(IconExpandMore, {})
171
+ }
172
+ );
173
+ }
174
+
175
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
176
+ //# sourceMappingURL=select.js.map
177
+ //# sourceMappingURL=select.js.map