@xjur-ui/react 2.2.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/chunk-26RT6WUU.js +2 -0
- package/dist/chunk-26RT6WUU.js.map +1 -0
- package/dist/chunk-2TVBY4IY.js +2 -0
- package/dist/chunk-2TVBY4IY.js.map +1 -0
- package/dist/chunk-3DZWZLV3.js +2 -0
- package/dist/chunk-3DZWZLV3.js.map +1 -0
- package/dist/chunk-3LWJK7RE.js +2 -0
- package/dist/chunk-3LWJK7RE.js.map +1 -0
- package/dist/chunk-3QA5HU4T.js +2 -0
- package/dist/chunk-3QA5HU4T.js.map +1 -0
- package/dist/chunk-3RD2PGPH.js +2 -0
- package/dist/chunk-3RD2PGPH.js.map +1 -0
- package/dist/chunk-4GDW5WIQ.js +2 -0
- package/dist/chunk-4GDW5WIQ.js.map +1 -0
- package/dist/{chunk-TTKENFBF.js → chunk-4NBJXNQ7.js} +2 -2
- package/dist/{chunk-TTKENFBF.js.map → chunk-4NBJXNQ7.js.map} +1 -1
- package/dist/chunk-4ZEXJODE.js +2 -0
- package/dist/chunk-4ZEXJODE.js.map +1 -0
- package/dist/chunk-5CA552M6.js +2 -0
- package/dist/chunk-5CA552M6.js.map +1 -0
- package/dist/chunk-5Z3AIBBS.js +2 -0
- package/dist/{chunk-JGPHBUVM.js.map → chunk-5Z3AIBBS.js.map} +1 -1
- package/dist/chunk-6EDRVSCQ.js +2 -0
- package/dist/{chunk-6PHXO2YA.js.map → chunk-6EDRVSCQ.js.map} +1 -1
- package/dist/chunk-6KKZP5G3.js +2 -0
- package/dist/chunk-6KKZP5G3.js.map +1 -0
- package/dist/chunk-7DGDSULM.js +2 -0
- package/dist/chunk-7DGDSULM.js.map +1 -0
- package/dist/chunk-7EEEHHLL.js +2 -0
- package/dist/chunk-7EEEHHLL.js.map +1 -0
- package/dist/{chunk-SLMHDBWO.js → chunk-AGO3UKJY.js} +2 -2
- package/dist/{chunk-SLMHDBWO.js.map → chunk-AGO3UKJY.js.map} +1 -1
- package/dist/chunk-AIQVBX52.js +2 -0
- package/dist/chunk-AIQVBX52.js.map +1 -0
- package/dist/{chunk-HLWHETF5.js → chunk-BIPU447J.js} +2 -2
- package/dist/{chunk-HLWHETF5.js.map → chunk-BIPU447J.js.map} +1 -1
- package/dist/chunk-BXWTGQRV.js +2 -0
- package/dist/{chunk-MTIWFWRN.js.map → chunk-BXWTGQRV.js.map} +1 -1
- package/dist/chunk-C4YYI53B.js +2 -0
- package/dist/chunk-C4YYI53B.js.map +1 -0
- package/dist/chunk-CCSIBUKX.js +2 -0
- package/dist/chunk-CCSIBUKX.js.map +1 -0
- package/dist/chunk-CTBO27FM.js +2 -0
- package/dist/chunk-CTBO27FM.js.map +1 -0
- package/dist/chunk-DZSAQN5T.js +2 -0
- package/dist/chunk-DZSAQN5T.js.map +1 -0
- package/dist/chunk-EDVE3ICB.js +2 -0
- package/dist/chunk-EDVE3ICB.js.map +1 -0
- package/dist/chunk-EOKFSNH5.js +2 -0
- package/dist/chunk-EOKFSNH5.js.map +1 -0
- package/dist/chunk-FOY43MIQ.js +2 -0
- package/dist/chunk-FOY43MIQ.js.map +1 -0
- package/dist/chunk-FU4H45BR.js +2 -0
- package/dist/chunk-FU4H45BR.js.map +1 -0
- package/dist/chunk-H4XO5KQZ.js +2 -0
- package/dist/chunk-H4XO5KQZ.js.map +1 -0
- package/dist/chunk-HIT33DXM.js +2 -0
- package/dist/chunk-HIT33DXM.js.map +1 -0
- package/dist/chunk-HRG3L64O.js +2 -0
- package/dist/chunk-HRG3L64O.js.map +1 -0
- package/dist/chunk-IQKIIIQ3.js +2 -0
- package/dist/chunk-IQKIIIQ3.js.map +1 -0
- package/dist/chunk-JHRYQ25B.js +2 -0
- package/dist/chunk-JHRYQ25B.js.map +1 -0
- package/dist/chunk-LA22O6VE.js +2 -0
- package/dist/chunk-LA22O6VE.js.map +1 -0
- package/dist/{chunk-BYXTOSM6.js → chunk-LWBGC4MI.js} +2 -2
- package/dist/{chunk-BYXTOSM6.js.map → chunk-LWBGC4MI.js.map} +1 -1
- package/dist/chunk-NDXYABGR.js +2 -0
- package/dist/chunk-NDXYABGR.js.map +1 -0
- package/dist/chunk-NQFPNHFQ.js +2 -0
- package/dist/chunk-NQFPNHFQ.js.map +1 -0
- package/dist/chunk-NRQWDEPL.js +2 -0
- package/dist/chunk-NRQWDEPL.js.map +1 -0
- package/dist/chunk-OGRUMTZC.js +2 -0
- package/dist/chunk-OGRUMTZC.js.map +1 -0
- package/dist/{chunk-OKSGVAQQ.js → chunk-OWFC7RTB.js} +2 -2
- package/dist/{chunk-OKSGVAQQ.js.map → chunk-OWFC7RTB.js.map} +1 -1
- package/dist/chunk-OZ7TAILP.js +2 -0
- package/dist/chunk-OZ7TAILP.js.map +1 -0
- package/dist/chunk-PN2PHVKQ.js +2 -0
- package/dist/chunk-PN2PHVKQ.js.map +1 -0
- package/dist/chunk-QBBE3G4O.js +2 -0
- package/dist/chunk-QBBE3G4O.js.map +1 -0
- package/dist/{chunk-4M3WR2KJ.js → chunk-RAW5SN5A.js} +2 -2
- package/dist/{chunk-4M3WR2KJ.js.map → chunk-RAW5SN5A.js.map} +1 -1
- package/dist/chunk-RCP3J3FN.js +2 -0
- package/dist/chunk-RCP3J3FN.js.map +1 -0
- package/dist/chunk-RSILFO3M.js +2 -0
- package/dist/chunk-RSILFO3M.js.map +1 -0
- package/dist/chunk-RZQ2HH5A.js +2 -0
- package/dist/chunk-RZQ2HH5A.js.map +1 -0
- package/dist/chunk-SLQNE7TL.js +2 -0
- package/dist/chunk-SLQNE7TL.js.map +1 -0
- package/dist/chunk-TVYYMHLA.js +2 -0
- package/dist/chunk-TVYYMHLA.js.map +1 -0
- package/dist/chunk-UDJUMHNY.js +2 -0
- package/dist/chunk-UDJUMHNY.js.map +1 -0
- package/dist/chunk-VWS2FZKZ.js +2 -0
- package/dist/chunk-VWS2FZKZ.js.map +1 -0
- package/dist/chunk-WFZACDDH.js +2 -0
- package/dist/chunk-WFZACDDH.js.map +1 -0
- package/dist/chunk-WOVO46OF.js +2 -0
- package/dist/chunk-WOVO46OF.js.map +1 -0
- package/dist/chunk-WUHYNXHE.js +2 -0
- package/dist/chunk-WUHYNXHE.js.map +1 -0
- package/dist/chunk-WW4B3LUO.js +2 -0
- package/dist/chunk-WW4B3LUO.js.map +1 -0
- package/dist/chunk-XJFPH3IG.js +2 -0
- package/dist/chunk-XJFPH3IG.js.map +1 -0
- package/dist/chunk-XPC3GTK7.js +2 -0
- package/dist/chunk-XPC3GTK7.js.map +1 -0
- package/dist/chunk-XU7DDF5D.js +2 -0
- package/dist/chunk-XU7DDF5D.js.map +1 -0
- package/dist/chunk-YDRZPQ3J.js +2 -0
- package/dist/chunk-YDRZPQ3J.js.map +1 -0
- package/dist/chunk-YHG3FCHM.js +2 -0
- package/dist/chunk-YHG3FCHM.js.map +1 -0
- package/dist/chunk-ZHLE6XEC.js +2 -0
- package/dist/chunk-ZHLE6XEC.js.map +1 -0
- package/dist/components/carousel/carousel-action.d.ts +8 -0
- package/dist/components/carousel/carousel-action.js +2 -0
- package/dist/components/carousel/carousel-action.js.map +1 -0
- package/dist/components/carousel/carousel-content.d.ts +6 -0
- package/dist/components/carousel/carousel-content.js +2 -0
- package/dist/components/carousel/carousel-content.js.map +1 -0
- package/dist/components/carousel/carousel-item.d.ts +6 -0
- package/dist/components/carousel/carousel-item.js +2 -0
- package/dist/components/carousel/carousel-item.js.map +1 -0
- package/dist/components/carousel/carousel-root.d.ts +13 -0
- package/dist/components/carousel/carousel-root.js +2 -0
- package/dist/components/carousel/carousel-root.js.map +1 -0
- package/dist/components/carousel/index.d.ts +6 -0
- package/dist/components/carousel/index.js +2 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/chip.d.ts +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/chip.js.map +1 -1
- package/dist/components/controls/date-picker/date-picker-caption.d.ts +6 -0
- package/dist/components/controls/date-picker/date-picker-caption.js +2 -0
- package/dist/components/controls/date-picker/date-picker-caption.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-content.d.ts +7 -0
- package/dist/components/controls/date-picker/date-picker-content.js +2 -0
- package/dist/components/controls/date-picker/date-picker-content.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-icon.d.ts +10 -0
- package/dist/components/controls/date-picker/date-picker-icon.js +2 -0
- package/dist/components/controls/date-picker/date-picker-icon.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-label.d.ts +7 -0
- package/dist/components/controls/date-picker/date-picker-label.js +2 -0
- package/dist/components/controls/date-picker/date-picker-label.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-root.d.ts +10 -0
- package/dist/components/controls/date-picker/date-picker-root.js +2 -0
- package/dist/components/controls/date-picker/date-picker-root.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-slot.d.ts +6 -0
- package/dist/components/controls/date-picker/date-picker-slot.js +2 -0
- package/dist/components/controls/date-picker/date-picker-slot.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-styles.d.ts +65 -0
- package/dist/components/controls/date-picker/date-picker-styles.js +2 -0
- package/dist/components/controls/date-picker/date-picker-styles.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-trigger.d.ts +7 -0
- package/dist/components/controls/date-picker/date-picker-trigger.js +2 -0
- package/dist/components/controls/date-picker/date-picker-trigger.js.map +1 -0
- package/dist/components/controls/date-picker/date-picker-value.d.ts +8 -0
- package/dist/components/controls/date-picker/date-picker-value.js +2 -0
- package/dist/components/controls/date-picker/date-picker-value.js.map +1 -0
- package/dist/components/controls/date-picker/index.d.ts +16 -0
- package/dist/components/controls/date-picker/index.js +2 -0
- package/dist/components/controls/date-picker/index.js.map +1 -0
- package/dist/components/controls/date-picker.d.ts +2 -1
- package/dist/components/controls/date-picker.js +1 -1
- package/dist/components/controls/date-picker.js.map +1 -1
- package/dist/components/controls/floating-label.js +1 -1
- package/dist/components/controls/input/index.d.ts +21 -0
- package/dist/components/controls/input/index.js +2 -0
- package/dist/components/controls/input/index.js.map +1 -0
- package/dist/components/controls/input/input-action.d.ts +6 -0
- package/dist/components/controls/input/input-action.js +2 -0
- package/dist/components/controls/input/input-action.js.map +1 -0
- package/dist/components/controls/input/input-caption.d.ts +6 -0
- package/dist/components/controls/input/input-caption.js +2 -0
- package/dist/components/controls/input/input-caption.js.map +1 -0
- package/dist/components/controls/input/input-content.d.ts +6 -0
- package/dist/components/controls/input/input-content.js +2 -0
- package/dist/components/controls/input/input-content.js.map +1 -0
- package/dist/components/controls/input/input-currency.d.ts +13 -0
- package/dist/components/controls/input/input-currency.js +2 -0
- package/dist/components/controls/input/input-currency.js.map +1 -0
- package/dist/components/controls/input/input-icon.d.ts +10 -0
- package/dist/components/controls/input/input-icon.js +2 -0
- package/dist/components/controls/{input.js.map → input/input-icon.js.map} +1 -1
- package/dist/components/controls/input/input-label.d.ts +7 -0
- package/dist/components/controls/input/input-label.js +2 -0
- package/dist/components/controls/input/input-label.js.map +1 -0
- package/dist/components/controls/input/input-mask.d.ts +6 -0
- package/dist/components/controls/input/input-mask.js +2 -0
- package/dist/components/controls/input/input-mask.js.map +1 -0
- package/dist/components/controls/input/input-number.d.ts +8 -0
- package/dist/components/controls/input/input-number.js +2 -0
- package/dist/components/controls/input/input-number.js.map +1 -0
- package/dist/components/controls/input/input-numeric-stepper.d.ts +8 -0
- package/dist/components/controls/input/input-numeric-stepper.js +2 -0
- package/dist/components/controls/input/input-numeric-stepper.js.map +1 -0
- package/dist/components/controls/input/input-root.d.ts +9 -0
- package/dist/components/controls/input/input-root.js +2 -0
- package/dist/components/controls/input/input-root.js.map +1 -0
- package/dist/components/controls/input/input-slot.d.ts +6 -0
- package/dist/components/controls/input/input-slot.js +2 -0
- package/dist/components/controls/input/input-slot.js.map +1 -0
- package/dist/components/controls/input/input-styles.d.ts +71 -0
- package/dist/components/controls/input/input-styles.js +2 -0
- package/dist/components/controls/input/input-styles.js.map +1 -0
- package/dist/components/controls/input/input-text.d.ts +6 -0
- package/dist/components/controls/input/input-text.js +2 -0
- package/dist/components/controls/input/input-text.js.map +1 -0
- package/dist/components/controls/input/input-trigger.d.ts +6 -0
- package/dist/components/controls/input/input-trigger.js +2 -0
- package/dist/components/controls/input/input-trigger.js.map +1 -0
- package/dist/components/controls/rating.js +1 -1
- package/dist/components/controls/rich-editor.js +1 -1
- package/dist/components/controls/rich-editor.js.map +1 -1
- package/dist/components/controls/search-input.d.ts +2 -2
- package/dist/components/controls/search-input.js +1 -1
- package/dist/components/controls/search-selector.js +1 -1
- package/dist/components/controls/search-selector.js.map +1 -1
- package/dist/components/controls/select/index.d.ts +27 -0
- package/dist/components/controls/select/index.js +2 -0
- package/dist/components/controls/select/index.js.map +1 -0
- package/dist/components/controls/select/select-caption.d.ts +6 -0
- package/dist/components/controls/select/select-caption.js +2 -0
- package/dist/components/controls/select/select-caption.js.map +1 -0
- package/dist/components/controls/select/select-content.d.ts +7 -0
- package/dist/components/controls/select/select-content.js +2 -0
- package/dist/components/controls/select/select-content.js.map +1 -0
- package/dist/components/controls/select/select-header-title.d.ts +10 -0
- package/dist/components/controls/select/select-header-title.js +2 -0
- package/dist/components/controls/select/select-header-title.js.map +1 -0
- package/dist/components/controls/select/select-header.d.ts +7 -0
- package/dist/components/controls/select/select-header.js +2 -0
- package/dist/components/controls/select/select-header.js.map +1 -0
- package/dist/components/controls/select/select-icon.d.ts +10 -0
- package/dist/components/controls/select/select-icon.js +2 -0
- package/dist/components/controls/{select.js.map → select/select-icon.js.map} +1 -1
- package/dist/components/controls/select/select-multi-value.d.ts +16 -0
- package/dist/components/controls/select/select-multi-value.js +2 -0
- package/dist/components/controls/select/select-multi-value.js.map +1 -0
- package/dist/components/controls/select/select-option-text.d.ts +9 -0
- package/dist/components/controls/select/select-option-text.js +2 -0
- package/dist/components/controls/select/select-option-text.js.map +1 -0
- package/dist/components/controls/select/select-option.d.ts +9 -0
- package/dist/components/controls/select/select-option.js +2 -0
- package/dist/components/controls/select/select-option.js.map +1 -0
- package/dist/components/controls/select/select-options.d.ts +7 -0
- package/dist/components/controls/select/select-options.js +2 -0
- package/dist/components/controls/select/select-options.js.map +1 -0
- package/dist/components/controls/select/select-root.d.ts +10 -0
- package/dist/components/controls/select/select-root.js +2 -0
- package/dist/components/controls/select/select-root.js.map +1 -0
- package/dist/components/controls/select/select-slot.d.ts +6 -0
- package/dist/components/controls/select/select-slot.js +2 -0
- package/dist/components/controls/select/select-slot.js.map +1 -0
- package/dist/components/controls/select/select-styles.d.ts +65 -0
- package/dist/components/controls/select/select-styles.js +2 -0
- package/dist/components/controls/select/select-styles.js.map +1 -0
- package/dist/components/controls/select/select-trigger.d.ts +7 -0
- package/dist/components/controls/select/select-trigger.js +2 -0
- package/dist/components/controls/select/select-trigger.js.map +1 -0
- package/dist/components/controls/select/select-value.d.ts +8 -0
- package/dist/components/controls/select/select-value.js +2 -0
- package/dist/components/controls/select/select-value.js.map +1 -0
- package/dist/components/controls/slider.js +1 -1
- package/dist/components/custom/pessoa/index.js +1 -1
- package/dist/components/dropdown-menu.d.ts +4 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/full-calendar/calendar-cell.js +1 -1
- package/dist/components/full-calendar/calendar-day-view.js +1 -1
- package/dist/components/full-calendar/calendar-month-view.js +1 -1
- package/dist/components/full-calendar/calendar-more-events-dropdown.js +1 -1
- package/dist/components/full-calendar/calendar-toggle-view.js +1 -1
- package/dist/components/full-calendar/calendar-view-renderer.js +1 -1
- package/dist/components/full-calendar/calendar-week-view.js +1 -1
- package/dist/components/full-calendar/index.js +1 -1
- package/dist/components/list/context/list-context.d.ts +10 -0
- package/dist/components/list/context/list-context.js +2 -0
- package/dist/components/list/context/list-context.js.map +1 -0
- package/dist/components/list/index.d.ts +12 -0
- package/dist/components/list/index.js +2 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/list/list-content.d.ts +9 -0
- package/dist/components/list/list-content.js +2 -0
- package/dist/components/list/list-content.js.map +1 -0
- package/dist/components/list/list-header-title.d.ts +9 -0
- package/dist/components/list/list-header-title.js +2 -0
- package/dist/components/list/list-header-title.js.map +1 -0
- package/dist/components/list/list-header.d.ts +8 -0
- package/dist/components/list/list-header.js +2 -0
- package/dist/components/list/list-header.js.map +1 -0
- package/dist/components/list/list-item.d.ts +14 -0
- package/dist/components/list/list-item.js +2 -0
- package/dist/components/list/list-item.js.map +1 -0
- package/dist/components/list/list-root.d.ts +12 -0
- package/dist/components/list/list-root.js +2 -0
- package/dist/components/list/list-root.js.map +1 -0
- package/dist/components/steps/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/typography.d.ts +1 -1
- package/dist/components/upload.js +1 -1
- package/dist/components/upload.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/package.json +10 -8
- package/dist/chunk-6PHXO2YA.js +0 -2
- package/dist/chunk-DTNZXDCY.js +0 -2
- package/dist/chunk-DTNZXDCY.js.map +0 -1
- package/dist/chunk-JGPHBUVM.js +0 -2
- package/dist/chunk-MTIWFWRN.js +0 -2
- package/dist/chunk-TQWBQ452.js +0 -2
- package/dist/chunk-TQWBQ452.js.map +0 -1
- package/dist/chunk-XGPKBYDY.js +0 -2
- package/dist/chunk-XGPKBYDY.js.map +0 -1
- package/dist/chunk-YOLTIAFT.js +0 -2
- package/dist/chunk-YOLTIAFT.js.map +0 -1
- package/dist/components/controls/input.d.ts +0 -96
- package/dist/components/controls/input.js +0 -2
- package/dist/components/controls/select.d.ts +0 -93
- package/dist/components/controls/select.js +0 -2
- package/dist/components/horizontal-scroll.d.ts +0 -11
- package/dist/components/horizontal-scroll.js +0 -2
- package/dist/components/horizontal-scroll.js.map +0 -1
- package/dist/components/list.d.ts +0 -25
- package/dist/components/list.js +0 -2
- package/dist/components/list.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-header.tsx"],"names":["SelectHeader","props","jsx","ListHeader"],"mappings":"wEAGO,SAASA,CAAAA,CAAaC,CAAAA,CAA0C,CACrE,OAAOC,GAAAA,CAACC,CAAAA,CAAA,CAAY,GAAGF,CAAAA,CAAO,CAChC","file":"chunk-JHRYQ25B.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { ListHeader } from '../../list'\n\nexport function SelectHeader(props: ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-NQFPNHFQ.js';import {twMerge}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function i({className:t,...r}){return jsx(a,{className:twMerge(t,"cursor-pointer"),...r})}export{i as a};//# sourceMappingURL=chunk-LA22O6VE.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-LA22O6VE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-option.tsx"],"names":["SelectOption","className","props","jsx","ListItem","twMerge"],"mappings":"4GAIO,SAASA,CAAAA,CAAa,CAC3B,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,EAAoC,CAClC,OACEC,GAAAA,CAACC,CAAAA,CAAA,CAAS,SAAA,CAAWC,OAAAA,CAAQJ,CAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGC,CAAAA,CAAO,CAE1E","file":"chunk-LA22O6VE.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { ListItem } from '../../list'\n\nexport function SelectOption({\n className,\n ...props\n}: ComponentProps<typeof ListItem>) {\n return (\n <ListItem className={twMerge(className, 'cursor-pointer')} {...props} />\n )\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-4NBJXNQ7.js';import {m,n,k}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a}from'./chunk-EIG6CBTQ.js';import {useMemo,useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function w(){let{selectedDate:a$2,events:o}=b(),p=useMemo(()=>m(a$2),[a$2]),y=useCallback(r=>n(o,r.date),[o]);return jsxs("div",{className:"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border",children:[jsx("div",{className:"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7","data-slot":"month-header",children:k.map(r=>jsx("div",{className:cx("p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0"),"data-slot":"month-header-weekday",children:jsx(a,{size:"sm",variant:"label",weight:"medium",children:r})},r))}),jsx("div",{className:"grid h-full grid-cols-7 overflow-hidden","data-slot":"month-day-cells",children:p.map((r,l)=>{let b=(l+1)%7===0,h=(l+1)%7===1;return jsx("div",{className:cx("border-border-layer-2 border-t border-r",b&&"pr-small-2x border-r-0",h&&"pl-small-2x"),children:jsx(a$1,{cell:r,events:y(r)})},`${r.date.toISOString()}-${l}`)})})]})}export{w as a};//# sourceMappingURL=chunk-LWBGC4MI.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-LWBGC4MI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/full-calendar/calendar-month-view.tsx"],"names":["CalendarMonthView","selectedDate","events","useFullCalendar","monthDaysCells","useMemo","getDaysInMonth","getEventsForDayCell","useCallback","cell","getEventsForDay","jsxs","jsx","WEEKDAYS","weekday","cx","Typography","index","isLastColumn","isFirstColumn","CalendarCell"],"mappings":"2QAQO,SAASA,CAAAA,EAAoB,CAClC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,CAAAA,CAAiBC,QACrB,IAAMC,CAAAA,CAAeL,GAAY,CAAA,CACjC,CAACA,GAAY,CACf,CAAA,CAEMM,CAAAA,CAAsBC,WAAAA,CACzBC,CAAAA,EACQC,CAAAA,CAAgBR,CAAAA,CAAQO,EAAK,IAAI,CAAA,CAE1C,CAACP,CAAM,CACT,CAAA,CAEA,OACES,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,4EAAA,CACb,QAAA,CAAA,CAAAC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,8EAAA,CACV,WAAA,CAAU,cAAA,CAET,SAAAC,CAAAA,CAAS,GAAA,CAAIC,CAAAA,EACZF,GAAAA,CAAC,OACC,SAAA,CAAWG,EAAAA,CACT,2FACF,CAAA,CACA,YAAU,sBAAA,CAGV,QAAA,CAAAH,GAAAA,CAACI,CAAAA,CAAA,CAAW,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,QAAQ,MAAA,CAAO,QAAA,CAC1C,QAAA,CAAAF,CAAAA,CACH,GAJKA,CAKP,CACD,CAAA,CACH,CAAA,CAEAF,IAAC,KAAA,CAAA,CACC,SAAA,CAAU,yCAAA,CACV,WAAA,CAAU,iBAAA,CAET,QAAA,CAAAR,CAAAA,CAAe,GAAA,CAAI,CAACK,CAAAA,CAAMQ,CAAAA,GAAU,CACnC,IAAMC,GAAgBD,CAAAA,CAAQ,CAAA,EAAK,CAAA,GAAM,CAAA,CACnCE,GAAiBF,CAAAA,CAAQ,CAAA,EAAK,CAAA,GAAM,CAAA,CAE1C,OACEL,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWG,GACT,yCAAA,CACAG,CAAAA,EAAgB,wBAAA,CAChBC,CAAAA,EAAiB,aACnB,CAAA,CAGA,QAAA,CAAAP,GAAAA,CAACQ,GAAAA,CAAA,CAAa,IAAA,CAAMX,CAAAA,CAAM,MAAA,CAAQF,CAAAA,CAAoBE,CAAI,CAAA,CAAG,CAAA,CAAA,CAFxD,CAAA,EAAGA,EAAK,IAAA,CAAK,WAAA,EAAa,CAAA,CAAA,EAAIQ,CAAK,CAAA,CAG1C,CAEJ,CAAC,CAAA,CACH,GACF,CAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/components/full-calendar/calendar-month-view.tsx"],"names":["CalendarMonthView","selectedDate","events","useFullCalendar","monthDaysCells","useMemo","getDaysInMonth","getEventsForDayCell","useCallback","cell","getEventsForDay","jsxs","jsx","WEEKDAYS","weekday","cx","Typography","index","isLastColumn","isFirstColumn","CalendarCell"],"mappings":"2QAQO,SAASA,CAAAA,EAAoB,CAClC,GAAM,CAAE,YAAA,CAAAC,GAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,EAAgB,CAE3CC,CAAAA,CAAiBC,QACrB,IAAMC,CAAAA,CAAeL,GAAY,CAAA,CACjC,CAACA,GAAY,CACf,CAAA,CAEMM,CAAAA,CAAsBC,WAAAA,CACzBC,CAAAA,EACQC,CAAAA,CAAgBR,CAAAA,CAAQO,EAAK,IAAI,CAAA,CAE1C,CAACP,CAAM,CACT,CAAA,CAEA,OACES,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,4EAAA,CACb,QAAA,CAAA,CAAAC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,8EAAA,CACV,WAAA,CAAU,cAAA,CAET,SAAAC,CAAAA,CAAS,GAAA,CAAIC,CAAAA,EACZF,GAAAA,CAAC,OACC,SAAA,CAAWG,EAAAA,CACT,2FACF,CAAA,CACA,YAAU,sBAAA,CAGV,QAAA,CAAAH,GAAAA,CAACI,CAAAA,CAAA,CAAW,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,QAAQ,MAAA,CAAO,QAAA,CAC1C,QAAA,CAAAF,CAAAA,CACH,GAJKA,CAKP,CACD,CAAA,CACH,CAAA,CAEAF,IAAC,KAAA,CAAA,CACC,SAAA,CAAU,yCAAA,CACV,WAAA,CAAU,iBAAA,CAET,QAAA,CAAAR,CAAAA,CAAe,GAAA,CAAI,CAACK,CAAAA,CAAMQ,CAAAA,GAAU,CACnC,IAAMC,GAAgBD,CAAAA,CAAQ,CAAA,EAAK,CAAA,GAAM,CAAA,CACnCE,GAAiBF,CAAAA,CAAQ,CAAA,EAAK,CAAA,GAAM,CAAA,CAE1C,OACEL,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWG,GACT,yCAAA,CACAG,CAAAA,EAAgB,wBAAA,CAChBC,CAAAA,EAAiB,aACnB,CAAA,CAGA,QAAA,CAAAP,GAAAA,CAACQ,GAAAA,CAAA,CAAa,IAAA,CAAMX,CAAAA,CAAM,MAAA,CAAQF,CAAAA,CAAoBE,CAAI,CAAA,CAAG,CAAA,CAAA,CAFxD,CAAA,EAAGA,EAAK,IAAA,CAAK,WAAA,EAAa,CAAA,CAAA,EAAIQ,CAAK,CAAA,CAG1C,CAEJ,CAAC,CAAA,CACH,GACF,CAEJ","file":"chunk-LWBGC4MI.js","sourcesContent":["import { useCallback, useMemo } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { Typography } from '../typography'\nimport { getDaysInMonth, getEventsForDay, WEEKDAYS } from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarMonthView() {\n const { selectedDate, events } = useFullCalendar()\n\n const monthDaysCells = useMemo(\n () => getDaysInMonth(selectedDate),\n [selectedDate]\n )\n\n const getEventsForDayCell = useCallback(\n (cell: ICalendarCell) => {\n return getEventsForDay(events, cell.date)\n },\n [events]\n )\n\n return (\n <div className=\"rounded-small-1x scrollbar-hide border-border-layer-2 h-full w-full border\">\n <div\n className=\"bg-layer-2-hover h-large-4x rounded-t-small-1x sticky top-0 grid grid-cols-7\"\n data-slot=\"month-header\"\n >\n {WEEKDAYS.map(weekday => (\n <div\n className={cx(\n 'p-small b border-border-layer-2 flex items-center justify-center border-r last:border-r-0'\n )}\n data-slot=\"month-header-weekday\"\n key={weekday}\n >\n <Typography size=\"sm\" variant=\"label\" weight=\"medium\">\n {weekday}\n </Typography>\n </div>\n ))}\n </div>\n\n <div\n className=\"grid h-full grid-cols-7 overflow-hidden\"\n data-slot=\"month-day-cells\"\n >\n {monthDaysCells.map((cell, index) => {\n const isLastColumn = (index + 1) % 7 === 0\n const isFirstColumn = (index + 1) % 7 === 1\n\n return (\n <div\n className={cx(\n 'border-border-layer-2 border-t border-r',\n isLastColumn && 'pr-small-2x border-r-0',\n isFirstColumn && 'pl-small-2x'\n )}\n key={`${cell.date.toISOString()}-${index}`}\n >\n <CalendarCell cell={cell} events={getEventsForDayCell(cell)} />\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b}from'./chunk-3DZWZLV3.js';import {a}from'./chunk-UDJUMHNY.js';import {twMerge}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function s({range:n,onRangeChange:t}){return jsxs("div",{className:"group gap-small flex items-center",children:[jsxs("div",{className:"gap-small-1x flex h-full max-w-[240px] min-w-[100px] grow items-center",children:[jsx(a,{children:"R$"}),jsx(b,{value:n?.from,onValueChange:r=>{t?.({...n,from:r.floatValue});}})]}),jsx("span",{className:twMerge("text-size-label-md text-neutral-placeholder","hidden group-focus-within:block group-has-[input:not(:placeholder-shown)]:block"),children:"-"}),jsxs("div",{className:twMerge("gap-small-1x flex h-full max-w-[240px] min-w-[100px] grow items-center transition-all","hidden group-focus-within:flex group-has-[input:not(:placeholder-shown)]:flex"),children:[jsx(a,{children:"R$"}),jsx(b,{value:n?.to,onValueChange:r=>{t?.({...n,to:r.floatValue});}})]})]})}export{s as a};//# sourceMappingURL=chunk-NDXYABGR.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-NDXYABGR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/input/input-currency.tsx"],"names":["InputCurrencyRange","range","onRangeChange","jsxs","jsx","InputSlot","InputCurrency","values","twMerge"],"mappings":"qJAcO,SAASA,EAAmB,CACjC,KAAA,CAAAC,EACA,aAAA,CAAAC,CACF,EAA4B,CAC1B,OACEC,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,mCAAA,CACb,UAAAA,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,wEAAA,CACb,QAAA,CAAA,CAAAC,IAACC,CAAAA,CAAA,CAAU,QAAA,CAAA,IAAA,CAAE,CAAA,CACbD,GAAAA,CAACE,CAAAA,CAAA,CACC,KAAA,CAAOL,CAAAA,EAAO,KACd,aAAA,CAAeM,CAAAA,EAAU,CACvBL,CAAAA,GAAgB,CAAE,GAAGD,CAAAA,CAAO,IAAA,CAAMM,CAAAA,CAAO,UAAW,CAAC,EACvD,EACF,CAAA,CAAA,CACF,CAAA,CAEAH,IAAC,MAAA,CAAA,CACC,SAAA,CAAWI,QACT,6CAAA,CACA,iFACF,EACD,QAAA,CAAA,GAAA,CAED,CAAA,CAEAL,KAAC,KAAA,CAAA,CACC,SAAA,CAAWK,QACT,uFAAA,CACA,+EACF,CAAA,CAEA,QAAA,CAAA,CAAAJ,GAAAA,CAACC,CAAAA,CAAA,CAAU,QAAA,CAAA,IAAA,CAAE,CAAA,CACbD,IAACE,CAAAA,CAAA,CACC,MAAOL,CAAAA,EAAO,EAAA,CACd,aAAA,CAAeM,CAAAA,EAAU,CACvBL,CAAAA,GAAgB,CAAE,GAAGD,CAAAA,CAAO,GAAIM,CAAAA,CAAO,UAAW,CAAC,EACrD,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAEJ","file":"chunk-NDXYABGR.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport { InputCurrency } from './input-number'\nimport { InputSlot } from './input-slot'\n\nexport interface CurrencyRange {\n from?: number\n to?: number\n}\n\ninterface InputCurrencyRangeProps {\n range?: CurrencyRange\n onRangeChange?: (range: CurrencyRange) => void\n}\n\nexport function InputCurrencyRange({\n range,\n onRangeChange\n}: InputCurrencyRangeProps) {\n return (\n <div className=\"group gap-small flex items-center\">\n <div className=\"gap-small-1x flex h-full max-w-[240px] min-w-[100px] grow items-center\">\n <InputSlot>R$</InputSlot>\n <InputCurrency\n value={range?.from}\n onValueChange={values => {\n onRangeChange?.({ ...range, from: values.floatValue })\n }}\n />\n </div>\n\n <span\n className={twMerge(\n 'text-size-label-md text-neutral-placeholder',\n 'hidden group-focus-within:block group-has-[input:not(:placeholder-shown)]:block'\n )}\n >\n -\n </span>\n\n <div\n className={twMerge(\n 'gap-small-1x flex h-full max-w-[240px] min-w-[100px] grow items-center transition-all',\n 'hidden group-focus-within:flex group-has-[input:not(:placeholder-shown)]:flex'\n )}\n >\n <InputSlot>R$</InputSlot>\n <InputCurrency\n value={range?.to}\n onValueChange={values => {\n onRangeChange?.({ ...range, to: values.floatValue })\n }}\n />\n </div>\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {Slot}from'@radix-ui/react-slot';import {cva,cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';var p=cva(["py-medium px-small flex items-center gap-small rounded-small-1x","bg-layer-2-idle text-neutral-dark","hover:bg-layer-2-hover transition-colors duration-100 ease-out","active:bg-layer-2-pressed"],{variants:{size:{md:"h-large-4x",lg:"h-large-7x"},isActive:{true:"bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed"}},defaultVariants:{size:"md",isActive:false}});function d({className:a,size:e,isActive:r,asChild:t,...o}){return jsx(t?Slot:"li",{...o,className:cx(p({size:e,isActive:r}),a)})}export{d as a};//# sourceMappingURL=chunk-NQFPNHFQ.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-NQFPNHFQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/list/list-item.tsx"],"names":["variants","cva","ListItem","className","size","isActive","asChild","props","jsx","Slot","cx"],"mappings":"+GAIA,IAAMA,EAAWC,GAAAA,CACf,CACE,kEACA,mCAAA,CACA,gEAAA,CACA,2BACF,CAAA,CACA,CACE,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,GAAI,YAAA,CACJ,EAAA,CAAI,YACN,CAAA,CACA,SAAU,CACR,IAAA,CAAM,0GACR,CACF,CAAA,CACA,gBAAiB,CACf,IAAA,CAAM,IAAA,CACN,QAAA,CAAU,KACZ,CACF,CACF,CAAA,CAEO,SAASC,EAAS,CACvB,SAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,EACA,QAAA,CAAAC,CAAAA,CACA,QAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAGK,CAGH,OACEC,GAAAA,CAHWF,EAAUG,IAAAA,CAAO,IAAA,CAG3B,CAAM,GAAGF,CAAAA,CAAO,UAAWG,EAAAA,CAAGV,CAAAA,CAAS,CAAE,IAAA,CAAAI,EAAM,QAAA,CAAAC,CAAS,CAAC,CAAA,CAAGF,CAAS,EAAG,CAE7E","file":"chunk-NQFPNHFQ.js","sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cx, cva, type ClassVariantProps } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\n\nconst variants = cva(\n [\n 'py-medium px-small flex items-center gap-small rounded-small-1x',\n 'bg-layer-2-idle text-neutral-dark',\n 'hover:bg-layer-2-hover transition-colors duration-100 ease-out',\n 'active:bg-layer-2-pressed'\n ],\n {\n variants: {\n size: {\n md: 'h-large-4x',\n lg: 'h-large-7x'\n },\n isActive: {\n true: 'bg-primary-alt-active text-primary-label-active hover:bg-primary-alt-hover active:bg-primary-alt-pressed'\n }\n },\n defaultVariants: {\n size: 'md',\n isActive: false\n }\n }\n)\n\nexport function ListItem({\n className,\n size,\n isActive,\n asChild,\n ...props\n}: ComponentProps<'li'> &\n ClassVariantProps<typeof variants> & {\n asChild?: boolean\n }) {\n const Comp = asChild ? Slot : 'li'\n\n return (\n <Comp {...props} className={cx(variants({ size, isActive }), className)} />\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {twMerge}from'@xjur-ui/util';import {createContext,useRef}from'react';import {jsx}from'react/jsx-runtime';var c=createContext({scrollAmount:500,scrollRef:{current:null}});function i({className:e,scrollAmount:t=500,...r}){let l=useRef(null);return jsx(c.Provider,{value:{scrollAmount:t,scrollRef:l},children:jsx("div",{className:twMerge("group/carousel-root relative isolate",e),...r})})}export{c as a,i as b};//# sourceMappingURL=chunk-NRQWDEPL.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-NRQWDEPL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/carousel/carousel-root.tsx"],"names":["CarouselRootContext","createContext","CarouselRoot","className","scrollAmount","props","scrollRef","useRef","jsx","twMerge"],"mappings":"qHAQaA,CAAAA,CAAsBC,aAAAA,CAGhC,CACD,YAAA,CAAc,GAAA,CACd,SAAA,CAAW,CAAE,OAAA,CAAS,IAAK,CAC7B,CAAC,EAEM,SAASC,CAAAA,CAAa,CAC3B,SAAA,CAAAC,EACA,YAAA,CAAAC,CAAAA,CAAe,GAAA,CACf,GAAGC,CACL,CAAA,CAEG,CACD,IAAMC,CAAAA,CAAYC,MAAAA,CAA8B,IAAI,CAAA,CAEpD,OACEC,GAAAA,CAACR,CAAAA,CAAoB,QAAA,CAApB,CAA6B,KAAA,CAAO,CAAE,YAAA,CAAAI,CAAAA,CAAc,SAAA,CAAAE,CAAU,CAAA,CAC7D,QAAA,CAAAE,IAAC,KAAA,CAAA,CACC,SAAA,CAAWC,OAAAA,CAAQ,sCAAA,CAAwCN,CAAS,CAAA,CACnE,GAAGE,CAAAA,CACN,EACF,CAEJ","file":"chunk-NRQWDEPL.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport {\n createContext,\n useRef,\n type ComponentProps,\n type RefObject\n} from 'react'\n\nexport const CarouselRootContext = createContext<{\n scrollAmount: number\n scrollRef: RefObject<HTMLDivElement | null>\n}>({\n scrollAmount: 500,\n scrollRef: { current: null }\n})\n\nexport function CarouselRoot({\n className,\n scrollAmount = 500,\n ...props\n}: ComponentProps<'div'> & {\n scrollAmount?: number\n}) {\n const scrollRef = useRef<HTMLDivElement | null>(null)\n\n return (\n <CarouselRootContext.Provider value={{ scrollAmount, scrollRef }}>\n <div\n className={twMerge('group/carousel-root relative isolate', className)}\n {...props}\n />\n </CarouselRootContext.Provider>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {twMerge}from'@xjur-ui/util';import'react';import {jsx}from'react/jsx-runtime';function m({className:o,...e}){return jsx("div",{className:twMerge("relative flex-none whitespace-nowrap",o),...e})}export{m as a};//# sourceMappingURL=chunk-OGRUMTZC.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-OGRUMTZC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/carousel/carousel-item.tsx"],"names":["CarouselItem","className","props","jsx","twMerge"],"mappings":"sFAGO,SAASA,CAAAA,CAAa,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CAC3E,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWC,OAAAA,CAAQ,sCAAA,CAAwCH,CAAS,CAAA,CACnE,GAAGC,CAAAA,CACN,CAEJ","file":"chunk-OGRUMTZC.js","sourcesContent":["import { twMerge } from '@xjur-ui/util'\nimport { type ComponentProps } from 'react'\n\nexport function CarouselItem({ className, ...props }: ComponentProps<'div'>) {\n return (\n <div\n className={twMerge('relative flex-none whitespace-nowrap', className)}\n {...props}\n />\n )\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {b}from'./chunk-SXGSWVMZ.js';import {a,c,d,e}from'./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import {b}from'./chunk-SXGSWVMZ.js';import {a,c,d,e}from'./chunk-6EDRVSCQ.js';import {b as b$1}from'./chunk-M6ZI7M3R.js';import {jsxs,jsx,Fragment}from'react/jsx-runtime';function C({events:o}){let{renderEvent:u}=b();return jsxs(a,{children:[jsx(c,{asChild:true,children:jsxs(b$1,{size:"sm",variant:"outlined",children:["Mais ",o.length]})}),jsx(d,{className:"w-[240px]",children:jsx(e,{children:o.map(e=>jsx(Fragment,{children:u?.(e)},e.eventDate.toISOString()))})})]})}export{C as a};//# sourceMappingURL=chunk-OWFC7RTB.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-OWFC7RTB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/full-calendar/calendar-more-events-dropdown.tsx"],"names":["CalendarMoreEventsDropdown","events","renderEvent","useFullCalendar","jsxs","DropdownMenuRoot","jsx","DropdownMenuTrigger","Button","DropdownMenuContent","DropdownMenuList","event","Fragment"],"mappings":"2KAeO,SAASA,EAA2B,CACzC,MAAA,CAAAC,CACF,CAAA,CAAoC,CAClC,GAAM,CAAE,WAAA,CAAAC,CAAY,CAAA,CAAIC,CAAAA,EAAgB,CACxC,OACEC,KAACC,CAAAA,CAAA,CACC,QAAA,CAAA,CAAAC,GAAAA,CAACC,EAAA,CAAoB,OAAA,CAAS,IAAA,CAC5B,QAAA,CAAAH,KAACI,GAAAA,CAAA,CAAO,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,UAAA,CAAW,QAAA,CAAA,CAAA,OAAA,CAC7BP,CAAAA,CAAO,QACf,CAAA,CACF,CAAA,CAEAK,GAAAA,CAACG,CAAAA,CAAA,CAAoB,SAAA,CAAU,WAAA,CAC7B,QAAA,CAAAH,GAAAA,CAACI,EAAA,CACE,QAAA,CAAAT,CAAAA,CAAO,GAAA,CAAIU,GACVL,GAAAA,CAACM,QAAAA,CAAA,CACE,QAAA,CAAAV,IAAcS,CAAK,CAAA,CAAA,CADPA,CAAAA,CAAM,SAAA,CAAU,aAE/B,CACD,CAAA,CACH,CAAA,CACF,GACF,CAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/components/full-calendar/calendar-more-events-dropdown.tsx"],"names":["CalendarMoreEventsDropdown","events","renderEvent","useFullCalendar","jsxs","DropdownMenuRoot","jsx","DropdownMenuTrigger","Button","DropdownMenuContent","DropdownMenuList","event","Fragment"],"mappings":"2KAeO,SAASA,EAA2B,CACzC,MAAA,CAAAC,CACF,CAAA,CAAoC,CAClC,GAAM,CAAE,WAAA,CAAAC,CAAY,CAAA,CAAIC,CAAAA,EAAgB,CACxC,OACEC,KAACC,CAAAA,CAAA,CACC,QAAA,CAAA,CAAAC,GAAAA,CAACC,EAAA,CAAoB,OAAA,CAAS,IAAA,CAC5B,QAAA,CAAAH,KAACI,GAAAA,CAAA,CAAO,IAAA,CAAK,IAAA,CAAK,OAAA,CAAQ,UAAA,CAAW,QAAA,CAAA,CAAA,OAAA,CAC7BP,CAAAA,CAAO,QACf,CAAA,CACF,CAAA,CAEAK,GAAAA,CAACG,CAAAA,CAAA,CAAoB,SAAA,CAAU,WAAA,CAC7B,QAAA,CAAAH,GAAAA,CAACI,EAAA,CACE,QAAA,CAAAT,CAAAA,CAAO,GAAA,CAAIU,GACVL,GAAAA,CAACM,QAAAA,CAAA,CACE,QAAA,CAAAV,IAAcS,CAAK,CAAA,CAAA,CADPA,CAAAA,CAAM,SAAA,CAAU,aAE/B,CACD,CAAA,CACH,CAAA,CACF,GACF,CAEJ","file":"chunk-OWFC7RTB.js","sourcesContent":["import { Fragment } from 'react/jsx-runtime'\nimport { Button } from '../controls/button'\nimport {\n DropdownMenuRoot,\n DropdownMenuList,\n DropdownMenuTrigger,\n DropdownMenuContent\n} from '../dropdown-menu'\nimport { useFullCalendar } from './calendar-root'\nimport type { ICalendarEvent } from './types/calendar-event'\n\ninterface CalendarMoreEventsDropdownProps {\n events: ICalendarEvent[]\n}\n\nexport function CalendarMoreEventsDropdown({\n events\n}: CalendarMoreEventsDropdownProps) {\n const { renderEvent } = useFullCalendar()\n return (\n <DropdownMenuRoot>\n <DropdownMenuTrigger asChild={true}>\n <Button size=\"sm\" variant=\"outlined\">\n Mais {events.length}\n </Button>\n </DropdownMenuTrigger>\n\n <DropdownMenuContent className=\"w-[240px]\">\n <DropdownMenuList>\n {events.map(event => (\n <Fragment key={event.eventDate.toISOString()}>\n {renderEvent?.(event)}\n </Fragment>\n ))}\n </DropdownMenuList>\n </DropdownMenuContent>\n </DropdownMenuRoot>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-AIQVBX52.js';import {b}from'./chunk-2JQVYVAT.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {jsx}from'react/jsx-runtime';var{icon:a}=a$1();function d({className:r,name:i,orientation:p="left",...c}){let{state:m}=b();return jsx("div",{className:a({className:r,state:m}),"data-slot":`control-${p}-slot`,...c,children:jsx(b$1,{name:i})})}export{d as a};//# sourceMappingURL=chunk-OZ7TAILP.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-OZ7TAILP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/date-picker/date-picker-icon.tsx"],"names":["icon","datePicker","DatePickerIcon","className","name","orientation","props","state","useFieldContext","jsx","Icon"],"mappings":"8JAKA,GAAM,CAAE,IAAA,CAAAA,CAAK,CAAA,CAAIC,GAAAA,EAAW,CAErB,SAASC,CAAAA,CAAe,CAC7B,UAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,GAAGC,CACL,CAAA,CAGG,CACD,GAAM,CAAE,KAAA,CAAAC,CAAM,EAAIC,CAAAA,EAAgB,CAElC,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWT,CAAAA,CAAK,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAI,CAAM,CAAC,CAAA,CACpC,YAAW,CAAA,QAAA,EAAWF,CAAW,CAAA,KAAA,CAAA,CAChC,GAAGC,CAAAA,CAEJ,QAAA,CAAAG,GAAAA,CAACC,GAAAA,CAAA,CAAK,IAAA,CAAMN,CAAAA,CAAM,CAAA,CACpB,CAEJ","file":"chunk-OZ7TAILP.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { Icon, type IconType } from '../../icon'\nimport { useFieldContext } from '../context/field.context'\nimport { datePicker } from './date-picker-styles'\n\nconst { icon } = datePicker()\n\nexport function DatePickerIcon({\n className,\n name,\n orientation = 'left',\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n orientation?: 'left' | 'right'\n}) {\n const { state } = useFieldContext()\n\n return (\n <div\n className={icon({ className, state })}\n data-slot={`control-${orientation}-slot`}\n {...props}\n >\n <Icon name={name} />\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-WW4B3LUO.js';import {Slot}from'@radix-ui/react-slot';import {cx}from'@xjur-ui/util';import {useVirtualizer}from'@tanstack/react-virtual';import {useRef}from'react';import {jsx}from'react/jsx-runtime';function P({className:n,asChild:l,children:i,virtualized:e=false,itemCount:m=0,estimateSize:a$1=()=>48,overscan:s=5,...u}){let d=l?Slot:"div",o=useRef(null),p=useVirtualizer({count:m,getScrollElement:()=>o.current,estimateSize:a$1,overscan:s,enabled:e});return jsx(a.Provider,{value:{virtualizer:p,enabled:e},children:jsx(d,{...u,className:cx(n,"rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-y-auto border"),ref:o,children:i})})}export{P as a};//# sourceMappingURL=chunk-PN2PHVKQ.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-PN2PHVKQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/list/list-root.tsx"],"names":["ListRoot","className","asChild","children","virtualized","itemCount","estimateSize","overscan","props","Comp","Slot","scrollRef","useRef","virtualizer","useVirtualizer","jsx","VirtualizerContext","cx"],"mappings":"+NAOO,SAASA,CAAAA,CAAS,CACvB,SAAA,CAAAC,CAAAA,CACA,QAAAC,CAAAA,CACA,QAAA,CAAAC,EACA,WAAA,CAAAC,CAAAA,CAAc,MACd,SAAA,CAAAC,CAAAA,CAAY,CAAA,CACZ,YAAA,CAAAC,GAAAA,CAAe,IAAM,GACrB,QAAA,CAAAC,CAAAA,CAAW,EACX,GAAGC,CACL,EAMG,CACD,IAAMC,CAAAA,CAAOP,CAAAA,CAAUQ,IAAAA,CAAO,KAAA,CACxBC,EAAYC,MAAAA,CAAuB,IAAI,EAEvCC,CAAAA,CAAcC,cAAAA,CAAe,CACjC,KAAA,CAAOT,CAAAA,CACP,iBAAkB,IAAMM,CAAAA,CAAU,QAClC,YAAA,CAAAL,GAAAA,CACA,SAAAC,CAAAA,CACA,OAAA,CAASH,CACX,CAAC,CAAA,CAED,OACEW,GAAAA,CAACC,CAAAA,CAAmB,QAAA,CAAnB,CAA4B,KAAA,CAAO,CAAE,YAAAH,CAAAA,CAAa,OAAA,CAAST,CAAY,CAAA,CACtE,QAAA,CAAAW,GAAAA,CAACN,CAAAA,CAAA,CACE,GAAGD,EACJ,SAAA,CAAWS,EAAAA,CACThB,EACA,6IACF,CAAA,CACA,IAAKU,CAAAA,CAEJ,QAAA,CAAAR,CAAAA,CACH,CAAA,CACF,CAEJ","file":"chunk-PN2PHVKQ.js","sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cx } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { useVirtualizer } from '@tanstack/react-virtual'\nimport { useRef } from 'react'\nimport { VirtualizerContext } from './context/list-context'\n\nexport function ListRoot({\n className,\n asChild,\n children,\n virtualized = false,\n itemCount = 0,\n estimateSize = () => 48,\n overscan = 5,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean\n virtualized?: boolean\n itemCount?: number\n estimateSize?: (index: number) => number\n overscan?: number\n}) {\n const Comp = asChild ? Slot : 'div'\n const scrollRef = useRef<HTMLDivElement>(null)\n\n const virtualizer = useVirtualizer({\n count: itemCount,\n getScrollElement: () => scrollRef.current,\n estimateSize,\n overscan,\n enabled: virtualized\n })\n\n return (\n <VirtualizerContext.Provider value={{ virtualizer, enabled: virtualized }}>\n <Comp\n {...props}\n className={cx(\n className,\n 'rounded-small scrollbar-thin bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-y-auto border'\n )}\n ref={scrollRef}\n >\n {children}\n </Comp>\n </VirtualizerContext.Provider>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-AIQVBX52.js';import {b}from'./chunk-2JQVYVAT.js';import*as o from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var{content:P}=a();function c({className:n,sideOffset:p=5,side:a="bottom",align:i="start",...s}){let{state:m}=b();return jsx(o.Portal,{children:jsx(o.Content,{align:i,className:P({className:n,state:m}),side:a,sideOffset:p,...s})})}export{c as a};//# sourceMappingURL=chunk-QBBE3G4O.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-QBBE3G4O.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/date-picker/date-picker-content.tsx"],"names":["content","datePicker","DatePickerContent","className","sideOffset","side","align","props","state","useFieldContext","jsx"],"mappings":"sJAKA,GAAM,CAAE,OAAA,CAAAA,CAAQ,CAAA,CAAIC,CAAAA,EAAW,CAExB,SAASC,CAAAA,CAAkB,CAChC,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CAAa,CAAA,CACb,IAAA,CAAAC,CAAAA,CAAO,QAAA,CACP,KAAA,CAAAC,CAAAA,CAAQ,OAAA,CACR,GAAGC,CACL,EAAgD,CAC9C,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,EAAgB,CAElC,OACEC,GAAAA,CAAc,CAAA,CAAA,MAAA,CAAb,CACC,QAAA,CAAAA,GAAAA,CAAc,CAAA,CAAA,OAAA,CAAb,CACC,MAAOJ,CAAAA,CACP,SAAA,CAAWN,CAAAA,CAAQ,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAK,CAAM,CAAC,CAAA,CACvC,IAAA,CAAMH,CAAAA,CACN,UAAA,CAAYD,CAAAA,CACX,GAAGG,CAAAA,CACN,EACF,CAEJ","file":"chunk-QBBE3G4O.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { useFieldContext } from '../context/field.context'\nimport { datePicker } from './date-picker-styles'\n\nconst { content } = datePicker()\n\nexport function DatePickerContent({\n className,\n sideOffset = 5,\n side = 'bottom',\n align = 'start',\n ...props\n}: ComponentProps<typeof RadixPopover.Content>) {\n const { state } = useFieldContext()\n\n return (\n <RadixPopover.Portal>\n <RadixPopover.Content\n align={align}\n className={content({ className, state })}\n side={side}\n sideOffset={sideOffset}\n {...props}\n />\n </RadixPopover.Portal>\n )\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import {a}from'./chunk-ZVVPUP7V.js';import {a as a$1}from'./chunk-MZSV4LNY.js';import {a as a$3}from'./chunk-4NBJXNQ7.js';import {p,q,l}from'./chunk-EXC2XOL6.js';import {b}from'./chunk-SXGSWVMZ.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {useMemo,useCallback}from'react';import {cx}from'@xjur-ui/util';import {jsx,jsxs}from'react/jsx-runtime';function I(){let{selectedDate:t,events:o}=b(),d=useMemo(()=>p(t),[t]),g=useCallback((e,a)=>q(o,e,a),[o]),C=useCallback((e,a$1)=>({...e,date:a(e.date,a$1)}),[]);return jsx("div",{className:"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border",children:jsxs("div",{className:"flex flex-1 flex-col",children:[jsx("div",{className:cx("bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]","[&>*]:border-border-layer-2","[&>*]:border-l"),"data-slot":"week-header",children:d.map((e,a)=>jsx(a$1,{date:e.date,style:{gridColumnStart:a+2}},e.date.getDay()))}),jsx("div",{className:"overflow-hidden",children:l.map(({hour:e,label:a})=>jsxs("div",{className:"flex items-start",children:[jsx("div",{className:"px-small flex h-full w-[64px] items-start justify-end",children:jsx(a$2,{size:"sm-1x",variant:"label",weight:"medium",children:a})}),jsx("div",{className:cx("grid flex-1 grid-cols-7","[&>*]:border-border-layer-2","[&>*]:border-t","[&>*]:border-l"),children:d.map(l=>jsx(a$3,{cell:C(l,e),events:g(l.date,e)},l.date.toISOString()))})]},e))})]})})}export{I as a};//# sourceMappingURL=chunk-RAW5SN5A.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-RAW5SN5A.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/full-calendar/calendar-week-view.tsx"],"names":["CalendarWeekView","selectedDate","events","useFullCalendar","monthWeekDaysCells","useMemo","getWeekDaysInMonth","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","cx","index","CalendarWeekDay","WEEK_HOURS","label","Typography","CalendarCell"],"mappings":"iWAcO,SAASA,CAAAA,EAAmB,CACjC,GAAM,CAAE,aAAAC,CAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,GAE3BC,CAAAA,CAAqBC,OAAAA,CACzB,IAAMC,CAAAA,CAAmBL,CAAY,EACrC,CAACA,CAAY,CACf,CAAA,CAEMM,CAAAA,CAAiCC,YACrC,CAACC,CAAAA,CAAYC,IACJC,CAAAA,CAAuBT,CAAAA,CAAQO,EAAMC,CAAI,CAAA,CAElD,CAACR,CAAM,CACT,EAEMU,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,GAAAA,IAC/C,CACL,GAAGG,CAAAA,CACH,KAAMC,CAAAA,CAASD,CAAAA,CAAK,KAAMH,GAAI,CAChC,GACC,EAAE,EAEL,OACEK,GAAAA,CAAC,OAAI,SAAA,CAAU,6FAAA,CACb,SAAAC,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,sBAAA,CACb,QAAA,CAAA,CAAAD,IAAC,KAAA,CAAA,CACC,SAAA,CAAWE,GACT,+EAAA,CACA,6BAAA,CACA,gBACF,CAAA,CACA,WAAA,CAAU,cAET,QAAA,CAAAb,CAAAA,CAAmB,GAAA,CAAI,CAACS,CAAAA,CAAMK,CAAAA,GAC7BH,IAACI,GAAAA,CAAA,CACC,KAAMN,CAAAA,CAAK,IAAA,CAEX,MAAO,CAAE,eAAA,CAAiBK,EAAQ,CAAE,CAAA,CAAA,CAD/BL,EAAK,IAAA,CAAK,MAAA,EAEjB,CACD,CAAA,CACH,EAEAE,GAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,iBAAA,CACZ,QAAA,CAAAK,EAAW,GAAA,CAAI,CAAC,CAAE,IAAA,CAAAV,CAAAA,CAAM,MAAAW,CAAM,CAAA,GAC7BL,KAAC,KAAA,CAAA,CAAI,SAAA,CAAU,mBACb,QAAA,CAAA,CAAAD,GAAAA,CAAC,OAAI,SAAA,CAAU,uDAAA,CACb,SAAAA,GAAAA,CAACO,GAAAA,CAAA,CAAW,IAAA,CAAK,OAAA,CAAQ,QAAQ,OAAA,CAAQ,MAAA,CAAO,SAC7C,QAAA,CAAAD,CAAAA,CACH,EACF,CAAA,CAEAN,GAAAA,CAAC,OACC,SAAA,CAAWE,EAAAA,CACT,0BACA,6BAAA,CACA,gBAAA,CACA,gBACF,CAAA,CAEC,QAAA,CAAAb,EAAmB,GAAA,CAAIS,CAAAA,EACtBE,IAACQ,GAAAA,CAAA,CACC,KAAMX,CAAAA,CAAcC,CAAAA,CAAMH,CAAI,CAAA,CAC9B,MAAA,CAAQH,EAA+BM,CAAAA,CAAK,IAAA,CAAMH,CAAI,CAAA,CAAA,CACjDG,CAAAA,CAAK,KAAK,WAAA,EACjB,CACD,CAAA,CACH,CAAA,CAAA,CAAA,CAtBqCH,CAuBvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAEJ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/components/full-calendar/calendar-week-view.tsx"],"names":["CalendarWeekView","selectedDate","events","useFullCalendar","monthWeekDaysCells","useMemo","getWeekDaysInMonth","getEventsForDayAndHourCallback","useCallback","date","hour","getEventsForDayAndHour","cellsWithHour","cell","setHours","jsx","jsxs","cx","index","CalendarWeekDay","WEEK_HOURS","label","Typography","CalendarCell"],"mappings":"iWAcO,SAASA,CAAAA,EAAmB,CACjC,GAAM,CAAE,aAAAC,CAAAA,CAAc,MAAA,CAAAC,CAAO,CAAA,CAAIC,CAAAA,GAE3BC,CAAAA,CAAqBC,OAAAA,CACzB,IAAMC,CAAAA,CAAmBL,CAAY,EACrC,CAACA,CAAY,CACf,CAAA,CAEMM,CAAAA,CAAiCC,YACrC,CAACC,CAAAA,CAAYC,IACJC,CAAAA,CAAuBT,CAAAA,CAAQO,EAAMC,CAAI,CAAA,CAElD,CAACR,CAAM,CACT,EAEMU,CAAAA,CAAgBJ,WAAAA,CAAY,CAACK,CAAAA,CAAqBH,GAAAA,IAC/C,CACL,GAAGG,CAAAA,CACH,KAAMC,CAAAA,CAASD,CAAAA,CAAK,KAAMH,GAAI,CAChC,GACC,EAAE,EAEL,OACEK,GAAAA,CAAC,OAAI,SAAA,CAAU,6FAAA,CACb,SAAAC,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,sBAAA,CACb,QAAA,CAAA,CAAAD,IAAC,KAAA,CAAA,CACC,SAAA,CAAWE,GACT,+EAAA,CACA,6BAAA,CACA,gBACF,CAAA,CACA,WAAA,CAAU,cAET,QAAA,CAAAb,CAAAA,CAAmB,GAAA,CAAI,CAACS,CAAAA,CAAMK,CAAAA,GAC7BH,IAACI,GAAAA,CAAA,CACC,KAAMN,CAAAA,CAAK,IAAA,CAEX,MAAO,CAAE,eAAA,CAAiBK,EAAQ,CAAE,CAAA,CAAA,CAD/BL,EAAK,IAAA,CAAK,MAAA,EAEjB,CACD,CAAA,CACH,EAEAE,GAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,iBAAA,CACZ,QAAA,CAAAK,EAAW,GAAA,CAAI,CAAC,CAAE,IAAA,CAAAV,CAAAA,CAAM,MAAAW,CAAM,CAAA,GAC7BL,KAAC,KAAA,CAAA,CAAI,SAAA,CAAU,mBACb,QAAA,CAAA,CAAAD,GAAAA,CAAC,OAAI,SAAA,CAAU,uDAAA,CACb,SAAAA,GAAAA,CAACO,GAAAA,CAAA,CAAW,IAAA,CAAK,OAAA,CAAQ,QAAQ,OAAA,CAAQ,MAAA,CAAO,SAC7C,QAAA,CAAAD,CAAAA,CACH,EACF,CAAA,CAEAN,GAAAA,CAAC,OACC,SAAA,CAAWE,EAAAA,CACT,0BACA,6BAAA,CACA,gBAAA,CACA,gBACF,CAAA,CAEC,QAAA,CAAAb,EAAmB,GAAA,CAAIS,CAAAA,EACtBE,IAACQ,GAAAA,CAAA,CACC,KAAMX,CAAAA,CAAcC,CAAAA,CAAMH,CAAI,CAAA,CAC9B,MAAA,CAAQH,EAA+BM,CAAAA,CAAK,IAAA,CAAMH,CAAI,CAAA,CAAA,CACjDG,CAAAA,CAAK,KAAK,WAAA,EACjB,CACD,CAAA,CACH,CAAA,CAAA,CAAA,CAtBqCH,CAuBvC,CACD,CAAA,CACH,CAAA,CAAA,CACF,CAAA,CACF,CAEJ","file":"chunk-RAW5SN5A.js","sourcesContent":["import { useCallback, useMemo } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { setHours } from 'date-fns'\nimport { Typography } from '../typography'\nimport {\n WEEK_HOURS,\n getWeekDaysInMonth,\n getEventsForDayAndHour\n} from './helpers/calendar'\nimport { useFullCalendar } from './calendar-root'\nimport { CalendarWeekDay } from './calendar-week-day'\nimport { CalendarCell } from './calendar-cell'\nimport type { ICalendarCell } from './types/calendar-cell'\n\nexport function CalendarWeekView() {\n const { selectedDate, events } = useFullCalendar()\n\n const monthWeekDaysCells = useMemo(\n () => getWeekDaysInMonth(selectedDate),\n [selectedDate]\n )\n\n const getEventsForDayAndHourCallback = useCallback(\n (date: Date, hour: number) => {\n return getEventsForDayAndHour(events, date, hour)\n },\n [events]\n )\n\n const cellsWithHour = useCallback((cell: ICalendarCell, hour: number) => {\n return {\n ...cell,\n date: setHours(cell.date, hour)\n }\n }, [])\n\n return (\n <div className=\"bg-layer-2-hover rounded-small-1x border-border-layer-2 scrollbar-hide h-full w-full border\">\n <div className=\"flex flex-1 flex-col\">\n <div\n className={cx(\n 'bg-layer-2-hover sticky top-0 grid [grid-template-columns:64px_repeat(7,1fr)]',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-l'\n )}\n data-slot=\"week-header\"\n >\n {monthWeekDaysCells.map((cell, index) => (\n <CalendarWeekDay\n date={cell.date}\n key={cell.date.getDay()}\n style={{ gridColumnStart: index + 2 }}\n />\n ))}\n </div>\n\n <div className=\"overflow-hidden\">\n {WEEK_HOURS.map(({ hour, label }) => (\n <div className=\"flex items-start\" key={hour}>\n <div className=\"px-small flex h-full w-[64px] items-start justify-end\">\n <Typography size=\"sm-1x\" variant=\"label\" weight=\"medium\">\n {label}\n </Typography>\n </div>\n\n <div\n className={cx(\n 'grid flex-1 grid-cols-7',\n '[&>*]:border-border-layer-2',\n '[&>*]:border-t',\n '[&>*]:border-l'\n )}\n >\n {monthWeekDaysCells.map(cell => (\n <CalendarCell\n cell={cellsWithHour(cell, hour)}\n events={getEventsForDayAndHourCallback(cell.date, hour)}\n key={cell.date.toISOString()}\n />\n ))}\n </div>\n </div>\n ))}\n </div>\n </div>\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-5Z3AIBBS.js';import {b}from'./chunk-2JQVYVAT.js';import {a as a$1}from'./chunk-EIG6CBTQ.js';import {twJoin}from'@xjur-ui/util';import {useMemo}from'react';import {jsxs,jsx}from'react/jsx-runtime';function N({className:s,displayValue:o="",placeholder:t,value:l,...m}){let{variant:r}=b(),p=useMemo(()=>r==="filter"?o:o||t,[o,t,r]);return jsxs("div",{className:"grid w-full items-center",children:[t&&r==="filter"&&jsx(a,{children:t}),t&&r==="filter"&&jsx(a$1,{className:"invisible col-start-1 row-start-1 self-center",children:t}),jsx(a$1,{className:"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left",children:p}),jsx("input",{...m,"aria-readonly":true,className:twJoin("pointer-events-none",s),hidden:true,placeholder:" ",readOnly:true,value:l??""})]})}export{N as a};//# sourceMappingURL=chunk-RCP3J3FN.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-RCP3J3FN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/date-picker/date-picker-value.tsx"],"names":["DatePickerValue","className","displayValue","placeholder","value","props","variant","useFieldContext","valueOrPlaceholder","useMemo","jsxs","jsx","FloatingLabel","Typography","twJoin"],"mappings":"2NAMO,SAASA,CAAAA,CAAgB,CAC9B,SAAA,CAAAC,CAAAA,CACA,aAAAC,CAAAA,CAAe,EAAA,CACf,WAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAwD,CACtD,GAAM,CAAE,QAAAC,CAAQ,CAAA,CAAIC,CAAAA,EAAgB,CAE9BC,CAAAA,CAAqBC,OAAAA,CAAQ,IAC7BH,CAAAA,GAAY,QAAA,CAAiBJ,CAAAA,CAC1BA,CAAAA,EAAgBC,CAAAA,CACtB,CAACD,EAAcC,CAAAA,CAAaG,CAAO,CAAC,CAAA,CAEvC,OACEI,IAAAA,CAAC,OAAI,SAAA,CAAU,0BAAA,CACZ,UAAAP,CAAAA,EAAeG,CAAAA,GAAY,UAC1BK,GAAAA,CAACC,CAAAA,CAAA,CAAe,QAAA,CAAAT,CAAAA,CAAY,CAAA,CAG7BA,GAAeG,CAAAA,GAAY,QAAA,EAC1BK,GAAAA,CAACE,GAAAA,CAAA,CAAW,SAAA,CAAU,gDACnB,QAAA,CAAAV,CAAAA,CACH,CAAA,CAGFQ,GAAAA,CAACE,GAAAA,CAAA,CAAW,UAAU,sEAAA,CACnB,QAAA,CAAAL,CAAAA,CACH,CAAA,CAEAG,GAAAA,CAAC,OAAA,CAAA,CACE,GAAGN,CAAAA,CACJ,eAAA,CAAe,IAAA,CACf,SAAA,CAAWS,MAAAA,CAAO,qBAAA,CAAuBb,CAAS,CAAA,CAClD,MAAA,CAAQ,IAAA,CACR,WAAA,CAAa,GAAA,CACb,QAAA,CAAU,KACV,KAAA,CAAOG,CAAAA,EAAS,EAAA,CAClB,CAAA,CAAA,CACF,CAEJ","file":"chunk-RCP3J3FN.js","sourcesContent":["import { twJoin } from '@xjur-ui/util'\nimport { useMemo, type ComponentProps } from 'react'\nimport { Typography } from '../../typography'\nimport { useFieldContext } from '../context/field.context'\nimport { FloatingLabel } from '../floating-label'\n\nexport function DatePickerValue({\n className,\n displayValue = '',\n placeholder,\n value,\n ...props\n}: ComponentProps<'input'> & { displayValue?: string }) {\n const { variant } = useFieldContext()\n\n const valueOrPlaceholder = useMemo(() => {\n if (variant === 'filter') return displayValue\n return displayValue || placeholder\n }, [displayValue, placeholder, variant])\n\n return (\n <div className=\"grid w-full items-center\">\n {placeholder && variant === 'filter' && (\n <FloatingLabel>{placeholder}</FloatingLabel>\n )}\n\n {placeholder && variant === 'filter' && (\n <Typography className=\"invisible col-start-1 row-start-1 self-center\">\n {placeholder}\n </Typography>\n )}\n\n <Typography className=\"text-neutral-dark z-10 col-start-1 row-start-1 self-center text-left\">\n {valueOrPlaceholder}\n </Typography>\n\n <input\n {...props}\n aria-readonly={true}\n className={twJoin('pointer-events-none', className)}\n hidden={true}\n placeholder={' '}\n readOnly={true}\n value={value ?? ''}\n />\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-options.tsx"],"names":["SelectOptions","props","jsx","ListContent"],"mappings":"wEAGO,SAASA,CAAAA,CAAcC,CAAAA,CAA2C,CACvE,OAAOC,GAAAA,CAACC,CAAAA,CAAA,CAAa,GAAGF,CAAAA,CAAO,CACjC","file":"chunk-RSILFO3M.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { ListContent } from '../../list'\n\nexport function SelectOptions(props: ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-AIQVBX52.js';import {a as a$1}from'./chunk-2JQVYVAT.js';import*as p from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var{wrapper:v}=a();function R({className:n,state:e="normal",defaultOpen:a,variant:i="normal",modal:d,open:m,onOpenChange:l,...P}){return jsx(p.Root,{defaultOpen:a,modal:d,open:m,onOpenChange:l,children:jsx(a$1.Provider,{value:{state:e,variant:i},children:jsx("div",{className:v({className:n,state:e}),...P})})})}export{R as a};//# sourceMappingURL=chunk-RZQ2HH5A.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-RZQ2HH5A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/date-picker/date-picker-root.tsx"],"names":["wrapper","datePicker","DatePickerRoot","className","state","defaultOpen","variant","modal","open","handleOpenChange","props","jsx","FieldContext"],"mappings":"6JAKA,GAAM,CAAE,OAAA,CAAAA,CAAQ,EAAIC,CAAAA,EAAW,CAExB,SAASC,CAAAA,CAAe,CAC7B,SAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CAAQ,SACR,WAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,SACV,KAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,aAAcC,CAAAA,CACd,GAAGC,CACL,CAAA,CAE4C,CAC1C,OACEC,GAAAA,CAAc,CAAA,CAAA,IAAA,CAAb,CACC,YAAaN,CAAAA,CACb,KAAA,CAAOE,CAAAA,CACP,IAAA,CAAMC,EACN,YAAA,CAAcC,CAAAA,CAEd,QAAA,CAAAE,GAAAA,CAACC,IAAa,QAAA,CAAb,CAAsB,KAAA,CAAO,CAAE,MAAAR,CAAAA,CAAO,OAAA,CAAAE,CAAQ,CAAA,CAC7C,SAAAK,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWX,CAAAA,CAAQ,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAC,CAAM,CAAC,CAAA,CAAI,GAAGM,CAAAA,CAAO,CAAA,CAC5D,EACF,CAEJ","file":"chunk-RZQ2HH5A.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { FieldContext, type FieldContextValue } from '../context/field.context'\nimport { datePicker } from './date-picker-styles'\n\nconst { wrapper } = datePicker()\n\nexport function DatePickerRoot({\n className,\n state = 'normal',\n defaultOpen,\n variant = 'normal',\n modal,\n open,\n onOpenChange: handleOpenChange,\n ...props\n}: ComponentProps<'div'> &\n FieldContextValue &\n ComponentProps<typeof RadixPopover.Root>) {\n return (\n <RadixPopover.Root\n defaultOpen={defaultOpen}\n modal={modal}\n open={open}\n onOpenChange={handleOpenChange}\n >\n <FieldContext.Provider value={{ state, variant }}>\n <div className={wrapper({ className, state })} {...props} />\n </FieldContext.Provider>\n </RadixPopover.Root>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {tv}from'@xjur-ui/util';var t=tv({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x w-auto inline-flex cursor-pointer relative","items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-idle border border-border-layer-2","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:["group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]"],icon:"size-large text-icon-neutral-3 flex items-center justify-center",slotText:"size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder",caption:"!text-size-body-sm font-normal"},variants:{state:{normal:{trigger:"hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}});export{t as a};//# sourceMappingURL=chunk-SLQNE7TL.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-SLQNE7TL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-styles.ts"],"names":["select","tv"],"mappings":"+BAEO,IAAMA,CAAAA,CAASC,GAAG,CACvB,KAAA,CAAO,CACL,OAAA,CAAS,kCAAA,CACT,OAAA,CAAS,CACP,uDAAA,CACA,yCAAA,CACA,0BAAA,CACA,8CAAA,CACA,6DAAA,CACA,6BACF,CAAA,CACA,OAAA,CAAS,CACP,oKACF,CAAA,CACA,IAAA,CAAM,iEAAA,CACN,QAAA,CACE,2FACF,OAAA,CAAS,gCACX,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,CACN,OAAA,CACE,+GACJ,CAAA,CACA,KAAA,CAAO,CACL,OAAA,CACE,6HAAA,CACF,OAAA,CAAS,wBACX,CAAA,CACA,QAAA,CAAU,CACR,OAAA,CAAS,wDACX,CACF,CACF,CACF,CAAC","file":"chunk-SLQNE7TL.js","sourcesContent":["import { tv } from '@xjur-ui/util'\n\nexport const select = tv({\n slots: {\n wrapper: 'group flex flex-col gap-small-2x',\n trigger: [\n 'h-large-4x w-auto inline-flex cursor-pointer relative',\n 'items-center gap-small rounded-small-1x',\n 'py-small_1x-alt px-small',\n 'bg-layer-2-idle border border-border-layer-2',\n 'group-has-[div[data-slot=input-action-slot]]:rounded-r-none',\n 'transition-all duration-200'\n ],\n content: [\n 'group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-content-available-width)] min-w-[var(--radix-popover-trigger-width)]'\n ],\n icon: 'size-large text-icon-neutral-3 flex items-center justify-center',\n slotText:\n 'size-large flex items-center justify-center !text-size-label-md text-neutral-placeholder',\n caption: '!text-size-body-sm font-normal'\n },\n variants: {\n state: {\n normal: {\n trigger:\n 'hover:border-border-layer-3 data-[state=open]:border-primary-idle data-[state=open]:hover:border-primary-idle'\n },\n error: {\n trigger:\n 'border-danger-idle hover:border-danger-idle data-[state=open]:border-danger-idle data-[state=open]:hover:border-danger-idle',\n caption: 'text-danger-label-idle'\n },\n disabled: {\n trigger: 'pointer-events-none border-transparent bg-layer-2-idle'\n }\n }\n }\n})\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-SLQNE7TL.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{caption:r}=a();function i({className:e,...p}){let{state:n}=b();return jsx("p",{className:r({className:e,state:n}),...p})}export{i as a};//# sourceMappingURL=chunk-TVYYMHLA.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-TVYYMHLA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-caption.tsx"],"names":["caption","select","SelectCaption","className","props","state","useFieldContext","jsx"],"mappings":"4GAIA,GAAM,CAAE,OAAA,CAAAA,CAAQ,CAAA,CAAIC,CAAAA,EAAO,CAEpB,SAASC,EAAc,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,EAAwB,CAC1E,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAClB,OAAOC,GAAAA,CAAC,KAAE,SAAA,CAAWP,CAAAA,CAAQ,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CAAI,GAAGD,EAAO,CACjE","file":"chunk-TVYYMHLA.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { select } from './select-styles'\n\nconst { caption } = select()\n\nexport function SelectCaption({ className, ...props }: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{slotText:r}=a();function i({className:n,...p}){let{state:e}=b();return jsx("span",{className:r({className:n,state:e}),...p})}export{i as a};//# sourceMappingURL=chunk-UDJUMHNY.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-UDJUMHNY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/input/input-slot.tsx"],"names":["slotText","input","InputSlot","className","props","state","useFieldContext","jsx"],"mappings":"4GAIA,GAAM,CAAE,QAAA,CAAAA,CAAS,CAAA,CAAIC,CAAAA,EAAM,CAEpB,SAASC,EAAU,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,EAA2B,CACzE,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAClB,OAAOC,GAAAA,CAAC,QAAK,SAAA,CAAWP,CAAAA,CAAS,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CAAI,GAAGD,EAAO,CACrE","file":"chunk-UDJUMHNY.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { slotText } = input()\n\nexport function InputSlot({ className, ...props }: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return <span className={slotText({ className, state })} {...props} />\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-SLQNE7TL.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{slotText:p}=a$1();function a({className:e,...s}){let{state:n}=b();return jsx("span",{className:p({className:e,state:n}),"data-slot":"control-left-slot",...s})}export{a};//# sourceMappingURL=chunk-VWS2FZKZ.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-VWS2FZKZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-slot.tsx"],"names":["slotText","select","SelectSlot","className","props","state","useFieldContext","jsx"],"mappings":"mHAIA,GAAM,CAAE,QAAA,CAAAA,CAAS,EAAIC,GAAAA,EAAO,CAErB,SAASC,CAAAA,CAAW,CAAE,SAAA,CAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA2B,CAC1E,GAAM,CAAE,KAAA,CAAAC,CAAM,EAAIC,CAAAA,EAAgB,CAClC,OACEC,GAAAA,CAAC,MAAA,CAAA,CACC,UAAWP,CAAAA,CAAS,CAAE,UAAAG,CAAAA,CAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CACxC,YAAU,mBAAA,CACT,GAAGD,EACN,CAEJ","file":"chunk-VWS2FZKZ.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { select } from './select-styles'\n\nconst { slotText } = select()\n\nexport function SelectSlot({ className, ...props }: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return (\n <span\n className={slotText({ className, state })}\n data-slot=\"control-left-slot\"\n {...props}\n />\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-WFZACDDH.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-SLQNE7TL.js';import {b}from'./chunk-2JQVYVAT.js';import {tv,twMerge}from'@xjur-ui/util';import*as d from'@radix-ui/react-popover';import {jsx}from'react/jsx-runtime';var{trigger:g}=a();function v({className:e,...i}){let{state:r,variant:a}=b(),l=tv({base:["group bg-layer-2-idle"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),p=twMerge(g({state:r,className:e}),a==="filter"&&l({state:r,className:e}));return jsx(d.Trigger,{className:p,disabled:r==="disabled",...i})}export{v as a};//# sourceMappingURL=chunk-WOVO46OF.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-WOVO46OF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-trigger.tsx"],"names":["trigger","select","SelectTrigger","className","props","state","variant","useFieldContext","filterTrigger","tv","mergedClassName","twMerge","jsx"],"mappings":"6LAMA,GAAM,CAAE,QAAAA,CAAQ,CAAA,CAAIC,GAAO,CAEpB,SAASC,EAAc,CAC5B,SAAA,CAAAC,EACA,GAAGC,CACL,EAAgD,CAC9C,GAAM,CAAE,KAAA,CAAAC,CAAAA,CAAO,QAAAC,CAAQ,CAAA,CAAIC,GAAgB,CAErCC,CAAAA,CAAgBC,GAAG,CACvB,IAAA,CAAM,CAAC,uBAAuB,CAAA,CAC9B,QAAA,CAAU,CACR,KAAA,CAAO,CACL,OAAQ,CACN,2GACF,EACA,KAAA,CAAO,CAAC,6CAA6C,CAAA,CACrD,QAAA,CAAU,CAAC,yCAAyC,CACtD,CACF,CACF,CAAC,EAEKC,CAAAA,CAAkBC,OAAAA,CACtBX,EAAQ,CAAE,KAAA,CAAAK,CAAAA,CAAO,SAAA,CAAAF,CAAU,CAAC,EAC5BG,CAAAA,GAAY,QAAA,EAAYE,EAAc,CAAE,KAAA,CAAAH,EAAO,SAAA,CAAAF,CAAU,CAAC,CAC5D,CAAA,CAEA,OACES,GAAAA,CAAc,CAAA,CAAA,OAAA,CAAb,CACC,SAAA,CAAWF,CAAAA,CACX,SAAUL,CAAAA,GAAU,UAAA,CACnB,GAAGD,CAAAA,CACN,CAEJ","file":"chunk-WOVO46OF.js","sourcesContent":["import { tv, twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { useFieldContext } from '../context/field.context'\nimport { select } from './select-styles'\n\nconst { trigger } = select()\n\nexport function SelectTrigger({\n className,\n ...props\n}: ComponentProps<typeof RadixPopover.Trigger>) {\n const { state, variant } = useFieldContext()\n\n const filterTrigger = tv({\n base: ['group bg-layer-2-idle'],\n variants: {\n state: {\n normal: [\n 'border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle'\n ],\n error: ['border-danger-idle hover:border-danger-idle'],\n disabled: ['border border-border-layer-2 opacity-60']\n }\n }\n })\n\n const mergedClassName = twMerge(\n trigger({ state, className }),\n variant === 'filter' && filterTrigger({ state, className })\n )\n\n return (\n <RadixPopover.Trigger\n className={mergedClassName}\n disabled={state === 'disabled'}\n {...props}\n />\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {jsx}from'react/jsx-runtime';var{caption:e}=a$1();function a({className:p,...n}){let{state:r}=b();return jsx("p",{className:e({className:p,state:r}),...n})}export{a};//# sourceMappingURL=chunk-WUHYNXHE.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-WUHYNXHE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/input/input-caption.tsx"],"names":["caption","input","InputCaption","className","props","state","useFieldContext","jsx"],"mappings":"mHAIA,GAAM,CAAE,OAAA,CAAAA,CAAQ,CAAA,CAAIC,GAAAA,EAAM,CAEnB,SAASC,EAAa,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,EAAwB,CACzE,GAAM,CAAE,KAAA,CAAAC,CAAM,CAAA,CAAIC,CAAAA,GAClB,OAAOC,GAAAA,CAAC,KAAE,SAAA,CAAWP,CAAAA,CAAQ,CAAE,SAAA,CAAAG,EAAW,KAAA,CAAAE,CAAM,CAAC,CAAA,CAAI,GAAGD,EAAO,CACjE","file":"chunk-WUHYNXHE.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { caption } = input()\n\nexport function InputCaption({ className, ...props }: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/list/context/list-context.tsx"],"names":["VirtualizerContext","createContext"],"mappings":"kCASO,IAAMA,CAAAA,CAAqBC,aAAAA,CAAuC,CACvE,WAAA,CAAa,IAAA,CACb,OAAA,CAAS,KACX,CAAC","file":"chunk-WW4B3LUO.js","sourcesContent":["import { createContext } from 'react'\nimport type { Virtualizer } from '@tanstack/react-virtual'\n\n// Context para compartilhar o virtualizer entre os componentes\nexport type VirtualizerContextValue = {\n virtualizer: Virtualizer<HTMLDivElement, Element> | null\n enabled: boolean\n}\n\nexport const VirtualizerContext = createContext<VirtualizerContextValue>({\n virtualizer: null,\n enabled: false\n})\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-SLQNE7TL.js';import {b}from'./chunk-2JQVYVAT.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {jsx}from'react/jsx-runtime';var{icon:s}=a();function d({className:r,name:p,orientation:c="left",...i}){let{state:m}=b();return jsx("div",{className:s({className:r,state:m}),"data-slot":`control-${c}-slot`,...i,children:jsx(b$1,{name:p})})}export{d as a};//# sourceMappingURL=chunk-XJFPH3IG.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-XJFPH3IG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/select/select-icon.tsx"],"names":["icon","select","SelectIcon","className","name","orientation","props","state","useFieldContext","jsx","Icon"],"mappings":"uJAKA,GAAM,CAAE,IAAA,CAAAA,CAAK,CAAA,CAAIC,CAAAA,EAAO,CAEjB,SAASC,CAAAA,CAAW,CACzB,UAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,GAAGC,CACL,CAAA,CAGG,CACD,GAAM,CAAE,KAAA,CAAAC,CAAM,EAAIC,CAAAA,EAAgB,CAElC,OACEC,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWT,CAAAA,CAAK,CAAE,SAAA,CAAAG,CAAAA,CAAW,KAAA,CAAAI,CAAM,CAAC,CAAA,CACpC,YAAW,CAAA,QAAA,EAAWF,CAAW,CAAA,KAAA,CAAA,CAChC,GAAGC,CAAAA,CAEJ,QAAA,CAAAG,GAAAA,CAACC,GAAAA,CAAA,CAAK,IAAA,CAAMN,CAAAA,CAAM,CAAA,CACpB,CAEJ","file":"chunk-XJFPH3IG.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { Icon, type IconType } from '../../icon'\nimport { useFieldContext } from '../context/field.context'\nimport { select } from './select-styles'\n\nconst { icon } = select()\n\nexport function SelectIcon({\n className,\n name,\n orientation = 'left',\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n orientation?: 'left' | 'right'\n}) {\n const { state } = useFieldContext()\n\n return (\n <div\n className={icon({ className, state })}\n data-slot={`control-${orientation}-slot`}\n {...props}\n >\n <Icon name={name} />\n </div>\n )\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-WW4B3LUO.js';import {Slot}from'@radix-ui/react-slot';import {cx}from'@xjur-ui/util';import {useContext}from'react';import {jsx}from'react/jsx-runtime';function g({className:l,asChild:i,children:p,renderItem:r,...a$1}){let n=i?Slot:"ul",{virtualizer:e,enabled:f}=useContext(a);if(f&&e&&r){let x=e.getVirtualItems();return jsx(n,{...a$1,className:cx("p-small relative flex flex-col",l),style:{height:`${e.getTotalSize()}px`},children:x.map(t=>jsx("div",{className:"absolute top-0 left-0 w-full","data-index":t.index,ref:e.measureElement,style:{transform:`translateY(${t.start}px)`},children:r(t.index)},t.key))})}return jsx(n,{...a$1,className:cx("gap-small-1x p-small flex flex-col",l),children:p})}export{g as a};//# sourceMappingURL=chunk-XPC3GTK7.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-XPC3GTK7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/list/list-content.tsx"],"names":["ListContent","className","asChild","children","renderItem","props","Comp","Slot","virtualizer","enabled","useContext","VirtualizerContext","items","jsx","cx","virtualItem"],"mappings":"8KAMO,SAASA,CAAAA,CAAY,CAC1B,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGC,GACL,CAAA,CAGG,CACD,IAAMC,CAAAA,CAAOJ,CAAAA,CAAUK,IAAAA,CAAO,IAAA,CACxB,CAAE,WAAA,CAAAC,CAAAA,CAAa,OAAA,CAAAC,CAAQ,CAAA,CAAIC,UAAAA,CAAWC,CAAkB,CAAA,CAE9D,GAAIF,CAAAA,EAAWD,CAAAA,EAAeJ,CAAAA,CAAY,CACxC,IAAMQ,CAAAA,CAAQJ,CAAAA,CAAY,eAAA,EAAgB,CAE1C,OACEK,GAAAA,CAACP,CAAAA,CAAA,CACE,GAAGD,GAAAA,CACJ,UAAWS,EAAAA,CAAG,gCAAA,CAAkCb,CAAS,CAAA,CACzD,KAAA,CAAO,CAAE,MAAA,CAAQ,CAAA,EAAGO,CAAAA,CAAY,YAAA,EAAc,CAAA,EAAA,CAAK,CAAA,CAElD,QAAA,CAAAI,CAAAA,CAAM,GAAA,CAAIG,CAAAA,EACTF,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAU,8BAAA,CACV,YAAA,CAAYE,CAAAA,CAAY,KAAA,CAExB,GAAA,CAAKP,CAAAA,CAAY,cAAA,CACjB,KAAA,CAAO,CACL,SAAA,CAAW,cAAcO,CAAAA,CAAY,KAAK,CAAA,GAAA,CAC5C,CAAA,CAEC,QAAA,CAAAX,CAAAA,CAAWW,CAAAA,CAAY,KAAK,CAAA,CAAA,CANxBA,CAAAA,CAAY,GAOnB,CACD,CAAA,CACH,CAEJ,CAEA,OACEF,GAAAA,CAACP,CAAAA,CAAA,CACE,GAAGD,GAAAA,CACJ,SAAA,CAAWS,EAAAA,CAAG,oCAAA,CAAsCb,CAAS,CAAA,CAE5D,QAAA,CAAAE,CAAAA,CACH,CAEJ","file":"chunk-XPC3GTK7.js","sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cx } from '@xjur-ui/util'\nimport type { ComponentProps, ReactNode } from 'react'\nimport { useContext } from 'react'\nimport { VirtualizerContext } from './context/list-context'\n\nexport function ListContent({\n className,\n asChild,\n children,\n renderItem,\n ...props\n}: ComponentProps<'ul'> & {\n asChild?: boolean\n renderItem?: (index: number) => ReactNode\n}) {\n const Comp = asChild ? Slot : 'ul'\n const { virtualizer, enabled } = useContext(VirtualizerContext)\n\n if (enabled && virtualizer && renderItem) {\n const items = virtualizer.getVirtualItems()\n\n return (\n <Comp\n {...props}\n className={cx('p-small relative flex flex-col', className)}\n style={{ height: `${virtualizer.getTotalSize()}px` }}\n >\n {items.map(virtualItem => (\n <div\n className=\"absolute top-0 left-0 w-full\"\n data-index={virtualItem.index}\n key={virtualItem.key}\n ref={virtualizer.measureElement}\n style={{\n transform: `translateY(${virtualItem.start}px)`\n }}\n >\n {renderItem(virtualItem.index)}\n </div>\n ))}\n </Comp>\n )\n }\n\n return (\n <Comp\n {...props}\n className={cx('gap-small-1x p-small flex flex-col', className)}\n >\n {children}\n </Comp>\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/input/input-label.tsx"],"names":["InputLabel","props","jsx","FloatingLabel"],"mappings":"wEAGO,SAASA,CAAAA,CAAWC,CAAAA,CAA6C,CACtE,OAAOC,GAAAA,CAACC,CAAAA,CAAA,CAAe,GAAGF,CAAAA,CAAO,CACnC","file":"chunk-XU7DDF5D.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { FloatingLabel } from '../floating-label'\n\nexport function InputLabel(props: ComponentProps<typeof FloatingLabel>) {\n return <FloatingLabel {...props} />\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a}from'./chunk-4GDW5WIQ.js';import {b}from'./chunk-2JQVYVAT.js';import {tv,twMerge}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';var{trigger:s}=a();function c({className:e,...d}){let{state:r,variant:i}=b(),a=tv({base:["group bg-layer-2-idle relative"],variants:{state:{normal:["border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle"],error:["border-danger-idle hover:border-danger-idle"],disabled:["border border-border-layer-2 opacity-60"]}}}),n=twMerge(s({state:r,className:e}),i==="filter"&&a({state:r,className:e}));return jsx("div",{"aria-disabled":r==="disabled",className:n,...d})}export{c as a};//# sourceMappingURL=chunk-YDRZPQ3J.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-YDRZPQ3J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/input/input-trigger.tsx"],"names":["trigger","input","InputTrigger","className","props","state","variant","useFieldContext","filterTrigger","tv","mergedClassName","twMerge","jsx"],"mappings":"mJAKA,GAAM,CAAE,OAAA,CAAAA,CAAQ,EAAIC,CAAAA,EAAM,CAEnB,SAASC,CAAAA,CAAa,CAAE,UAAAC,CAAAA,CAAW,GAAGC,CAAM,CAAA,CAA0B,CAC3E,GAAM,CAAE,KAAA,CAAAC,EAAO,OAAA,CAAAC,CAAQ,EAAIC,CAAAA,EAAgB,CAErCC,EAAgBC,EAAAA,CAAG,CACvB,KAAM,CAAC,gCAAgC,EACvC,QAAA,CAAU,CACR,MAAO,CACL,MAAA,CAAQ,CACN,2GACF,CAAA,CACA,MAAO,CAAC,6CAA6C,EACrD,QAAA,CAAU,CAAC,yCAAyC,CACtD,CACF,CACF,CAAC,CAAA,CAEKC,EAAkBC,OAAAA,CACtBX,CAAAA,CAAQ,CAAE,KAAA,CAAAK,CAAAA,CAAO,UAAAF,CAAU,CAAC,EAC5BG,CAAAA,GAAY,QAAA,EAAYE,EAAc,CAAE,KAAA,CAAAH,EAAO,SAAA,CAAAF,CAAU,CAAC,CAC5D,CAAA,CAEA,OACES,GAAAA,CAAC,KAAA,CAAA,CACC,gBAAeP,CAAAA,GAAU,UAAA,CACzB,UAAWK,CAAAA,CACV,GAAGN,EACN,CAEJ","file":"chunk-YDRZPQ3J.js","sourcesContent":["import { tv, twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { useFieldContext } from '../context/field.context'\nimport { input } from './input-styles'\n\nconst { trigger } = input()\n\nexport function InputTrigger({ className, ...props }: ComponentProps<'div'>) {\n const { state, variant } = useFieldContext()\n\n const filterTrigger = tv({\n base: ['group bg-layer-2-idle relative'],\n variants: {\n state: {\n normal: [\n 'border-border-layer-2 hover:border-border-layer-3 has-[input:not(:placeholder-shown)]:border-primary-idle'\n ],\n error: ['border-danger-idle hover:border-danger-idle'],\n disabled: ['border border-border-layer-2 opacity-60']\n }\n }\n })\n\n const mergedClassName = twMerge(\n trigger({ state, className }),\n variant === 'filter' && filterTrigger({ state, className })\n )\n\n return (\n <div\n aria-disabled={state === 'disabled'}\n className={mergedClassName}\n {...props}\n />\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/date-picker/date-picker-label.tsx"],"names":["DatePickerLabel","props","jsx","FloatingLabel"],"mappings":"wEAGO,SAASA,CAAAA,CAAgBC,CAAAA,CAA6C,CAC3E,OAAOC,GAAAA,CAACC,CAAAA,CAAA,CAAe,GAAGF,CAAAA,CAAO,CACnC","file":"chunk-YHG3FCHM.js","sourcesContent":["import type { ComponentProps } from 'react'\nimport { FloatingLabel } from '../floating-label'\n\nexport function DatePickerLabel(props: ComponentProps<typeof FloatingLabel>) {\n return <FloatingLabel {...props} />\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-PBR7SFWY.js';import {b}from'./chunk-M6ZI7M3R.js';import {a}from'./chunk-EIG6CBTQ.js';import {cx,cva}from'@xjur-ui/util';import {createContext}from'react';import {InputMask}from'@react-input/mask';import {NumericFormat}from'react-number-format';import {jsx}from'react/jsx-runtime';var u=createContext({variant:"outlined"});function C({className:e,variant:r="outlined",...o}){return jsx(u.Provider,{value:{variant:r},children:jsx("div",{className:cx("relative flex",e),...o})})}function P({className:e,...r}){let o=cva(["gap-small py-small_1x-alt px-small flex items-center w-full","h-large-4x rounded-circle","border-border-layer-2 placeholder:placeholder-neutral-placeholder text-size-body-md text-neutral-dark border font-normal","group-hover:border-border-layer-3 transition-colors duration-200","disabled:opacity-60","focus-within:border-primary-idle"],{variants:{variant:{outlined:"rounded-circle focus-within:border-primary-idle ",line:"rounded-none border-t-0 border-b-1 border-x-0",action:"rounded-tr-none rounded-br-none border-r-0"}}});return jsx(u.Consumer,{children:({variant:a})=>jsx("div",{className:cx(e,o({variant:a})),"data-variant":a,...r})})}function S({htmlFor:e,...r}){return jsx(a,{asChild:true,className:cx("absolute -top-[22px] left-0"),size:"sm",variant:"label",weight:"medium",children:jsx("label",{htmlFor:e,...r})})}function N({className:e,...r}){return jsx("input",{className:cx(e,"flex-1 outline-none"),...r})}function k({className:e,mask:r,customMask:o,...a}){return jsx(InputMask,{...r?{...a$1(r)}:o&&{...o},className:cx(e,"flex-1 outline-none"),...a})}function g({className:e,...r}){return jsx(NumericFormat,{className:cx(e,"flex-1 outline-none"),...r})}function M(e){return jsx("div",{...e,"data-slot":"search-input-slot"})}function T({className:e,appearance:r="ghost",variant:o="outlined",...a}){return jsx(b,{...a,appearance:r,className:cx(e,"cursor-pointer","h-large-4x rounded-tr-circle rounded-br-circle px-small py-small_1x-alt flex items-center justify-center rounded-none","text-size-body-md text-neutral-dark gap-small-1x !border-l-0"),"data-slot":"search-input-action",variant:o})}export{C as a,P as b,S as c,N as d,k as e,g as f,M as g,T as h};//# sourceMappingURL=chunk-ZHLE6XEC.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-ZHLE6XEC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/controls/search-input.tsx"],"names":["SearchInputRootContext","createContext","SearchInputRoot","className","variant","props","jsx","cx","SearchInputContent","contentVarians","cva","SearchInputLabel","htmlFor","Typography","SearchInputText","SearchInputMask","mask","customMask","InputMaskComponent","inputMask","SearchInputNumber","NumericFormat","SearchInputSlot","SearchInputAction","appearance","Button"],"mappings":"sTAeA,IAAMA,CAAAA,CAAyBC,cAAgC,CAC7D,OAAA,CAAS,UACX,CAAC,CAAA,CAEM,SAASC,CAAAA,CAAgB,CAC9B,UAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CAAU,UAAA,CACV,GAAGC,CACL,CAAA,CAA6C,CAC3C,OACEC,GAAAA,CAACN,CAAAA,CAAuB,QAAA,CAAvB,CAAgC,KAAA,CAAO,CAAE,OAAA,CAAAI,CAAQ,EAChD,QAAA,CAAAE,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWC,EAAAA,CAAG,eAAA,CAAiBJ,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAAA,CAC7D,CAEJ,CAEO,SAASG,CAAAA,CAAmB,CACjC,SAAA,CAAAL,CAAAA,CACA,GAAGE,CACL,CAAA,CAA0B,CACxB,IAAMI,CAAAA,CAAiBC,GAAAA,CACrB,CACE,6DAAA,CACA,4BACA,0HAAA,CACA,kEAAA,CACA,qBAAA,CACA,kCACF,CAAA,CACA,CACE,QAAA,CAAU,CACR,QAAS,CACP,QAAA,CAAU,kDAAA,CACV,IAAA,CAAM,+CAAA,CACN,MAAA,CAAQ,4CACV,CACF,CACF,CACF,CAAA,CAEA,OACEJ,GAAAA,CAACN,EAAuB,QAAA,CAAvB,CACE,QAAA,CAAA,CAAC,CAAE,QAAAI,CAAQ,CAAA,GACVE,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWC,EAAAA,CAAGJ,CAAAA,CAAWM,CAAAA,CAAe,CAAE,OAAA,CAAAL,CAAQ,CAAC,CAAC,CAAA,CACpD,cAAA,CAAcA,CAAAA,CACb,GAAGC,EACN,CAAA,CAEJ,CAEJ,CAEO,SAASM,CAAAA,CAAiB,CAC/B,OAAA,CAAAC,CAAAA,CACA,GAAGP,CACL,CAAA,CAA4B,CAC1B,OACEC,IAACO,CAAAA,CAAA,CACC,OAAA,CAAS,IAAA,CACT,UAAWN,EAAAA,CAAG,6BAA6B,CAAA,CAC3C,IAAA,CAAK,IAAA,CACL,OAAA,CAAQ,OAAA,CACR,MAAA,CAAO,SAEP,QAAA,CAAAD,GAAAA,CAAC,OAAA,CAAA,CAAM,OAAA,CAASM,CAAAA,CAAU,GAAGP,CAAAA,CAAO,CAAA,CACtC,CAEJ,CAEO,SAASS,CAAAA,CAAgB,CAC9B,SAAA,CAAAX,CAAAA,CACA,GAAGE,CACL,EAA4B,CAC1B,OAAOC,GAAAA,CAAC,OAAA,CAAA,CAAM,UAAWC,EAAAA,CAAGJ,CAAAA,CAAW,qBAAqB,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAC5E,CAEO,SAASU,CAAAA,CAAgB,CAC9B,SAAA,CAAAZ,CAAAA,CACA,KAAAa,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,GAAGZ,CACL,CAAA,CAGG,CACD,OACEC,IAACY,SAAAA,CAAA,CACE,GAAIF,CAAAA,CAAO,CAAE,GAAGG,GAAAA,CAAUH,CAAI,CAAE,CAAA,CAAIC,CAAAA,EAAc,CAAE,GAAGA,CAAW,CAAA,CACnE,SAAA,CAAWV,EAAAA,CAAGJ,CAAAA,CAAW,qBAAqB,CAAA,CAC7C,GAAGE,CAAAA,CACN,CAEJ,CAEO,SAASe,CAAAA,CAAkB,CAAE,UAAAjB,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAuB,CAC7E,OACEC,GAAAA,CAACe,aAAAA,CAAA,CACC,SAAA,CAAWd,EAAAA,CAAGJ,CAAAA,CAAW,qBAAqB,CAAA,CAC7C,GAAGE,CAAAA,CACN,CAEJ,CAEO,SAASiB,CAAAA,CAAgBjB,CAAAA,CAA8B,CAC5D,OAAOC,GAAAA,CAAC,KAAA,CAAA,CAAK,GAAGD,CAAAA,CAAO,YAAU,mBAAA,CAAoB,CACvD,CAEO,SAASkB,CAAAA,CAAkB,CAChC,SAAA,CAAApB,CAAAA,CACA,WAAAqB,CAAAA,CAAa,OAAA,CACb,OAAA,CAAApB,CAAAA,CAAU,UAAA,CACV,GAAGC,CACL,CAAA,CAAgB,CACd,OACEC,GAAAA,CAACmB,CAAAA,CAAA,CACE,GAAGpB,CAAAA,CACJ,UAAA,CAAYmB,CAAAA,CACZ,UAAWjB,EAAAA,CACTJ,CAAAA,CACA,gBAAA,CACA,uHAAA,CACA,8DACF,CAAA,CACA,WAAA,CAAU,qBAAA,CACV,OAAA,CAASC,EACX,CAEJ","file":"chunk-ZHLE6XEC.js","sourcesContent":["import { cva, cx } from '@xjur-ui/util'\nimport { createContext, type ComponentProps } from 'react'\nimport {\n InputMask as InputMaskComponent,\n type MaskOptions\n} from '@react-input/mask'\nimport { NumericFormat, type NumericFormatProps } from 'react-number-format'\nimport { Typography } from '../typography'\nimport { inputMask, type InputMaskType } from '../../resources/input-mask'\nimport { Button, type ButtonProps } from './button'\n\nexport type SearchInputProps = {\n variant?: 'outlined' | 'line' | 'action'\n}\n\nconst SearchInputRootContext = createContext<SearchInputProps>({\n variant: 'outlined'\n})\n\nexport function SearchInputRoot({\n className,\n variant = 'outlined',\n ...props\n}: ComponentProps<'div'> & SearchInputProps) {\n return (\n <SearchInputRootContext.Provider value={{ variant }}>\n <div className={cx('relative flex', className)} {...props} />\n </SearchInputRootContext.Provider>\n )\n}\n\nexport function SearchInputContent({\n className,\n ...props\n}: ComponentProps<'div'>) {\n const contentVarians = cva(\n [\n 'gap-small py-small_1x-alt px-small flex items-center w-full',\n 'h-large-4x rounded-circle',\n 'border-border-layer-2 placeholder:placeholder-neutral-placeholder text-size-body-md text-neutral-dark border font-normal',\n 'group-hover:border-border-layer-3 transition-colors duration-200',\n 'disabled:opacity-60',\n 'focus-within:border-primary-idle'\n ],\n {\n variants: {\n variant: {\n outlined: 'rounded-circle focus-within:border-primary-idle ',\n line: 'rounded-none border-t-0 border-b-1 border-x-0',\n action: 'rounded-tr-none rounded-br-none border-r-0'\n }\n }\n }\n )\n\n return (\n <SearchInputRootContext.Consumer>\n {({ variant }) => (\n <div\n className={cx(className, contentVarians({ variant }))}\n data-variant={variant}\n {...props}\n />\n )}\n </SearchInputRootContext.Consumer>\n )\n}\n\nexport function SearchInputLabel({\n htmlFor,\n ...props\n}: ComponentProps<'label'>) {\n return (\n <Typography\n asChild={true}\n className={cx('absolute -top-[22px] left-0')}\n size=\"sm\"\n variant=\"label\"\n weight=\"medium\"\n >\n <label htmlFor={htmlFor} {...props} />\n </Typography>\n )\n}\n\nexport function SearchInputText({\n className,\n ...props\n}: ComponentProps<'input'>) {\n return <input className={cx(className, 'flex-1 outline-none')} {...props} />\n}\n\nexport function SearchInputMask({\n className,\n mask,\n customMask,\n ...props\n}: ComponentProps<'input'> & {\n mask?: InputMaskType\n customMask?: MaskOptions\n}) {\n return (\n <InputMaskComponent\n {...(mask ? { ...inputMask(mask) } : customMask && { ...customMask })}\n className={cx(className, 'flex-1 outline-none')}\n {...props}\n />\n )\n}\n\nexport function SearchInputNumber({ className, ...props }: NumericFormatProps) {\n return (\n <NumericFormat\n className={cx(className, 'flex-1 outline-none')}\n {...props}\n />\n )\n}\n\nexport function SearchInputSlot(props: ComponentProps<'div'>) {\n return <div {...props} data-slot=\"search-input-slot\" />\n}\n\nexport function SearchInputAction({\n className,\n appearance = 'ghost',\n variant = 'outlined',\n ...props\n}: ButtonProps) {\n return (\n <Button\n {...props}\n appearance={appearance}\n className={cx(\n className,\n 'cursor-pointer',\n 'h-large-4x rounded-tr-circle rounded-br-circle px-small py-small_1x-alt flex items-center justify-center rounded-none',\n 'text-size-body-md text-neutral-dark gap-small-1x !border-l-0'\n )}\n data-slot=\"search-input-action\"\n variant={variant}\n />\n )\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
|
|
4
|
+
declare function CarouselAction({ direction, className, ...props }: ComponentProps<'div'> & {
|
|
5
|
+
direction: 'right' | 'left';
|
|
6
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
7
|
+
|
|
8
|
+
export { CarouselAction };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"carousel-action.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"carousel-content.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"carousel-item.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { RefObject, ComponentProps } from 'react';
|
|
4
|
+
|
|
5
|
+
declare const CarouselRootContext: React.Context<{
|
|
6
|
+
scrollAmount: number;
|
|
7
|
+
scrollRef: RefObject<HTMLDivElement | null>;
|
|
8
|
+
}>;
|
|
9
|
+
declare function CarouselRoot({ className, scrollAmount, ...props }: ComponentProps<'div'> & {
|
|
10
|
+
scrollAmount?: number;
|
|
11
|
+
}): react_jsx_runtime.JSX.Element;
|
|
12
|
+
|
|
13
|
+
export { CarouselRoot, CarouselRootContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"carousel-root.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CarouselAction}from'../../chunk-FOY43MIQ.js';export{a as CarouselContent}from'../../chunk-C4YYI53B.js';export{a as CarouselItem}from'../../chunk-OGRUMTZC.js';export{b as CarouselRoot}from'../../chunk-NRQWDEPL.js';import'../../chunk-M6ZI7M3R.js';import'../../chunk-DVDHTP4C.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -16,7 +16,7 @@ declare function ChipRoot({ className, variant, disabled, ...props }: ComponentP
|
|
|
16
16
|
}): react_jsx_runtime.JSX.Element;
|
|
17
17
|
declare function ChipText({ variant, size, weight, className, ...props }: ComponentProps<typeof Typography>): react_jsx_runtime.JSX.Element;
|
|
18
18
|
declare function ChipIcon({ className, ...props }: ComponentProps<typeof Icon>): react_jsx_runtime.JSX.Element;
|
|
19
|
-
declare function ChipClose({ className, children, ...props }: ComponentProps<'
|
|
19
|
+
declare function ChipClose({ className, children, ...props }: ComponentProps<'div'> & {
|
|
20
20
|
name?: IconType;
|
|
21
21
|
}): react_jsx_runtime.JSX.Element;
|
|
22
22
|
declare function ChipAvatar({ size, avatarFallback, avatarUrl, ...props }: ComponentProps<typeof AvatarRoot> & {
|
package/dist/components/chip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$1,b as b$1,c}from'../chunk-TB6KI6CL.js';import {b}from'../chunk-DVDHTP4C.js';import {a}from'../chunk-EIG6CBTQ.js';import {cva,cx}from'@xjur-ui/util';import'react';import {jsx,jsxs}from'react/jsx-runtime';var
|
|
1
|
+
import {a as a$1,b as b$1,c}from'../chunk-TB6KI6CL.js';import {b}from'../chunk-DVDHTP4C.js';import {a}from'../chunk-EIG6CBTQ.js';import {cva,cx}from'@xjur-ui/util';import'react';import {jsx,jsxs}from'react/jsx-runtime';var v=cva(["group/chip relative h-large-2x w-fit rounded-circle px-small py-none flex items-center gap-small_1x-alt","transition-all duration-200"],{variants:{variant:{primary:"bg-primary-alt-idle text-primary-label-idle hover:bg-primary-alt-hover",danger:"bg-danger-alt-idle text-danger-label-idle hover:bg-danger-alt-hover",neutral:"bg-layer-1-idle text-neutral-dark hover:bg-layer-1-hover"}},defaultVariants:{variant:"primary"}});function C({className:a,variant:r="primary",disabled:t=false,...i}){return jsx("div",{className:cx(v({variant:r}),a),"data-disabled":t,...i})}function P({variant:a$1="label",size:r="sm-1x",weight:t="medium",className:i,...m}){return jsx(a,{className:cx(i,"truncate"),size:r,variant:a$1,weight:t,...m})}function g({className:a,...r}){return jsx(b,{className:(cx("text-size-body-md","group-data-[variant=primary]:text-primary-label-idle","group-data-[variant=danger]:text-danger-label-idle","group-data-[variant=neutral]:text-icon-neutral-3"),a),...r})}function A({className:a,children:r=jsx(g,{name:"close"}),...t}){return jsx("div",{className:cx(a,"data-[disabled=true]:invisible","cursor-pointer bg-inherit","invisible items-center justify-center group-hover/chip:visible","absolute top-0 right-0","h-large-2x w-large-2x rounded-circle","transition-[visibility] duration-200"),role:"button",...t,children:r})}function I({size:a="xs",avatarFallback:r="CN",avatarUrl:t,...i}){return jsxs(a$1,{size:a,style:{marginLeft:"-4px"},...i,children:[t&&jsx(b$1,{src:t}),jsx(c,{children:r})]})}export{I as ChipAvatar,A as ChipClose,g as ChipIcon,C as ChipRoot,P as ChipText};//# sourceMappingURL=chip.js.map
|
|
2
2
|
//# sourceMappingURL=chip.js.map
|