@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xjur-ui/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React components for XJur Design System",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"./logo": "./dist/components/logo.js",
|
|
13
13
|
"./collapsible": "./dist/components/collapsible.js",
|
|
14
14
|
"./accordion": "./dist/components/accordion.js",
|
|
15
|
-
"./list": "./dist/components/list.js",
|
|
15
|
+
"./list": "./dist/components/list/index.js",
|
|
16
16
|
"./tabs": "./dist/components/tabs.js",
|
|
17
17
|
"./tag": "./dist/components/tag.js",
|
|
18
18
|
"./chip": "./dist/components/chip.js",
|
|
@@ -37,18 +37,19 @@
|
|
|
37
37
|
"./button": "./dist/components/controls/button.js",
|
|
38
38
|
"./calendar": "./dist/components/controls/calendar.js",
|
|
39
39
|
"./checkbox": "./dist/components/controls/checkbox.js",
|
|
40
|
-
"./date-picker": "./dist/components/controls/date-picker.js",
|
|
41
|
-
"./input": "./dist/components/controls/input.js",
|
|
40
|
+
"./date-picker": "./dist/components/controls/date-picker/index.js",
|
|
41
|
+
"./input": "./dist/components/controls/input/index.js",
|
|
42
42
|
"./otp-input": "./dist/components/controls/otp-input.js",
|
|
43
43
|
"./radio": "./dist/components/controls/radio.js",
|
|
44
44
|
"./rich-editor": "./dist/components/controls/rich-editor.js",
|
|
45
45
|
"./search-input": "./dist/components/controls/search-input.js",
|
|
46
|
-
"./select": "./dist/components/controls/select.js",
|
|
46
|
+
"./select": "./dist/components/controls/select/index.js",
|
|
47
47
|
"./switch": "./dist/components/controls/switch.js",
|
|
48
48
|
"./slider": "./dist/components/controls/slider.js",
|
|
49
49
|
"./rating": "./dist/components/controls/rating.js",
|
|
50
50
|
"./pessoa": "./dist/components/custom/pessoa/index.js",
|
|
51
|
-
"./steps": "./dist/components/steps/index.js"
|
|
51
|
+
"./steps": "./dist/components/steps/index.js",
|
|
52
|
+
"./carousel": "./dist/components/carousel/index.js"
|
|
52
53
|
},
|
|
53
54
|
"files": [
|
|
54
55
|
"dist",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"@radix-ui/react-toast": "^1.2.15",
|
|
78
79
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
79
80
|
"@react-input/mask": "^2.0.4",
|
|
80
|
-
"@react-
|
|
81
|
+
"@tanstack/react-virtual": "^3.13.12",
|
|
81
82
|
"@tiptap/core": "^3.4.1",
|
|
82
83
|
"@tiptap/extension-heading": "^3.3.0",
|
|
83
84
|
"@tiptap/extension-placeholder": "^3.4.1",
|
|
@@ -85,7 +86,8 @@
|
|
|
85
86
|
"@tiptap/starter-kit": "^3.3.0",
|
|
86
87
|
"@xjur-ui/styles": "*",
|
|
87
88
|
"@xjur-ui/util": "*",
|
|
88
|
-
"react-day-picker": "^9.9.0"
|
|
89
|
+
"react-day-picker": "^9.9.0",
|
|
90
|
+
"react-number-format": "^5.4.4"
|
|
89
91
|
},
|
|
90
92
|
"peerDependencies": {
|
|
91
93
|
"react": "^18.0.0 || ^19.0.0",
|
package/dist/chunk-6PHXO2YA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-CBFC4QME.js';import {a,d,b as b$1,c,e as e$1}from'./chunk-YOLTIAFT.js';import {a as a$1}from'./chunk-EIG6CBTQ.js';import'react';import*as e from'@radix-ui/react-dropdown-menu';import {cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function x({...o}){return jsx(e.Root,{"data-slot":"dropdown-menu",...o})}function C({...o}){return jsx(e.Portal,{"data-slot":"dropdown-menu-portal",...o})}function R({...o}){return jsx(e.Trigger,{"data-slot":"dropdown-menu-trigger",...o})}function y({className:o,sideOffset:r=4,align:w="start",side:f="bottom",children:P,...c}){return jsx(e.Portal,{children:jsx(e.Content,{align:w,className:cx("group z-1000 max-h-[var(--radix-popover-content-available-height)] max-w-[var(--radix-popover-trigger-width)] min-w-[var(--radix-popover-trigger-width)]",o),"data-slot":"dropdown-menu-content",side:f,sideOffset:r,...c,children:jsx(a,{children:P})})})}function L({...o}){return jsx(d,{...o})}function T({...o}){return jsx(b$1,{...o})}function h({...o}){return jsx(c,{...o})}function H({className:o,...r}){return jsx(e$1,{className:cx(o,"cursor-pointer"),...r})}function I({...o}){return jsx(a$1,{...o})}function b({...o}){return jsx(a$2,{...o})}export{x as a,C as b,R as c,y as d,L as e,T as f,h as g,H as h,I as i,b as j};//# sourceMappingURL=chunk-6PHXO2YA.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-6PHXO2YA.js.map
|
package/dist/chunk-DTNZXDCY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-JGPHBUVM.js';import {a,b}from'./chunk-2JQVYVAT.js';import {a as a$3,d,e,b as b$2,c}from'./chunk-YOLTIAFT.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {a as a$2}from'./chunk-EIG6CBTQ.js';import {tv,twMerge,twJoin}from'@xjur-ui/util';import {useMemo}from'react';import*as s from'@radix-ui/react-popover';import {jsx,jsxs}from'react/jsx-runtime';var w=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"}}}}),{wrapper:S,trigger:N,icon:L,caption:O,slotText:F,content:I}=w();function J({className:t,state:e="normal",defaultOpen:o,variant:n="normal",modal:i,open:a$1,onOpenChange:p,...c}){return jsx(s.Root,{defaultOpen:o,modal:i,open:a$1,onOpenChange:p,children:jsx(a.Provider,{value:{state:e,variant:n},children:jsx("div",{className:S({className:t,state:e}),...c})})})}function _({className:t,...e}){let{state:o,variant:n}=b(),i=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"]}}}),a=twMerge(N({state:o,className:t}),n==="filter"&&i({state:o,className:t}));return jsx(s.Trigger,{className:a,disabled:o==="disabled",...e})}function q({className:t,name:e,...o}){let{state:n}=b();return jsx("div",{className:L({className:t,state:n}),"data-slot":"control-slot",...o,children:jsx(b$1,{name:e})})}function B({className:t,displayValue:e="",value:o,placeholder:n,...i}){let{variant:a}=b(),p=useMemo(()=>a==="filter"?e:e||n,[e,n,a]);return jsxs("div",{className:"grid w-full items-center",children:[n&&a==="filter"&&jsx(a$1,{children:n}),n&&a==="filter"&&jsx(a$2,{className:"invisible col-start-1 row-start-1 self-center",children:n}),jsx(a$2,{className:"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x z-10 col-start-1 row-start-1 self-center text-left",children:p}),jsx("input",{...i,"aria-readonly":true,className:twJoin("pointer-events-none",t),hidden:true,placeholder:" ",readOnly:true,value:o??""})]})}function D({className:t,value:e,placeholder:o,children:n,...i}){let{variant:a}=b(),p=useMemo(()=>a==="filter"?false:Array.isArray(e)&&e.length===0&&o,[e,o,a]),c=useMemo(()=>Array.isArray(e)&&e.length>0,[e]);return jsxs("div",{className:twMerge(t,"gap-small-1x scrollbar-hide flex w-full overflow-x-hidden","group-disabled:!pl-0"),children:[o&&a==="filter"&&jsx(a$1,{children:o}),o&&a==="filter"&&!c&&jsx(a$2,{className:"invisible",children:o}),p&&jsx(a$2,{className:"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x",children:o}),n,jsx("input",{...i,"aria-readonly":true,className:twMerge(t,"pointer-events-none"),hidden:true,placeholder:c?"":" ",readOnly:true,value:Array.isArray(e)?e.join(","):e})]})}function E({className:t,sideOffset:e=5,side:o="bottom",align:n="start",children:i,...a}){let{state:p}=b();return jsx(s.Portal,{children:jsx(s.Content,{align:n,className:I({className:t,state:p}),side:o,sideOffset:e,...a,children:jsx(a$3,{children:i})})})}function G({className:t,...e}){let{state:o}=b();return jsx("p",{className:O({className:t,state:o}),...e})}function K({className:t,...e}){let{state:o}=b();return jsx("span",{className:F({className:t,state:o}),...e})}function Q(t){return jsx(d,{...t})}function U({className:t,...e$1}){return jsx(e,{className:twMerge(t,"cursor-pointer"),...e$1})}function W(t){return jsx(a$2,{...t})}function X(t){return jsx(b$2,{...t})}function Y(t){return jsx(c,{...t})}export{w as a,J as b,_ as c,q as d,B as e,D as f,E as g,G as h,K as i,Q as j,U as k,W as l,X as m,Y as n};//# sourceMappingURL=chunk-DTNZXDCY.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-DTNZXDCY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/controls/select.tsx"],"names":["select","tv","wrapper","trigger","icon","caption","slotText","content","SelectRoot","className","state","defaultOpen","variant","modal","open","handleOpenChange","props","jsx","FieldContext","SelectTrigger","useFieldContext","filterTrigger","mergedClassName","twMerge","SelectIcon","name","Icon","SelectValue","displayValue","value","placeholder","valueOrPlaceholder","useMemo","jsxs","FloatingLabel","Typography","twJoin","SelectMultiValue","children","shouldShowPlaceholder","hasSelectedItems","SelectContent","sideOffset","side","align","ListRoot","SelectCaption","SelectSlot","SelectOptions","ListContent","SelectOption","ListItem","SelectOptionText","SelectHeader","ListHeader","SelectHeaderTitle","ListHeaderTitle"],"mappings":"8XAm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AzC,CAAAA,CACA,GAAGO,GACL,CAAA,CAAoC,CAClC,OACEC,GAAAA,CAACkC,EAAA,CAAS,SAAA,CAAW5B,OAAAA,CAAQd,CAAAA,CAAW,gBAAgB,CAAA,CAAI,GAAGO,IAAO,CAE1E,CAEO,SAASoC,CAAAA,CAAiBpC,CAAAA,CAA0C,CACzE,OAAOC,IAACkB,GAAAA,CAAA,CAAY,GAAGnB,CAAAA,CAAO,CAChC,CAEO,SAASqC,CAAAA,CAAarC,CAAAA,CAA0C,CACrE,OAAOC,GAAAA,CAACqC,GAAAA,CAAA,CAAY,GAAGtC,CAAAA,CAAO,CAChC,CAEO,SAASuC,CAAAA,CACdvC,CAAAA,CACA,CACA,OAAOC,GAAAA,CAACuC,EAAA,CAAiB,GAAGxC,EAAO,CACrC","file":"chunk-DTNZXDCY.js","sourcesContent":["import { tv, twJoin, twMerge } from '@xjur-ui/util'\nimport { useMemo, type ComponentProps } from 'react'\nimport * as RadixPopover from '@radix-ui/react-popover'\nimport { Icon, type IconType } from '../icon'\nimport { Typography } from '../typography'\nimport {\n ListHeaderTitle,\n ListHeader,\n ListContent,\n ListItem,\n ListRoot\n} from '../list'\nimport {\n FieldContext,\n useFieldContext,\n type FieldContextValue\n} from './context/field.context'\nimport { FloatingLabel } from './floating-label'\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\nconst { wrapper, trigger, icon, caption, slotText, content } = select()\n\nexport function SelectRoot({\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\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\nexport function SelectIcon({\n className,\n name,\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n}) {\n const { state } = useFieldContext()\n\n return (\n <div\n className={icon({ className, state })}\n data-slot=\"control-slot\"\n {...props}\n >\n <Icon name={name} />\n </div>\n )\n}\n\nexport function SelectValue({\n className,\n displayValue = '',\n value,\n placeholder,\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 group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x 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\nexport function SelectMultiValue({\n className,\n value,\n placeholder,\n children,\n ...props\n}: ComponentProps<'input'>) {\n const { variant } = useFieldContext()\n\n const shouldShowPlaceholder = useMemo(() => {\n if (variant === 'filter') return false\n return Array.isArray(value) && value.length === 0 && placeholder\n }, [value, placeholder, variant])\n\n const hasSelectedItems = useMemo(() => {\n return Array.isArray(value) && value.length > 0\n }, [value])\n\n return (\n <div\n className={twMerge(\n className,\n 'gap-small-1x scrollbar-hide flex w-full overflow-x-hidden',\n 'group-disabled:!pl-0'\n )}\n >\n {placeholder && variant === 'filter' && (\n <FloatingLabel>{placeholder}</FloatingLabel>\n )}\n\n {placeholder && variant === 'filter' && !hasSelectedItems && (\n <Typography className=\"invisible\">{placeholder}</Typography>\n )}\n\n {shouldShowPlaceholder && (\n <Typography className=\"text-neutral-dark group-has-[div[data-slot=date-picker-left-slot]]:pl-large-1x\">\n {placeholder}\n </Typography>\n )}\n\n {children}\n\n <input\n {...props}\n aria-readonly={true}\n className={twMerge(className, 'pointer-events-none')}\n hidden={true}\n placeholder={hasSelectedItems ? '' : ' '}\n readOnly={true}\n value={Array.isArray(value) ? value.join(',') : value}\n />\n </div>\n )\n}\n\nexport function SelectContent({\n className,\n sideOffset = 5,\n side = 'bottom',\n align = 'start',\n children,\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 <ListRoot>{children}</ListRoot>\n </RadixPopover.Content>\n </RadixPopover.Portal>\n )\n}\n\nexport function SelectCaption({ className, ...props }: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n\nexport function SelectSlot({ className, ...props }: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return <span className={slotText({ className, state })} {...props} />\n}\n\nexport function SelectOptions(props: ComponentProps<typeof ListContent>) {\n return <ListContent {...props} />\n}\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\nexport function SelectOptionText(props: ComponentProps<typeof Typography>) {\n return <Typography {...props} />\n}\n\nexport function SelectHeader(props: ComponentProps<typeof ListHeader>) {\n return <ListHeader {...props} />\n}\n\nexport function SelectHeaderTitle(\n props: ComponentProps<typeof ListHeaderTitle>\n) {\n return <ListHeaderTitle {...props} />\n}\n"]}
|
package/dist/chunk-JGPHBUVM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-2JQVYVAT.js';import {tv}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function d({className:a,htmlFor:e,children:l,...n}){let{state:s}=b(),r=tv({base:["group inline-block max-w-full truncate text-left","ease animate-in left-small right-small pointer-events-none absolute top-1/2 -translate-y-1/2 transition-all duration-250","text-size-body-md","group-focus-within:-top-[3px]","group-data-[state=open]:-top-[3px]","group-focus-within:text-size-label-sm-1x group-focus-within:font-medium","group-data-[state=open]:text-size-label-sm-1x group-data-[state=open]:font-medium","group-has-[input:not(:placeholder-shown)]:-top-[3px]","group-has-[input:not(:placeholder-shown)]:text-size-label-sm-1x","group-has-[input:not(:placeholder-shown)]:font-medium","group-has-[div[data-slot=control-slot]]:left-large-4x","group-has-[div[data-slot=control-slot]]:group-focus-within:left-small","group-has-[div[data-slot=control-slot]]:group-has-[input:not(:placeholder-shown)]:left-small","group-has-[div[data-slot=control-slot]]:group-data-[state=open]:left-small","group-focus-within:animate-in","group-has-[input:not(:placeholder-shown)]:animate-out","data-[disabled=true]:hidden"],variants:{state:{normal:["group-focus-within:!text-primary-idle group-data-[state=open]:!text-primary-idle","group-has-[input:not(:placeholder-shown)]:!text-primary-idle"],error:["group-focus-within:!text-danger-label-active group-data-[state=open]:!text-danger-label-active","group-has-[input:not(:placeholder-shown)]:!text-danger-label-active"],disabled:[]}}});return jsx("label",{className:r({className:a,state:s}),htmlFor:e,...n,children:jsx("span",{className:"rounded-small-1x bg-layer-2-idle max-w-full",children:l})})}export{d as a};//# sourceMappingURL=chunk-JGPHBUVM.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-JGPHBUVM.js.map
|
package/dist/chunk-MTIWFWRN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b}from'./chunk-SXGSWVMZ.js';import {b as b$1,c,e,d,g,j,k,l}from'./chunk-DTNZXDCY.js';import {useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var s=[{name:"M\xEAs",value:"month"},{name:"Semana",value:"week"},{name:"Dia",value:"day"}];function V(){let{calendarView:l$1,handleChangeView:S}=b(),v=useMemo(()=>s.find(e=>e.value===l$1)?.name,[l$1]);return jsx("div",{className:"w-[94px]",children:jsxs(b$1,{children:[jsxs(c,{children:[jsx(e,{displayValue:v,name:"calendar-toggle-view",value:l$1}),jsx(d,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})]}),jsx(g,{children:jsx(j,{children:s.map(e=>jsx(k,{isActive:l$1===e.value,value:e.value,onClick:()=>S(e.value),children:jsx(l,{children:e.name})},e.value))})})]})})}export{V as a};//# sourceMappingURL=chunk-MTIWFWRN.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-MTIWFWRN.js.map
|
package/dist/chunk-TQWBQ452.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-PBR7SFWY.js';import {a as a$1}from'./chunk-JGPHBUVM.js';import {a,b}from'./chunk-2JQVYVAT.js';import {a as a$3}from'./chunk-CBFC4QME.js';import {b as b$1}from'./chunk-DVDHTP4C.js';import {tv,twMerge}from'@xjur-ui/util';import {InputMask}from'@react-input/mask';import {InputNumberFormat}from'@react-input/number-format';import {jsx,jsxs}from'react/jsx-runtime';var y=tv({slots:{wrapper:"group flex flex-col gap-small-2x",trigger:["h-large-4x relative","inline-flex w-auto items-center gap-small rounded-small-1x","py-small_1x-alt px-small","bg-layer-2-hover border border-transparent","group-has-[div[data-slot=input-action-slot]]:rounded-r-none","transition-all duration-200"],content:"flex w-full",value:"text-size-body-md font-normal placeholder:text-neutral-placeholder flex-1 outline-none",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",action:"h-large-4x overflow-hidden"},variants:{state:{normal:{trigger:"hover:border-border-layer-1 focus-within:border-primary-idle focus-within:hover:border-primary-idle"},error:{trigger:"border-danger-idle hover:border-danger-idle focus-within:border-danger-idle focus-within:hover:border-danger-idle",caption:"text-danger-label-idle"},disabled:{trigger:"pointer-events-none border-transparent bg-layer-2-idle"}}}}),{wrapper:h,trigger:I,content:C,value:p,icon:N,caption:w,action:P,slotText:k}=y();function R({className:e,state:t="normal",customMask:r,variant:n="normal",mask:a$1,...l}){return jsx(a.Provider,{value:{state:t,customMask:r,mask:a$1,variant:n},children:jsx("div",{className:h({className:e,state:t}),...l})})}function S({className:e,...t}){let{state:r}=b();return jsx("div",{className:C({className:e,state:r}),...t})}function V(e){return jsx(a$1,{...e})}function B({className:e,...t}){let{state:r,variant:n}=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"]}}}),l=twMerge(I({state:r,className:e}),n==="filter"&&a({state:r,className:e}));return jsx("div",{"aria-disabled":r==="disabled",className:l,...t})}function q({className:e,placeholder:t,...r}){let{customMask:n,state:a,mask:l,variant:d}=b();return jsx(InputMask,{...r,...l?{...a$2(l)}:n&&{...n},className:p({className:e,state:a}),disabled:a==="disabled",placeholder:d==="filter"?" ":t,readOnly:a==="disabled"})}function E({className:e,placeholder:t,...r}){let{state:n,variant:a}=b();return jsx("input",{...r,className:p({className:e,state:n}),disabled:n==="disabled",placeholder:a==="filter"?" ":t,readOnly:n==="disabled"})}function G({className:e,locales:t="pt-BR",placeholder:r,groupDisplay:n=false,...a}){let{state:l,variant:d}=b();return jsx(InputNumberFormat,{...a,className:p({className:e,state:l}),disabled:l==="disabled",groupDisplay:n,locales:t,placeholder:d==="filter"?" ":r,readOnly:l==="disabled"})}function H({className:e,name:t,...r}){let{state:n}=b();return jsx("div",{className:N({className:e,state:n}),"data-slot":"control-slot",...r,children:jsx(b$1,{name:t})})}function J({className:e,...t}){let{state:r}=b();return jsx("span",{className:k({className:e,state:r}),...t})}function K({className:e,...t}){let{state:r}=b();return jsx("p",{className:w({className:e,state:r}),...t})}function F({className:e,...t}){let{state:r}=b();return jsx("div",{className:P({className:e,state:r}),"data-slot":"input-action-slot",...t})}function Q({handleIncrement:e,handleDecrement:t}){return jsxs(F,{className:"w-large-4x border-border-layer-2 rounded-r-small-1x bg-layer-2-hover flex flex-col items-center justify-center border",children:[jsx("button",{className:"flex h-1/2 items-center justify-center",type:"button",onClick:e,children:jsx(b$1,{className:"text-icon-neutral-3",name:"keyboard_arrow_up"})}),jsx(a$3,{}),jsx("button",{className:"flex h-1/2 items-center justify-center",type:"button",onClick:t,children:jsx(b$1,{className:"text-icon-neutral-3",name:"keyboard_arrow_down"})})]})}export{y as a,R as b,S as c,V as d,B as e,q as f,E as g,G as h,H as i,J as j,K as k,F as l,Q as m};//# sourceMappingURL=chunk-TQWBQ452.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-TQWBQ452.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/controls/input.tsx"],"names":["input","tv","wrapper","trigger","content","value","icon","caption","action","slotText","InputRoot","className","state","customMask","variant","mask","props","jsx","FieldContext","InputContent","useFieldContext","InputLabel","FloatingLabel","InputTrigger","filterTrigger","mergedClassName","twMerge","InputMask","placeholder","InputMaskComponent","inputMask","InputText","InputNumber","locales","groupDisplay","InputNumberFormat","InputIcon","name","Icon","InputSlot","InputCaption","InputAction","InputNumericStepper","handleIncrement","handleDecrement","jsxs","Divider"],"mappings":"uYAiBO,IAAMA,EAAQC,EAAAA,CAAG,CACtB,KAAA,CAAO,CACL,QAAS,kCAAA,CACT,OAAA,CAAS,CACP,qBAAA,CACA,6DACA,0BAAA,CACA,4CAAA,CACA,6DAAA,CACA,6BACF,EACA,OAAA,CAAS,aAAA,CACT,KAAA,CACE,wFAAA,CACF,KAAM,iEAAA,CACN,QAAA,CACE,0FAAA,CACF,OAAA,CAAS,iCACT,MAAA,CAAQ,4BACV,CAAA,CACA,QAAA,CAAU,CACR,KAAA,CAAO,CACL,MAAA,CAAQ,CACN,QACE,qGACJ,CAAA,CACA,KAAA,CAAO,CACL,QACE,mHAAA,CACF,OAAA,CAAS,wBACX,CAAA,CACA,SAAU,CACR,OAAA,CAAS,wDACX,CACF,CACF,CACF,CAAC,CAAA,CAEK,CAAE,QAAAC,CAAAA,CAAS,OAAA,CAAAC,CAAAA,CAAS,OAAA,CAAAC,EAAS,KAAA,CAAAC,CAAAA,CAAO,IAAA,CAAAC,CAAAA,CAAM,QAAAC,CAAAA,C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ACC,SAAA,CAAU,wCAAA,CACV,KAAK,QAAA,CACL,OAAA,CAAS0B,CAAAA,CAET,QAAA,CAAA1B,IAACqB,GAAAA,CAAA,CAAK,SAAA,CAAU,qBAAA,CAAsB,KAAK,mBAAA,CAAoB,CAAA,CACjE,CAAA,CAEArB,GAAAA,CAAC6B,IAAA,EAAQ,CAAA,CAET7B,GAAAA,CAAC,QAAA,CAAA,CACC,UAAU,wCAAA,CACV,IAAA,CAAK,QAAA,CACL,OAAA,CAAS2B,EAET,QAAA,CAAA3B,GAAAA,CAACqB,GAAAA,CAAA,CAAK,UAAU,qBAAA,CAAsB,IAAA,CAAK,qBAAA,CAAsB,CAAA,CACnE,GACF,CAEJ","file":"chunk-TQWBQ452.js","sourcesContent":["import { tv, twMerge } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { InputMask as InputMaskComponent } from '@react-input/mask'\nimport {\n InputNumberFormat,\n type InputNumberFormatProps\n} from '@react-input/number-format'\nimport { Icon, type IconType } from '../icon'\nimport { inputMask } from '../../resources/input-mask'\nimport { Divider } from '../divider'\nimport {\n type FieldContextValue,\n FieldContext,\n useFieldContext\n} from './context/field.context'\nimport { FloatingLabel } from './floating-label'\n\nexport const input = tv({\n slots: {\n wrapper: 'group flex flex-col gap-small-2x',\n trigger: [\n 'h-large-4x relative',\n 'inline-flex w-auto items-center gap-small rounded-small-1x',\n 'py-small_1x-alt px-small',\n 'bg-layer-2-hover border border-transparent',\n 'group-has-[div[data-slot=input-action-slot]]:rounded-r-none',\n 'transition-all duration-200'\n ],\n content: 'flex w-full',\n value:\n 'text-size-body-md font-normal placeholder:text-neutral-placeholder flex-1 outline-none',\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 action: 'h-large-4x overflow-hidden'\n },\n variants: {\n state: {\n normal: {\n trigger:\n 'hover:border-border-layer-1 focus-within:border-primary-idle focus-within:hover:border-primary-idle'\n },\n error: {\n trigger:\n 'border-danger-idle hover:border-danger-idle focus-within:border-danger-idle focus-within: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\nconst { wrapper, trigger, content, value, icon, caption, action, slotText } =\n input()\n\nexport function InputRoot({\n className,\n state = 'normal',\n customMask,\n variant = 'normal',\n mask,\n ...props\n}: ComponentProps<'div'> & FieldContextValue) {\n return (\n <FieldContext.Provider value={{ state, customMask, mask, variant }}>\n <div className={wrapper({ className, state })} {...props} />\n </FieldContext.Provider>\n )\n}\n\nexport function InputContent({ className, ...props }: ComponentProps<'div'>) {\n const { state } = useFieldContext()\n return <div className={content({ className, state })} {...props} />\n}\n\nexport function InputLabel(props: ComponentProps<typeof FloatingLabel>) {\n return <FloatingLabel {...props} />\n}\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\nexport function InputMask({\n className,\n placeholder,\n ...props\n}: ComponentProps<'input'>) {\n const { customMask, state, mask, variant } = useFieldContext()\n\n return (\n <InputMaskComponent\n {...props}\n {...(mask ? { ...inputMask(mask) } : customMask && { ...customMask })}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n\nexport function InputText({\n className,\n placeholder,\n ...props\n}: ComponentProps<'input'>) {\n const { state, variant } = useFieldContext()\n\n return (\n <input\n {...props}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n\nexport function InputNumber({\n className,\n locales = 'pt-BR',\n placeholder,\n groupDisplay = false,\n ...props\n}: InputNumberFormatProps) {\n const { state, variant } = useFieldContext()\n\n return (\n <InputNumberFormat\n {...props}\n className={value({ className, state })}\n disabled={state === 'disabled'}\n groupDisplay={groupDisplay}\n locales={locales}\n placeholder={variant === 'filter' ? ' ' : placeholder}\n readOnly={state === 'disabled'}\n />\n )\n}\n\nexport function InputIcon({\n className,\n name,\n ...props\n}: ComponentProps<'div'> & {\n name: IconType\n}) {\n const { state } = useFieldContext()\n\n return (\n <div\n className={icon({ className, state })}\n data-slot=\"control-slot\"\n {...props}\n >\n <Icon name={name} />\n </div>\n )\n}\n\nexport function InputSlot({ className, ...props }: ComponentProps<'span'>) {\n const { state } = useFieldContext()\n return <span className={slotText({ className, state })} {...props} />\n}\n\nexport function InputCaption({ className, ...props }: ComponentProps<'p'>) {\n const { state } = useFieldContext()\n return <p className={caption({ className, state })} {...props} />\n}\n\nexport function InputAction({ className, ...props }: ComponentProps<'div'>) {\n const { state } = useFieldContext()\n return (\n <div\n className={action({ className, state })}\n data-slot=\"input-action-slot\"\n {...props}\n />\n )\n}\n\nexport function InputNumericStepper({\n handleIncrement,\n handleDecrement\n}: {\n handleIncrement: () => void\n handleDecrement: () => void\n}) {\n return (\n <InputAction className=\"w-large-4x border-border-layer-2 rounded-r-small-1x bg-layer-2-hover flex flex-col items-center justify-center border\">\n <button\n className=\"flex h-1/2 items-center justify-center\"\n type=\"button\"\n onClick={handleIncrement}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"keyboard_arrow_up\" />\n </button>\n\n <Divider />\n\n <button\n className=\"flex h-1/2 items-center justify-center\"\n type=\"button\"\n onClick={handleDecrement}\n >\n <Icon className=\"text-icon-neutral-3\" name=\"keyboard_arrow_down\" />\n </button>\n </InputAction>\n )\n}\n"]}
|
package/dist/chunk-XGPKBYDY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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 {InputNumberFormat}from'@react-input/number-format';import {jsx}from'react/jsx-runtime';var i=createContext({variant:"outlined"});function C({className:e,variant:t="outlined",...o}){return jsx(i.Provider,{value:{variant:t},children:jsx("div",{className:cx("relative flex",e),...o})})}function P({className:e,...t}){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(i.Consumer,{children:({variant:n})=>jsx("div",{className:cx(e,o({variant:n})),"data-variant":n,...t})})}function S({htmlFor:e,...t}){return jsx(a,{asChild:true,className:cx("absolute -top-[22px] left-0"),size:"sm",variant:"label",weight:"medium",children:jsx("label",{htmlFor:e,...t})})}function N({className:e,...t}){return jsx("input",{className:cx(e,"flex-1 outline-none"),...t})}function g({className:e,mask:t,customMask:o,...n}){return jsx(InputMask,{...t?{...a$1(t)}:o&&{...o},className:cx(e,"flex-1 outline-none"),...n})}function k({className:e,locales:t="pt-BR",groupDisplay:o=false,...n}){return jsx(InputNumberFormat,{className:cx(e,"flex-1 outline-none"),groupDisplay:o,locales:t,...n})}function M(e){return jsx("div",{...e,"data-slot":"search-input-slot"})}function R({className:e,appearance:t="ghost",variant:o="outlined",...n}){return jsx(b,{...n,appearance:t,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,g as e,k as f,M as g,R as h};//# sourceMappingURL=chunk-XGPKBYDY.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-XGPKBYDY.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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","locales","groupDisplay","InputNumberFormat","SearchInputSlot","SearchInputAction","appearance","Button"],"mappings":"iUAkBA,IAAMA,CAAAA,CAAyBC,aAAAA,CAAgC,CAC7D,OAAA,CAAS,UACX,CAAC,CAAA,CAEM,SAASC,CAAAA,CAAgB,CAC9B,SAAA,CAAAC,CAAAA,CACA,QAAAC,CAAAA,CAAU,UAAA,CACV,GAAGC,CACL,CAAA,CAA6C,CAC3C,OACEC,GAAAA,CAACN,EAAuB,QAAA,CAAvB,CAAgC,KAAA,CAAO,CAAE,QAAAI,CAAQ,CAAA,CAChD,QAAA,CAAAE,GAAAA,CAAC,OAAI,SAAA,CAAWC,EAAAA,CAAG,eAAA,CAAiBJ,CAAS,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAAA,CAC7D,CAEJ,CAEO,SAASG,CAAAA,CAAmB,CACjC,UAAAL,CAAAA,CACA,GAAGE,CACL,CAAA,CAA0B,CACxB,IAAMI,CAAAA,CAAiBC,GAAAA,CACrB,CACE,6DAAA,CACA,2BAAA,CACA,0HAAA,CACA,kEAAA,CACA,sBACA,kCACF,CAAA,CACA,CACE,QAAA,CAAU,CACR,OAAA,CAAS,CACP,QAAA,CAAU,kDAAA,CACV,KAAM,+CAAA,CACN,MA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,CAEJ,CAEO,SAASe,EAAkB,CAChC,SAAA,CAAAjB,CAAAA,CACA,OAAA,CAAAkB,CAAAA,CAAU,OAAA,CACV,YAAA,CAAAC,CAAAA,CAAe,MACf,GAAGjB,CACL,CAAA,CAA2B,CACzB,OACEC,GAAAA,CAACiB,iBAAAA,CAAA,CACC,SAAA,CAAWhB,GAAGJ,CAAAA,CAAW,qBAAqB,CAAA,CAC9C,YAAA,CAAcmB,CAAAA,CACd,OAAA,CAASD,CAAAA,CACR,GAAGhB,EACN,CAEJ,CAEO,SAASmB,CAAAA,CAAgBnB,EAA8B,CAC5D,OAAOC,GAAAA,CAAC,KAAA,CAAA,CAAK,GAAGD,CAAAA,CAAO,WAAA,CAAU,mBAAA,CAAoB,CACvD,CAEO,SAASoB,CAAAA,CAAkB,CAChC,UAAAtB,CAAAA,CACA,UAAA,CAAAuB,CAAAA,CAAa,OAAA,CACb,QAAAtB,CAAAA,CAAU,UAAA,CACV,GAAGC,CACL,EAAgB,CACd,OACEC,GAAAA,CAACqB,CAAAA,CAAA,CACE,GAAGtB,CAAAA,CACJ,UAAA,CAAYqB,CAAAA,CACZ,UAAWnB,EAAAA,CACTJ,CAAAA,CACA,gBAAA,CACA,uHAAA,CACA,8DACF,CAAA,CACA,WAAA,CAAU,qBAAA,CACV,OAAA,CAASC,EACX,CAEJ","file":"chunk-XGPKBYDY.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 {\n InputNumberFormat,\n type InputNumberFormatProps\n} from '@react-input/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({\n className,\n locales = 'pt-BR',\n groupDisplay = false,\n ...props\n}: InputNumberFormatProps) {\n return (\n <InputNumberFormat\n className={cx(className, 'flex-1 outline-none')}\n groupDisplay={groupDisplay}\n locales={locales}\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"]}
|
package/dist/chunk-YOLTIAFT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {a}from'./chunk-EIG6CBTQ.js';import {Slot}from'@radix-ui/react-slot';import {cva,cx}from'@xjur-ui/util';import {jsx}from'react/jsx-runtime';function y({className:e,asChild:o,...a}){return jsx(o?Slot:"div",{...a,className:cx(e,"rounded-small scrollbar-hide bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-y-auto border")})}function x({className:e,asChild:o,...a}){return jsx(o?Slot:"div",{...a,className:cx(e,"px-small pt-small-1x")})}function C({variant:e="label",size:o="sm",weight:a$1="medium",className:r,...i}){return jsx(a,{className:cx(r,"text-neutral-placeholder"),size:o,variant:e,weight:a$1,...i})}function h({className:e,asChild:o,...a}){return jsx(o?Slot:"ul",{...a,className:cx("gap-small-1x p-small flex flex-col",e)})}var m=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 b({className:e,size:o,isActive:a,asChild:r,...i}){return jsx(r?Slot:"li",{...i,className:cx(m({size:o,isActive:a}),e)})}export{y as a,x as b,C as c,h as d,b as e};//# sourceMappingURL=chunk-YOLTIAFT.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-YOLTIAFT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/list.tsx"],"names":["ListRoot","className","asChild","props","jsx","Slot","cx","ListHeader","ListHeaderTitle","variant","size","weight","Typography","ListContent","variants","cva","ListItem","isActive"],"mappings":"mJAKO,SAASA,EAAS,CACvB,SAAA,CAAAC,EACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEG,CAGD,OACEC,GAAAA,CAHWF,CAAAA,CAAUG,KAAO,KAAA,CAG3B,CACE,GAAGF,CAAAA,CACJ,SAAA,CAAWG,GACTL,CAAAA,CACA,6IACF,EACF,CAEJ,CAEO,SAASM,CAAAA,CAAW,CACzB,UAAAN,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAEG,CAED,OAAOC,GAAAA,CADMF,EAAUG,IAAAA,CAAO,KAAA,CACtB,CAAM,GAAGF,CAAAA,CAAO,UAAWG,EAAAA,CAAGL,CAAAA,CAAW,sBAAsB,CAAA,CAAG,CAC5E,CAEO,SAASO,CAAAA,CAAgB,CAC9B,OAAA,CAAAC,CAAAA,CAAU,OAAA,CACV,IAAA,CAAAC,CAAAA,CAAO,IAAA,CACP,OAAAC,GAAAA,CAAS,QAAA,CACT,UAAAV,CAAAA,CACA,GAAGE,CACL,CAAA,CAAoB,CAClB,OACEC,GAAAA,CAACQ,CAAAA,CAAA,CACC,SAAA,CAAWN,EAAAA,CAAGL,EAAW,0BAA0B,CAAA,CACnD,KAAMS,CAAAA,CACN,OAAA,CAASD,CAAAA,CACT,MAAA,CAAQE,GAAAA,CACP,GAAGR,EACN,CAEJ,CAEO,SAASU,CAAAA,CAAY,CAC1B,UAAAZ,CAAAA,CACA,OAAA,CAAAC,EACA,GAAGC,CACL,EAEG,CAGD,OACEC,IAHWF,CAAAA,CAAUG,IAAAA,CAAO,KAG3B,CACE,GAAGF,CAAAA,CACJ,SAAA,CAAWG,EAAAA,CAAG,oCAAA,CAAsCL,CAAS,CAAA,CAC/D,CAEJ,CAEA,IAAMa,CAAAA,CAAWC,IACf,CACE,iEAAA,CACA,oCACA,gEAAA,CACA,2BACF,EACA,CACE,QAAA,CAAU,CACR,IAAA,CAAM,CACJ,GAAI,YAAA,CACJ,EAAA,CAAI,YACN,CAAA,CACA,QAAA,CAAU,CACR,KAAM,0GACR,CACF,EACA,eAAA,CAAiB,CACf,KAAM,IAAA,CACN,QAAA,CAAU,KACZ,CACF,CACF,EAEO,SAASC,CAAAA,CAAS,CACvB,SAAA,CAAAf,CAAAA,CACA,KAAAS,CAAAA,CACA,QAAA,CAAAO,CAAAA,CACA,OAAA,CAAAf,CAAAA,CACA,GAAGC,CACL,CAAA,CAGK,CAGH,OACEC,GAAAA,CAHWF,CAAAA,CAAUG,KAAO,IAAA,CAG3B,CAAM,GAAGF,CAAAA,CAAO,SAAA,CAAWG,GAAGQ,CAAAA,CAAS,CAAE,KAAAJ,CAAAA,CAAM,QAAA,CAAAO,CAAS,CAAC,CAAA,CAAGhB,CAAS,CAAA,CAAG,CAE7E","file":"chunk-YOLTIAFT.js","sourcesContent":["import { Slot } from '@radix-ui/react-slot'\nimport { cx, cva, type ClassVariantProps } from '@xjur-ui/util'\nimport type { ComponentProps } from 'react'\nimport { type TypographyProps, Typography } from './typography'\n\nexport function ListRoot({\n className,\n asChild,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : 'div'\n\n return (\n <Comp\n {...props}\n className={cx(\n className,\n 'rounded-small scrollbar-hide bg-layer-2-idle border-border-layer-2 shadow-elevation-3 z-1000 max-h-[400px] list-none overflow-y-auto border'\n )}\n />\n )\n}\n\nexport function ListHeader({\n className,\n asChild,\n ...props\n}: ComponentProps<'div'> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : 'div'\n return <Comp {...props} className={cx(className, 'px-small pt-small-1x')} />\n}\n\nexport function ListHeaderTitle({\n variant = 'label',\n size = 'sm',\n weight = 'medium',\n className,\n ...props\n}: TypographyProps) {\n return (\n <Typography\n className={cx(className, 'text-neutral-placeholder')}\n size={size}\n variant={variant}\n weight={weight}\n {...props}\n />\n )\n}\n\nexport function ListContent({\n className,\n asChild,\n ...props\n}: ComponentProps<'ul'> & {\n asChild?: boolean\n}) {\n const Comp = asChild ? Slot : 'ul'\n\n return (\n <Comp\n {...props}\n className={cx('gap-small-1x p-small flex flex-col', className)}\n />\n )\n}\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"]}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
import { InputNumberFormatProps } from '@react-input/number-format';
|
|
5
|
-
import { I as IconType } from '../../icons-C-hGI45d.js';
|
|
6
|
-
import { FieldContextValue } from './context/field.context.js';
|
|
7
|
-
import { FloatingLabel } from './floating-label.js';
|
|
8
|
-
import '@react-input/mask';
|
|
9
|
-
import '../../input-mask-DhbtCxF7.js';
|
|
10
|
-
|
|
11
|
-
declare const input: tailwind_variants.TVReturnType<{
|
|
12
|
-
state: {
|
|
13
|
-
normal: {
|
|
14
|
-
trigger: string;
|
|
15
|
-
};
|
|
16
|
-
error: {
|
|
17
|
-
trigger: string;
|
|
18
|
-
caption: string;
|
|
19
|
-
};
|
|
20
|
-
disabled: {
|
|
21
|
-
trigger: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}, {
|
|
25
|
-
wrapper: string;
|
|
26
|
-
trigger: string[];
|
|
27
|
-
content: string;
|
|
28
|
-
value: string;
|
|
29
|
-
icon: string;
|
|
30
|
-
slotText: string;
|
|
31
|
-
caption: string;
|
|
32
|
-
action: string;
|
|
33
|
-
}, undefined, {
|
|
34
|
-
state: {
|
|
35
|
-
normal: {
|
|
36
|
-
trigger: string;
|
|
37
|
-
};
|
|
38
|
-
error: {
|
|
39
|
-
trigger: string;
|
|
40
|
-
caption: string;
|
|
41
|
-
};
|
|
42
|
-
disabled: {
|
|
43
|
-
trigger: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}, {
|
|
47
|
-
wrapper: string;
|
|
48
|
-
trigger: string[];
|
|
49
|
-
content: string;
|
|
50
|
-
value: string;
|
|
51
|
-
icon: string;
|
|
52
|
-
slotText: string;
|
|
53
|
-
caption: string;
|
|
54
|
-
action: string;
|
|
55
|
-
}, tailwind_variants.TVReturnType<{
|
|
56
|
-
state: {
|
|
57
|
-
normal: {
|
|
58
|
-
trigger: string;
|
|
59
|
-
};
|
|
60
|
-
error: {
|
|
61
|
-
trigger: string;
|
|
62
|
-
caption: string;
|
|
63
|
-
};
|
|
64
|
-
disabled: {
|
|
65
|
-
trigger: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
}, {
|
|
69
|
-
wrapper: string;
|
|
70
|
-
trigger: string[];
|
|
71
|
-
content: string;
|
|
72
|
-
value: string;
|
|
73
|
-
icon: string;
|
|
74
|
-
slotText: string;
|
|
75
|
-
caption: string;
|
|
76
|
-
action: string;
|
|
77
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
78
|
-
declare function InputRoot({ className, state, customMask, variant, mask, ...props }: ComponentProps<'div'> & FieldContextValue): react_jsx_runtime.JSX.Element;
|
|
79
|
-
declare function InputContent({ className, ...props }: ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
80
|
-
declare function InputLabel(props: ComponentProps<typeof FloatingLabel>): react_jsx_runtime.JSX.Element;
|
|
81
|
-
declare function InputTrigger({ className, ...props }: ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
82
|
-
declare function InputMask({ className, placeholder, ...props }: ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
83
|
-
declare function InputText({ className, placeholder, ...props }: ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
84
|
-
declare function InputNumber({ className, locales, placeholder, groupDisplay, ...props }: InputNumberFormatProps): react_jsx_runtime.JSX.Element;
|
|
85
|
-
declare function InputIcon({ className, name, ...props }: ComponentProps<'div'> & {
|
|
86
|
-
name: IconType;
|
|
87
|
-
}): react_jsx_runtime.JSX.Element;
|
|
88
|
-
declare function InputSlot({ className, ...props }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
89
|
-
declare function InputCaption({ className, ...props }: ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
90
|
-
declare function InputAction({ className, ...props }: ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
91
|
-
declare function InputNumericStepper({ handleIncrement, handleDecrement }: {
|
|
92
|
-
handleIncrement: () => void;
|
|
93
|
-
handleDecrement: () => void;
|
|
94
|
-
}): react_jsx_runtime.JSX.Element;
|
|
95
|
-
|
|
96
|
-
export { InputAction, InputCaption, InputContent, InputIcon, InputLabel, InputMask, InputNumber, InputNumericStepper, InputRoot, InputSlot, InputText, InputTrigger, input };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{l as InputAction,k as InputCaption,c as InputContent,i as InputIcon,d as InputLabel,f as InputMask,h as InputNumber,m as InputNumericStepper,b as InputRoot,j as InputSlot,g as InputText,e as InputTrigger,a as input}from'../../chunk-TQWBQ452.js';import'../../chunk-PBR7SFWY.js';import'../../chunk-JGPHBUVM.js';import'../../chunk-2JQVYVAT.js';import'../../chunk-CBFC4QME.js';import'../../chunk-DVDHTP4C.js';//# sourceMappingURL=input.js.map
|
|
2
|
-
//# sourceMappingURL=input.js.map
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as tailwind_variants from 'tailwind-variants';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
import * as RadixPopover from '@radix-ui/react-popover';
|
|
5
|
-
import { I as IconType } from '../../icons-C-hGI45d.js';
|
|
6
|
-
import { Typography } from '../typography.js';
|
|
7
|
-
import { ListContent, ListItem, ListHeader, ListHeaderTitle } from '../list.js';
|
|
8
|
-
import { FieldContextValue } from './context/field.context.js';
|
|
9
|
-
import 'class-variance-authority/types';
|
|
10
|
-
import '@xjur-ui/util';
|
|
11
|
-
import '@react-input/mask';
|
|
12
|
-
import '../../input-mask-DhbtCxF7.js';
|
|
13
|
-
|
|
14
|
-
declare const select: tailwind_variants.TVReturnType<{
|
|
15
|
-
state: {
|
|
16
|
-
normal: {
|
|
17
|
-
trigger: string;
|
|
18
|
-
};
|
|
19
|
-
error: {
|
|
20
|
-
trigger: string;
|
|
21
|
-
caption: string;
|
|
22
|
-
};
|
|
23
|
-
disabled: {
|
|
24
|
-
trigger: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
wrapper: string;
|
|
29
|
-
trigger: string[];
|
|
30
|
-
content: string[];
|
|
31
|
-
icon: string;
|
|
32
|
-
slotText: string;
|
|
33
|
-
caption: string;
|
|
34
|
-
}, undefined, {
|
|
35
|
-
state: {
|
|
36
|
-
normal: {
|
|
37
|
-
trigger: string;
|
|
38
|
-
};
|
|
39
|
-
error: {
|
|
40
|
-
trigger: string;
|
|
41
|
-
caption: string;
|
|
42
|
-
};
|
|
43
|
-
disabled: {
|
|
44
|
-
trigger: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
}, {
|
|
48
|
-
wrapper: string;
|
|
49
|
-
trigger: string[];
|
|
50
|
-
content: string[];
|
|
51
|
-
icon: string;
|
|
52
|
-
slotText: string;
|
|
53
|
-
caption: string;
|
|
54
|
-
}, tailwind_variants.TVReturnType<{
|
|
55
|
-
state: {
|
|
56
|
-
normal: {
|
|
57
|
-
trigger: string;
|
|
58
|
-
};
|
|
59
|
-
error: {
|
|
60
|
-
trigger: string;
|
|
61
|
-
caption: string;
|
|
62
|
-
};
|
|
63
|
-
disabled: {
|
|
64
|
-
trigger: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
}, {
|
|
68
|
-
wrapper: string;
|
|
69
|
-
trigger: string[];
|
|
70
|
-
content: string[];
|
|
71
|
-
icon: string;
|
|
72
|
-
slotText: string;
|
|
73
|
-
caption: string;
|
|
74
|
-
}, undefined, unknown, unknown, undefined>>;
|
|
75
|
-
declare function SelectRoot({ className, state, defaultOpen, variant, modal, open, onOpenChange: handleOpenChange, ...props }: ComponentProps<'div'> & FieldContextValue & ComponentProps<typeof RadixPopover.Root>): react_jsx_runtime.JSX.Element;
|
|
76
|
-
declare function SelectTrigger({ className, ...props }: ComponentProps<typeof RadixPopover.Trigger>): react_jsx_runtime.JSX.Element;
|
|
77
|
-
declare function SelectIcon({ className, name, ...props }: ComponentProps<'div'> & {
|
|
78
|
-
name: IconType;
|
|
79
|
-
}): react_jsx_runtime.JSX.Element;
|
|
80
|
-
declare function SelectValue({ className, displayValue, value, placeholder, ...props }: ComponentProps<'input'> & {
|
|
81
|
-
displayValue?: string;
|
|
82
|
-
}): react_jsx_runtime.JSX.Element;
|
|
83
|
-
declare function SelectMultiValue({ className, value, placeholder, children, ...props }: ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
84
|
-
declare function SelectContent({ className, sideOffset, side, align, children, ...props }: ComponentProps<typeof RadixPopover.Content>): react_jsx_runtime.JSX.Element;
|
|
85
|
-
declare function SelectCaption({ className, ...props }: ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
86
|
-
declare function SelectSlot({ className, ...props }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
87
|
-
declare function SelectOptions(props: ComponentProps<typeof ListContent>): react_jsx_runtime.JSX.Element;
|
|
88
|
-
declare function SelectOption({ className, ...props }: ComponentProps<typeof ListItem>): react_jsx_runtime.JSX.Element;
|
|
89
|
-
declare function SelectOptionText(props: ComponentProps<typeof Typography>): react_jsx_runtime.JSX.Element;
|
|
90
|
-
declare function SelectHeader(props: ComponentProps<typeof ListHeader>): react_jsx_runtime.JSX.Element;
|
|
91
|
-
declare function SelectHeaderTitle(props: ComponentProps<typeof ListHeaderTitle>): react_jsx_runtime.JSX.Element;
|
|
92
|
-
|
|
93
|
-
export { SelectCaption, SelectContent, SelectHeader, SelectHeaderTitle, SelectIcon, SelectMultiValue, SelectOption, SelectOptionText, SelectOptions, SelectRoot, SelectSlot, SelectTrigger, SelectValue, select };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export{h as SelectCaption,g as SelectContent,m as SelectHeader,n as SelectHeaderTitle,d as SelectIcon,f as SelectMultiValue,k as SelectOption,l as SelectOptionText,j as SelectOptions,b as SelectRoot,i as SelectSlot,c as SelectTrigger,e as SelectValue,a as select}from'../../chunk-DTNZXDCY.js';import'../../chunk-JGPHBUVM.js';import'../../chunk-2JQVYVAT.js';import'../../chunk-YOLTIAFT.js';import'../../chunk-DVDHTP4C.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=select.js.map
|
|
2
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
interface HorizontalScrollProps extends ComponentProps<'div'> {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
gap?: 'small' | 'medium' | 'large';
|
|
7
|
-
scrollAmount?: number;
|
|
8
|
-
}
|
|
9
|
-
declare function HorizontalScroll({ children, className, gap, scrollAmount, ...props }: HorizontalScrollProps): react_jsx_runtime.JSX.Element;
|
|
10
|
-
|
|
11
|
-
export { HorizontalScroll, type HorizontalScrollProps };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {b}from'../chunk-M6ZI7M3R.js';import {b as b$1}from'../chunk-DVDHTP4C.js';import {useRef,useState,useCallback,useEffect}from'react';import {cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';function P({children:h,className:u,gap:g="small",scrollAmount:s=200,...b$2}){let l=useRef(null),[S,z]=useState(false),[w,y]=useState(false),[p,a]=useState(false),o=useCallback(()=>{let e=l.current;if(!e)return;let{scrollLeft:n,scrollWidth:i,clientWidth:r}=e;z(n>0),y(n<i-r-1);},[]),L=useCallback(()=>{let e=l.current;e&&(a(true),e.scrollTo({left:e.scrollLeft-s,behavior:"smooth"}),setTimeout(()=>a(false),300));},[s]),R=useCallback(()=>{let e=l.current;e&&(a(true),e.scrollTo({left:e.scrollLeft+s,behavior:"smooth"}),setTimeout(()=>a(false),300));},[s]);useEffect(()=>{let e=l.current;if(!e)return;let n=()=>{o();},i=()=>{o();};o(),e.addEventListener("scroll",n,{passive:true}),window.addEventListener("resize",i);let r=null;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(()=>{o();}),r.observe(e)),()=>{e.removeEventListener("scroll",n),window.removeEventListener("resize",i),r&&r.disconnect();}},[o]);let x={small:"gap-small",medium:"gap-medium",large:"gap-large"}[g];return jsxs("div",{className:cx("relative isolate",u),...b$2,children:[S&&jsx("div",{className:"absolute top-1/2 left-0 z-[3] flex h-full w-[80px] -translate-y-1/2 items-center",style:{background:"linear-gradient(to right, white 40%, transparent)"},children:jsx(b,{appearance:"ghost","aria-label":"Scroll left",className:"ml-0",disabled:p,size:"icon_md",variant:"secondary",onClick:L,children:jsx(b$1,{name:"chevron_left"})})}),w&&jsx("div",{className:"absolute top-1/2 right-0 z-[2] flex h-full w-[80px] -translate-y-1/2 items-center justify-end",style:{background:"linear-gradient(to left, white 40%, transparent)"},children:jsx(b,{appearance:"ghost","aria-label":"Scroll right",className:"mr-0",disabled:p,size:"icon_md",variant:"secondary",onClick:R,children:jsx(b$1,{name:"chevron_right"})})}),jsx("div",{className:cx("scrollbar-hide py-small relative z-1 flex overflow-x-auto overflow-y-visible","min-w-0 [&>*]:flex-none [&>*]:whitespace-nowrap",x,u),ref:l,children:h})]})}export{P as HorizontalScroll};//# sourceMappingURL=horizontal-scroll.js.map
|
|
2
|
-
//# sourceMappingURL=horizontal-scroll.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/horizontal-scroll.tsx"],"names":["HorizontalScroll","children","className","gap","scrollAmount","props","scrollContainerRef","useRef","canScrollLeft","setCanScrollLeft","useState","canScrollRight","setCanScrollRight","isScrolling","setIsScrolling","checkScrollable","useCallback","container","scrollLeft","scrollWidth","clientWidth","handleScrollLeft","handleScrollRight","useEffect","handleScroll","handleResize","resizeObserver","gapClass","jsxs","cx","jsx","Button","Icon"],"mappings":"mNAYO,SAASA,CAAAA,CAAiB,CAC/B,SAAAC,CAAAA,CACA,SAAA,CAAAC,EACA,GAAA,CAAAC,CAAAA,CAAM,QACN,YAAA,CAAAC,CAAAA,CAAe,IACf,GAAGC,GACL,EAA0B,CACxB,IAAMC,EAAqBC,MAAAA,CAAuB,IAAI,EAChD,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAIC,SAAS,KAAK,CAAA,CAClD,CAACC,CAAAA,CAAgBC,CAAiB,EAAIF,QAAAA,CAAS,KAAK,EACpD,CAACG,CAAAA,CAAaC,CAAc,CAAA,CAA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AA,CACC,UAAA,CAAW,QACX,YAAA,CAAW,cAAA,CACX,UAAU,MAAA,CACV,QAAA,CAAUlB,EACV,IAAA,CAAK,SAAA,CACL,QAAQ,WAAA,CACR,OAAA,CAASS,EAET,QAAA,CAAAQ,GAAAA,CAACE,GAAAA,CAAA,CAAK,KAAK,eAAA,CAAgB,CAAA,CAC7B,EACF,CAAA,CAIFF,GAAAA,CAAC,OACC,SAAA,CAAWD,EAAAA,CACT,+EACA,iDAAA,CACAF,CAAAA,CACAzB,CACF,CAAA,CACA,GAAA,CAAKI,EAEJ,QAAA,CAAAL,CAAAA,CACH,GACF,CAEJ","file":"horizontal-scroll.js","sourcesContent":["import type { ComponentProps, ReactNode } from 'react'\nimport { useCallback, useEffect, useRef, useState } from 'react'\nimport { cx } from '@xjur-ui/util'\nimport { Button } from './controls/button'\nimport { Icon } from './icon'\n\nexport interface HorizontalScrollProps extends ComponentProps<'div'> {\n children: ReactNode\n gap?: 'small' | 'medium' | 'large'\n scrollAmount?: number\n}\n\nexport function HorizontalScroll({\n children,\n className,\n gap = 'small',\n scrollAmount = 200,\n ...props\n}: HorizontalScrollProps) {\n const scrollContainerRef = useRef<HTMLDivElement>(null)\n const [canScrollLeft, setCanScrollLeft] = useState(false)\n const [canScrollRight, setCanScrollRight] = useState(false)\n const [isScrolling, setIsScrolling] = useState(false)\n\n const checkScrollable = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n const { scrollLeft, scrollWidth, clientWidth } = container\n setCanScrollLeft(scrollLeft > 0)\n setCanScrollRight(scrollLeft < scrollWidth - clientWidth - 1)\n }, [])\n\n const handleScrollLeft = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n setIsScrolling(true)\n container.scrollTo({\n left: container.scrollLeft - scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [scrollAmount])\n\n const handleScrollRight = useCallback(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n setIsScrolling(true)\n container.scrollTo({\n left: container.scrollLeft + scrollAmount,\n behavior: 'smooth'\n })\n\n setTimeout(() => setIsScrolling(false), 300)\n }, [scrollAmount])\n\n useEffect(() => {\n const container = scrollContainerRef.current\n if (!container) return\n\n const handleScroll = () => {\n checkScrollable()\n }\n\n const handleResize = () => {\n checkScrollable()\n }\n\n checkScrollable()\n container.addEventListener('scroll', handleScroll, { passive: true })\n window.addEventListener('resize', handleResize)\n\n let resizeObserver: ResizeObserver | null = null\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(() => {\n checkScrollable()\n })\n resizeObserver.observe(container)\n }\n\n return () => {\n container.removeEventListener('scroll', handleScroll)\n window.removeEventListener('resize', handleResize)\n if (resizeObserver) {\n resizeObserver.disconnect()\n }\n }\n }, [checkScrollable])\n\n const gapClass = {\n small: 'gap-small',\n medium: 'gap-medium',\n large: 'gap-large'\n }[gap]\n\n return (\n <div className={cx('relative isolate', className)} {...props}>\n {/* Left Arrow */}\n {canScrollLeft && (\n <div\n className=\"absolute top-1/2 left-0 z-[3] flex h-full w-[80px] -translate-y-1/2 items-center\"\n style={{\n background: `linear-gradient(to right, white 40%, transparent)`\n }}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll left\"\n className=\"ml-0\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollLeft}\n >\n <Icon name=\"chevron_left\" />\n </Button>\n </div>\n )}\n\n {/* Right Arrow */}\n {canScrollRight && (\n <div\n className=\"absolute top-1/2 right-0 z-[2] flex h-full w-[80px] -translate-y-1/2 items-center justify-end\"\n style={{\n background: `linear-gradient(to left, white 40%, transparent)`\n }}\n >\n <Button\n appearance=\"ghost\"\n aria-label=\"Scroll right\"\n className=\"mr-0\"\n disabled={isScrolling}\n size=\"icon_md\"\n variant=\"secondary\"\n onClick={handleScrollRight}\n >\n <Icon name=\"chevron_right\" />\n </Button>\n </div>\n )}\n\n {/* Scrollable Content */}\n <div\n className={cx(\n 'scrollbar-hide py-small relative z-1 flex overflow-x-auto overflow-y-visible',\n 'min-w-0 [&>*]:flex-none [&>*]:whitespace-nowrap',\n gapClass,\n className\n )}\n ref={scrollContainerRef}\n >\n {children}\n </div>\n </div>\n )\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { ClassVariantProps } from '@xjur-ui/util';
|
|
4
|
-
import { ComponentProps } from 'react';
|
|
5
|
-
import { TypographyProps } from './typography.js';
|
|
6
|
-
|
|
7
|
-
declare function ListRoot({ className, asChild, ...props }: ComponentProps<'div'> & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}): react_jsx_runtime.JSX.Element;
|
|
10
|
-
declare function ListHeader({ className, asChild, ...props }: ComponentProps<'div'> & {
|
|
11
|
-
asChild?: boolean;
|
|
12
|
-
}): react_jsx_runtime.JSX.Element;
|
|
13
|
-
declare function ListHeaderTitle({ variant, size, weight, className, ...props }: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
declare function ListContent({ className, asChild, ...props }: ComponentProps<'ul'> & {
|
|
15
|
-
asChild?: boolean;
|
|
16
|
-
}): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare const variants: (props?: ({
|
|
18
|
-
size?: "md" | "lg" | null | undefined;
|
|
19
|
-
isActive?: boolean | null | undefined;
|
|
20
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
21
|
-
declare function ListItem({ className, size, isActive, asChild, ...props }: ComponentProps<'li'> & ClassVariantProps<typeof variants> & {
|
|
22
|
-
asChild?: boolean;
|
|
23
|
-
}): react_jsx_runtime.JSX.Element;
|
|
24
|
-
|
|
25
|
-
export { ListContent, ListHeader, ListHeaderTitle, ListItem, ListRoot };
|
package/dist/components/list.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"list.js"}
|