@gbmtech/aurora-ui 0.1.29 → 0.1.31

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 (57) hide show
  1. package/dist/cjs/components/date-picker-with-range.cjs +1 -1
  2. package/dist/cjs/components/date-picker-with-range.cjs.map +1 -1
  3. package/dist/cjs/components/date-picker-with-time.cjs +1 -1
  4. package/dist/cjs/components/date-picker-with-time.cjs.map +1 -1
  5. package/dist/cjs/components/date-picker.cjs +1 -1
  6. package/dist/cjs/components/date-picker.cjs.map +1 -1
  7. package/dist/cjs/components/date-time-picker-with-range.cjs +1 -1
  8. package/dist/cjs/components/date-time-picker-with-range.cjs.map +1 -1
  9. package/dist/cjs/components/select.cjs +1 -1
  10. package/dist/cjs/components/select.cjs.map +1 -1
  11. package/dist/cjs/components/separator.cjs +1 -2
  12. package/dist/cjs/components/separator.cjs.map +1 -1
  13. package/dist/cjs/components/skeleton.cjs +1 -1
  14. package/dist/cjs/components/skeleton.cjs.map +1 -1
  15. package/dist/cjs/components/switch.cjs +1 -1
  16. package/dist/cjs/components/switch.cjs.map +1 -1
  17. package/dist/cjs/components/textarea.cjs +1 -1
  18. package/dist/cjs/components/textarea.cjs.map +1 -1
  19. package/dist/cjs/components/title.cjs +1 -1
  20. package/dist/cjs/components/title.cjs.map +1 -1
  21. package/dist/cjs/components/tooltip.cjs +1 -1
  22. package/dist/cjs/components/tooltip.cjs.map +1 -1
  23. package/dist/esm/components/date-picker-with-range.js +1 -1
  24. package/dist/esm/components/date-picker-with-range.js.map +1 -1
  25. package/dist/esm/components/date-picker-with-time.js +1 -1
  26. package/dist/esm/components/date-picker-with-time.js.map +1 -1
  27. package/dist/esm/components/date-picker.js +1 -1
  28. package/dist/esm/components/date-picker.js.map +1 -1
  29. package/dist/esm/components/date-time-picker-with-range.js +1 -1
  30. package/dist/esm/components/date-time-picker-with-range.js.map +1 -1
  31. package/dist/esm/components/select.js +1 -1
  32. package/dist/esm/components/select.js.map +1 -1
  33. package/dist/esm/components/separator.js +1 -2
  34. package/dist/esm/components/separator.js.map +1 -1
  35. package/dist/esm/components/skeleton.js +1 -1
  36. package/dist/esm/components/skeleton.js.map +1 -1
  37. package/dist/esm/components/switch.js +1 -1
  38. package/dist/esm/components/switch.js.map +1 -1
  39. package/dist/esm/components/textarea.js +1 -1
  40. package/dist/esm/components/textarea.js.map +1 -1
  41. package/dist/esm/components/title.js +1 -1
  42. package/dist/esm/components/title.js.map +1 -1
  43. package/dist/esm/components/tooltip.js +1 -1
  44. package/dist/esm/components/tooltip.js.map +1 -1
  45. package/dist/types/components/separator.d.ts +36 -2
  46. package/dist/types/components/separator.d.ts.map +1 -1
  47. package/dist/types/components/skeleton.d.ts +2 -5
  48. package/dist/types/components/skeleton.d.ts.map +1 -1
  49. package/dist/types/components/switch.d.ts +3 -2
  50. package/dist/types/components/switch.d.ts.map +1 -1
  51. package/dist/types/components/textarea.d.ts +2 -3
  52. package/dist/types/components/textarea.d.ts.map +1 -1
  53. package/dist/types/components/title.d.ts +3 -2
  54. package/dist/types/components/title.d.ts.map +1 -1
  55. package/dist/types/components/tooltip.d.ts +7 -7
  56. package/dist/types/components/tooltip.d.ts.map +1 -1
  57. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DatePickerWithRange:()=>DatePickerWithRange});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs");function DatePickerWithRange({startDate:e,endDate:_,onChange:a,placeholder:r,className:t,disabled:c=!1}){let[n,s]=(0,external_react_namespaceObject.useState)({from:e,to:_}),o=n?.from||n?.to;return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",className:(0,utils_cjs_namespaceObject.cn)("h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50",!o&&"text-gbm-dark/50",t),disabled:c,children:[(0,jsx_runtime_namespaceObject.jsx)("div",{children:n?.from?n.to?(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,external_date_fns_namespaceObject.format)(n.from,"dd/MM/yyyy")," -"," ",(0,external_date_fns_namespaceObject.format)(n.to,"dd/MM/yyyy")]}):(0,external_date_fns_namespaceObject.format)(n.from,"dd/MM/yyyy"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:r||"Selecione o per\xedodo"})}),(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.CalendarBlank,{className:"ml-2 size-4 text-gbm-dark"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{autoFocus:!0,mode:"range",defaultMonth:n?.from,selected:n,onSelect:e=>{s(e),a?.(e)},numberOfMonths:2,disabled:c})})]})}for(var __webpack_i__ in exports.DatePickerWithRange=__webpack_exports__.DatePickerWithRange,__webpack_exports__)-1===["DatePickerWithRange"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DatePickerWithRange:()=>DatePickerWithRange});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs");function DatePickerWithRange({startDate:e,endDate:_,onChange:a,placeholder:r,className:t,disabled:c=!1}){let[n,s]=(0,external_react_namespaceObject.useState)({from:e,to:_}),o=n?.from||n?.to;return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",className:(0,utils_cjs_namespaceObject.cn)("h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50",!o&&"text-gray-400",t),disabled:c,children:[(0,jsx_runtime_namespaceObject.jsx)("div",{children:n?.from?n.to?(0,jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment,{children:[(0,external_date_fns_namespaceObject.format)(n.from,"dd/MM/yyyy")," -"," ",(0,external_date_fns_namespaceObject.format)(n.to,"dd/MM/yyyy")]}):(0,external_date_fns_namespaceObject.format)(n.from,"dd/MM/yyyy"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:r||"Selecione o per\xedodo"})}),(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.CalendarBlank,{className:"ml-2 size-4 text-gray-600"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{autoFocus:!0,mode:"range",defaultMonth:n?.from,selected:n,onSelect:e=>{s(e),a?.(e)},numberOfMonths:2,disabled:c})})]})}for(var __webpack_i__ in exports.DatePickerWithRange=__webpack_exports__.DatePickerWithRange,__webpack_exports__)-1===["DatePickerWithRange"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=date-picker-with-range.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-picker-with-range.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DatePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DatePickerWithRangeProps) {\r\n const [date, setDate] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const isRangeSelected = date?.from || date?.to\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50',\r\n !isRangeSelected && 'text-gbm-dark/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n <div>\r\n {date?.from ? (\r\n date.to ? (\r\n <>\r\n {format(date.from, 'dd/MM/yyyy')} -{' '}\r\n {format(date.to, 'dd/MM/yyyy')}\r\n </>\r\n ) : (\r\n format(date.from, 'dd/MM/yyyy')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n </div>\r\n <CalendarBlank className=\"ml-2 size-4 text-gbm-dark\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n autoFocus\r\n mode=\"range\"\r\n defaultMonth={date?.from}\r\n selected={date}\r\n onSelect={date => {\r\n setDate(date)\r\n onChange?.(date)\r\n }}\r\n numberOfMonths={2}\r\n disabled={disabled}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePickerWithRange }\r\n"],"names":["DatePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","date","setDate","useState","isRangeSelected","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";2wCAyBA,SAASA,oBAAoB,CAC3BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACS,EACzB,GAAM,CAACC,EAAMC,EAAQ,CAAGC,GAAAA,+BAAAA,QAAAA,EAAgC,CACtD,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAkBH,GAAM,MAAQA,GAAM,GAE5C,MACE,qCAACI,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,uGACA,CAACJ,GAAmB,mBACpBL,GAEF,SAAUC,E,UAEV,oCAAC,O,SACEC,GAAM,KACLA,EAAK,EAAE,CACL,2E,UACGQ,GAAAA,kCAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAAc,KAAG,IACnCQ,GAAAA,kCAAAA,MAAAA,EAAOR,EAAK,EAAE,CAAE,c,GAGnBQ,GAAAA,kCAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAGpB,oCAAC,Q,SAAMH,GAAe,wB,KAG1B,oCAACY,oBAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,UAAS,GACT,KAAK,QACL,aAAcX,GAAM,KACpB,SAAUA,EACV,SAAUA,IACRC,EAAQD,GACRJ,IAAWI,EACb,EACA,eAAgB,EAChB,SAAUD,C,OAKpB,C"}
1
+ {"version":3,"file":"components\\date-picker-with-range.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DatePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DatePickerWithRangeProps) {\r\n const [date, setDate] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const isRangeSelected = date?.from || date?.to\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50',\r\n !isRangeSelected && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n <div>\r\n {date?.from ? (\r\n date.to ? (\r\n <>\r\n {format(date.from, 'dd/MM/yyyy')} -{' '}\r\n {format(date.to, 'dd/MM/yyyy')}\r\n </>\r\n ) : (\r\n format(date.from, 'dd/MM/yyyy')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n </div>\r\n <CalendarBlank className=\"ml-2 size-4 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n autoFocus\r\n mode=\"range\"\r\n defaultMonth={date?.from}\r\n selected={date}\r\n onSelect={date => {\r\n setDate(date)\r\n onChange?.(date)\r\n }}\r\n numberOfMonths={2}\r\n disabled={disabled}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePickerWithRange }\r\n"],"names":["DatePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","date","setDate","useState","isRangeSelected","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";2wCAyBA,SAASA,oBAAoB,CAC3BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACS,EACzB,GAAM,CAACC,EAAMC,EAAQ,CAAGC,GAAAA,+BAAAA,QAAAA,EAAgC,CACtD,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAkBH,GAAM,MAAQA,GAAM,GAE5C,MACE,qCAACI,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,uGACA,CAACJ,GAAmB,gBACpBL,GAEF,SAAUC,E,UAEV,oCAAC,O,SACEC,GAAM,KACLA,EAAK,EAAE,CACL,2E,UACGQ,GAAAA,kCAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAAc,KAAG,IACnCQ,GAAAA,kCAAAA,MAAAA,EAAOR,EAAK,EAAE,CAAE,c,GAGnBQ,GAAAA,kCAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAGpB,oCAAC,Q,SAAMH,GAAe,wB,KAG1B,oCAACY,oBAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,UAAS,GACT,KAAK,QACL,aAAcX,GAAM,KACpB,SAAUA,EACV,SAAUA,IACRC,EAAQD,GACRJ,IAAWI,EACb,EACA,eAAgB,EAChB,SAAUD,C,OAKpB,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DateTimePicker:()=>DateTimePicker});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_time_picker_cjs_namespaceObject=require("./time-picker.cjs");function DateTimePicker({date:e,placeholder:_,className:a,disabled:r,onChange:t,onClear:c}){let[s,n]=external_react_namespaceObject.useState(e);return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",className:(0,utils_cjs_namespaceObject.cn)("h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent",!s&&"text-dark-gray/50",a),disabled:r,children:[s?(0,external_date_fns_namespaceObject.format)(s,"dd/MM/yyyy HH:mm"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:_||"a"}),(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.CalendarBlank,{size:20,className:"ml-2 text-dark-gray"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",children:[(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{mode:"single",selected:s,onSelect:e=>{n(e),t?.(e)}}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex justify-center border-stroke border-t p-3",children:(0,jsx_runtime_namespaceObject.jsx)(external_time_picker_cjs_namespaceObject.TimePicker,{setDate:e=>{n(e),t?.(e)},date:s})}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex flex-1 justify-center",children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>{n(void 0),c?.()},children:[(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.X,{size:12})," Clear"]})})]})]})}for(var __webpack_i__ in exports.DateTimePicker=__webpack_exports__.DateTimePicker,__webpack_exports__)-1===["DateTimePicker"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DateTimePicker:()=>DateTimePicker});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_time_picker_cjs_namespaceObject=require("./time-picker.cjs");function DateTimePicker({date:e,placeholder:_,className:a,disabled:r,onChange:t,onClear:c}){let[s,n]=external_react_namespaceObject.useState(e);return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",className:(0,utils_cjs_namespaceObject.cn)("h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent",!s&&"text-gray-400",a),disabled:r,children:[s?(0,external_date_fns_namespaceObject.format)(s,"dd/MM/yyyy HH:mm"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:_||"a"}),(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.CalendarBlank,{size:20,className:"ml-2 text-gray-600"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",children:[(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{mode:"single",selected:s,onSelect:e=>{n(e),t?.(e)}}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex justify-center border-stroke border-t p-3",children:(0,jsx_runtime_namespaceObject.jsx)(external_time_picker_cjs_namespaceObject.TimePicker,{setDate:e=>{n(e),t?.(e)},date:s})}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex flex-1 justify-center",children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>{n(void 0),c?.()},children:[(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.X,{size:12})," Clear"]})})]})]})}for(var __webpack_i__ in exports.DateTimePicker=__webpack_exports__.DateTimePicker,__webpack_exports__)-1===["DateTimePicker"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=date-picker-with-time.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-picker-with-time.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-time.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n onClear?: () => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled,\r\n onChange,\r\n onClear,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = React.useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent',\r\n !currentDate && 'text-dark-gray/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy HH:mm')\r\n ) : (\r\n <span>{placeholder || 'a'}</span>\r\n )}\r\n\r\n <CalendarBlank size={20} className=\"ml-2 text-dark-gray\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n\r\n <div className=\"flex justify-center border-stroke border-t p-3\">\r\n <TimePicker\r\n setDate={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n date={currentDate}\r\n />\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => {\r\n setCurrentDate(undefined)\r\n onClear?.()\r\n }}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePicker }\r\n"],"names":["DateTimePicker","date","placeholder","className","disabled","onChange","onClear","currentDate","setCurrentDate","React","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","undefined","X"],"mappings":";u0CA0BA,SAASA,eAAe,CACtBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACS,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,+BAAAA,QAAc,CAAmBR,GAEvE,MACE,qCAACS,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,8EACA,CAACN,GAAe,oBAChBJ,GAEF,SAAUC,E,UAETG,EACCO,GAAAA,kCAAAA,MAAAA,EAAOP,EAAa,oBAEpB,oCAAC,Q,SAAML,GAAe,G,GAGxB,oCAACa,oBAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,qB,QAGvC,qCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUN,IACRO,EAAeP,GACfI,IAAWJ,EACb,C,GAGF,oCAAC,OAAI,UAAU,iD,SACb,oCAACiB,yCAAAA,UAAUA,CAAAA,CACT,QAASjB,IACPO,EAAeP,GACfI,IAAWJ,EACb,EACA,KAAMM,C,KAGV,oCAAC,OAAI,UAAU,6B,SACb,qCAACK,oCAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,KACPJ,EAAeW,KAAAA,GACfb,KACF,E,UAEA,oCAACc,oBAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,C"}
1
+ {"version":3,"file":"components\\date-picker-with-time.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-time.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n onClear?: () => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled,\r\n onChange,\r\n onClear,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = React.useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent',\r\n !currentDate && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy HH:mm')\r\n ) : (\r\n <span>{placeholder || 'a'}</span>\r\n )}\r\n\r\n <CalendarBlank size={20} className=\"ml-2 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n\r\n <div className=\"flex justify-center border-stroke border-t p-3\">\r\n <TimePicker\r\n setDate={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n date={currentDate}\r\n />\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => {\r\n setCurrentDate(undefined)\r\n onClear?.()\r\n }}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePicker }\r\n"],"names":["DateTimePicker","date","placeholder","className","disabled","onChange","onClear","currentDate","setCurrentDate","React","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","undefined","X"],"mappings":";u0CA0BA,SAASA,eAAe,CACtBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACS,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,+BAAAA,QAAc,CAAmBR,GAEvE,MACE,qCAACS,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,8EACA,CAACN,GAAe,gBAChBJ,GAEF,SAAUC,E,UAETG,EACCO,GAAAA,kCAAAA,MAAAA,EAAOP,EAAa,oBAEpB,oCAAC,Q,SAAML,GAAe,G,GAGxB,oCAACa,oBAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,oB,QAGvC,qCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUN,IACRO,EAAeP,GACfI,IAAWJ,EACb,C,GAGF,oCAAC,OAAI,UAAU,iD,SACb,oCAACiB,yCAAAA,UAAUA,CAAAA,CACT,QAASjB,IACPO,EAAeP,GACfI,IAAWJ,EACb,EACA,KAAMM,C,KAGV,oCAAC,OAAI,UAAU,6B,SACb,qCAACK,oCAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,KACPJ,EAAeW,KAAAA,GACfb,KACF,E,UAEA,oCAACc,oBAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DatePicker:()=>DatePicker});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs");function DatePicker({date:e,placeholder:_,className:a,disabled:r=!1,onChange:t}){let[c,n]=(0,external_react_namespaceObject.useState)(e);return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",size:"md",className:(0,utils_cjs_namespaceObject.cn)("min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50",!c&&"text-gbm-dark/50",a),disabled:r,children:[c?(0,external_date_fns_namespaceObject.format)(c,"dd/MM/yyyy"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:_||"Selecione a data"}),(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CalendarBlank,{className:"ml-4 size-4 text-gbm-dark"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{mode:"single",selected:c,onSelect:e=>{n(e),t?.(e)}})})]})}for(var __webpack_i__ in exports.DatePicker=__webpack_exports__.DatePicker,__webpack_exports__)-1===["DatePicker"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var a in _)__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:_[a]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DatePicker:()=>DatePicker});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs");function DatePicker({date:e,placeholder:_,className:a,disabled:r=!1,onChange:t}){let[c,n]=(0,external_react_namespaceObject.useState)(e);return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",size:"md",className:(0,utils_cjs_namespaceObject.cn)("min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50",!c&&"text-gray-400",a),disabled:r,children:[c?(0,external_date_fns_namespaceObject.format)(c,"dd/MM/yyyy"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:_||"Selecione a data"}),(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CalendarBlank,{className:"ml-4 size-4 text-gray-600"})]})}),(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{mode:"single",selected:c,onSelect:e=>{n(e),t?.(e)}})})]})}for(var __webpack_i__ in exports.DatePicker=__webpack_exports__.DatePicker,__webpack_exports__)-1===["DatePicker"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=date-picker.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-picker.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n onChange,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n size=\"md\"\r\n className={cn(\r\n 'min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50',\r\n !currentDate && 'text-gbm-dark/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy')\r\n ) : (\r\n <span>{placeholder || 'Selecione a data'}</span>\r\n )}\r\n <CalendarBlank className=\"ml-4 size-4 text-gbm-dark\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePicker }\r\n"],"names":["DatePicker","date","placeholder","className","disabled","onChange","currentDate","setCurrentDate","useState","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";kvCAuBA,SAASA,WAAW,CAClBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CAChBC,SAAAA,CAAQ,CACQ,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,GAAAA,+BAAAA,QAAAA,EAA2BP,GAEjE,MACE,qCAACQ,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,KAAK,KACL,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,0FACA,CAACN,GAAe,mBAChBH,GAEF,SAAUC,E,UAETE,EACCO,GAAAA,kCAAAA,MAAAA,EAAOP,EAAa,cAEpB,oCAAC,Q,SAAMJ,GAAe,kB,GAExB,oCAACY,sBAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUL,IACRM,EAAeN,GACfI,IAAWJ,EACb,C,OAKV,C"}
1
+ {"version":3,"file":"components\\date-picker.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n onChange,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n size=\"md\"\r\n className={cn(\r\n 'min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50',\r\n !currentDate && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy')\r\n ) : (\r\n <span>{placeholder || 'Selecione a data'}</span>\r\n )}\r\n <CalendarBlank className=\"ml-4 size-4 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePicker }\r\n"],"names":["DatePicker","date","placeholder","className","disabled","onChange","currentDate","setCurrentDate","useState","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";kvCAuBA,SAASA,WAAW,CAClBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CAChBC,SAAAA,CAAQ,CACQ,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,GAAAA,+BAAAA,QAAAA,EAA2BP,GAEjE,MACE,qCAACQ,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,KAAK,KACL,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,0FACA,CAACN,GAAe,gBAChBH,GAEF,SAAUC,E,UAETE,EACCO,GAAAA,kCAAAA,MAAAA,EAAOP,EAAa,cAEpB,oCAAC,Q,SAAMJ,GAAe,kB,GAExB,oCAACY,sBAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUL,IACRM,EAAeN,GACfI,IAAWJ,EACb,C,OAKV,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DateTimePickerWithRange:()=>DateTimePickerWithRange});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_time_picker_cjs_namespaceObject=require("./time-picker.cjs");function DateTimePickerWithRange({startDate:e,endDate:t,onChange:a,placeholder:r,className:_,disabled:c=!1}){let[s,n]=(0,external_react_namespaceObject.useState)({from:e,to:t}),i=e=>{if(!e){n(void 0),a?.(void 0);return}n({from:e.from??s?.from,to:e.to}),a?.({from:e.from??s?.from,to:e.to})};return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",className:(0,utils_cjs_namespaceObject.cn)("h-12 min-w-96 justify-between px-4 text-left font-normal",!s?.from&&!s?.to&&"text-dark-gray/50",_),disabled:c,children:[s?.from?s.to?`${(0,external_date_fns_namespaceObject.format)(s.from,"dd/MM/yyyy HH:mm")} - ${(0,external_date_fns_namespaceObject.format)(s.to,"dd/MM/yyyy HH:mm")}`:(0,external_date_fns_namespaceObject.format)(s.from,"dd/MM/yyyy HH:mm"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:r||"Selecione o per\xedodo"}),(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.CalendarBlank,{size:20,className:"ml-2 text-dark-gray"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",children:[(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{mode:"range",selected:s,onSelect:i,numberOfMonths:2}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex flex-col border-stroke border-t p-3",children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,jsx_runtime_namespaceObject.jsx)(external_time_picker_cjs_namespaceObject.TimePicker,{setDate:e=>i({...s,from:e}),date:s?.from}),(0,jsx_runtime_namespaceObject.jsx)(external_time_picker_cjs_namespaceObject.TimePicker,{setDate:e=>i({...s,to:e}),date:s?.to})]})}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex flex-1 justify-center",children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>i(void 0),children:[(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.X,{size:12})," Clear"]})})]})]})}for(var __webpack_i__ in exports.DateTimePickerWithRange=__webpack_exports__.DateTimePickerWithRange,__webpack_exports__)-1===["DateTimePickerWithRange"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{DateTimePickerWithRange:()=>DateTimePickerWithRange});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),ssr_namespaceObject=require("@phosphor-icons/react/dist/ssr"),external_date_fns_namespaceObject=require("date-fns"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs"),external_calendar_cjs_namespaceObject=require("./calendar.cjs"),external_popover_cjs_namespaceObject=require("./popover.cjs"),external_time_picker_cjs_namespaceObject=require("./time-picker.cjs");function DateTimePickerWithRange({startDate:e,endDate:t,onChange:a,placeholder:r,className:_,disabled:c=!1}){let[s,n]=(0,external_react_namespaceObject.useState)({from:e,to:t}),i=e=>{if(!e){n(void 0),a?.(void 0);return}n({from:e.from??s?.from,to:e.to}),a?.({from:e.from??s?.from,to:e.to})};return(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.Popover,{children:[(0,jsx_runtime_namespaceObject.jsx)(external_popover_cjs_namespaceObject.PopoverTrigger,{asChild:!0,children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{id:"date",variant:"secondary",className:(0,utils_cjs_namespaceObject.cn)("h-12 min-w-96 justify-between px-4 text-left font-normal",!s?.from&&!s?.to&&"text-gray-400",_),disabled:c,children:[s?.from?s.to?`${(0,external_date_fns_namespaceObject.format)(s.from,"dd/MM/yyyy HH:mm")} - ${(0,external_date_fns_namespaceObject.format)(s.to,"dd/MM/yyyy HH:mm")}`:(0,external_date_fns_namespaceObject.format)(s.from,"dd/MM/yyyy HH:mm"):(0,jsx_runtime_namespaceObject.jsx)("span",{children:r||"Selecione o per\xedodo"}),(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.CalendarBlank,{size:20,className:"ml-2 text-gray-600"})]})}),(0,jsx_runtime_namespaceObject.jsxs)(external_popover_cjs_namespaceObject.PopoverContent,{className:"w-auto p-0",children:[(0,jsx_runtime_namespaceObject.jsx)(external_calendar_cjs_namespaceObject.Calendar,{mode:"range",selected:s,onSelect:i,numberOfMonths:2}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex flex-col border-stroke border-t p-3",children:(0,jsx_runtime_namespaceObject.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,jsx_runtime_namespaceObject.jsx)(external_time_picker_cjs_namespaceObject.TimePicker,{setDate:e=>i({...s,from:e}),date:s?.from}),(0,jsx_runtime_namespaceObject.jsx)(external_time_picker_cjs_namespaceObject.TimePicker,{setDate:e=>i({...s,to:e}),date:s?.to})]})}),(0,jsx_runtime_namespaceObject.jsx)("div",{className:"flex flex-1 justify-center",children:(0,jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>i(void 0),children:[(0,jsx_runtime_namespaceObject.jsx)(ssr_namespaceObject.X,{size:12})," Clear"]})})]})]})}for(var __webpack_i__ in exports.DateTimePickerWithRange=__webpack_exports__.DateTimePickerWithRange,__webpack_exports__)-1===["DateTimePickerWithRange"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=date-time-picker-with-range.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-time-picker-with-range.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-time-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DateTimePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DateTimePickerWithRangeProps) {\r\n const [dateRange, setDateRange] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const handleDateChange = (newRange: Partial<DateRange> | undefined) => {\r\n if (!newRange) {\r\n setDateRange(undefined)\r\n onChange?.(undefined)\r\n return\r\n }\r\n\r\n setDateRange({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n onChange?.({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n }\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-96 justify-between px-4 text-left font-normal',\r\n !dateRange?.from && !dateRange?.to && 'text-dark-gray/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {dateRange?.from ? (\r\n dateRange.to ? (\r\n `${format(dateRange.from, 'dd/MM/yyyy HH:mm')} - ${format(dateRange.to, 'dd/MM/yyyy HH:mm')}`\r\n ) : (\r\n format(dateRange.from, 'dd/MM/yyyy HH:mm')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n <CalendarBlank size={20} className=\"ml-2 text-dark-gray\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"range\"\r\n selected={dateRange}\r\n onSelect={handleDateChange}\r\n numberOfMonths={2}\r\n />\r\n <div className=\"flex flex-col border-stroke border-t p-3\">\r\n <div className=\"flex justify-between gap-4\">\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, from: date })}\r\n date={dateRange?.from}\r\n />\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, to: date })}\r\n date={dateRange?.to}\r\n />\r\n </div>\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => handleDateChange(undefined)}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePickerWithRange }\r\n"],"names":["DateTimePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","dateRange","setDateRange","useState","handleDateChange","newRange","undefined","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","date","X"],"mappings":";y1CA0BA,SAASA,wBAAwB,CAC/BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACa,EAC7B,GAAM,CAACC,EAAWC,EAAa,CAAGC,GAAAA,+BAAAA,QAAAA,EAAgC,CAChE,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAmB,IACvB,GAAI,CAACC,EAAU,CACbH,EAAaI,KAAAA,GACbT,IAAWS,KAAAA,GACX,MACF,CAEAJ,EAAa,CACX,KAAMG,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,GAEjBR,IAAW,CACT,KAAMQ,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,EAEnB,EAEA,MACE,qCAACE,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,2DACA,CAACT,GAAW,MAAQ,CAACA,GAAW,IAAM,oBACtCF,GAEF,SAAUC,E,UAETC,GAAW,KACVA,EAAU,EAAE,CACV,CAAC,EAAEU,GAAAA,kCAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAAoB,GAAG,EAAEU,GAAAA,kCAAAA,MAAAA,EAAOV,EAAU,EAAE,CAAE,oBAAoB,CAAC,CAE7FU,GAAAA,kCAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAGzB,oCAAC,Q,SAAMH,GAAe,wB,GAExB,oCAACc,oBAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,qB,QAGvC,qCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,KAAK,QACL,SAAUb,EACV,SAAUG,EACV,eAAgB,C,GAElB,oCAAC,OAAI,UAAU,2C,SACb,qCAAC,OAAI,UAAU,6B,UACb,oCAACW,yCAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,KAAMe,CAAK,GAC7D,KAAMf,GAAW,I,GAEnB,oCAACc,yCAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,GAAIe,CAAK,GAC3D,KAAMf,GAAW,E,QAIvB,oCAAC,OAAI,UAAU,6B,SACb,qCAACQ,oCAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,IAAML,EAAiBE,KAAAA,G,UAEhC,oCAACW,oBAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,C"}
1
+ {"version":3,"file":"components\\date-time-picker-with-range.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-time-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DateTimePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DateTimePickerWithRangeProps) {\r\n const [dateRange, setDateRange] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const handleDateChange = (newRange: Partial<DateRange> | undefined) => {\r\n if (!newRange) {\r\n setDateRange(undefined)\r\n onChange?.(undefined)\r\n return\r\n }\r\n\r\n setDateRange({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n onChange?.({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n }\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-96 justify-between px-4 text-left font-normal',\r\n !dateRange?.from && !dateRange?.to && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {dateRange?.from ? (\r\n dateRange.to ? (\r\n `${format(dateRange.from, 'dd/MM/yyyy HH:mm')} - ${format(dateRange.to, 'dd/MM/yyyy HH:mm')}`\r\n ) : (\r\n format(dateRange.from, 'dd/MM/yyyy HH:mm')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n <CalendarBlank size={20} className=\"ml-2 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"range\"\r\n selected={dateRange}\r\n onSelect={handleDateChange}\r\n numberOfMonths={2}\r\n />\r\n <div className=\"flex flex-col border-stroke border-t p-3\">\r\n <div className=\"flex justify-between gap-4\">\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, from: date })}\r\n date={dateRange?.from}\r\n />\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, to: date })}\r\n date={dateRange?.to}\r\n />\r\n </div>\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => handleDateChange(undefined)}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePickerWithRange }\r\n"],"names":["DateTimePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","dateRange","setDateRange","useState","handleDateChange","newRange","undefined","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","date","X"],"mappings":";y1CA0BA,SAASA,wBAAwB,CAC/BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACa,EAC7B,GAAM,CAACC,EAAWC,EAAa,CAAGC,GAAAA,+BAAAA,QAAAA,EAAgC,CAChE,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAmB,IACvB,GAAI,CAACC,EAAU,CACbH,EAAaI,KAAAA,GACbT,IAAWS,KAAAA,GACX,MACF,CAEAJ,EAAa,CACX,KAAMG,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,GAEjBR,IAAW,CACT,KAAMQ,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,EAEnB,EAEA,MACE,qCAACE,qCAAAA,OAAOA,CAAAA,C,UACN,oCAACC,qCAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,qCAACC,oCAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,2DACA,CAACT,GAAW,MAAQ,CAACA,GAAW,IAAM,gBACtCF,GAEF,SAAUC,E,UAETC,GAAW,KACVA,EAAU,EAAE,CACV,CAAC,EAAEU,GAAAA,kCAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAAoB,GAAG,EAAEU,GAAAA,kCAAAA,MAAAA,EAAOV,EAAU,EAAE,CAAE,oBAAoB,CAAC,CAE7FU,GAAAA,kCAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAGzB,oCAAC,Q,SAAMH,GAAe,wB,GAExB,oCAACc,oBAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,oB,QAGvC,qCAACC,qCAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,oCAACC,sCAAAA,QAAQA,CAAAA,CACP,KAAK,QACL,SAAUb,EACV,SAAUG,EACV,eAAgB,C,GAElB,oCAAC,OAAI,UAAU,2C,SACb,qCAAC,OAAI,UAAU,6B,UACb,oCAACW,yCAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,KAAMe,CAAK,GAC7D,KAAMf,GAAW,I,GAEnB,oCAACc,yCAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,GAAIe,CAAK,GAC3D,KAAMf,GAAW,E,QAIvB,oCAAC,OAAI,UAAU,6B,SACb,qCAACQ,oCAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,IAAML,EAAiBE,KAAAA,G,UAEhC,oCAACW,oBAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SelectContent:()=>SelectContent,SelectGroup:()=>SelectGroup,SelectValue:()=>SelectValue,Select:()=>Select,SelectSeparator:()=>SelectSeparator,SelectLabel:()=>SelectLabel,SelectTrigger:()=>SelectTrigger,SelectItem:()=>SelectItem});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),react_select_namespaceObject=require("@radix-ui/react-select"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs");function Select({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Root,{"data-slot":"select",...e})}function SelectGroup({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Group,{"data-slot":"select-group",...e})}function SelectValue({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Value,{"data-slot":"select-value",...e})}function SelectTrigger({children:e,className:t,size:a="md",...c}){return(0,jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Trigger,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:["w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-600",t],size:a,variant:"secondary"}),"data-size":a,"data-slot":"select-trigger",...c,children:[e,(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Icon,{asChild:!0,className:"size-4 shrink-0 opacity-50",children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDown,{})})]})}function SelectScrollUpButton({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollUpButton,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center justify-center py-1 text-gbm-dark",e),"data-slot":"select-scroll-up-button",...t,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretUp,{size:16})})}function SelectScrollDownButton({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollDownButton,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center justify-center py-1 text-gray-600",e),"data-slot":"select-scroll-down-button",...t,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDown,{size:16})})}function SelectContent({children:e,className:t,position:a="popper",...c}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in","popper"===a&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",t),"data-slot":"select-content",position:a,...c,children:[(0,jsx_runtime_namespaceObject.jsx)(SelectScrollUpButton,{}),(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Viewport,{className:(0,utils_cjs_namespaceObject.cn)("p-1","popper"===a&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:e}),(0,jsx_runtime_namespaceObject.jsx)(SelectScrollDownButton,{})]})})}function SelectLabel({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Label,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm",e),"data-slot":"select-label",...t})}function SelectItem({children:e,className:t,...a}){return(0,jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Item,{className:(0,utils_cjs_namespaceObject.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),"data-slot":"select-item",...a,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute right-2 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ItemIndicator,{children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.Check,{className:"size-4"})})}),(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ItemText,{children:e})]})}function SelectSeparator({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Separator,{className:(0,utils_cjs_namespaceObject.cn)("mx-2 my-1 h-px bg-stroke",e),"data-slot":"select-separator",...t})}for(var __webpack_i__ in exports.Select=__webpack_exports__.Select,exports.SelectContent=__webpack_exports__.SelectContent,exports.SelectGroup=__webpack_exports__.SelectGroup,exports.SelectItem=__webpack_exports__.SelectItem,exports.SelectLabel=__webpack_exports__.SelectLabel,exports.SelectSeparator=__webpack_exports__.SelectSeparator,exports.SelectTrigger=__webpack_exports__.SelectTrigger,exports.SelectValue=__webpack_exports__.SelectValue,__webpack_exports__)-1===["Select","SelectContent","SelectGroup","SelectItem","SelectLabel","SelectSeparator","SelectTrigger","SelectValue"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{SelectContent:()=>SelectContent,SelectGroup:()=>SelectGroup,SelectValue:()=>SelectValue,Select:()=>Select,SelectSeparator:()=>SelectSeparator,SelectLabel:()=>SelectLabel,SelectTrigger:()=>SelectTrigger,SelectItem:()=>SelectItem});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_namespaceObject=require("@phosphor-icons/react"),react_select_namespaceObject=require("@radix-ui/react-select"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),external_button_cjs_namespaceObject=require("./button.cjs");function Select({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Root,{"data-slot":"select",...e})}function SelectGroup({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Group,{"data-slot":"select-group",...e})}function SelectValue({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Value,{"data-slot":"select-value",...e})}function SelectTrigger({children:e,className:t,size:a="md",...c}){return(0,jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Trigger,{className:(0,external_button_cjs_namespaceObject.buttonVariants)({className:["w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-400",t],size:a,variant:"secondary"}),"data-size":a,"data-slot":"select-trigger",...c,children:[e,(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Icon,{asChild:!0,className:"size-4 shrink-0 opacity-50",children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDown,{})})]})}function SelectScrollUpButton({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollUpButton,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center justify-center py-1 text-gray-600",e),"data-slot":"select-scroll-up-button",...t,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretUp,{size:16})})}function SelectScrollDownButton({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ScrollDownButton,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center justify-center py-1 text-gray-600",e),"data-slot":"select-scroll-down-button",...t,children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.CaretDown,{size:16})})}function SelectContent({children:e,className:t,position:a="popper",...c}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in","popper"===a&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",t),"data-slot":"select-content",position:a,...c,children:[(0,jsx_runtime_namespaceObject.jsx)(SelectScrollUpButton,{}),(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Viewport,{className:(0,utils_cjs_namespaceObject.cn)("p-1","popper"===a&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:e}),(0,jsx_runtime_namespaceObject.jsx)(SelectScrollDownButton,{})]})})}function SelectLabel({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Label,{className:(0,utils_cjs_namespaceObject.cn)("flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm",e),"data-slot":"select-label",...t})}function SelectItem({children:e,className:t,...a}){return(0,jsx_runtime_namespaceObject.jsxs)(react_select_namespaceObject.Item,{className:(0,utils_cjs_namespaceObject.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),"data-slot":"select-item",...a,children:[(0,jsx_runtime_namespaceObject.jsx)("span",{className:"absolute right-2 flex items-center justify-center",children:(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ItemIndicator,{children:(0,jsx_runtime_namespaceObject.jsx)(react_namespaceObject.Check,{className:"size-4"})})}),(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.ItemText,{children:e})]})}function SelectSeparator({className:e,...t}){return(0,jsx_runtime_namespaceObject.jsx)(react_select_namespaceObject.Separator,{className:(0,utils_cjs_namespaceObject.cn)("mx-2 my-1 h-px bg-stroke",e),"data-slot":"select-separator",...t})}for(var __webpack_i__ in exports.Select=__webpack_exports__.Select,exports.SelectContent=__webpack_exports__.SelectContent,exports.SelectGroup=__webpack_exports__.SelectGroup,exports.SelectItem=__webpack_exports__.SelectItem,exports.SelectLabel=__webpack_exports__.SelectLabel,exports.SelectSeparator=__webpack_exports__.SelectSeparator,exports.SelectTrigger=__webpack_exports__.SelectTrigger,exports.SelectValue=__webpack_exports__.SelectValue,__webpack_exports__)-1===["Select","SelectContent","SelectGroup","SelectItem","SelectLabel","SelectSeparator","SelectTrigger","SelectValue"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=select.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\select.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/select.tsx"],"sourcesContent":["\r\n\r\nimport { CaretDown, CaretUp, Check } from '@phosphor-icons/react'\r\nimport * as SelectPrimitive from '@radix-ui/react-select'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Select\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Select({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Root>): JSX.Element {\r\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectGroup\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectGroup({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Group>): JSX.Element {\r\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectValue\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectValue({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Value>): JSX.Element {\r\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectTrigger({\r\n children,\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Trigger> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n}): JSX.Element {\r\n return (\r\n <SelectPrimitive.Trigger\r\n className={buttonVariants({\r\n className: [\r\n \"w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-600\",\r\n className,\r\n ],\r\n size,\r\n variant: 'secondary',\r\n })}\r\n data-size={size}\r\n data-slot=\"select-trigger\"\r\n {...props}\r\n >\r\n {children}\r\n <SelectPrimitive.Icon asChild className=\"size-4 shrink-0 opacity-50\">\r\n <CaretDown />\r\n </SelectPrimitive.Icon>\r\n </SelectPrimitive.Trigger>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollUpButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollUpButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollUpButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gbm-dark',\r\n className\r\n )}\r\n data-slot=\"select-scroll-up-button\"\r\n {...props}\r\n >\r\n <CaretUp size={16} />\r\n </SelectPrimitive.ScrollUpButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollDownButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollDownButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollDownButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gray-600',\r\n className\r\n )}\r\n data-slot=\"select-scroll-down-button\"\r\n {...props}\r\n >\r\n <CaretDown size={16} />\r\n </SelectPrimitive.ScrollDownButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectContent({\r\n children,\r\n className,\r\n position = 'popper',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Content>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Portal>\r\n <SelectPrimitive.Content\r\n className={cn(\r\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n position === 'popper' &&\r\n 'data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1',\r\n className\r\n )}\r\n data-slot=\"select-content\"\r\n position={position}\r\n {...props}\r\n >\r\n <SelectScrollUpButton />\r\n <SelectPrimitive.Viewport\r\n className={cn(\r\n 'p-1',\r\n position === 'popper' &&\r\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\r\n )}\r\n >\r\n {children}\r\n </SelectPrimitive.Viewport>\r\n <SelectScrollDownButton />\r\n </SelectPrimitive.Content>\r\n </SelectPrimitive.Portal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectLabel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectLabel({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Label>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Label\r\n className={cn(\r\n 'flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm',\r\n className\r\n )}\r\n data-slot=\"select-label\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectItem\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectItem({\r\n children,\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Item>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Item\r\n className={cn(\r\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\r\n className\r\n )}\r\n data-slot=\"select-item\"\r\n {...props}\r\n >\r\n <span className=\"absolute right-2 flex items-center justify-center\">\r\n <SelectPrimitive.ItemIndicator>\r\n <Check className=\"size-4\" />\r\n </SelectPrimitive.ItemIndicator>\r\n </span>\r\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\r\n </SelectPrimitive.Item>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectSeparator\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectSeparator({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Separator\r\n className={cn('mx-2 my-1 h-px bg-stroke', className)}\r\n data-slot=\"select-separator\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Select,\r\n SelectGroup,\r\n SelectValue,\r\n SelectTrigger,\r\n SelectContent,\r\n SelectLabel,\r\n SelectItem,\r\n SelectSeparator,\r\n}\r\n"],"names":["Select","props","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","children","className","size","buttonVariants","CaretDown","SelectScrollUpButton","cn","CaretUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";uxCAaA,SAASA,OAAO,CACd,GAAGC,EACyC,EAC5C,MAAO,oCAACC,6BAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,EAC3D,CAMA,SAASE,YAAY,CACnB,GAAGF,EAC0C,EAC7C,MAAO,oCAACC,6BAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASG,YAAY,CACnB,GAAGH,EAC0C,EAC7C,MAAO,oCAACC,6BAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASI,cAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGP,EAGJ,EACC,MACE,qCAACC,6BAAAA,OAAuB,EACtB,UAAWO,GAAAA,oCAAAA,cAAAA,EAAe,CACxB,UAAW,CACT,6SACAF,EACD,CACDC,KAAAA,EACA,QAAS,WACX,GACA,YAAWA,EACX,YAAU,iBACT,GAAGP,CAAK,C,UAERK,EACD,oCAACJ,6BAAAA,IAAoB,EAAC,QAAO,GAAC,UAAU,6B,SACtC,oCAACQ,sBAAAA,SAASA,CAAAA,CAAAA,E,KAIlB,CAMA,SAASC,qBAAqB,CAC5BJ,UAAAA,CAAS,CACT,GAAGN,EACmD,EACtD,MACE,oCAACC,6BAAAA,cAA8B,EAC7B,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,0BACT,GAAGN,CAAK,C,SAET,oCAACY,sBAAAA,OAAOA,CAAAA,CAAC,KAAM,E,IAGrB,CAMA,SAASC,uBAAuB,CAC9BP,UAAAA,CAAS,CACT,GAAGN,EACqD,EACxD,MACE,oCAACC,6BAAAA,gBAAgC,EAC/B,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,4BACT,GAAGN,CAAK,C,SAET,oCAACS,sBAAAA,SAASA,CAAAA,CAAC,KAAM,E,IAGvB,CAMA,SAASK,cAAc,CACrBT,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTS,SAAAA,EAAW,QAAQ,CACnB,GAAGf,EAC4C,EAC/C,MACE,oCAACC,6BAAAA,MAAsB,E,SACrB,qCAACA,6BAAAA,OAAuB,EACtB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,guBACAI,WAAAA,GACE,kIACFT,GAEF,YAAU,iBACV,SAAUS,EACT,GAAGf,CAAK,C,UAET,oCAACU,qBAAAA,CAAAA,GACD,oCAACT,6BAAAA,QAAwB,EACvB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,MACAI,WAAAA,GACE,iF,SAGHV,C,GAEH,oCAACQ,uBAAAA,CAAAA,G,IAIT,CAMA,SAASG,YAAY,CACnBV,UAAAA,CAAS,CACT,GAAGN,EAC0C,EAC7C,MACE,oCAACC,6BAAAA,KAAqB,EACpB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,8DACAL,GAEF,YAAU,eACT,GAAGN,CAAK,EAGf,CAMA,SAASiB,WAAW,CAClBZ,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACT,GAAGN,EACyC,EAC5C,MACE,qCAACC,6BAAAA,IAAoB,EACnB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,iaACAL,GAEF,YAAU,cACT,GAAGN,CAAK,C,UAET,oCAAC,QAAK,UAAU,oD,SACd,oCAACC,6BAAAA,aAA6B,E,SAC5B,oCAACiB,sBAAAA,KAAKA,CAAAA,CAAC,UAAU,Q,OAGrB,oCAACjB,6BAAAA,QAAwB,E,SAAEI,C,KAGjC,CAMA,SAASc,gBAAgB,CACvBb,UAAAA,CAAS,CACT,GAAGN,EAC8C,EACjD,MACE,oCAACC,6BAAAA,SAAyB,EACxB,UAAWU,GAAAA,0BAAAA,EAAAA,EAAG,2BAA4BL,GAC1C,YAAU,mBACT,GAAGN,CAAK,EAGf,C"}
1
+ {"version":3,"file":"components\\select.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/select.tsx"],"sourcesContent":["\r\n\r\nimport { CaretDown, CaretUp, Check } from '@phosphor-icons/react'\r\nimport * as SelectPrimitive from '@radix-ui/react-select'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Select\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Select({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Root>): JSX.Element {\r\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectGroup\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectGroup({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Group>): JSX.Element {\r\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectValue\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectValue({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Value>): JSX.Element {\r\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectTrigger({\r\n children,\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Trigger> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n}): JSX.Element {\r\n return (\r\n <SelectPrimitive.Trigger\r\n className={buttonVariants({\r\n className: [\r\n \"w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-400\",\r\n className,\r\n ],\r\n size,\r\n variant: 'secondary',\r\n })}\r\n data-size={size}\r\n data-slot=\"select-trigger\"\r\n {...props}\r\n >\r\n {children}\r\n <SelectPrimitive.Icon asChild className=\"size-4 shrink-0 opacity-50\">\r\n <CaretDown />\r\n </SelectPrimitive.Icon>\r\n </SelectPrimitive.Trigger>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollUpButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollUpButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollUpButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gray-600',\r\n className\r\n )}\r\n data-slot=\"select-scroll-up-button\"\r\n {...props}\r\n >\r\n <CaretUp size={16} />\r\n </SelectPrimitive.ScrollUpButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollDownButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollDownButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollDownButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gray-600',\r\n className\r\n )}\r\n data-slot=\"select-scroll-down-button\"\r\n {...props}\r\n >\r\n <CaretDown size={16} />\r\n </SelectPrimitive.ScrollDownButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectContent({\r\n children,\r\n className,\r\n position = 'popper',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Content>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Portal>\r\n <SelectPrimitive.Content\r\n className={cn(\r\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n position === 'popper' &&\r\n 'data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1',\r\n className\r\n )}\r\n data-slot=\"select-content\"\r\n position={position}\r\n {...props}\r\n >\r\n <SelectScrollUpButton />\r\n <SelectPrimitive.Viewport\r\n className={cn(\r\n 'p-1',\r\n position === 'popper' &&\r\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\r\n )}\r\n >\r\n {children}\r\n </SelectPrimitive.Viewport>\r\n <SelectScrollDownButton />\r\n </SelectPrimitive.Content>\r\n </SelectPrimitive.Portal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectLabel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectLabel({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Label>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Label\r\n className={cn(\r\n 'flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm',\r\n className\r\n )}\r\n data-slot=\"select-label\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectItem\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectItem({\r\n children,\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Item>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Item\r\n className={cn(\r\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\r\n className\r\n )}\r\n data-slot=\"select-item\"\r\n {...props}\r\n >\r\n <span className=\"absolute right-2 flex items-center justify-center\">\r\n <SelectPrimitive.ItemIndicator>\r\n <Check className=\"size-4\" />\r\n </SelectPrimitive.ItemIndicator>\r\n </span>\r\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\r\n </SelectPrimitive.Item>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectSeparator\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectSeparator({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Separator\r\n className={cn('mx-2 my-1 h-px bg-stroke', className)}\r\n data-slot=\"select-separator\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Select,\r\n SelectGroup,\r\n SelectValue,\r\n SelectTrigger,\r\n SelectContent,\r\n SelectLabel,\r\n SelectItem,\r\n SelectSeparator,\r\n}\r\n"],"names":["Select","props","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","children","className","size","buttonVariants","CaretDown","SelectScrollUpButton","cn","CaretUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";uxCAaA,SAASA,OAAO,CACd,GAAGC,EACyC,EAC5C,MAAO,oCAACC,6BAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,EAC3D,CAMA,SAASE,YAAY,CACnB,GAAGF,EAC0C,EAC7C,MAAO,oCAACC,6BAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASG,YAAY,CACnB,GAAGH,EAC0C,EAC7C,MAAO,oCAACC,6BAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASI,cAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGP,EAGJ,EACC,MACE,qCAACC,6BAAAA,OAAuB,EACtB,UAAWO,GAAAA,oCAAAA,cAAAA,EAAe,CACxB,UAAW,CACT,6SACAF,EACD,CACDC,KAAAA,EACA,QAAS,WACX,GACA,YAAWA,EACX,YAAU,iBACT,GAAGP,CAAK,C,UAERK,EACD,oCAACJ,6BAAAA,IAAoB,EAAC,QAAO,GAAC,UAAU,6B,SACtC,oCAACQ,sBAAAA,SAASA,CAAAA,CAAAA,E,KAIlB,CAMA,SAASC,qBAAqB,CAC5BJ,UAAAA,CAAS,CACT,GAAGN,EACmD,EACtD,MACE,oCAACC,6BAAAA,cAA8B,EAC7B,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,0BACT,GAAGN,CAAK,C,SAET,oCAACY,sBAAAA,OAAOA,CAAAA,CAAC,KAAM,E,IAGrB,CAMA,SAASC,uBAAuB,CAC9BP,UAAAA,CAAS,CACT,GAAGN,EACqD,EACxD,MACE,oCAACC,6BAAAA,gBAAgC,EAC/B,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,4BACT,GAAGN,CAAK,C,SAET,oCAACS,sBAAAA,SAASA,CAAAA,CAAC,KAAM,E,IAGvB,CAMA,SAASK,cAAc,CACrBT,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTS,SAAAA,EAAW,QAAQ,CACnB,GAAGf,EAC4C,EAC/C,MACE,oCAACC,6BAAAA,MAAsB,E,SACrB,qCAACA,6BAAAA,OAAuB,EACtB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,2uBACAI,WAAAA,GACE,kIACFT,GAEF,YAAU,iBACV,SAAUS,EACT,GAAGf,CAAK,C,UAET,oCAACU,qBAAAA,CAAAA,GACD,oCAACT,6BAAAA,QAAwB,EACvB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,MACAI,WAAAA,GACE,iF,SAGHV,C,GAEH,oCAACQ,uBAAAA,CAAAA,G,IAIT,CAMA,SAASG,YAAY,CACnBV,UAAAA,CAAS,CACT,GAAGN,EAC0C,EAC7C,MACE,oCAACC,6BAAAA,KAAqB,EACpB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,8DACAL,GAEF,YAAU,eACT,GAAGN,CAAK,EAGf,CAMA,SAASiB,WAAW,CAClBZ,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACT,GAAGN,EACyC,EAC5C,MACE,qCAACC,6BAAAA,IAAoB,EACnB,UAAWU,GAAAA,0BAAAA,EAAAA,EACT,iaACAL,GAEF,YAAU,cACT,GAAGN,CAAK,C,UAET,oCAAC,QAAK,UAAU,oD,SACd,oCAACC,6BAAAA,aAA6B,E,SAC5B,oCAACiB,sBAAAA,KAAKA,CAAAA,CAAC,UAAU,Q,OAGrB,oCAACjB,6BAAAA,QAAwB,E,SAAEI,C,KAGjC,CAMA,SAASc,gBAAgB,CACvBb,UAAAA,CAAS,CACT,GAAGN,EAC8C,EACjD,MACE,oCAACC,6BAAAA,SAAyB,EACxB,UAAWU,GAAAA,0BAAAA,EAAAA,EAAG,2BAA4BL,GAC1C,YAAU,mBACT,GAAGN,CAAK,EAGf,C"}
@@ -1,3 +1,2 @@
1
- 'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Separator:()=>Separator});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_separator_namespaceObject=require("@radix-ui/react-separator"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),Separator=(0,external_react_namespaceObject.forwardRef)(({className:e,orientation:_="horizontal",decorative:r=!0,...a},t)=>(0,jsx_runtime_namespaceObject.jsx)(react_separator_namespaceObject.Root,{ref:t,decorative:r,orientation:_,className:(0,utils_cjs_namespaceObject.cn)("shrink-0 bg-stroke","horizontal"===_?"h-[1px] w-full":"h-full w-[1px]",e),...a}));for(var __webpack_i__ in Separator.displayName="Separator",exports.Separator=__webpack_exports__.Separator,__webpack_exports__)-1===["Separator"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var t in r)__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Separator:()=>Separator,SeparatorItem:()=>SeparatorItem});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_separator_namespaceObject=require("@radix-ui/react-separator"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),separatorVariants=(0,utils_cjs_namespaceObject.tv)({base:"bg-stroke relative flex shrink-0 items-center",variants:{align:{center:"justify-center",end:"justify-end",start:"justify-start"},orientation:{horizontal:"h-px w-full",vertical:"h-full w-px flex-col"}},defaultVariants:{align:"center",orientation:"horizontal"}});function Separator({align:e,className:r,decorative:t=!0,orientation:a,..._}){return(0,jsx_runtime_namespaceObject.jsx)(react_separator_namespaceObject.Root,{className:separatorVariants({align:e,className:r,orientation:a}),"data-slot":"separator",decorative:t,orientation:a,..._})}function SeparatorItem({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("absolute mx-2 bg-background px-2 text-muted-foreground text-sm",e),"data-slot":"separator-item",...r})}for(var __webpack_i__ in exports.Separator=__webpack_exports__.Separator,exports.SeparatorItem=__webpack_exports__.SeparatorItem,__webpack_exports__)-1===["Separator","SeparatorItem"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
2
  //# sourceMappingURL=separator.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\separator.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/separator.tsx"],"sourcesContent":["\r\n\r\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\r\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst Separator = forwardRef<\r\n ElementRef<typeof SeparatorPrimitive.Root>,\r\n ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\r\n>(\r\n (\r\n { className, orientation = 'horizontal', decorative = true, ...props },\r\n ref\r\n ) => (\r\n <SeparatorPrimitive.Root\r\n ref={ref}\r\n decorative={decorative}\r\n orientation={orientation}\r\n className={cn(\r\n 'shrink-0 bg-stroke',\r\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n)\r\nSeparator.displayName = 'Separator'\r\n\r\nexport { Separator }\r\n"],"names":["Separator","forwardRef","className","orientation","decorative","props","ref","SeparatorPrimitive","cn"],"mappings":";8gCAOMA,UAAYC,GAAAA,+BAAAA,UAAAA,EAIhB,CACE,CAAEC,UAAAA,CAAS,CAAEC,YAAAA,EAAc,YAAY,CAAEC,WAAAA,EAAa,EAAI,CAAE,GAAGC,EAAO,CACtEC,IAEA,oCAACC,gCAAAA,IAAuB,EACtB,IAAKD,EACL,WAAYF,EACZ,YAAaD,EACb,UAAWK,GAAAA,0BAAAA,EAAAA,EACT,qBACAL,eAAAA,EAA+B,iBAAmB,iBAClDD,GAED,GAAGG,CAAK,6BAIfL,UAAU,WAAW,CAAG,Y"}
1
+ {"version":3,"file":"components\\separator.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/separator.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'react'\r\n\r\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\r\n\r\nimport type { VariantProps } from '@/lib/utils'\r\n\r\nimport { cn, tv } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Separator\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst separatorVariants = tv({\r\n base: 'bg-stroke relative flex shrink-0 items-center',\r\n variants: {\r\n align: {\r\n center: 'justify-center',\r\n end: 'justify-end',\r\n start: 'justify-start',\r\n },\r\n orientation: {\r\n horizontal: 'h-px w-full',\r\n vertical: 'h-full w-px flex-col',\r\n },\r\n },\r\n defaultVariants: {\r\n align: 'center',\r\n orientation: 'horizontal',\r\n },\r\n})\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Separator\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Separator({\r\n align,\r\n className,\r\n decorative = true,\r\n orientation,\r\n ...props\r\n}: ComponentProps<typeof SeparatorPrimitive.Root> &\r\n Omit<VariantProps<typeof separatorVariants>, 'orientation'>): JSX.Element {\r\n return (\r\n <SeparatorPrimitive.Root\r\n className={separatorVariants({ align, className, orientation })}\r\n data-slot=\"separator\"\r\n decorative={decorative}\r\n orientation={orientation}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SeparatorItem\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SeparatorItem({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn(\r\n 'absolute mx-2 bg-background px-2 text-muted-foreground text-sm',\r\n className\r\n )}\r\n data-slot=\"separator-item\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Separator, SeparatorItem }\r\n"],"names":["separatorVariants","tv","Separator","align","className","decorative","orientation","props","SeparatorPrimitive","SeparatorItem","cn"],"mappings":"8/BAYMA,kBAAoBC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,CAC3B,KAAM,gDACN,SAAU,CACR,MAAO,CACL,OAAQ,iBACR,IAAK,cACL,MAAO,eACT,EACA,YAAa,CACX,WAAY,cACZ,SAAU,sBACZ,CACF,EACA,gBAAiB,CACf,MAAO,SACP,YAAa,YACf,CACF,GAMA,SAASC,UAAU,CACjBC,MAAAA,CAAK,CACLC,UAAAA,CAAS,CACTC,WAAAA,EAAa,EAAI,CACjBC,YAAAA,CAAW,CACX,GAAGC,EAEwD,EAC3D,MACE,oCAACC,gCAAAA,IAAuB,EACtB,UAAWR,kBAAkB,CAAEG,MAAAA,EAAOC,UAAAA,EAAWE,YAAAA,CAAY,GAC7D,YAAU,YACV,WAAYD,EACZ,YAAaC,EACZ,GAAGC,CAAK,A,EAGf,CAMA,SAASE,cAAc,CACrBL,UAAAA,CAAS,CACT,GAAGG,EACmB,EACtB,MACE,oCAAC,OACC,UAAWG,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,iEACAN,GAEF,YAAU,iBACT,GAAGG,CAAK,A,EAGf,C"}
@@ -1,2 +1,2 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Skeleton:()=>Skeleton});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Skeleton({className:e,..._}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("animate-pulse rounded-md bg-gray-50",e),..._})}for(var __webpack_i__ in Skeleton.displayName="Skeleton",exports.Skeleton=__webpack_exports__.Skeleton,__webpack_exports__)-1===["Skeleton"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Skeleton:()=>Skeleton});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Skeleton({className:e,..._}){return(0,jsx_runtime_namespaceObject.jsx)("div",{className:(0,utils_cjs_namespaceObject.cn)("animate-pulse rounded-lg bg-gray-100",e),"data-slot":"skeleton",..._})}for(var __webpack_i__ in exports.Skeleton=__webpack_exports__.Skeleton,__webpack_exports__)-1===["Skeleton"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=skeleton.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\skeleton.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/skeleton.tsx"],"sourcesContent":["import React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nfunction Skeleton({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) {\r\n return (\r\n <div\r\n className={cn('animate-pulse rounded-md bg-gray-50', className)}\r\n {...props}\r\n />\r\n )\r\n}\r\nSkeleton.displayName = 'Skeleton'\r\n\r\nexport { Skeleton }\r\n"],"names":["Skeleton","className","props","cn"],"mappings":"u8BAIA,SAASA,SAAS,CAChBC,UAAAA,CAAS,CACT,GAAGC,EACkC,EACrC,MACE,oCAAC,OACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,sCAAuCF,GACpD,GAAGC,CAAK,A,EAGf,C,yBACAF,SAAS,WAAW,CAAG,W"}
1
+ {"version":3,"file":"components\\skeleton.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/skeleton.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Skeleton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Skeleton({ className, ...props }: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn('animate-pulse rounded-lg bg-gray-100', className)}\r\n data-slot=\"skeleton\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Skeleton }\r\n"],"names":["Skeleton","className","props","cn"],"mappings":"u5BAQA,SAASA,SAAS,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAA8B,EAC9D,MACE,oCAAC,OACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EAAG,uCAAwCF,GACtD,YAAU,WACT,GAAGC,CAAK,A,EAGf,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Switch:()=>Switch});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_switch_namespaceObject=require("@radix-ui/react-switch"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),Switch=(0,external_react_namespaceObject.forwardRef)(({className:e,..._},r)=>(0,jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Root,{className:(0,utils_cjs_namespaceObject.cn)("relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky",e),ref:r,..._,children:(0,jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Thumb,{className:"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300"})}));for(var __webpack_i__ in Switch.displayName="Switch",exports.Switch=__webpack_exports__.Switch,__webpack_exports__)-1===["Switch"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var t in _)__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Switch:()=>Switch});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_switch_namespaceObject=require("@radix-ui/react-switch"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Switch({className:e,..._}){return(0,jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Root,{className:(0,utils_cjs_namespaceObject.cn)("relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky",e),"data-slot":"switch",..._,children:(0,jsx_runtime_namespaceObject.jsx)(react_switch_namespaceObject.Thumb,{className:"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300","data-slot":"switch-thumb"})})}for(var __webpack_i__ in exports.Switch=__webpack_exports__.Switch,__webpack_exports__)-1===["Switch"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=switch.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\switch.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/switch.tsx"],"sourcesContent":["\r\n\r\nimport * as SwitchPrimitive from '@radix-ui/react-switch'\r\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst Switch = forwardRef<\r\n ElementRef<typeof SwitchPrimitive.Root>,\r\n ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>\r\n>(({ className, ...props }, ref) => {\r\n return (\r\n <SwitchPrimitive.Root\r\n className={cn(\r\n 'relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky',\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n >\r\n <SwitchPrimitive.Thumb className=\"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300\" />\r\n </SwitchPrimitive.Root>\r\n )\r\n})\r\nSwitch.displayName = 'Switch'\r\n\r\nexport { Switch }\r\n"],"names":["Switch","forwardRef","className","props","ref","SwitchPrimitive","cn"],"mappings":";kgCAOMA,OAASC,GAAAA,+BAAAA,UAAAA,EAGb,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAExB,oCAACC,6BAAAA,IAAoB,EACnB,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,iKACAJ,GAEF,IAAKE,EACJ,GAAGD,CAAK,C,SAET,oCAACE,6BAAAA,KAAqB,EAAC,UAAU,iO,+BAIvCL,OAAO,WAAW,CAAG,S"}
1
+ {"version":3,"file":"components\\switch.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/switch.tsx"],"sourcesContent":["\r\n\r\nimport type { ComponentProps, JSX } from 'react'\r\n\r\nimport * as SwitchPrimitives from '@radix-ui/react-switch'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Switch\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Switch({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SwitchPrimitives.Root>): JSX.Element {\r\n return (\r\n <SwitchPrimitives.Root\r\n className={cn(\r\n 'relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky',\r\n className\r\n )}\r\n data-slot=\"switch\"\r\n {...props}\r\n >\r\n <SwitchPrimitives.Thumb\r\n className=\"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300\"\r\n data-slot=\"switch-thumb\"\r\n />\r\n </SwitchPrimitives.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Switch }\r\n"],"names":["Switch","className","props","SwitchPrimitives","cn"],"mappings":";k9BAYA,SAASA,OAAO,CACdC,UAAAA,CAAS,CACT,GAAGC,EAC0C,EAC7C,MACE,oCAACC,6BAAAA,IAAqB,EACpB,UAAWC,GAAAA,0BAAAA,EAAAA,EACT,iKACAH,GAEF,YAAU,SACT,GAAGC,CAAK,C,SAET,oCAACC,6BAAAA,KAAsB,EACrB,UAAU,kOACV,YAAU,c,IAIlB,C"}
@@ -1,2 +1,2 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Textarea:()=>Textarea});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),Textarea=(0,external_react_namespaceObject.forwardRef)(({className:e,..._},r)=>(0,jsx_runtime_namespaceObject.jsx)("textarea",{className:(0,utils_cjs_namespaceObject.cn)("flex min-h-20 w-full rounded-md border border-zinc-200 bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-zinc-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,..._}));for(var __webpack_i__ in Textarea.displayName="Textarea",exports.Textarea=__webpack_exports__.Textarea,__webpack_exports__)-1===["Textarea"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,r)=>{for(var _ in r)__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_)&&Object.defineProperty(e,_,{enumerable:!0,get:r[_]})},__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Textarea:()=>Textarea});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Textarea({className:e,...r}){return(0,jsx_runtime_namespaceObject.jsx)("textarea",{className:(0,utils_cjs_namespaceObject.cn)("flex min-h-16 w-full grow rounded-lg border border-stroke px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-gray-400 hover:not-disabled:not-focus-visible:border-gbm-sky/60 focus-visible:border-gbm-sky focus-visible:ring-3 focus-visible:ring-gbm-sky/50 disabled:opacity-50 aria-invalid:border-error hover:not-disabled:not-focus-within:aria-invalid:border-error/60 focus-within:aria-invalid:ring-error/20 md:text-sm dark:focus-within:aria-invalid:ring-error/40",e),"data-slot":"textarea",...r})}for(var __webpack_i__ in exports.Textarea=__webpack_exports__.Textarea,__webpack_exports__)-1===["Textarea"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=textarea.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\textarea.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/textarea.tsx"],"sourcesContent":["import { TextareaHTMLAttributes, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nexport type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>\r\n\r\nconst Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(\r\n ({ className, ...props }, ref) => {\r\n return (\r\n <textarea\r\n className={cn(\r\n 'flex min-h-20 w-full rounded-md border border-zinc-200 bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-zinc-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\nTextarea.displayName = 'Textarea'\r\n\r\nexport { Textarea }\r\n"],"names":["Textarea","forwardRef","className","props","ref","cn"],"mappings":"u8BAMMA,SAAWC,AAAAA,GAAAA,+BAAAA,UAAAA,AAAAA,EACf,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAEtB,oCAAC,YACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,iSACAH,GAEF,IAAKE,EACJ,GAAGD,CAAK,A,6BAKjBH,SAAS,WAAW,CAAG,W"}
1
+ {"version":3,"file":"components\\textarea.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/textarea.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Textarea\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Textarea({\r\n className,\r\n ...props\r\n}: ComponentProps<'textarea'>): JSX.Element {\r\n return (\r\n <textarea\r\n className={cn(\r\n 'flex min-h-16 w-full grow rounded-lg border border-stroke px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-gray-400 hover:not-disabled:not-focus-visible:border-gbm-sky/60 focus-visible:border-gbm-sky focus-visible:ring-3 focus-visible:ring-gbm-sky/50 disabled:opacity-50 aria-invalid:border-error hover:not-disabled:not-focus-within:aria-invalid:border-error/60 focus-within:aria-invalid:ring-error/20 md:text-sm dark:focus-within:aria-invalid:ring-error/40',\r\n className\r\n )}\r\n data-slot=\"textarea\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Textarea }\r\n"],"names":["Textarea","className","props","cn"],"mappings":"u5BAQA,SAASA,SAAS,CAChBC,UAAAA,CAAS,CACT,GAAGC,EACwB,EAC3B,MACE,oCAAC,YACC,UAAWC,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,oeACAF,GAEF,YAAU,WACT,GAAGC,CAAK,A,EAGf,C"}
@@ -1,2 +1,2 @@
1
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Title:()=>Title});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_slot_namespaceObject=require("@radix-ui/react-slot"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),Title=(0,external_react_namespaceObject.forwardRef)(({asChild:e,className:_,...r},t)=>{let a=e?react_slot_namespaceObject.Slot:"h1";return(0,jsx_runtime_namespaceObject.jsx)(a,{ref:t,className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-[1.625rem] text-gbm-dark leading-8",_),...r})});for(var __webpack_i__ in Title.displayName="Title",exports.Title=__webpack_exports__.Title,__webpack_exports__)-1===["Title"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
1
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,_)=>{for(var r in _)__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:_[r]})},__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Title:()=>Title});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_slot_namespaceObject=require("@radix-ui/react-slot"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function Title({asChild:e,className:_,...r}){let t=e?react_slot_namespaceObject.Slot:"h1";return(0,jsx_runtime_namespaceObject.jsx)(t,{className:(0,utils_cjs_namespaceObject.cn)("font-semibold text-[1.625rem] text-gbm-dark leading-8",_),"data-slot":"title",...r})}for(var __webpack_i__ in exports.Title=__webpack_exports__.Title,__webpack_exports__)-1===["Title"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
2
  //# sourceMappingURL=title.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\title.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/title.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\r\nimport { ComponentPropsWithoutRef, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst Title = forwardRef<\r\n HTMLHeadingElement,\r\n ComponentPropsWithoutRef<'h1'> & {\r\n asChild?: boolean\r\n }\r\n>(({ asChild, className, ...props }, ref) => {\r\n const Comp = asChild ? Slot : 'h1'\r\n\r\n return (\r\n <Comp\r\n ref={ref}\r\n className={cn(\r\n 'font-semibold text-[1.625rem] text-gbm-dark leading-8',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTitle.displayName = 'Title'\r\n\r\nexport { Title }\r\n"],"names":["Title","forwardRef","asChild","className","props","ref","Comp","Slot","cn"],"mappings":"4/BAKMA,MAAQC,AAAAA,GAAAA,+BAAAA,UAAAA,AAAAA,EAKZ,CAAC,CAAEC,QAAAA,CAAO,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KACnC,IAAMC,EAAOJ,EAAUK,2BAAAA,IAAIA,CAAG,KAE9B,MACE,oCAACD,EAAAA,CACC,IAAKD,EACL,UAAWG,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,wDACAL,GAED,GAAGC,CAAK,A,EAGf,G,yBACAJ,MAAM,WAAW,CAAG,Q"}
1
+ {"version":3,"file":"components\\title.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/title.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Title\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Title({\r\n asChild,\r\n className,\r\n ...props\r\n}: ComponentProps<'h1'> & {\r\n asChild?: boolean\r\n}): JSX.Element {\r\n const Comp = asChild ? Slot : 'h1'\r\n\r\n return (\r\n <Comp\r\n className={cn(\r\n 'font-semibold text-[1.625rem] text-gbm-dark leading-8',\r\n className\r\n )}\r\n data-slot=\"title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport { Title }\r\n"],"names":["Title","asChild","className","props","Comp","Slot","cn"],"mappings":"48BASA,SAASA,MAAM,CACbC,QAAAA,CAAO,CACPC,UAAAA,CAAS,CACT,GAAGC,EAGJ,EACC,IAAMC,EAAOH,EAAUI,2BAAAA,IAAIA,CAAG,KAE9B,MACE,oCAACD,EAAAA,CACC,UAAWE,AAAAA,GAAAA,0BAAAA,EAAAA,AAAAA,EACT,wDACAJ,GAEF,YAAU,QACT,GAAGC,CAAK,A,EAGf,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TooltipTrigger:()=>TooltipTrigger,TooltipContent:()=>TooltipContent,Tooltip:()=>Tooltip,TooltipProvider:()=>TooltipProvider});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_tooltip_namespaceObject=require("@radix-ui/react-tooltip"),external_react_namespaceObject=require("react"),utils_cjs_namespaceObject=require("../lib/utils.cjs"),TooltipProvider=react_tooltip_namespaceObject.Provider;TooltipProvider.displayName="TooltipProvider";let Tooltip=react_tooltip_namespaceObject.Root;Tooltip.displayName="Tooltip";let TooltipTrigger=react_tooltip_namespaceObject.Trigger;TooltipTrigger.displayName="TooltipTrigger";let TooltipContent=external_react_namespaceObject.forwardRef(({className:e,variant:t="primary",sideOffset:o=4,...r},_)=>(0,jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Content,{ref:_,sideOffset:o,className:(0,utils_cjs_namespaceObject.cn)("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 z-50 animate-in overflow-hidden rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-sm shadow-md data-[state=closed]:animate-out",{"border-stroke bg-white text-gbm-dark":"primary"===t,"border-gbm-dark bg-gbm-dark text-white":"secondary"===t},e),...r}));for(var __webpack_i__ in TooltipContent.displayName="TooltipContent",exports.Tooltip=__webpack_exports__.Tooltip,exports.TooltipContent=__webpack_exports__.TooltipContent,exports.TooltipProvider=__webpack_exports__.TooltipProvider,exports.TooltipTrigger=__webpack_exports__.TooltipTrigger,__webpack_exports__)-1===["Tooltip","TooltipContent","TooltipProvider","TooltipTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
2
+ "use strict";let __rslib_import_meta_url__="undefined"==typeof document?new(require("url".replace("",""))).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("main.js",document.baseURI).href;var __webpack_require__={};__webpack_require__.d=(e,t)=>{for(var o in t)__webpack_require__.o(t,o)&&!__webpack_require__.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{TooltipTrigger:()=>TooltipTrigger,TooltipContent:()=>TooltipContent,Tooltip:()=>Tooltip,TooltipProvider:()=>TooltipProvider});let jsx_runtime_namespaceObject=require("react/jsx-runtime"),react_tooltip_namespaceObject=require("@radix-ui/react-tooltip"),utils_cjs_namespaceObject=require("../lib/utils.cjs");function TooltipProvider({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Provider,{"data-slot":"tooltip-provider",...e})}function Tooltip({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Root,{"data-slot":"tooltip",...e})}function TooltipTrigger({...e}){return(0,jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Trigger,{"data-slot":"tooltip-trigger",...e})}function TooltipContent({className:e,children:t,sideOffset:o=4,variant:a="primary",...r}){return(0,jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Portal,{children:(0,jsx_runtime_namespaceObject.jsx)(react_tooltip_namespaceObject.Content,{className:(0,utils_cjs_namespaceObject.cn)("data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-xs data-[state=closed]:animate-out data-[state=delayed-open]:animate-in","max-w-(--radix-tooltip-content-available-width)",{"border-stroke bg-white text-gbm-dark":"primary"===a,"border-gbm-dark bg-gbm-dark text-white":"secondary"===a},e),collisionPadding:8,"data-slot":"tooltip-content",sideOffset:o,...r,children:t})})}for(var __webpack_i__ in exports.Tooltip=__webpack_exports__.Tooltip,exports.TooltipContent=__webpack_exports__.TooltipContent,exports.TooltipProvider=__webpack_exports__.TooltipProvider,exports.TooltipTrigger=__webpack_exports__.TooltipTrigger,__webpack_exports__)-1===["Tooltip","TooltipContent","TooltipProvider","TooltipTrigger"].indexOf(__webpack_i__)&&(exports[__webpack_i__]=__webpack_exports__[__webpack_i__]);Object.defineProperty(exports,"__esModule",{value:!0});
3
3
  //# sourceMappingURL=tooltip.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tooltip.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/tooltip.tsx"],"sourcesContent":["\r\n\r\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst TooltipProvider = TooltipPrimitive.Provider\r\nTooltipProvider.displayName = 'TooltipProvider'\r\n\r\nconst Tooltip = TooltipPrimitive.Root\r\nTooltip.displayName = 'Tooltip'\r\n\r\nconst TooltipTrigger = TooltipPrimitive.Trigger\r\nTooltipTrigger.displayName = 'TooltipTrigger'\r\n\r\nconst TooltipContent = React.forwardRef<\r\n React.ElementRef<typeof TooltipPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {\r\n variant?: 'primary' | 'secondary'\r\n }\r\n>(({ className, variant = 'primary', sideOffset = 4, ...props }, ref) => (\r\n <TooltipPrimitive.Content\r\n ref={ref}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n 'fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 z-50 animate-in overflow-hidden rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-sm shadow-md data-[state=closed]:animate-out',\r\n {\r\n 'border-stroke bg-white text-gbm-dark': variant === 'primary',\r\n 'border-gbm-dark bg-gbm-dark text-white': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTooltipContent.displayName = 'TooltipContent'\r\n\r\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\r\n"],"names":["TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","React","className","variant","sideOffset","props","ref","cn"],"mappings":";8mCAOMA,gBAAkBC,8BAAAA,QAAyB,CACjDD,gBAAgB,WAAW,CAAG,kBAE9B,IAAME,QAAUD,8BAAAA,IAAqB,CACrCC,QAAQ,WAAW,CAAG,UAEtB,IAAMC,eAAiBF,8BAAAA,OAAwB,CAC/CE,eAAe,WAAW,CAAG,iBAE7B,IAAMC,eAAiBC,+BAAAA,UAAgB,CAKrC,CAAC,CAAEC,UAAAA,CAAS,CAAEC,QAAAA,EAAU,SAAS,CAAEC,WAAAA,EAAa,CAAC,CAAE,GAAGC,EAAO,CAAEC,IAC/D,oCAACT,8BAAAA,OAAwB,EACvB,IAAKS,EACL,WAAYF,EACZ,UAAWG,GAAAA,0BAAAA,EAAAA,EACT,yXACA,CACE,uCAAwCJ,YAAAA,EACxC,yCAA0CA,cAAAA,CAC5C,EACAD,GAED,GAAGG,CAAK,6BAGbL,eAAe,WAAW,CAAG,iB"}
1
+ {"version":3,"file":"components\\tooltip.cjs","sources":["webpack://@gbmtech/aurora-ui/./src/components/tooltip.tsx"],"sourcesContent":["\r\n\r\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipProvider\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipProvider({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element {\r\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Tooltip\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Tooltip({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element {\r\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipTrigger({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element {\r\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipContent({\r\n className,\r\n children,\r\n sideOffset = 4,\r\n variant = 'primary',\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Content> & {\r\n variant?: 'primary' | 'secondary'\r\n}): JSX.Element {\r\n return (\r\n <TooltipPrimitive.Portal>\r\n <TooltipPrimitive.Content\r\n className={cn(\r\n 'data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-xs data-[state=closed]:animate-out data-[state=delayed-open]:animate-in',\r\n 'max-w-(--radix-tooltip-content-available-width)',\r\n {\r\n 'border-stroke bg-white text-gbm-dark': variant === 'primary',\r\n 'border-gbm-dark bg-gbm-dark text-white': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n collisionPadding={8}\r\n data-slot=\"tooltip-content\"\r\n sideOffset={sideOffset}\r\n {...props}\r\n >\r\n {children}\r\n </TooltipPrimitive.Content>\r\n </TooltipPrimitive.Portal>\r\n )\r\n}\r\n\r\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\r\n"],"names":["TooltipProvider","props","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","className","children","sideOffset","variant","cn"],"mappings":";8jCAWA,SAASA,gBAAgB,CACvB,GAAGC,EAC8C,EACjD,MAAO,oCAACC,8BAAAA,QAAyB,EAAC,YAAU,mBAAoB,GAAGD,CAAK,EAC1E,CAMA,SAASE,QAAQ,CACf,GAAGF,EAC0C,EAC7C,MAAO,oCAACC,8BAAAA,IAAqB,EAAC,YAAU,UAAW,GAAGD,CAAK,EAC7D,CAMA,SAASG,eAAe,CACtB,GAAGH,EAC6C,EAChD,MAAO,oCAACC,8BAAAA,OAAwB,EAAC,YAAU,kBAAmB,GAAGD,CAAK,EACxE,CAMA,SAASI,eAAe,CACtBC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,WAAAA,EAAa,CAAC,CACdC,QAAAA,EAAU,SAAS,CACnB,GAAGR,EAGJ,EACC,MACE,oCAACC,8BAAAA,MAAuB,E,SACtB,oCAACA,8BAAAA,OAAwB,EACvB,UAAWQ,GAAAA,0BAAAA,EAAAA,EACT,6vBACA,kDACA,CACE,uCAAwCD,YAAAA,EACxC,yCAA0CA,cAAAA,CAC5C,EACAH,GAEF,iBAAkB,EAClB,YAAU,kBACV,WAAYE,EACX,GAAGP,CAAK,C,SAERM,C,IAIT,C"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as r from"react/jsx-runtime";import*as o from"@phosphor-icons/react/dist/ssr";import*as e from"date-fns";import*as t from"react";import*as a from"../lib/utils.js";import*as s from"./button.js";import*as n from"./calendar.js";import*as d from"./popover.js";function m({startDate:m,endDate:i,onChange:l,placeholder:f,className:c,disabled:p=!1}){let[h,j]=(0,t.useState)({from:m,to:i}),x=h?.from||h?.to;return(0,r.jsxs)(d.Popover,{children:[(0,r.jsx)(d.PopoverTrigger,{asChild:!0,children:(0,r.jsxs)(s.Button,{id:"date",variant:"secondary",className:(0,a.cn)("h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50",!x&&"text-gbm-dark/50",c),disabled:p,children:[(0,r.jsx)("div",{children:h?.from?h.to?(0,r.jsxs)(r.Fragment,{children:[(0,e.format)(h.from,"dd/MM/yyyy")," -"," ",(0,e.format)(h.to,"dd/MM/yyyy")]}):(0,e.format)(h.from,"dd/MM/yyyy"):(0,r.jsx)("span",{children:f||"Selecione o per\xedodo"})}),(0,r.jsx)(o.CalendarBlank,{className:"ml-2 size-4 text-gbm-dark"})]})}),(0,r.jsx)(d.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,r.jsx)(n.Calendar,{autoFocus:!0,mode:"range",defaultMonth:h?.from,selected:h,onSelect:r=>{j(r),l?.(r)},numberOfMonths:2,disabled:p})})]})}export{m as DatePickerWithRange};
2
+ import*as r from"react/jsx-runtime";import*as o from"@phosphor-icons/react/dist/ssr";import*as e from"date-fns";import*as t from"react";import*as a from"../lib/utils.js";import*as s from"./button.js";import*as n from"./calendar.js";import*as d from"./popover.js";function i({startDate:i,endDate:m,onChange:l,placeholder:f,className:c,disabled:p=!1}){let[y,h]=(0,t.useState)({from:i,to:m}),j=y?.from||y?.to;return(0,r.jsxs)(d.Popover,{children:[(0,r.jsx)(d.PopoverTrigger,{asChild:!0,children:(0,r.jsxs)(s.Button,{id:"date",variant:"secondary",className:(0,a.cn)("h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50",!j&&"text-gray-400",c),disabled:p,children:[(0,r.jsx)("div",{children:y?.from?y.to?(0,r.jsxs)(r.Fragment,{children:[(0,e.format)(y.from,"dd/MM/yyyy")," -"," ",(0,e.format)(y.to,"dd/MM/yyyy")]}):(0,e.format)(y.from,"dd/MM/yyyy"):(0,r.jsx)("span",{children:f||"Selecione o per\xedodo"})}),(0,r.jsx)(o.CalendarBlank,{className:"ml-2 size-4 text-gray-600"})]})}),(0,r.jsx)(d.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,r.jsx)(n.Calendar,{autoFocus:!0,mode:"range",defaultMonth:y?.from,selected:y,onSelect:r=>{h(r),l?.(r)},numberOfMonths:2,disabled:p})})]})}export{i as DatePickerWithRange};
3
3
  //# sourceMappingURL=date-picker-with-range.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-picker-with-range.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DatePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DatePickerWithRangeProps) {\r\n const [date, setDate] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const isRangeSelected = date?.from || date?.to\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50',\r\n !isRangeSelected && 'text-gbm-dark/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n <div>\r\n {date?.from ? (\r\n date.to ? (\r\n <>\r\n {format(date.from, 'dd/MM/yyyy')} -{' '}\r\n {format(date.to, 'dd/MM/yyyy')}\r\n </>\r\n ) : (\r\n format(date.from, 'dd/MM/yyyy')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n </div>\r\n <CalendarBlank className=\"ml-2 size-4 text-gbm-dark\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n autoFocus\r\n mode=\"range\"\r\n defaultMonth={date?.from}\r\n selected={date}\r\n onSelect={date => {\r\n setDate(date)\r\n onChange?.(date)\r\n }}\r\n numberOfMonths={2}\r\n disabled={disabled}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePickerWithRange }\r\n"],"names":["DatePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","date","setDate","useState","isRangeSelected","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";uQAyBA,SAASA,EAAoB,CAC3BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACS,EACzB,GAAM,CAACC,EAAMC,EAAQ,CAAGC,GAAAA,EAAAA,QAAAA,EAAgC,CACtD,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAkBH,GAAM,MAAQA,GAAM,GAE5C,MACE,WAACI,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,EAAAA,EAAAA,EACT,uGACA,CAACJ,GAAmB,mBACpBL,GAEF,SAAUC,E,UAEV,UAAC,O,SACEC,GAAM,KACLA,EAAK,EAAE,CACL,uB,UACGQ,GAAAA,EAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAAc,KAAG,IACnCQ,GAAAA,EAAAA,MAAAA,EAAOR,EAAK,EAAE,CAAE,c,GAGnBQ,GAAAA,EAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAGpB,UAAC,Q,SAAMH,GAAe,wB,KAG1B,UAACY,EAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,UAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,UAACC,EAAAA,QAAQA,CAAAA,CACP,UAAS,GACT,KAAK,QACL,aAAcX,GAAM,KACpB,SAAUA,EACV,SAAUA,IACRC,EAAQD,GACRJ,IAAWI,EACb,EACA,eAAgB,EAChB,SAAUD,C,OAKpB,Q"}
1
+ {"version":3,"file":"components\\date-picker-with-range.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DatePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DatePickerWithRangeProps) {\r\n const [date, setDate] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const isRangeSelected = date?.from || date?.to\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-60 justify-between overflow-hidden rounded-md px-4 text-left font-normal hover:bg-gray-50',\r\n !isRangeSelected && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n <div>\r\n {date?.from ? (\r\n date.to ? (\r\n <>\r\n {format(date.from, 'dd/MM/yyyy')} -{' '}\r\n {format(date.to, 'dd/MM/yyyy')}\r\n </>\r\n ) : (\r\n format(date.from, 'dd/MM/yyyy')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n </div>\r\n <CalendarBlank className=\"ml-2 size-4 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n autoFocus\r\n mode=\"range\"\r\n defaultMonth={date?.from}\r\n selected={date}\r\n onSelect={date => {\r\n setDate(date)\r\n onChange?.(date)\r\n }}\r\n numberOfMonths={2}\r\n disabled={disabled}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePickerWithRange }\r\n"],"names":["DatePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","date","setDate","useState","isRangeSelected","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";uQAyBA,SAASA,EAAoB,CAC3BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACS,EACzB,GAAM,CAACC,EAAMC,EAAQ,CAAGC,GAAAA,EAAAA,QAAAA,EAAgC,CACtD,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAkBH,GAAM,MAAQA,GAAM,GAE5C,MACE,WAACI,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,EAAAA,EAAAA,EACT,uGACA,CAACJ,GAAmB,gBACpBL,GAEF,SAAUC,E,UAEV,UAAC,O,SACEC,GAAM,KACLA,EAAK,EAAE,CACL,uB,UACGQ,GAAAA,EAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAAc,KAAG,IACnCQ,GAAAA,EAAAA,MAAAA,EAAOR,EAAK,EAAE,CAAE,c,GAGnBQ,GAAAA,EAAAA,MAAAA,EAAOR,EAAK,IAAI,CAAE,cAGpB,UAAC,Q,SAAMH,GAAe,wB,KAG1B,UAACY,EAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,UAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,UAACC,EAAAA,QAAQA,CAAAA,CACP,UAAS,GACT,KAAK,QACL,aAAcX,GAAM,KACpB,SAAUA,EACV,SAAUA,IACRC,EAAQD,GACRJ,IAAWI,EACb,EACA,eAAgB,EAChB,SAAUD,C,OAKpB,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as r from"@phosphor-icons/react/dist/ssr";import*as s from"date-fns";import*as t from"react";import*as a from"../lib/utils.js";import*as o from"./button.js";import*as i from"./calendar.js";import*as n from"./popover.js";import*as l from"./time-picker.js";function m({date:m,placeholder:d,className:c,disabled:f,onChange:p,onClear:x}){let[j,h]=t.useState(m);return(0,e.jsxs)(n.Popover,{children:[(0,e.jsx)(n.PopoverTrigger,{asChild:!0,children:(0,e.jsxs)(o.Button,{id:"date",variant:"secondary",className:(0,a.cn)("h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent",!j&&"text-dark-gray/50",c),disabled:f,children:[j?(0,s.format)(j,"dd/MM/yyyy HH:mm"):(0,e.jsx)("span",{children:d||"a"}),(0,e.jsx)(r.CalendarBlank,{size:20,className:"ml-2 text-dark-gray"})]})}),(0,e.jsxs)(n.PopoverContent,{className:"w-auto p-0",children:[(0,e.jsx)(i.Calendar,{mode:"single",selected:j,onSelect:e=>{h(e),p?.(e)}}),(0,e.jsx)("div",{className:"flex justify-center border-stroke border-t p-3",children:(0,e.jsx)(l.TimePicker,{setDate:e=>{h(e),p?.(e)},date:j})}),(0,e.jsx)("div",{className:"flex flex-1 justify-center",children:(0,e.jsxs)(o.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>{h(void 0),x?.()},children:[(0,e.jsx)(r.X,{size:12})," Clear"]})})]})]})}export{m as DateTimePicker};
2
+ import*as e from"react/jsx-runtime";import*as r from"@phosphor-icons/react/dist/ssr";import*as s from"date-fns";import*as t from"react";import*as a from"../lib/utils.js";import*as o from"./button.js";import*as i from"./calendar.js";import*as n from"./popover.js";import*as l from"./time-picker.js";function m({date:m,placeholder:c,className:d,disabled:f,onChange:p,onClear:x}){let[j,h]=t.useState(m);return(0,e.jsxs)(n.Popover,{children:[(0,e.jsx)(n.PopoverTrigger,{asChild:!0,children:(0,e.jsxs)(o.Button,{id:"date",variant:"secondary",className:(0,a.cn)("h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent",!j&&"text-gray-400",d),disabled:f,children:[j?(0,s.format)(j,"dd/MM/yyyy HH:mm"):(0,e.jsx)("span",{children:c||"a"}),(0,e.jsx)(r.CalendarBlank,{size:20,className:"ml-2 text-gray-600"})]})}),(0,e.jsxs)(n.PopoverContent,{className:"w-auto p-0",children:[(0,e.jsx)(i.Calendar,{mode:"single",selected:j,onSelect:e=>{h(e),p?.(e)}}),(0,e.jsx)("div",{className:"flex justify-center border-stroke border-t p-3",children:(0,e.jsx)(l.TimePicker,{setDate:e=>{h(e),p?.(e)},date:j})}),(0,e.jsx)("div",{className:"flex flex-1 justify-center",children:(0,e.jsxs)(o.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>{h(void 0),x?.()},children:[(0,e.jsx)(r.X,{size:12})," Clear"]})})]})]})}export{m as DateTimePicker};
3
3
  //# sourceMappingURL=date-picker-with-time.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-picker-with-time.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-time.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n onClear?: () => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled,\r\n onChange,\r\n onClear,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = React.useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent',\r\n !currentDate && 'text-dark-gray/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy HH:mm')\r\n ) : (\r\n <span>{placeholder || 'a'}</span>\r\n )}\r\n\r\n <CalendarBlank size={20} className=\"ml-2 text-dark-gray\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n\r\n <div className=\"flex justify-center border-stroke border-t p-3\">\r\n <TimePicker\r\n setDate={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n date={currentDate}\r\n />\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => {\r\n setCurrentDate(undefined)\r\n onClear?.()\r\n }}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePicker }\r\n"],"names":["DateTimePicker","date","placeholder","className","disabled","onChange","onClear","currentDate","setCurrentDate","React","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","undefined","X"],"mappings":";0SA0BA,SAASA,EAAe,CACtBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACS,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,EAAAA,QAAc,CAAmBR,GAEvE,MACE,WAACS,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,EAAAA,EAAAA,EACT,8EACA,CAACN,GAAe,oBAChBJ,GAEF,SAAUC,E,UAETG,EACCO,GAAAA,EAAAA,MAAAA,EAAOP,EAAa,oBAEpB,UAAC,Q,SAAML,GAAe,G,GAGxB,UAACa,EAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,qB,QAGvC,WAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,UAACC,EAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUN,IACRO,EAAeP,GACfI,IAAWJ,EACb,C,GAGF,UAAC,OAAI,UAAU,iD,SACb,UAACiB,EAAAA,UAAUA,CAAAA,CACT,QAASjB,IACPO,EAAeP,GACfI,IAAWJ,EACb,EACA,KAAMM,C,KAGV,UAAC,OAAI,UAAU,6B,SACb,WAACK,EAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,KACPJ,EAAeW,KAAAA,GACfb,KACF,E,UAEA,UAACc,EAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,Q"}
1
+ {"version":3,"file":"components\\date-picker-with-time.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker-with-time.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n onClear?: () => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled,\r\n onChange,\r\n onClear,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = React.useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 w-full justify-between px-4 text-left font-normal hover:bg-transparent',\r\n !currentDate && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy HH:mm')\r\n ) : (\r\n <span>{placeholder || 'a'}</span>\r\n )}\r\n\r\n <CalendarBlank size={20} className=\"ml-2 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n\r\n <div className=\"flex justify-center border-stroke border-t p-3\">\r\n <TimePicker\r\n setDate={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n date={currentDate}\r\n />\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => {\r\n setCurrentDate(undefined)\r\n onClear?.()\r\n }}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePicker }\r\n"],"names":["DateTimePicker","date","placeholder","className","disabled","onChange","onClear","currentDate","setCurrentDate","React","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","undefined","X"],"mappings":";0SA0BA,SAASA,EAAe,CACtBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,SAAAA,CAAQ,CACRC,QAAAA,CAAO,CACS,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,EAAAA,QAAc,CAAmBR,GAEvE,MACE,WAACS,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,EAAAA,EAAAA,EACT,8EACA,CAACN,GAAe,gBAChBJ,GAEF,SAAUC,E,UAETG,EACCO,GAAAA,EAAAA,MAAAA,EAAOP,EAAa,oBAEpB,UAAC,Q,SAAML,GAAe,G,GAGxB,UAACa,EAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,oB,QAGvC,WAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,UAACC,EAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUN,IACRO,EAAeP,GACfI,IAAWJ,EACb,C,GAGF,UAAC,OAAI,UAAU,iD,SACb,UAACiB,EAAAA,UAAUA,CAAAA,CACT,QAASjB,IACPO,EAAeP,GACfI,IAAWJ,EACb,EACA,KAAMM,C,KAGV,UAAC,OAAI,UAAU,6B,SACb,WAACK,EAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,KACPJ,EAAeW,KAAAA,GACfb,KACF,E,UAEA,UAACc,EAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as r from"@phosphor-icons/react";import*as t from"date-fns";import*as a from"react";import*as s from"../lib/utils.js";import*as o from"./button.js";import*as n from"./calendar.js";import*as i from"./popover.js";function m({date:m,placeholder:d,className:l,disabled:c=!1,onChange:p}){let[f,x]=(0,a.useState)(m);return(0,e.jsxs)(i.Popover,{children:[(0,e.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,e.jsxs)(o.Button,{id:"date",variant:"secondary",size:"md",className:(0,s.cn)("min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50",!f&&"text-gbm-dark/50",l),disabled:c,children:[f?(0,t.format)(f,"dd/MM/yyyy"):(0,e.jsx)("span",{children:d||"Selecione a data"}),(0,e.jsx)(r.CalendarBlank,{className:"ml-4 size-4 text-gbm-dark"})]})}),(0,e.jsx)(i.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,e.jsx)(n.Calendar,{mode:"single",selected:f,onSelect:e=>{x(e),p?.(e)}})})]})}export{m as DatePicker};
2
+ import*as e from"react/jsx-runtime";import*as r from"@phosphor-icons/react";import*as t from"date-fns";import*as a from"react";import*as s from"../lib/utils.js";import*as o from"./button.js";import*as n from"./calendar.js";import*as i from"./popover.js";function m({date:m,placeholder:l,className:d,disabled:c=!1,onChange:p}){let[f,x]=(0,a.useState)(m);return(0,e.jsxs)(i.Popover,{children:[(0,e.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,e.jsxs)(o.Button,{id:"date",variant:"secondary",size:"md",className:(0,s.cn)("min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50",!f&&"text-gray-400",d),disabled:c,children:[f?(0,t.format)(f,"dd/MM/yyyy"):(0,e.jsx)("span",{children:l||"Selecione a data"}),(0,e.jsx)(r.CalendarBlank,{className:"ml-4 size-4 text-gray-600"})]})}),(0,e.jsx)(i.PopoverContent,{className:"w-auto p-0",align:"start",children:(0,e.jsx)(n.Calendar,{mode:"single",selected:f,onSelect:e=>{x(e),p?.(e)}})})]})}export{m as DatePicker};
3
3
  //# sourceMappingURL=date-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-picker.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n onChange,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n size=\"md\"\r\n className={cn(\r\n 'min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50',\r\n !currentDate && 'text-gbm-dark/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy')\r\n ) : (\r\n <span>{placeholder || 'Selecione a data'}</span>\r\n )}\r\n <CalendarBlank className=\"ml-4 size-4 text-gbm-dark\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePicker }\r\n"],"names":["DatePicker","date","placeholder","className","disabled","onChange","currentDate","setCurrentDate","useState","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";8PAuBA,SAASA,EAAW,CAClBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CAChBC,SAAAA,CAAQ,CACQ,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,GAAAA,EAAAA,QAAAA,EAA2BP,GAEjE,MACE,WAACQ,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,KAAK,KACL,UAAWC,GAAAA,EAAAA,EAAAA,EACT,0FACA,CAACN,GAAe,mBAChBH,GAEF,SAAUC,E,UAETE,EACCO,GAAAA,EAAAA,MAAAA,EAAOP,EAAa,cAEpB,UAAC,Q,SAAMJ,GAAe,kB,GAExB,UAACY,EAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,UAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,UAACC,EAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUL,IACRM,EAAeN,GACfI,IAAWJ,EACb,C,OAKV,Q"}
1
+ {"version":3,"file":"components\\date-picker.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-picker.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank } from '@phosphor-icons/react'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\n\r\ninterface DatePickerProps {\r\n date?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: Date | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePicker\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DatePicker({\r\n date,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n onChange,\r\n}: DatePickerProps) {\r\n const [currentDate, setCurrentDate] = useState<Date | undefined>(date)\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n size=\"md\"\r\n className={cn(\r\n 'min-w-60 justify-between rounded-md px-4 text-left font-normal text-sm hover:bg-gray-50',\r\n !currentDate && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {currentDate ? (\r\n format(currentDate, 'dd/MM/yyyy')\r\n ) : (\r\n <span>{placeholder || 'Selecione a data'}</span>\r\n )}\r\n <CalendarBlank className=\"ml-4 size-4 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\" align=\"start\">\r\n <Calendar\r\n mode=\"single\"\r\n selected={currentDate}\r\n onSelect={date => {\r\n setCurrentDate(date)\r\n onChange?.(date)\r\n }}\r\n />\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DatePicker }\r\n"],"names":["DatePicker","date","placeholder","className","disabled","onChange","currentDate","setCurrentDate","useState","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar"],"mappings":";8PAuBA,SAASA,EAAW,CAClBC,KAAAA,CAAI,CACJC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CAChBC,SAAAA,CAAQ,CACQ,EAChB,GAAM,CAACC,EAAaC,EAAe,CAAGC,GAAAA,EAAAA,QAAAA,EAA2BP,GAEjE,MACE,WAACQ,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,KAAK,KACL,UAAWC,GAAAA,EAAAA,EAAAA,EACT,0FACA,CAACN,GAAe,gBAChBH,GAEF,SAAUC,E,UAETE,EACCO,GAAAA,EAAAA,MAAAA,EAAOP,EAAa,cAEpB,UAAC,Q,SAAMJ,GAAe,kB,GAExB,UAACY,EAAAA,aAAaA,CAAAA,CAAC,UAAU,2B,QAG7B,UAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,aAAa,MAAM,Q,SAC3C,UAACC,EAAAA,QAAQA,CAAAA,CACP,KAAK,SACL,SAAUV,EACV,SAAUL,IACRM,EAAeN,GACfI,IAAWJ,EACb,C,OAKV,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as e from"react/jsx-runtime";import*as r from"@phosphor-icons/react/dist/ssr";import*as o from"date-fns";import*as t from"react";import*as s from"../lib/utils.js";import*as a from"./button.js";import*as m from"./calendar.js";import*as i from"./popover.js";import*as n from"./time-picker.js";function d({startDate:d,endDate:f,onChange:l,placeholder:c,className:x,disabled:p=!1}){let[j,y]=(0,t.useState)({from:d,to:f}),h=e=>{if(!e){y(void 0),l?.(void 0);return}y({from:e.from??j?.from,to:e.to}),l?.({from:e.from??j?.from,to:e.to})};return(0,e.jsxs)(i.Popover,{children:[(0,e.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,e.jsxs)(a.Button,{id:"date",variant:"secondary",className:(0,s.cn)("h-12 min-w-96 justify-between px-4 text-left font-normal",!j?.from&&!j?.to&&"text-dark-gray/50",x),disabled:p,children:[j?.from?j.to?`${(0,o.format)(j.from,"dd/MM/yyyy HH:mm")} - ${(0,o.format)(j.to,"dd/MM/yyyy HH:mm")}`:(0,o.format)(j.from,"dd/MM/yyyy HH:mm"):(0,e.jsx)("span",{children:c||"Selecione o per\xedodo"}),(0,e.jsx)(r.CalendarBlank,{size:20,className:"ml-2 text-dark-gray"})]})}),(0,e.jsxs)(i.PopoverContent,{className:"w-auto p-0",children:[(0,e.jsx)(m.Calendar,{mode:"range",selected:j,onSelect:h,numberOfMonths:2}),(0,e.jsx)("div",{className:"flex flex-col border-stroke border-t p-3",children:(0,e.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,e.jsx)(n.TimePicker,{setDate:e=>h({...j,from:e}),date:j?.from}),(0,e.jsx)(n.TimePicker,{setDate:e=>h({...j,to:e}),date:j?.to})]})}),(0,e.jsx)("div",{className:"flex flex-1 justify-center",children:(0,e.jsxs)(a.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>h(void 0),children:[(0,e.jsx)(r.X,{size:12})," Clear"]})})]})]})}export{d as DateTimePickerWithRange};
2
+ import*as e from"react/jsx-runtime";import*as r from"@phosphor-icons/react/dist/ssr";import*as o from"date-fns";import*as t from"react";import*as s from"../lib/utils.js";import*as a from"./button.js";import*as m from"./calendar.js";import*as i from"./popover.js";import*as n from"./time-picker.js";function f({startDate:f,endDate:l,onChange:d,placeholder:c,className:x,disabled:p=!1}){let[j,y]=(0,t.useState)({from:f,to:l}),h=e=>{if(!e){y(void 0),d?.(void 0);return}y({from:e.from??j?.from,to:e.to}),d?.({from:e.from??j?.from,to:e.to})};return(0,e.jsxs)(i.Popover,{children:[(0,e.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,e.jsxs)(a.Button,{id:"date",variant:"secondary",className:(0,s.cn)("h-12 min-w-96 justify-between px-4 text-left font-normal",!j?.from&&!j?.to&&"text-gray-400",x),disabled:p,children:[j?.from?j.to?`${(0,o.format)(j.from,"dd/MM/yyyy HH:mm")} - ${(0,o.format)(j.to,"dd/MM/yyyy HH:mm")}`:(0,o.format)(j.from,"dd/MM/yyyy HH:mm"):(0,e.jsx)("span",{children:c||"Selecione o per\xedodo"}),(0,e.jsx)(r.CalendarBlank,{size:20,className:"ml-2 text-gray-600"})]})}),(0,e.jsxs)(i.PopoverContent,{className:"w-auto p-0",children:[(0,e.jsx)(m.Calendar,{mode:"range",selected:j,onSelect:h,numberOfMonths:2}),(0,e.jsx)("div",{className:"flex flex-col border-stroke border-t p-3",children:(0,e.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,e.jsx)(n.TimePicker,{setDate:e=>h({...j,from:e}),date:j?.from}),(0,e.jsx)(n.TimePicker,{setDate:e=>h({...j,to:e}),date:j?.to})]})}),(0,e.jsx)("div",{className:"flex flex-1 justify-center",children:(0,e.jsxs)(a.Button,{variant:"secondary",className:"flex h-12 flex-1",onClick:()=>h(void 0),children:[(0,e.jsx)(r.X,{size:12})," Clear"]})})]})]})}export{f as DateTimePickerWithRange};
3
3
  //# sourceMappingURL=date-time-picker-with-range.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\date-time-picker-with-range.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-time-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DateTimePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DateTimePickerWithRangeProps) {\r\n const [dateRange, setDateRange] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const handleDateChange = (newRange: Partial<DateRange> | undefined) => {\r\n if (!newRange) {\r\n setDateRange(undefined)\r\n onChange?.(undefined)\r\n return\r\n }\r\n\r\n setDateRange({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n onChange?.({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n }\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-96 justify-between px-4 text-left font-normal',\r\n !dateRange?.from && !dateRange?.to && 'text-dark-gray/50',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {dateRange?.from ? (\r\n dateRange.to ? (\r\n `${format(dateRange.from, 'dd/MM/yyyy HH:mm')} - ${format(dateRange.to, 'dd/MM/yyyy HH:mm')}`\r\n ) : (\r\n format(dateRange.from, 'dd/MM/yyyy HH:mm')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n <CalendarBlank size={20} className=\"ml-2 text-dark-gray\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"range\"\r\n selected={dateRange}\r\n onSelect={handleDateChange}\r\n numberOfMonths={2}\r\n />\r\n <div className=\"flex flex-col border-stroke border-t p-3\">\r\n <div className=\"flex justify-between gap-4\">\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, from: date })}\r\n date={dateRange?.from}\r\n />\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, to: date })}\r\n date={dateRange?.to}\r\n />\r\n </div>\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => handleDateChange(undefined)}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePickerWithRange }\r\n"],"names":["DateTimePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","dateRange","setDateRange","useState","handleDateChange","newRange","undefined","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","date","X"],"mappings":";0SA0BA,SAASA,EAAwB,CAC/BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACa,EAC7B,GAAM,CAACC,EAAWC,EAAa,CAAGC,GAAAA,EAAAA,QAAAA,EAAgC,CAChE,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAmB,IACvB,GAAI,CAACC,EAAU,CACbH,EAAaI,KAAAA,GACbT,IAAWS,KAAAA,GACX,MACF,CAEAJ,EAAa,CACX,KAAMG,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,GAEjBR,IAAW,CACT,KAAMQ,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,EAEnB,EAEA,MACE,WAACE,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,EAAAA,EAAAA,EACT,2DACA,CAACT,GAAW,MAAQ,CAACA,GAAW,IAAM,oBACtCF,GAEF,SAAUC,E,UAETC,GAAW,KACVA,EAAU,EAAE,CACV,CAAC,EAAEU,GAAAA,EAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAAoB,GAAG,EAAEU,GAAAA,EAAAA,MAAAA,EAAOV,EAAU,EAAE,CAAE,oBAAoB,CAAC,CAE7FU,GAAAA,EAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAGzB,UAAC,Q,SAAMH,GAAe,wB,GAExB,UAACc,EAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,qB,QAGvC,WAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,UAACC,EAAAA,QAAQA,CAAAA,CACP,KAAK,QACL,SAAUb,EACV,SAAUG,EACV,eAAgB,C,GAElB,UAAC,OAAI,UAAU,2C,SACb,WAAC,OAAI,UAAU,6B,UACb,UAACW,EAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,KAAMe,CAAK,GAC7D,KAAMf,GAAW,I,GAEnB,UAACc,EAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,GAAIe,CAAK,GAC3D,KAAMf,GAAW,E,QAIvB,UAAC,OAAI,UAAU,6B,SACb,WAACQ,EAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,IAAML,EAAiBE,KAAAA,G,UAEhC,UAACW,EAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,Q"}
1
+ {"version":3,"file":"components\\date-time-picker-with-range.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/date-time-picker-with-range.tsx"],"sourcesContent":["\r\n\r\nimport { CalendarBlank, X } from '@phosphor-icons/react/dist/ssr'\r\nimport { format } from 'date-fns'\r\nimport { useState } from 'react'\r\nimport { DateRange } from 'react-day-picker'\r\n\r\nimport { cn } from '../lib/utils'\r\nimport { Button } from './button'\r\nimport { Calendar } from './calendar'\r\nimport { Popover, PopoverContent, PopoverTrigger } from './popover'\r\nimport { TimePicker } from './time-picker'\r\n\r\ninterface DateTimePickerWithRangeProps {\r\n startDate?: Date\r\n endDate?: Date\r\n placeholder?: string\r\n className?: string\r\n disabled?: boolean\r\n onChange?: (date: DateRange | undefined) => void\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: DateTimePickerWithRange\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction DateTimePickerWithRange({\r\n startDate,\r\n endDate,\r\n onChange,\r\n placeholder,\r\n className,\r\n disabled = false,\r\n}: DateTimePickerWithRangeProps) {\r\n const [dateRange, setDateRange] = useState<DateRange | undefined>({\r\n from: startDate,\r\n to: endDate,\r\n })\r\n\r\n const handleDateChange = (newRange: Partial<DateRange> | undefined) => {\r\n if (!newRange) {\r\n setDateRange(undefined)\r\n onChange?.(undefined)\r\n return\r\n }\r\n\r\n setDateRange({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n onChange?.({\r\n from: newRange.from ?? dateRange?.from,\r\n to: newRange.to,\r\n })\r\n }\r\n\r\n return (\r\n <Popover>\r\n <PopoverTrigger asChild>\r\n <Button\r\n id=\"date\"\r\n variant=\"secondary\"\r\n className={cn(\r\n 'h-12 min-w-96 justify-between px-4 text-left font-normal',\r\n !dateRange?.from && !dateRange?.to && 'text-gray-400',\r\n className\r\n )}\r\n disabled={disabled}\r\n >\r\n {dateRange?.from ? (\r\n dateRange.to ? (\r\n `${format(dateRange.from, 'dd/MM/yyyy HH:mm')} - ${format(dateRange.to, 'dd/MM/yyyy HH:mm')}`\r\n ) : (\r\n format(dateRange.from, 'dd/MM/yyyy HH:mm')\r\n )\r\n ) : (\r\n <span>{placeholder || 'Selecione o período'}</span>\r\n )}\r\n <CalendarBlank size={20} className=\"ml-2 text-gray-600\" />\r\n </Button>\r\n </PopoverTrigger>\r\n <PopoverContent className=\"w-auto p-0\">\r\n <Calendar\r\n mode=\"range\"\r\n selected={dateRange}\r\n onSelect={handleDateChange}\r\n numberOfMonths={2}\r\n />\r\n <div className=\"flex flex-col border-stroke border-t p-3\">\r\n <div className=\"flex justify-between gap-4\">\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, from: date })}\r\n date={dateRange?.from}\r\n />\r\n <TimePicker\r\n setDate={date => handleDateChange({ ...dateRange, to: date })}\r\n date={dateRange?.to}\r\n />\r\n </div>\r\n </div>\r\n <div className=\"flex flex-1 justify-center\">\r\n <Button\r\n variant=\"secondary\"\r\n className=\"flex h-12 flex-1\"\r\n onClick={() => handleDateChange(undefined)}\r\n >\r\n <X size={12} /> Clear\r\n </Button>\r\n </div>\r\n </PopoverContent>\r\n </Popover>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { DateTimePickerWithRange }\r\n"],"names":["DateTimePickerWithRange","startDate","endDate","onChange","placeholder","className","disabled","dateRange","setDateRange","useState","handleDateChange","newRange","undefined","Popover","PopoverTrigger","Button","cn","format","CalendarBlank","PopoverContent","Calendar","TimePicker","date","X"],"mappings":";0SA0BA,SAASA,EAAwB,CAC/BC,UAAAA,CAAS,CACTC,QAAAA,CAAO,CACPC,SAAAA,CAAQ,CACRC,YAAAA,CAAW,CACXC,UAAAA,CAAS,CACTC,SAAAA,EAAW,EAAK,CACa,EAC7B,GAAM,CAACC,EAAWC,EAAa,CAAGC,GAAAA,EAAAA,QAAAA,EAAgC,CAChE,KAAMR,EACN,GAAIC,CACN,GAEMQ,EAAmB,IACvB,GAAI,CAACC,EAAU,CACbH,EAAaI,KAAAA,GACbT,IAAWS,KAAAA,GACX,MACF,CAEAJ,EAAa,CACX,KAAMG,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,GAEjBR,IAAW,CACT,KAAMQ,EAAS,IAAI,EAAIJ,GAAW,KAClC,GAAII,EAAS,EAAE,EAEnB,EAEA,MACE,WAACE,EAAAA,OAAOA,CAAAA,C,UACN,UAACC,EAAAA,cAAcA,CAAAA,CAAC,QAAO,G,SACrB,WAACC,EAAAA,MAAMA,CAAAA,CACL,GAAG,OACH,QAAQ,YACR,UAAWC,GAAAA,EAAAA,EAAAA,EACT,2DACA,CAACT,GAAW,MAAQ,CAACA,GAAW,IAAM,gBACtCF,GAEF,SAAUC,E,UAETC,GAAW,KACVA,EAAU,EAAE,CACV,CAAC,EAAEU,GAAAA,EAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAAoB,GAAG,EAAEU,GAAAA,EAAAA,MAAAA,EAAOV,EAAU,EAAE,CAAE,oBAAoB,CAAC,CAE7FU,GAAAA,EAAAA,MAAAA,EAAOV,EAAU,IAAI,CAAE,oBAGzB,UAAC,Q,SAAMH,GAAe,wB,GAExB,UAACc,EAAAA,aAAaA,CAAAA,CAAC,KAAM,GAAI,UAAU,oB,QAGvC,WAACC,EAAAA,cAAcA,CAAAA,CAAC,UAAU,a,UACxB,UAACC,EAAAA,QAAQA,CAAAA,CACP,KAAK,QACL,SAAUb,EACV,SAAUG,EACV,eAAgB,C,GAElB,UAAC,OAAI,UAAU,2C,SACb,WAAC,OAAI,UAAU,6B,UACb,UAACW,EAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,KAAMe,CAAK,GAC7D,KAAMf,GAAW,I,GAEnB,UAACc,EAAAA,UAAUA,CAAAA,CACT,QAASC,GAAQZ,EAAiB,CAAE,GAAGH,CAAS,CAAE,GAAIe,CAAK,GAC3D,KAAMf,GAAW,E,QAIvB,UAAC,OAAI,UAAU,6B,SACb,WAACQ,EAAAA,MAAMA,CAAAA,CACL,QAAQ,YACR,UAAU,mBACV,QAAS,IAAML,EAAiBE,KAAAA,G,UAEhC,UAACW,EAAAA,CAACA,CAAAA,CAAC,KAAM,E,GAAM,S,UAM3B,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as t from"react/jsx-runtime";import*as e from"@phosphor-icons/react";import*as a from"@radix-ui/react-select";import*as s from"../lib/utils.js";import*as o from"./button.js";function l({...e}){return(0,t.jsx)(a.Root,{"data-slot":"select",...e})}function r({...e}){return(0,t.jsx)(a.Group,{"data-slot":"select-group",...e})}function n({...e}){return(0,t.jsx)(a.Value,{"data-slot":"select-value",...e})}function i({children:s,className:l,size:r="md",...n}){return(0,t.jsxs)(a.Trigger,{className:(0,o.buttonVariants)({className:["w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-600",l],size:r,variant:"secondary"}),"data-size":r,"data-slot":"select-trigger",...n,children:[s,(0,t.jsx)(a.Icon,{asChild:!0,className:"size-4 shrink-0 opacity-50",children:(0,t.jsx)(e.CaretDown,{})})]})}function c({className:o,...l}){return(0,t.jsx)(a.ScrollUpButton,{className:(0,s.cn)("flex items-center justify-center py-1 text-gbm-dark",o),"data-slot":"select-scroll-up-button",...l,children:(0,t.jsx)(e.CaretUp,{size:16})})}function d({className:o,...l}){return(0,t.jsx)(a.ScrollDownButton,{className:(0,s.cn)("flex items-center justify-center py-1 text-gray-600",o),"data-slot":"select-scroll-down-button",...l,children:(0,t.jsx)(e.CaretDown,{size:16})})}function u({children:e,className:o,position:l="popper",...r}){return(0,t.jsx)(a.Portal,{children:(0,t.jsxs)(a.Content,{className:(0,s.cn)("data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in","popper"===l&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",o),"data-slot":"select-content",position:l,...r,children:[(0,t.jsx)(c,{}),(0,t.jsx)(a.Viewport,{className:(0,s.cn)("p-1","popper"===l&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:e}),(0,t.jsx)(d,{})]})})}function m({className:e,...o}){return(0,t.jsx)(a.Label,{className:(0,s.cn)("flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm",e),"data-slot":"select-label",...o})}function p({children:o,className:l,...r}){return(0,t.jsxs)(a.Item,{className:(0,s.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",l),"data-slot":"select-item",...r,children:[(0,t.jsx)("span",{className:"absolute right-2 flex items-center justify-center",children:(0,t.jsx)(a.ItemIndicator,{children:(0,t.jsx)(e.Check,{className:"size-4"})})}),(0,t.jsx)(a.ItemText,{children:o})]})}function x({className:e,...o}){return(0,t.jsx)(a.Separator,{className:(0,s.cn)("mx-2 my-1 h-px bg-stroke",e),"data-slot":"select-separator",...o})}export{l as Select,u as SelectContent,r as SelectGroup,p as SelectItem,m as SelectLabel,x as SelectSeparator,i as SelectTrigger,n as SelectValue};
2
+ import*as t from"react/jsx-runtime";import*as e from"@phosphor-icons/react";import*as a from"@radix-ui/react-select";import*as s from"../lib/utils.js";import*as o from"./button.js";function l({...e}){return(0,t.jsx)(a.Root,{"data-slot":"select",...e})}function r({...e}){return(0,t.jsx)(a.Group,{"data-slot":"select-group",...e})}function n({...e}){return(0,t.jsx)(a.Value,{"data-slot":"select-value",...e})}function i({children:s,className:l,size:r="md",...n}){return(0,t.jsxs)(a.Trigger,{className:(0,o.buttonVariants)({className:["w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-400",l],size:r,variant:"secondary"}),"data-size":r,"data-slot":"select-trigger",...n,children:[s,(0,t.jsx)(a.Icon,{asChild:!0,className:"size-4 shrink-0 opacity-50",children:(0,t.jsx)(e.CaretDown,{})})]})}function c({className:o,...l}){return(0,t.jsx)(a.ScrollUpButton,{className:(0,s.cn)("flex items-center justify-center py-1 text-gray-600",o),"data-slot":"select-scroll-up-button",...l,children:(0,t.jsx)(e.CaretUp,{size:16})})}function d({className:o,...l}){return(0,t.jsx)(a.ScrollDownButton,{className:(0,s.cn)("flex items-center justify-center py-1 text-gray-600",o),"data-slot":"select-scroll-down-button",...l,children:(0,t.jsx)(e.CaretDown,{size:16})})}function u({children:e,className:o,position:l="popper",...r}){return(0,t.jsx)(a.Portal,{children:(0,t.jsxs)(a.Content,{className:(0,s.cn)("data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in","popper"===l&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",o),"data-slot":"select-content",position:l,...r,children:[(0,t.jsx)(c,{}),(0,t.jsx)(a.Viewport,{className:(0,s.cn)("p-1","popper"===l&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:e}),(0,t.jsx)(d,{})]})})}function m({className:e,...o}){return(0,t.jsx)(a.Label,{className:(0,s.cn)("flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm",e),"data-slot":"select-label",...o})}function p({children:o,className:l,...r}){return(0,t.jsxs)(a.Item,{className:(0,s.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",l),"data-slot":"select-item",...r,children:[(0,t.jsx)("span",{className:"absolute right-2 flex items-center justify-center",children:(0,t.jsx)(a.ItemIndicator,{children:(0,t.jsx)(e.Check,{className:"size-4"})})}),(0,t.jsx)(a.ItemText,{children:o})]})}function x({className:e,...o}){return(0,t.jsx)(a.Separator,{className:(0,s.cn)("mx-2 my-1 h-px bg-stroke",e),"data-slot":"select-separator",...o})}export{l as Select,u as SelectContent,r as SelectGroup,p as SelectItem,m as SelectLabel,x as SelectSeparator,i as SelectTrigger,n as SelectValue};
3
3
  //# sourceMappingURL=select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\select.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/select.tsx"],"sourcesContent":["\r\n\r\nimport { CaretDown, CaretUp, Check } from '@phosphor-icons/react'\r\nimport * as SelectPrimitive from '@radix-ui/react-select'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Select\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Select({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Root>): JSX.Element {\r\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectGroup\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectGroup({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Group>): JSX.Element {\r\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectValue\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectValue({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Value>): JSX.Element {\r\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectTrigger({\r\n children,\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Trigger> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n}): JSX.Element {\r\n return (\r\n <SelectPrimitive.Trigger\r\n className={buttonVariants({\r\n className: [\r\n \"w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-600\",\r\n className,\r\n ],\r\n size,\r\n variant: 'secondary',\r\n })}\r\n data-size={size}\r\n data-slot=\"select-trigger\"\r\n {...props}\r\n >\r\n {children}\r\n <SelectPrimitive.Icon asChild className=\"size-4 shrink-0 opacity-50\">\r\n <CaretDown />\r\n </SelectPrimitive.Icon>\r\n </SelectPrimitive.Trigger>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollUpButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollUpButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollUpButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gbm-dark',\r\n className\r\n )}\r\n data-slot=\"select-scroll-up-button\"\r\n {...props}\r\n >\r\n <CaretUp size={16} />\r\n </SelectPrimitive.ScrollUpButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollDownButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollDownButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollDownButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gray-600',\r\n className\r\n )}\r\n data-slot=\"select-scroll-down-button\"\r\n {...props}\r\n >\r\n <CaretDown size={16} />\r\n </SelectPrimitive.ScrollDownButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectContent({\r\n children,\r\n className,\r\n position = 'popper',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Content>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Portal>\r\n <SelectPrimitive.Content\r\n className={cn(\r\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n position === 'popper' &&\r\n 'data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1',\r\n className\r\n )}\r\n data-slot=\"select-content\"\r\n position={position}\r\n {...props}\r\n >\r\n <SelectScrollUpButton />\r\n <SelectPrimitive.Viewport\r\n className={cn(\r\n 'p-1',\r\n position === 'popper' &&\r\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\r\n )}\r\n >\r\n {children}\r\n </SelectPrimitive.Viewport>\r\n <SelectScrollDownButton />\r\n </SelectPrimitive.Content>\r\n </SelectPrimitive.Portal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectLabel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectLabel({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Label>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Label\r\n className={cn(\r\n 'flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm',\r\n className\r\n )}\r\n data-slot=\"select-label\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectItem\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectItem({\r\n children,\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Item>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Item\r\n className={cn(\r\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\r\n className\r\n )}\r\n data-slot=\"select-item\"\r\n {...props}\r\n >\r\n <span className=\"absolute right-2 flex items-center justify-center\">\r\n <SelectPrimitive.ItemIndicator>\r\n <Check className=\"size-4\" />\r\n </SelectPrimitive.ItemIndicator>\r\n </span>\r\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\r\n </SelectPrimitive.Item>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectSeparator\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectSeparator({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Separator\r\n className={cn('mx-2 my-1 h-px bg-stroke', className)}\r\n data-slot=\"select-separator\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Select,\r\n SelectGroup,\r\n SelectValue,\r\n SelectTrigger,\r\n SelectContent,\r\n SelectLabel,\r\n SelectItem,\r\n SelectSeparator,\r\n}\r\n"],"names":["Select","props","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","children","className","size","buttonVariants","CaretDown","SelectScrollUpButton","cn","CaretUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";qLAaA,SAASA,EAAO,CACd,GAAGC,EACyC,EAC5C,MAAO,UAACC,EAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,EAC3D,CAMA,SAASE,EAAY,CACnB,GAAGF,EAC0C,EAC7C,MAAO,UAACC,EAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASG,EAAY,CACnB,GAAGH,EAC0C,EAC7C,MAAO,UAACC,EAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASI,EAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGP,EAGJ,EACC,MACE,WAACC,EAAAA,OAAuB,EACtB,UAAWO,GAAAA,EAAAA,cAAAA,EAAe,CACxB,UAAW,CACT,6SACAF,EACD,CACDC,KAAAA,EACA,QAAS,WACX,GACA,YAAWA,EACX,YAAU,iBACT,GAAGP,CAAK,C,UAERK,EACD,UAACJ,EAAAA,IAAoB,EAAC,QAAO,GAAC,UAAU,6B,SACtC,UAACQ,EAAAA,SAASA,CAAAA,CAAAA,E,KAIlB,CAMA,SAASC,EAAqB,CAC5BJ,UAAAA,CAAS,CACT,GAAGN,EACmD,EACtD,MACE,UAACC,EAAAA,cAA8B,EAC7B,UAAWU,GAAAA,EAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,0BACT,GAAGN,CAAK,C,SAET,UAACY,EAAAA,OAAOA,CAAAA,CAAC,KAAM,E,IAGrB,CAMA,SAASC,EAAuB,CAC9BP,UAAAA,CAAS,CACT,GAAGN,EACqD,EACxD,MACE,UAACC,EAAAA,gBAAgC,EAC/B,UAAWU,GAAAA,EAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,4BACT,GAAGN,CAAK,C,SAET,UAACS,EAAAA,SAASA,CAAAA,CAAC,KAAM,E,IAGvB,CAMA,SAASK,EAAc,CACrBT,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTS,SAAAA,EAAW,QAAQ,CACnB,GAAGf,EAC4C,EAC/C,MACE,UAACC,EAAAA,MAAsB,E,SACrB,WAACA,EAAAA,OAAuB,EACtB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,guBACAI,WAAAA,GACE,kIACFT,GAEF,YAAU,iBACV,SAAUS,EACT,GAAGf,CAAK,C,UAET,UAACU,EAAAA,CAAAA,GACD,UAACT,EAAAA,QAAwB,EACvB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,MACAI,WAAAA,GACE,iF,SAGHV,C,GAEH,UAACQ,EAAAA,CAAAA,G,IAIT,CAMA,SAASG,EAAY,CACnBV,UAAAA,CAAS,CACT,GAAGN,EAC0C,EAC7C,MACE,UAACC,EAAAA,KAAqB,EACpB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,8DACAL,GAEF,YAAU,eACT,GAAGN,CAAK,EAGf,CAMA,SAASiB,EAAW,CAClBZ,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACT,GAAGN,EACyC,EAC5C,MACE,WAACC,EAAAA,IAAoB,EACnB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,iaACAL,GAEF,YAAU,cACT,GAAGN,CAAK,C,UAET,UAAC,QAAK,UAAU,oD,SACd,UAACC,EAAAA,aAA6B,E,SAC5B,UAACiB,EAAAA,KAAKA,CAAAA,CAAC,UAAU,Q,OAGrB,UAACjB,EAAAA,QAAwB,E,SAAEI,C,KAGjC,CAMA,SAASc,EAAgB,CACvBb,UAAAA,CAAS,CACT,GAAGN,EAC8C,EACjD,MACE,UAACC,EAAAA,SAAyB,EACxB,UAAWU,GAAAA,EAAAA,EAAAA,EAAG,2BAA4BL,GAC1C,YAAU,mBACT,GAAGN,CAAK,EAGf,Q"}
1
+ {"version":3,"file":"components\\select.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/select.tsx"],"sourcesContent":["\r\n\r\nimport { CaretDown, CaretUp, Check } from '@phosphor-icons/react'\r\nimport * as SelectPrimitive from '@radix-ui/react-select'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { VariantProps, cn } from '@/lib/utils'\r\nimport { buttonVariants } from './button'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Select\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Select({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Root>): JSX.Element {\r\n return <SelectPrimitive.Root data-slot=\"select\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectGroup\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectGroup({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Group>): JSX.Element {\r\n return <SelectPrimitive.Group data-slot=\"select-group\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectValue\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectValue({\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Value>): JSX.Element {\r\n return <SelectPrimitive.Value data-slot=\"select-value\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectTrigger({\r\n children,\r\n className,\r\n size = 'md',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Trigger> & {\r\n size?: VariantProps<typeof buttonVariants>['size']\r\n}): JSX.Element {\r\n return (\r\n <SelectPrimitive.Trigger\r\n className={buttonVariants({\r\n className: [\r\n \"w-fit justify-between px-3 font-normal focus:ring-3 focus:ring-gbm-sky/50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:truncate [&_svg:not([class*='text-'])]:text-gray-400\",\r\n className,\r\n ],\r\n size,\r\n variant: 'secondary',\r\n })}\r\n data-size={size}\r\n data-slot=\"select-trigger\"\r\n {...props}\r\n >\r\n {children}\r\n <SelectPrimitive.Icon asChild className=\"size-4 shrink-0 opacity-50\">\r\n <CaretDown />\r\n </SelectPrimitive.Icon>\r\n </SelectPrimitive.Trigger>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollUpButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollUpButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollUpButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gray-600',\r\n className\r\n )}\r\n data-slot=\"select-scroll-up-button\"\r\n {...props}\r\n >\r\n <CaretUp size={16} />\r\n </SelectPrimitive.ScrollUpButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectScrollDownButton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectScrollDownButton({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element {\r\n return (\r\n <SelectPrimitive.ScrollDownButton\r\n className={cn(\r\n 'flex items-center justify-center py-1 text-gray-600',\r\n className\r\n )}\r\n data-slot=\"select-scroll-down-button\"\r\n {...props}\r\n >\r\n <CaretDown size={16} />\r\n </SelectPrimitive.ScrollDownButton>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectContent({\r\n children,\r\n className,\r\n position = 'popper',\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Content>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Portal>\r\n <SelectPrimitive.Content\r\n className={cn(\r\n 'data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:data-[side=top]:slide-in-from-bottom-2 data-[state=open]:data-[side=right]:slide-in-from-left-2 data-[state=open]:data-[side=bottom]:slide-in-from-top-2 data-[state=open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-background text-gbm-dark shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in',\r\n position === 'popper' &&\r\n 'data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1',\r\n className\r\n )}\r\n data-slot=\"select-content\"\r\n position={position}\r\n {...props}\r\n >\r\n <SelectScrollUpButton />\r\n <SelectPrimitive.Viewport\r\n className={cn(\r\n 'p-1',\r\n position === 'popper' &&\r\n 'h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)'\r\n )}\r\n >\r\n {children}\r\n </SelectPrimitive.Viewport>\r\n <SelectScrollDownButton />\r\n </SelectPrimitive.Content>\r\n </SelectPrimitive.Portal>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectLabel\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectLabel({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Label>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Label\r\n className={cn(\r\n 'flex items-center gap-x-2 px-2 py-1.5 font-semibold text-sm',\r\n className\r\n )}\r\n data-slot=\"select-label\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectItem\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectItem({\r\n children,\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Item>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Item\r\n className={cn(\r\n \"relative flex w-full cursor-default select-none items-center rounded-sm py-2 pr-8 pl-2 text-sm outline-hidden focus:bg-gray-100 focus:text-gbm-black aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-gray-600 data-[variant=destructive]:[&_svg:not([class*='text-'])]:text-destructive/80 [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2\",\r\n className\r\n )}\r\n data-slot=\"select-item\"\r\n {...props}\r\n >\r\n <span className=\"absolute right-2 flex items-center justify-center\">\r\n <SelectPrimitive.ItemIndicator>\r\n <Check className=\"size-4\" />\r\n </SelectPrimitive.ItemIndicator>\r\n </span>\r\n <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\r\n </SelectPrimitive.Item>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SelectSeparator\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SelectSeparator({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element {\r\n return (\r\n <SelectPrimitive.Separator\r\n className={cn('mx-2 my-1 h-px bg-stroke', className)}\r\n data-slot=\"select-separator\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport {\r\n Select,\r\n SelectGroup,\r\n SelectValue,\r\n SelectTrigger,\r\n SelectContent,\r\n SelectLabel,\r\n SelectItem,\r\n SelectSeparator,\r\n}\r\n"],"names":["Select","props","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","children","className","size","buttonVariants","CaretDown","SelectScrollUpButton","cn","CaretUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","Check","SelectSeparator"],"mappings":";qLAaA,SAASA,EAAO,CACd,GAAGC,EACyC,EAC5C,MAAO,UAACC,EAAAA,IAAoB,EAAC,YAAU,SAAU,GAAGD,CAAK,EAC3D,CAMA,SAASE,EAAY,CACnB,GAAGF,EAC0C,EAC7C,MAAO,UAACC,EAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASG,EAAY,CACnB,GAAGH,EAC0C,EAC7C,MAAO,UAACC,EAAAA,KAAqB,EAAC,YAAU,eAAgB,GAAGD,CAAK,EAClE,CAMA,SAASI,EAAc,CACrBC,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTC,KAAAA,EAAO,IAAI,CACX,GAAGP,EAGJ,EACC,MACE,WAACC,EAAAA,OAAuB,EACtB,UAAWO,GAAAA,EAAAA,cAAAA,EAAe,CACxB,UAAW,CACT,6SACAF,EACD,CACDC,KAAAA,EACA,QAAS,WACX,GACA,YAAWA,EACX,YAAU,iBACT,GAAGP,CAAK,C,UAERK,EACD,UAACJ,EAAAA,IAAoB,EAAC,QAAO,GAAC,UAAU,6B,SACtC,UAACQ,EAAAA,SAASA,CAAAA,CAAAA,E,KAIlB,CAMA,SAASC,EAAqB,CAC5BJ,UAAAA,CAAS,CACT,GAAGN,EACmD,EACtD,MACE,UAACC,EAAAA,cAA8B,EAC7B,UAAWU,GAAAA,EAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,0BACT,GAAGN,CAAK,C,SAET,UAACY,EAAAA,OAAOA,CAAAA,CAAC,KAAM,E,IAGrB,CAMA,SAASC,EAAuB,CAC9BP,UAAAA,CAAS,CACT,GAAGN,EACqD,EACxD,MACE,UAACC,EAAAA,gBAAgC,EAC/B,UAAWU,GAAAA,EAAAA,EAAAA,EACT,sDACAL,GAEF,YAAU,4BACT,GAAGN,CAAK,C,SAET,UAACS,EAAAA,SAASA,CAAAA,CAAC,KAAM,E,IAGvB,CAMA,SAASK,EAAc,CACrBT,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACTS,SAAAA,EAAW,QAAQ,CACnB,GAAGf,EAC4C,EAC/C,MACE,UAACC,EAAAA,MAAsB,E,SACrB,WAACA,EAAAA,OAAuB,EACtB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,2uBACAI,WAAAA,GACE,kIACFT,GAEF,YAAU,iBACV,SAAUS,EACT,GAAGf,CAAK,C,UAET,UAACU,EAAAA,CAAAA,GACD,UAACT,EAAAA,QAAwB,EACvB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,MACAI,WAAAA,GACE,iF,SAGHV,C,GAEH,UAACQ,EAAAA,CAAAA,G,IAIT,CAMA,SAASG,EAAY,CACnBV,UAAAA,CAAS,CACT,GAAGN,EAC0C,EAC7C,MACE,UAACC,EAAAA,KAAqB,EACpB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,8DACAL,GAEF,YAAU,eACT,GAAGN,CAAK,EAGf,CAMA,SAASiB,EAAW,CAClBZ,SAAAA,CAAQ,CACRC,UAAAA,CAAS,CACT,GAAGN,EACyC,EAC5C,MACE,WAACC,EAAAA,IAAoB,EACnB,UAAWU,GAAAA,EAAAA,EAAAA,EACT,iaACAL,GAEF,YAAU,cACT,GAAGN,CAAK,C,UAET,UAAC,QAAK,UAAU,oD,SACd,UAACC,EAAAA,aAA6B,E,SAC5B,UAACiB,EAAAA,KAAKA,CAAAA,CAAC,UAAU,Q,OAGrB,UAACjB,EAAAA,QAAwB,E,SAAEI,C,KAGjC,CAMA,SAASc,EAAgB,CACvBb,UAAAA,CAAS,CACT,GAAGN,EAC8C,EACjD,MACE,UAACC,EAAAA,SAAyB,EACxB,UAAWU,GAAAA,EAAAA,EAAAA,EAAG,2BAA4BL,GAC1C,YAAU,mBACT,GAAGN,CAAK,EAGf,Q"}
@@ -1,3 +1,2 @@
1
- 'use client'
2
- import*as r from"react/jsx-runtime";import*as a from"@radix-ui/react-separator";import*as o from"react";import*as t from"../lib/utils.js";let e=(0,o.forwardRef)(({className:o,orientation:e="horizontal",decorative:i=!0,...s},l)=>(0,r.jsx)(a.Root,{ref:l,decorative:i,orientation:e,className:(0,t.cn)("shrink-0 bg-stroke","horizontal"===e?"h-[1px] w-full":"h-full w-[1px]",o),...s}));e.displayName="Separator";export{e as Separator};
1
+ import*as t from"react/jsx-runtime";import*as r from"@radix-ui/react-separator";import*as e from"../lib/utils.js";let a=(0,e.tv)({base:"bg-stroke relative flex shrink-0 items-center",variants:{align:{center:"justify-center",end:"justify-end",start:"justify-start"},orientation:{horizontal:"h-px w-full",vertical:"h-full w-px flex-col"}},defaultVariants:{align:"center",orientation:"horizontal"}});function o({align:e,className:o,decorative:i=!0,orientation:s,...n}){return(0,t.jsx)(r.Root,{className:a({align:e,className:o,orientation:s}),"data-slot":"separator",decorative:i,orientation:s,...n})}function i({className:r,...a}){return(0,t.jsx)("div",{className:(0,e.cn)("absolute mx-2 bg-background px-2 text-muted-foreground text-sm",r),"data-slot":"separator-item",...a})}export{o as Separator,i as SeparatorItem};
3
2
  //# sourceMappingURL=separator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\separator.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/separator.tsx"],"sourcesContent":["\r\n\r\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\r\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst Separator = forwardRef<\r\n ElementRef<typeof SeparatorPrimitive.Root>,\r\n ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>\r\n>(\r\n (\r\n { className, orientation = 'horizontal', decorative = true, ...props },\r\n ref\r\n ) => (\r\n <SeparatorPrimitive.Root\r\n ref={ref}\r\n decorative={decorative}\r\n orientation={orientation}\r\n className={cn(\r\n 'shrink-0 bg-stroke',\r\n orientation === 'horizontal' ? 'h-[1px] w-full' : 'h-full w-[1px]',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n)\r\nSeparator.displayName = 'Separator'\r\n\r\nexport { Separator }\r\n"],"names":["Separator","forwardRef","className","orientation","decorative","props","ref","SeparatorPrimitive","cn"],"mappings":";0IAOA,IAAMA,EAAYC,GAAAA,EAAAA,UAAAA,EAIhB,CACE,CAAEC,UAAAA,CAAS,CAAEC,YAAAA,EAAc,YAAY,CAAEC,WAAAA,EAAa,EAAI,CAAE,GAAGC,EAAO,CACtEC,IAEA,UAACC,EAAAA,IAAuB,EACtB,IAAKD,EACL,WAAYF,EACZ,YAAaD,EACb,UAAWK,GAAAA,EAAAA,EAAAA,EACT,qBACAL,eAAAA,EAA+B,iBAAmB,iBAClDD,GAED,GAAGG,CAAK,GAIfL,CAAAA,EAAU,WAAW,CAAG,mB"}
1
+ {"version":3,"file":"components\\separator.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/separator.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'react'\r\n\r\nimport * as SeparatorPrimitive from '@radix-ui/react-separator'\r\n\r\nimport type { VariantProps } from '@/lib/utils'\r\n\r\nimport { cn, tv } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Variant: Separator\r\n * -------------------------------------------------------------------------- */\r\n\r\nconst separatorVariants = tv({\r\n base: 'bg-stroke relative flex shrink-0 items-center',\r\n variants: {\r\n align: {\r\n center: 'justify-center',\r\n end: 'justify-end',\r\n start: 'justify-start',\r\n },\r\n orientation: {\r\n horizontal: 'h-px w-full',\r\n vertical: 'h-full w-px flex-col',\r\n },\r\n },\r\n defaultVariants: {\r\n align: 'center',\r\n orientation: 'horizontal',\r\n },\r\n})\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Separator\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Separator({\r\n align,\r\n className,\r\n decorative = true,\r\n orientation,\r\n ...props\r\n}: ComponentProps<typeof SeparatorPrimitive.Root> &\r\n Omit<VariantProps<typeof separatorVariants>, 'orientation'>): JSX.Element {\r\n return (\r\n <SeparatorPrimitive.Root\r\n className={separatorVariants({ align, className, orientation })}\r\n data-slot=\"separator\"\r\n decorative={decorative}\r\n orientation={orientation}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: SeparatorItem\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction SeparatorItem({\r\n className,\r\n ...props\r\n}: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn(\r\n 'absolute mx-2 bg-background px-2 text-muted-foreground text-sm',\r\n className\r\n )}\r\n data-slot=\"separator-item\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Separator, SeparatorItem }\r\n"],"names":["separatorVariants","tv","Separator","align","className","decorative","orientation","props","SeparatorPrimitive","SeparatorItem","cn"],"mappings":"kHAYA,IAAMA,EAAoBC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAG,CAC3B,KAAM,gDACN,SAAU,CACR,MAAO,CACL,OAAQ,iBACR,IAAK,cACL,MAAO,eACT,EACA,YAAa,CACX,WAAY,cACZ,SAAU,sBACZ,CACF,EACA,gBAAiB,CACf,MAAO,SACP,YAAa,YACf,CACF,GAMA,SAASC,EAAU,CACjBC,MAAAA,CAAK,CACLC,UAAAA,CAAS,CACTC,WAAAA,EAAa,EAAI,CACjBC,YAAAA,CAAW,CACX,GAAGC,EAEwD,EAC3D,MACE,UAACC,EAAAA,IAAuB,EACtB,UAAWR,EAAkB,CAAEG,MAAAA,EAAOC,UAAAA,EAAWE,YAAAA,CAAY,GAC7D,YAAU,YACV,WAAYD,EACZ,YAAaC,EACZ,GAAGC,CAAK,A,EAGf,CAMA,SAASE,EAAc,CACrBL,UAAAA,CAAS,CACT,GAAGG,EACmB,EACtB,MACE,UAAC,OACC,UAAWG,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,iEACAN,GAEF,YAAU,iBACT,GAAGG,CAAK,A,EAGf,Q"}
@@ -1,2 +1,2 @@
1
- import*as e from"react/jsx-runtime";import"react";import*as r from"../lib/utils.js";function t({className:t,...a}){return(0,e.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md bg-gray-50",t),...a})}t.displayName="Skeleton";export{t as Skeleton};
1
+ import*as t from"react/jsx-runtime";import*as e from"../lib/utils.js";function r({className:r,...s}){return(0,t.jsx)("div",{className:(0,e.cn)("animate-pulse rounded-lg bg-gray-100",r),"data-slot":"skeleton",...s})}export{r as Skeleton};
2
2
  //# sourceMappingURL=skeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\skeleton.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/skeleton.tsx"],"sourcesContent":["import React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nfunction Skeleton({\r\n className,\r\n ...props\r\n}: React.HTMLAttributes<HTMLDivElement>) {\r\n return (\r\n <div\r\n className={cn('animate-pulse rounded-md bg-gray-50', className)}\r\n {...props}\r\n />\r\n )\r\n}\r\nSkeleton.displayName = 'Skeleton'\r\n\r\nexport { Skeleton }\r\n"],"names":["Skeleton","className","props","cn"],"mappings":"oFAIA,SAASA,EAAS,CAChBC,UAAAA,CAAS,CACT,GAAGC,EACkC,EACrC,MACE,UAAC,OACC,UAAWC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAG,sCAAuCF,GACpD,GAAGC,CAAK,A,EAGf,CACAF,EAAS,WAAW,CAAG,kB"}
1
+ {"version":3,"file":"components\\skeleton.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/skeleton.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Skeleton\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Skeleton({ className, ...props }: ComponentProps<'div'>): JSX.Element {\r\n return (\r\n <div\r\n className={cn('animate-pulse rounded-lg bg-gray-100', className)}\r\n data-slot=\"skeleton\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Skeleton }\r\n"],"names":["Skeleton","className","props","cn"],"mappings":"sEAQA,SAASA,EAAS,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAA8B,EAC9D,MACE,UAAC,OACC,UAAWC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EAAG,uCAAwCF,GACtD,YAAU,WACT,GAAGC,CAAK,A,EAGf,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as a from"react/jsx-runtime";import*as e from"@radix-ui/react-switch";import*as r from"react";import*as t from"../lib/utils.js";let o=(0,r.forwardRef)(({className:r,...o},s)=>(0,a.jsx)(e.Root,{className:(0,t.cn)("relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky",r),ref:s,...o,children:(0,a.jsx)(e.Thumb,{className:"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300"})}));o.displayName="Switch";export{o as Switch};
2
+ import*as t from"react/jsx-runtime";import*as a from"@radix-ui/react-switch";import*as e from"../lib/utils.js";function r({className:r,...s}){return(0,t.jsx)(a.Root,{className:(0,e.cn)("relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky",r),"data-slot":"switch",...s,children:(0,t.jsx)(a.Thumb,{className:"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300","data-slot":"switch-thumb"})})}export{r as Switch};
3
3
  //# sourceMappingURL=switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\switch.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/switch.tsx"],"sourcesContent":["\r\n\r\nimport * as SwitchPrimitive from '@radix-ui/react-switch'\r\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst Switch = forwardRef<\r\n ElementRef<typeof SwitchPrimitive.Root>,\r\n ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>\r\n>(({ className, ...props }, ref) => {\r\n return (\r\n <SwitchPrimitive.Root\r\n className={cn(\r\n 'relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky',\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n >\r\n <SwitchPrimitive.Thumb className=\"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300\" />\r\n </SwitchPrimitive.Root>\r\n )\r\n})\r\nSwitch.displayName = 'Switch'\r\n\r\nexport { Switch }\r\n"],"names":["Switch","forwardRef","className","props","ref","SwitchPrimitive","cn"],"mappings":";uIAOA,IAAMA,EAASC,GAAAA,EAAAA,UAAAA,EAGb,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAExB,UAACC,EAAAA,IAAoB,EACnB,UAAWC,GAAAA,EAAAA,EAAAA,EACT,iKACAJ,GAEF,IAAKE,EACJ,GAAGD,CAAK,C,SAET,UAACE,EAAAA,KAAqB,EAAC,UAAU,iO,KAIvCL,CAAAA,EAAO,WAAW,CAAG,gB"}
1
+ {"version":3,"file":"components\\switch.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/switch.tsx"],"sourcesContent":["\r\n\r\nimport type { ComponentProps, JSX } from 'react'\r\n\r\nimport * as SwitchPrimitives from '@radix-ui/react-switch'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Switch\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Switch({\r\n className,\r\n ...props\r\n}: ComponentProps<typeof SwitchPrimitives.Root>): JSX.Element {\r\n return (\r\n <SwitchPrimitives.Root\r\n className={cn(\r\n 'relative h-8 w-14 rounded-full bg-gray-200 outline-none enabled:cursor-pointer disabled:cursor-not-allowed disabled:opacity-25 data-[state=checked]:bg-gbm-sky',\r\n className\r\n )}\r\n data-slot=\"switch\"\r\n {...props}\r\n >\r\n <SwitchPrimitives.Thumb\r\n className=\"block size-6 translate-x-1 rounded-full border bg-white transition-transform duration-100 will-change-transform data-[state=checked]:translate-x-7 data-[state=checked]:border-royal-100 data-[state=unchecked]:border-gray-300\"\r\n data-slot=\"switch-thumb\"\r\n />\r\n </SwitchPrimitives.Root>\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Switch }\r\n"],"names":["Switch","className","props","SwitchPrimitives","cn"],"mappings":";+GAYA,SAASA,EAAO,CACdC,UAAAA,CAAS,CACT,GAAGC,EAC0C,EAC7C,MACE,UAACC,EAAAA,IAAqB,EACpB,UAAWC,GAAAA,EAAAA,EAAAA,EACT,iKACAH,GAEF,YAAU,SACT,GAAGC,CAAK,C,SAET,UAACC,EAAAA,KAAsB,EACrB,UAAU,kOACV,YAAU,c,IAIlB,Q"}
@@ -1,2 +1,2 @@
1
- import*as e from"react/jsx-runtime";import*as r from"react";import*as i from"../lib/utils.js";let o=(0,r.forwardRef)(({className:r,...o},s)=>(0,e.jsx)("textarea",{className:(0,i.cn)("flex min-h-20 w-full rounded-md border border-zinc-200 bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-zinc-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),ref:s,...o}));o.displayName="Textarea";export{o as Textarea};
1
+ import*as r from"react/jsx-runtime";import*as i from"../lib/utils.js";function e({className:e,...o}){return(0,r.jsx)("textarea",{className:(0,i.cn)("flex min-h-16 w-full grow rounded-lg border border-stroke px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-gray-400 hover:not-disabled:not-focus-visible:border-gbm-sky/60 focus-visible:border-gbm-sky focus-visible:ring-3 focus-visible:ring-gbm-sky/50 disabled:opacity-50 aria-invalid:border-error hover:not-disabled:not-focus-within:aria-invalid:border-error/60 focus-within:aria-invalid:ring-error/20 md:text-sm dark:focus-within:aria-invalid:ring-error/40",e),"data-slot":"textarea",...o})}export{e as Textarea};
2
2
  //# sourceMappingURL=textarea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\textarea.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/textarea.tsx"],"sourcesContent":["import { TextareaHTMLAttributes, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nexport type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>\r\n\r\nconst Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(\r\n ({ className, ...props }, ref) => {\r\n return (\r\n <textarea\r\n className={cn(\r\n 'flex min-h-20 w-full rounded-md border border-zinc-200 bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-zinc-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gbm-sky focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\r\n className\r\n )}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\nTextarea.displayName = 'Textarea'\r\n\r\nexport { Textarea }\r\n"],"names":["Textarea","forwardRef","className","props","ref","cn"],"mappings":"8FAMA,IAAMA,EAAWC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,EACf,CAAC,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,IAEtB,UAAC,YACC,UAAWC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,iSACAH,GAEF,IAAKE,EACJ,GAAGD,CAAK,A,GAKjBH,CAAAA,EAAS,WAAW,CAAG,kB"}
1
+ {"version":3,"file":"components\\textarea.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/textarea.tsx"],"sourcesContent":["import type { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '@/lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Textarea\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Textarea({\r\n className,\r\n ...props\r\n}: ComponentProps<'textarea'>): JSX.Element {\r\n return (\r\n <textarea\r\n className={cn(\r\n 'flex min-h-16 w-full grow rounded-lg border border-stroke px-3 py-2 text-base shadow-xs outline-hidden transition placeholder:text-gray-400 hover:not-disabled:not-focus-visible:border-gbm-sky/60 focus-visible:border-gbm-sky focus-visible:ring-3 focus-visible:ring-gbm-sky/50 disabled:opacity-50 aria-invalid:border-error hover:not-disabled:not-focus-within:aria-invalid:border-error/60 focus-within:aria-invalid:ring-error/20 md:text-sm dark:focus-within:aria-invalid:ring-error/40',\r\n className\r\n )}\r\n data-slot=\"textarea\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Exports\r\n * -------------------------------------------------------------------------- */\r\n\r\nexport { Textarea }\r\n"],"names":["Textarea","className","props","cn"],"mappings":"sEAQA,SAASA,EAAS,CAChBC,UAAAA,CAAS,CACT,GAAGC,EACwB,EAC3B,MACE,UAAC,YACC,UAAWC,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,oeACAF,GAEF,YAAU,WACT,GAAGC,CAAK,A,EAGf,Q"}
@@ -1,2 +1,2 @@
1
- import*as t from"react/jsx-runtime";import*as r from"@radix-ui/react-slot";import*as e from"react";import*as a from"../lib/utils.js";let i=(0,e.forwardRef)(({asChild:e,className:i,...m},o)=>{let s=e?r.Slot:"h1";return(0,t.jsx)(s,{ref:o,className:(0,a.cn)("font-semibold text-[1.625rem] text-gbm-dark leading-8",i),...m})});i.displayName="Title";export{i as Title};
1
+ import*as t from"react/jsx-runtime";import*as r from"@radix-ui/react-slot";import*as e from"../lib/utils.js";function i({asChild:i,className:o,...a}){let s=i?r.Slot:"h1";return(0,t.jsx)(s,{className:(0,e.cn)("font-semibold text-[1.625rem] text-gbm-dark leading-8",o),"data-slot":"title",...a})}export{i as Title};
2
2
  //# sourceMappingURL=title.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\title.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/title.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\r\nimport { ComponentPropsWithoutRef, forwardRef } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst Title = forwardRef<\r\n HTMLHeadingElement,\r\n ComponentPropsWithoutRef<'h1'> & {\r\n asChild?: boolean\r\n }\r\n>(({ asChild, className, ...props }, ref) => {\r\n const Comp = asChild ? Slot : 'h1'\r\n\r\n return (\r\n <Comp\r\n ref={ref}\r\n className={cn(\r\n 'font-semibold text-[1.625rem] text-gbm-dark leading-8',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nTitle.displayName = 'Title'\r\n\r\nexport { Title }\r\n"],"names":["Title","forwardRef","asChild","className","props","ref","Comp","Slot","cn"],"mappings":"qIAKA,IAAMA,EAAQC,AAAAA,GAAAA,EAAAA,UAAAA,AAAAA,EAKZ,CAAC,CAAEC,QAAAA,CAAO,CAAEC,UAAAA,CAAS,CAAE,GAAGC,EAAO,CAAEC,KACnC,IAAMC,EAAOJ,EAAUK,EAAAA,IAAIA,CAAG,KAE9B,MACE,UAACD,EAAAA,CACC,IAAKD,EACL,UAAWG,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,wDACAL,GAED,GAAGC,CAAK,A,EAGf,EACAJ,CAAAA,EAAM,WAAW,CAAG,e"}
1
+ {"version":3,"file":"components\\title.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/title.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot'\r\nimport { ComponentProps, JSX } from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Title\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Title({\r\n asChild,\r\n className,\r\n ...props\r\n}: ComponentProps<'h1'> & {\r\n asChild?: boolean\r\n}): JSX.Element {\r\n const Comp = asChild ? Slot : 'h1'\r\n\r\n return (\r\n <Comp\r\n className={cn(\r\n 'font-semibold text-[1.625rem] text-gbm-dark leading-8',\r\n className\r\n )}\r\n data-slot=\"title\"\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport { Title }\r\n"],"names":["Title","asChild","className","props","Comp","Slot","cn"],"mappings":"6GASA,SAASA,EAAM,CACbC,QAAAA,CAAO,CACPC,UAAAA,CAAS,CACT,GAAGC,EAGJ,EACC,IAAMC,EAAOH,EAAUI,EAAAA,IAAIA,CAAG,KAE9B,MACE,UAACD,EAAAA,CACC,UAAWE,AAAAA,GAAAA,EAAAA,EAAAA,AAAAA,EACT,wDACAJ,GAEF,YAAU,QACT,GAAGC,CAAK,A,EAGf,Q"}
@@ -1,3 +1,3 @@
1
1
  'use client'
2
- import*as t from"react/jsx-runtime";import*as o from"@radix-ui/react-tooltip";import*as e from"react";import*as i from"../lib/utils.js";let r=o.Provider;r.displayName="TooltipProvider";let a=o.Root;a.displayName="Tooltip";let d=o.Trigger;d.displayName="TooltipTrigger";let s=e.forwardRef(({className:e,variant:r="primary",sideOffset:a=4,...d},s)=>(0,t.jsx)(o.Content,{ref:s,sideOffset:a,className:(0,i.cn)("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 z-50 animate-in overflow-hidden rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-sm shadow-md data-[state=closed]:animate-out",{"border-stroke bg-white text-gbm-dark":"primary"===r,"border-gbm-dark bg-gbm-dark text-white":"secondary"===r},e),...d}));s.displayName="TooltipContent";export{a as Tooltip,s as TooltipContent,r as TooltipProvider,d as TooltipTrigger};
2
+ import*as t from"react/jsx-runtime";import*as e from"@radix-ui/react-tooltip";import*as a from"../lib/utils.js";function o({...a}){return(0,t.jsx)(e.Provider,{"data-slot":"tooltip-provider",...a})}function d({...a}){return(0,t.jsx)(e.Root,{"data-slot":"tooltip",...a})}function i({...a}){return(0,t.jsx)(e.Trigger,{"data-slot":"tooltip-trigger",...a})}function r({className:o,children:d,sideOffset:i=4,variant:r="primary",...s}){return(0,t.jsx)(e.Portal,{children:(0,t.jsx)(e.Content,{className:(0,a.cn)("data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-xs data-[state=closed]:animate-out data-[state=delayed-open]:animate-in","max-w-(--radix-tooltip-content-available-width)",{"border-stroke bg-white text-gbm-dark":"primary"===r,"border-gbm-dark bg-gbm-dark text-white":"secondary"===r},o),collisionPadding:8,"data-slot":"tooltip-content",sideOffset:i,...s,children:d})})}export{d as Tooltip,r as TooltipContent,o as TooltipProvider,i as TooltipTrigger};
3
3
  //# sourceMappingURL=tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components\\tooltip.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/tooltip.tsx"],"sourcesContent":["\r\n\r\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\r\nimport * as React from 'react'\r\n\r\nimport { cn } from '../lib/utils'\r\n\r\nconst TooltipProvider = TooltipPrimitive.Provider\r\nTooltipProvider.displayName = 'TooltipProvider'\r\n\r\nconst Tooltip = TooltipPrimitive.Root\r\nTooltip.displayName = 'Tooltip'\r\n\r\nconst TooltipTrigger = TooltipPrimitive.Trigger\r\nTooltipTrigger.displayName = 'TooltipTrigger'\r\n\r\nconst TooltipContent = React.forwardRef<\r\n React.ElementRef<typeof TooltipPrimitive.Content>,\r\n React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {\r\n variant?: 'primary' | 'secondary'\r\n }\r\n>(({ className, variant = 'primary', sideOffset = 4, ...props }, ref) => (\r\n <TooltipPrimitive.Content\r\n ref={ref}\r\n sideOffset={sideOffset}\r\n className={cn(\r\n 'fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-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 z-50 animate-in overflow-hidden rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-sm shadow-md data-[state=closed]:animate-out',\r\n {\r\n 'border-stroke bg-white text-gbm-dark': variant === 'primary',\r\n 'border-gbm-dark bg-gbm-dark text-white': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n {...props}\r\n />\r\n))\r\nTooltipContent.displayName = 'TooltipContent'\r\n\r\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\r\n"],"names":["TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","React","className","variant","sideOffset","props","ref","cn"],"mappings":";wIAOA,IAAMA,EAAkBC,EAAAA,QAAyB,CACjDD,EAAgB,WAAW,CAAG,kBAE9B,IAAME,EAAUD,EAAAA,IAAqB,CACrCC,EAAQ,WAAW,CAAG,UAEtB,IAAMC,EAAiBF,EAAAA,OAAwB,CAC/CE,EAAe,WAAW,CAAG,iBAE7B,IAAMC,EAAiBC,EAAAA,UAAgB,CAKrC,CAAC,CAAEC,UAAAA,CAAS,CAAEC,QAAAA,EAAU,SAAS,CAAEC,WAAAA,EAAa,CAAC,CAAE,GAAGC,EAAO,CAAEC,IAC/D,UAACT,EAAAA,OAAwB,EACvB,IAAKS,EACL,WAAYF,EACZ,UAAWG,GAAAA,EAAAA,EAAAA,EACT,yXACA,CACE,uCAAwCJ,YAAAA,EACxC,yCAA0CA,cAAAA,CAC5C,EACAD,GAED,GAAGG,CAAK,GAGbL,CAAAA,EAAe,WAAW,CAAG,wB"}
1
+ {"version":3,"file":"components\\tooltip.js","sources":["webpack://@gbmtech/aurora-ui/./src/components/tooltip.tsx"],"sourcesContent":["\r\n\r\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip'\r\n\r\nimport { ComponentProps, JSX } from 'react'\r\nimport { cn } from '../lib/utils'\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipProvider\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipProvider({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element {\r\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: Tooltip\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction Tooltip({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element {\r\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipTrigger\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipTrigger({\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element {\r\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />\r\n}\r\n\r\n/* -----------------------------------------------------------------------------\r\n * Component: TooltipContent\r\n * -------------------------------------------------------------------------- */\r\n\r\nfunction TooltipContent({\r\n className,\r\n children,\r\n sideOffset = 4,\r\n variant = 'primary',\r\n ...props\r\n}: ComponentProps<typeof TooltipPrimitive.Content> & {\r\n variant?: 'primary' | 'secondary'\r\n}): JSX.Element {\r\n return (\r\n <TooltipPrimitive.Portal>\r\n <TooltipPrimitive.Content\r\n className={cn(\r\n 'data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-[state=delayed-open]:data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:data-[side=right]:slide-in-from-left-2 data-[state=delayed-open]:data-[side=bottom]:slide-in-from-top-2 data-[state=delayed-open]:data-[side=left]:slide-in-from-right-2 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:data-[side=top]:slide-out-to-bottom-2 data-[state=closed]:data-[side=right]:slide-out-to-left-2 data-[state=closed]:data-[side=bottom]:slide-out-to-top-2 data-[state=closed]:data-[side=left]:slide-out-to-right-2 z-50 rounded-md border bg-white px-3 py-1.5 text-gbm-dark text-xs data-[state=closed]:animate-out data-[state=delayed-open]:animate-in',\r\n 'max-w-(--radix-tooltip-content-available-width)',\r\n {\r\n 'border-stroke bg-white text-gbm-dark': variant === 'primary',\r\n 'border-gbm-dark bg-gbm-dark text-white': variant === 'secondary',\r\n },\r\n className\r\n )}\r\n collisionPadding={8}\r\n data-slot=\"tooltip-content\"\r\n sideOffset={sideOffset}\r\n {...props}\r\n >\r\n {children}\r\n </TooltipPrimitive.Content>\r\n </TooltipPrimitive.Portal>\r\n )\r\n}\r\n\r\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\r\n"],"names":["TooltipProvider","props","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","className","children","sideOffset","variant","cn"],"mappings":";gHAWA,SAASA,EAAgB,CACvB,GAAGC,EAC8C,EACjD,MAAO,UAACC,EAAAA,QAAyB,EAAC,YAAU,mBAAoB,GAAGD,CAAK,EAC1E,CAMA,SAASE,EAAQ,CACf,GAAGF,EAC0C,EAC7C,MAAO,UAACC,EAAAA,IAAqB,EAAC,YAAU,UAAW,GAAGD,CAAK,EAC7D,CAMA,SAASG,EAAe,CACtB,GAAGH,EAC6C,EAChD,MAAO,UAACC,EAAAA,OAAwB,EAAC,YAAU,kBAAmB,GAAGD,CAAK,EACxE,CAMA,SAASI,EAAe,CACtBC,UAAAA,CAAS,CACTC,SAAAA,CAAQ,CACRC,WAAAA,EAAa,CAAC,CACdC,QAAAA,EAAU,SAAS,CACnB,GAAGR,EAGJ,EACC,MACE,UAACC,EAAAA,MAAuB,E,SACtB,UAACA,EAAAA,OAAwB,EACvB,UAAWQ,GAAAA,EAAAA,EAAAA,EACT,6vBACA,kDACA,CACE,uCAAwCD,YAAAA,EACxC,yCAA0CA,cAAAA,CAC5C,EACAH,GAEF,iBAAkB,EAClB,YAAU,kBACV,WAAYE,EACX,GAAGP,CAAK,C,SAERM,C,IAIT,Q"}
@@ -1,4 +1,38 @@
1
+ import type { ComponentProps, JSX } from 'react';
1
2
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
2
- declare const Separator: import("react").ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
3
- export { Separator };
3
+ import type { VariantProps } from '../lib/utils';
4
+ declare const separatorVariants: import("tailwind-variants").TVReturnType<{
5
+ align: {
6
+ center: string;
7
+ end: string;
8
+ start: string;
9
+ };
10
+ orientation: {
11
+ horizontal: string;
12
+ vertical: string;
13
+ };
14
+ }, undefined, "bg-stroke relative flex shrink-0 items-center", {
15
+ align: {
16
+ center: string;
17
+ end: string;
18
+ start: string;
19
+ };
20
+ orientation: {
21
+ horizontal: string;
22
+ vertical: string;
23
+ };
24
+ }, undefined, import("tailwind-variants").TVReturnType<{
25
+ align: {
26
+ center: string;
27
+ end: string;
28
+ start: string;
29
+ };
30
+ orientation: {
31
+ horizontal: string;
32
+ vertical: string;
33
+ };
34
+ }, undefined, "bg-stroke relative flex shrink-0 items-center", unknown, unknown, undefined>>;
35
+ declare function Separator({ align, className, decorative, orientation, ...props }: ComponentProps<typeof SeparatorPrimitive.Root> & Omit<VariantProps<typeof separatorVariants>, 'orientation'>): JSX.Element;
36
+ declare function SeparatorItem({ className, ...props }: ComponentProps<'div'>): JSX.Element;
37
+ export { Separator, SeparatorItem };
4
38
  //# sourceMappingURL=separator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/separator.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAK/D,QAAA,MAAM,SAAS,2LAoBd,CAAA;AAGD,OAAO,EAAE,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAQ/C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4FAiBrB,CAAA;AAMF,iBAAS,SAAS,CAAC,EACjB,KAAK,EACL,SAAS,EACT,UAAiB,EACjB,WAAW,EACX,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,GAC/C,IAAI,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,EAAE,aAAa,CAAC,GAAG,GAAG,CAAC,OAAO,CAU1E;AAMD,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,CAWrC;AAMD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,CAAA"}
@@ -1,7 +1,4 @@
1
- import React from 'react';
2
- declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Skeleton {
4
- var displayName: string;
5
- }
1
+ import type { ComponentProps, JSX } from 'react';
2
+ declare function Skeleton({ className, ...props }: ComponentProps<'div'>): JSX.Element;
6
3
  export { Skeleton };
7
4
  //# sourceMappingURL=skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAOtC;kBAVQ,QAAQ;;;AAajB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAQhD,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,OAAO,CAQ7E;AAMD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,4 +1,5 @@
1
- import * as SwitchPrimitive from '@radix-ui/react-switch';
2
- declare const Switch: import("react").ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
1
+ import type { ComponentProps, JSX } from 'react';
2
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
3
+ declare function Switch({ className, ...props }: ComponentProps<typeof SwitchPrimitives.Root>): JSX.Element;
3
4
  export { Switch };
4
5
  //# sourceMappingURL=switch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAKzD,QAAA,MAAM,MAAM,2LAgBV,CAAA;AAGF,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../src/components/switch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAA;AAQ1D,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,OAAO,CAgB5D;AAMD,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1,5 +1,4 @@
1
- import { TextareaHTMLAttributes } from 'react';
2
- export type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>;
3
- declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
1
+ import type { ComponentProps, JSX } from 'react';
2
+ declare function Textarea({ className, ...props }: ComponentProps<'textarea'>): JSX.Element;
4
3
  export { Textarea };
5
4
  //# sourceMappingURL=textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,OAAO,CAAA;AAI1D,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAA;AAEvE,QAAA,MAAM,QAAQ,+GAab,CAAA;AAGD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAQhD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,GAAG,CAAC,OAAO,CAW1C;AAMD,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,5 +1,6 @@
1
- declare const Title: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
1
+ import { ComponentProps, JSX } from 'react';
2
+ declare function Title({ asChild, className, ...props }: ComponentProps<'h1'> & {
2
3
  asChild?: boolean;
3
- } & import("react").RefAttributes<HTMLHeadingElement>>;
4
+ }): JSX.Element;
4
5
  export { Title };
5
6
  //# sourceMappingURL=title.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,KAAK;cAGG,OAAO;sDAenB,CAAA;AAGF,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAQ3C,iBAAS,KAAK,CAAC,EACb,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,GAAG,CAAC,OAAO,CAad;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
2
- import * as React from 'react';
3
- declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
- declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
- declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
7
- variant?: "primary" | "secondary";
8
- } & React.RefAttributes<HTMLDivElement>>;
2
+ import { ComponentProps, JSX } from 'react';
3
+ declare function TooltipProvider({ ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): JSX.Element;
4
+ declare function Tooltip({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
5
+ declare function TooltipTrigger({ ...props }: ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
6
+ declare function TooltipContent({ className, children, sideOffset, variant, ...props }: ComponentProps<typeof TooltipPrimitive.Content> & {
7
+ variant?: 'primary' | 'secondary';
8
+ }): JSX.Element;
9
9
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
10
10
  //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,eAAe,iDAA4B,CAAA;AAGjD,QAAA,MAAM,OAAO,yCAAwB,CAAA;AAGrC,QAAA,MAAM,cAAc,gHAA2B,CAAA;AAG/C,QAAA,MAAM,cAAc;cAGN,SAAS,GAAG,WAAW;wCAgBnC,CAAA;AAGF,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAE3D,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAO3C,iBAAS,eAAe,CAAC,EACvB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,OAAO,CAEhE;AAMD,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,OAAO,CAE5D;AAMD,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,CAE/D;AAMD,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,UAAc,EACd,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACnD,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAClC,GAAG,GAAG,CAAC,OAAO,CAsBd;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gbmtech/aurora-ui",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/types/index.d.ts",