@xjur-ui/react 1.0.6 → 2.1.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/.turbo/turbo-build.log +279 -68
- package/CHANGELOG.md +114 -0
- package/README.md +146 -0
- package/dist/chunk-2CM3SFOY.js +2 -0
- package/dist/chunk-2CM3SFOY.js.map +1 -0
- package/dist/chunk-2CTBH6VI.js +2 -0
- package/dist/chunk-2CTBH6VI.js.map +1 -0
- package/dist/chunk-4BGTC333.js +2 -0
- package/dist/chunk-4BGTC333.js.map +1 -0
- package/dist/chunk-5WLIDYZH.js +2 -0
- package/dist/chunk-5WLIDYZH.js.map +1 -0
- package/dist/chunk-6AD6O6II.js +2 -0
- package/dist/chunk-6AD6O6II.js.map +1 -0
- package/dist/chunk-AA6V5YEC.js +2 -0
- package/dist/chunk-AA6V5YEC.js.map +1 -0
- package/dist/chunk-BK6FP63A.js +2 -0
- package/dist/chunk-BK6FP63A.js.map +1 -0
- package/dist/chunk-BZDGWC5O.js +2 -0
- package/dist/chunk-BZDGWC5O.js.map +1 -0
- package/dist/chunk-CBFC4QME.js +2 -0
- package/dist/chunk-CBFC4QME.js.map +1 -0
- package/dist/chunk-CI3ZXWEX.js +2 -0
- package/dist/chunk-CI3ZXWEX.js.map +1 -0
- package/dist/chunk-DFXHNK5D.js +2 -0
- package/dist/chunk-DFXHNK5D.js.map +1 -0
- package/dist/chunk-EIG6CBTQ.js +2 -0
- package/dist/chunk-EIG6CBTQ.js.map +1 -0
- package/dist/chunk-EXC2XOL6.js +2 -0
- package/dist/chunk-EXC2XOL6.js.map +1 -0
- package/dist/chunk-F4DYKYWJ.js +2 -0
- package/dist/chunk-F4DYKYWJ.js.map +1 -0
- package/dist/chunk-F5ZLEQGN.js +2 -0
- package/dist/chunk-F5ZLEQGN.js.map +1 -0
- package/dist/chunk-IKL6PSXU.js +2 -0
- package/dist/chunk-IKL6PSXU.js.map +1 -0
- package/dist/chunk-IRHU7PDO.js +2 -0
- package/dist/chunk-IRHU7PDO.js.map +1 -0
- package/dist/chunk-J4X5RQTR.js +2 -0
- package/dist/chunk-J4X5RQTR.js.map +1 -0
- package/dist/chunk-KIFR5VIE.js +2 -0
- package/dist/chunk-KIFR5VIE.js.map +1 -0
- package/dist/chunk-KS6WGBHQ.js +2 -0
- package/dist/chunk-KS6WGBHQ.js.map +1 -0
- package/dist/chunk-L4ET6GIZ.js +2 -0
- package/dist/chunk-L4ET6GIZ.js.map +1 -0
- package/dist/chunk-MZSV4LNY.js +2 -0
- package/dist/chunk-MZSV4LNY.js.map +1 -0
- package/dist/chunk-NELCN6E2.js +2 -0
- package/dist/chunk-NELCN6E2.js.map +1 -0
- package/dist/chunk-OS53BV63.js +3 -0
- package/dist/chunk-OS53BV63.js.map +1 -0
- package/dist/chunk-PKCW37CJ.js +2 -0
- package/dist/chunk-PKCW37CJ.js.map +1 -0
- package/dist/chunk-RWMV7APX.js +2 -0
- package/dist/chunk-RWMV7APX.js.map +1 -0
- package/dist/chunk-SLAAEXWI.js +2 -0
- package/dist/chunk-SLAAEXWI.js.map +1 -0
- package/dist/chunk-SXGSWVMZ.js +2 -0
- package/dist/chunk-SXGSWVMZ.js.map +1 -0
- package/dist/chunk-TB6KI6CL.js +2 -0
- package/dist/chunk-TB6KI6CL.js.map +1 -0
- package/dist/chunk-TSVURBUY.js +2 -0
- package/dist/chunk-TSVURBUY.js.map +1 -0
- package/dist/chunk-UXIVZWLB.js +2 -0
- package/dist/chunk-UXIVZWLB.js.map +1 -0
- package/dist/chunk-WEBAXQID.js +2 -0
- package/dist/chunk-WEBAXQID.js.map +1 -0
- package/dist/chunk-WV7QV2PU.js +2 -0
- package/dist/chunk-WV7QV2PU.js.map +1 -0
- package/dist/chunk-Z47R2CIM.js +2 -0
- package/dist/chunk-Z47R2CIM.js.map +1 -0
- package/dist/chunk-ZVVPUP7V.js +2 -0
- package/dist/chunk-ZVVPUP7V.js.map +1 -0
- package/dist/components/avatar-group.js +2 -179
- package/dist/components/avatar-group.js.map +1 -0
- package/dist/components/avatar.js +2 -59
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.js +2 -111
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +20 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/chip.d.ts +5 -2
- package/dist/components/chip.js +2 -256
- package/dist/components/chip.js.map +1 -0
- package/dist/components/collapsible.js +2 -41
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/dialog.d.ts +51 -0
- package/dist/components/dialog.js +2 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/divider.js +2 -29
- package/dist/components/divider.js.map +1 -0
- package/dist/components/drag-and-drop/drag-handle.d.ts +15 -0
- package/dist/components/drag-and-drop/drag-handle.js +2 -0
- package/dist/components/drag-and-drop/drag-handle.js.map +1 -0
- package/dist/components/drag-and-drop/drag-list-item.d.ts +14 -0
- package/dist/components/drag-and-drop/drag-list-item.js +2 -0
- package/dist/components/drag-and-drop/drag-list-item.js.map +1 -0
- package/dist/components/drag-and-drop/drag-list.d.ts +14 -0
- package/dist/components/drag-and-drop/drag-list.js +2 -0
- package/dist/components/drag-and-drop/drag-list.js.map +1 -0
- package/dist/components/drag-and-drop/drag-root.d.ts +6 -0
- package/dist/components/drag-and-drop/drag-root.js +2 -0
- package/dist/components/drag-and-drop/drag-root.js.map +1 -0
- package/dist/components/drag-and-drop/index.d.ts +10 -0
- package/dist/components/drag-and-drop/index.js +2 -0
- package/dist/components/drag-and-drop/index.js.map +1 -0
- package/dist/components/drag-and-drop/types/drag-item.d.ts +9 -0
- package/dist/components/drag-and-drop/types/drag-item.js +2 -0
- package/dist/components/drag-and-drop/types/drag-item.js.map +1 -0
- package/dist/components/dropdown-menu.js +2 -295
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/form/button.js +2 -0
- package/dist/components/form/button.js.map +1 -0
- package/dist/components/form/calendar.js +2 -0
- package/dist/components/form/calendar.js.map +1 -0
- package/dist/components/form/checkbox.js +2 -0
- package/dist/components/form/checkbox.js.map +1 -0
- package/dist/components/form/context/field.context.d.ts +15 -0
- package/dist/components/form/context/field.context.js +2 -0
- package/dist/components/form/context/field.context.js.map +1 -0
- package/dist/components/form/date-picker.d.ts +84 -0
- package/dist/components/form/date-picker.js +2 -0
- package/dist/components/form/date-picker.js.map +1 -0
- package/dist/components/form/floating-label.d.ts +6 -0
- package/dist/components/form/floating-label.js +2 -0
- package/dist/components/form/floating-label.js.map +1 -0
- package/dist/components/form/input.d.ts +95 -0
- package/dist/components/form/input.js +2 -0
- package/dist/components/form/input.js.map +1 -0
- package/dist/components/form/otp-input.js +2 -0
- package/dist/components/form/otp-input.js.map +1 -0
- package/dist/components/form/radio.js +2 -0
- package/dist/components/form/radio.js.map +1 -0
- package/dist/components/{rich-editor.d.ts → form/rich-editor.d.ts} +2 -1
- package/dist/components/form/rich-editor.js +2 -0
- package/dist/components/form/rich-editor.js.map +1 -0
- package/dist/components/form/search-input.js +2 -0
- package/dist/components/form/search-input.js.map +1 -0
- package/dist/components/form/select.d.ts +94 -0
- package/dist/components/form/select.js +2 -0
- package/dist/components/form/select.js.map +1 -0
- package/dist/components/form/switch.js +2 -0
- package/dist/components/form/switch.js.map +1 -0
- package/dist/components/full-calendar/calendar-add-event.d.ts +9 -0
- package/dist/components/full-calendar/calendar-add-event.js +2 -0
- package/dist/components/full-calendar/calendar-add-event.js.map +1 -0
- package/dist/components/full-calendar/calendar-body.d.ts +6 -0
- package/dist/components/full-calendar/calendar-body.js +2 -0
- package/dist/components/full-calendar/calendar-body.js.map +1 -0
- package/dist/components/full-calendar/calendar-cell.d.ts +11 -0
- package/dist/components/full-calendar/calendar-cell.js +2 -0
- package/dist/components/full-calendar/calendar-cell.js.map +1 -0
- package/dist/components/full-calendar/calendar-day-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-day-view.js +2 -0
- package/dist/components/full-calendar/calendar-day-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-event.d.ts +18 -0
- package/dist/components/full-calendar/calendar-event.js +2 -0
- package/dist/components/full-calendar/calendar-event.js.map +1 -0
- package/dist/components/full-calendar/calendar-header.d.ts +6 -0
- package/dist/components/full-calendar/calendar-header.js +2 -0
- package/dist/components/full-calendar/calendar-header.js.map +1 -0
- package/dist/components/full-calendar/calendar-month-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-month-view.js +2 -0
- package/dist/components/full-calendar/calendar-month-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.d.ts +9 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.js +2 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.js.map +1 -0
- package/dist/components/full-calendar/calendar-navigator.d.ts +5 -0
- package/dist/components/full-calendar/calendar-navigator.js +2 -0
- package/dist/components/full-calendar/calendar-navigator.js.map +1 -0
- package/dist/components/full-calendar/calendar-root.d.ts +30 -0
- package/dist/components/full-calendar/calendar-root.js +2 -0
- package/dist/components/full-calendar/calendar-root.js.map +1 -0
- package/dist/components/full-calendar/calendar-today-button.d.ts +9 -0
- package/dist/components/full-calendar/calendar-today-button.js +2 -0
- package/dist/components/full-calendar/calendar-today-button.js.map +1 -0
- package/dist/components/full-calendar/calendar-toggle-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-toggle-view.js +2 -0
- package/dist/components/full-calendar/calendar-toggle-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-view-renderer.d.ts +5 -0
- package/dist/components/full-calendar/calendar-view-renderer.js +2 -0
- package/dist/components/full-calendar/calendar-view-renderer.js.map +1 -0
- package/dist/components/full-calendar/calendar-week-day.d.ts +10 -0
- package/dist/components/full-calendar/calendar-week-day.js +2 -0
- package/dist/components/full-calendar/calendar-week-day.js.map +1 -0
- package/dist/components/full-calendar/calendar-week-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-week-view.js +2 -0
- package/dist/components/full-calendar/calendar-week-view.js.map +1 -0
- package/dist/components/full-calendar/helpers/calendar.d.ts +25 -0
- package/dist/components/full-calendar/helpers/calendar.js +2 -0
- package/dist/components/full-calendar/helpers/calendar.js.map +1 -0
- package/dist/components/full-calendar/index.d.ts +18 -0
- package/dist/components/full-calendar/index.js +2 -0
- package/dist/components/full-calendar/index.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-cell.d.ts +6 -0
- package/dist/components/full-calendar/types/calendar-cell.js +2 -0
- package/dist/components/full-calendar/types/calendar-cell.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-event.d.ts +8 -0
- package/dist/components/full-calendar/types/calendar-event.js +2 -0
- package/dist/components/full-calendar/types/calendar-event.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-view.d.ts +3 -0
- package/dist/components/full-calendar/types/calendar-view.js +2 -0
- package/dist/components/full-calendar/types/calendar-view.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-week-hour.d.ts +6 -0
- package/dist/components/full-calendar/types/calendar-week-hour.js +2 -0
- package/dist/components/full-calendar/types/calendar-week-hour.js.map +1 -0
- package/dist/components/horizontal-scroll.d.ts +11 -0
- package/dist/components/horizontal-scroll.js +2 -0
- package/dist/components/horizontal-scroll.js.map +1 -0
- package/dist/components/icon.d.ts +3 -4
- package/dist/components/icon.js +2 -177
- package/dist/components/icon.js.map +1 -0
- package/dist/components/list.js +2 -179
- package/dist/components/list.js.map +1 -0
- package/dist/components/logo.js +2 -324
- package/dist/components/logo.js.map +1 -0
- package/dist/components/selection-bar.d.ts +57 -0
- package/dist/components/selection-bar.js +2 -0
- package/dist/components/selection-bar.js.map +1 -0
- package/dist/components/sheet.d.ts +8 -8
- package/dist/components/sheet.js +2 -251
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.js +2 -16
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/status.js +2 -111
- package/dist/components/status.js.map +1 -0
- package/dist/components/table.js +2 -196
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +9 -6
- package/dist/components/tabs.js +2 -54
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag.d.ts +5 -2
- package/dist/components/tag.js +2 -189
- package/dist/components/tag.js.map +1 -0
- package/dist/components/tooltip.js +2 -58
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/typography.js +2 -78
- package/dist/components/typography.js.map +1 -0
- package/dist/components/upload.d.ts +74 -0
- package/dist/components/upload.js +2 -0
- package/dist/components/upload.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/icons-CmDuL0gZ.d.ts +4 -0
- package/dist/index.css +2 -2322
- package/dist/index.css.map +1 -0
- package/dist/logo-PQRZORCS.js +3 -0
- package/dist/logo-PQRZORCS.js.map +1 -0
- package/package.json +60 -18
- package/src/components/breadcrumb.tsx +119 -0
- package/src/components/chip.tsx +11 -3
- package/src/components/dialog.tsx +242 -0
- package/src/components/drag-and-drop/drag-handle.tsx +46 -0
- package/src/components/drag-and-drop/drag-list-item.tsx +91 -0
- package/src/components/drag-and-drop/drag-list.tsx +47 -0
- package/src/components/drag-and-drop/drag-root.tsx +30 -0
- package/src/components/drag-and-drop/index.ts +39 -0
- package/src/components/drag-and-drop/types/drag-item.ts +7 -0
- package/src/components/{calendar.tsx → form/calendar.tsx} +9 -8
- package/src/components/{checkbox.tsx → form/checkbox.tsx} +2 -2
- package/src/components/form/context/field.context.ts +27 -0
- package/src/components/form/date-picker.tsx +199 -0
- package/src/components/form/floating-label.tsx +60 -0
- package/src/components/form/input.tsx +235 -0
- package/src/components/{radio.tsx → form/radio.tsx} +1 -1
- package/src/components/{rich-editor.tsx → form/rich-editor.tsx} +10 -9
- package/src/components/{search-input.tsx → form/search-input.tsx} +2 -2
- package/src/components/form/select.tsx +274 -0
- package/src/components/full-calendar/calendar-add-event.tsx +15 -0
- package/src/components/full-calendar/calendar-body.tsx +12 -0
- package/src/components/full-calendar/calendar-cell.tsx +120 -0
- package/src/components/full-calendar/calendar-day-view.tsx +76 -0
- package/src/components/full-calendar/calendar-event.tsx +178 -0
- package/src/components/full-calendar/calendar-header.tsx +14 -0
- package/src/components/full-calendar/calendar-month-view.tsx +69 -0
- package/src/components/full-calendar/calendar-more-events-dropdown.tsx +39 -0
- package/src/components/full-calendar/calendar-navigator.tsx +86 -0
- package/src/components/full-calendar/calendar-root.tsx +165 -0
- package/src/components/full-calendar/calendar-today-button.tsx +21 -0
- package/src/components/full-calendar/calendar-toggle-view.tsx +61 -0
- package/src/components/full-calendar/calendar-view-renderer.tsx +19 -0
- package/src/components/full-calendar/calendar-week-day.tsx +49 -0
- package/src/components/full-calendar/calendar-week-view.tsx +88 -0
- package/src/components/full-calendar/helpers/calendar.ts +158 -0
- package/src/components/full-calendar/index.ts +16 -0
- package/src/components/full-calendar/types/calendar-cell.ts +4 -0
- package/src/components/full-calendar/types/calendar-event.ts +7 -0
- package/src/components/full-calendar/types/calendar-view.ts +1 -0
- package/src/components/full-calendar/types/calendar-week-hour.ts +4 -0
- package/src/components/horizontal-scroll.tsx +159 -0
- package/src/components/icon.tsx +1 -1
- package/src/components/logo.tsx +25 -20
- package/src/components/selection-bar.tsx +273 -0
- package/src/components/sheet.tsx +2 -2
- package/src/components/tabs.tsx +56 -37
- package/src/components/tag.tsx +11 -3
- package/src/components/upload.tsx +647 -0
- package/src/index.css +2 -2
- package/src/resources/icons.ts +4 -1
- package/src/resources/logo/index.tsx +33 -0
- package/tsup.config.ts +23 -5
- package/dist/components/button.js +0 -98
- package/dist/components/calendar.js +0 -751
- package/dist/components/checkbox.js +0 -153
- package/dist/components/date-picker.d.ts +0 -20
- package/dist/components/date-picker.js +0 -232
- package/dist/components/input.d.ts +0 -32
- package/dist/components/input.js +0 -315
- package/dist/components/otp-input.js +0 -47
- package/dist/components/radio.js +0 -156
- package/dist/components/rich-editor.js +0 -723
- package/dist/components/search-input.js +0 -274
- package/dist/components/select.d.ts +0 -33
- package/dist/components/select.js +0 -550
- package/dist/components/switch.js +0 -36
- package/dist/components/test.d.ts +0 -5
- package/dist/components/test.js +0 -8
- package/dist/index.js +0 -0
- package/src/components/date-picker.tsx +0 -160
- package/src/components/input.tsx +0 -256
- package/src/components/select.tsx +0 -240
- package/src/components/test.tsx +0 -3
- package/src/index.ts +0 -1
- package/src/resources/logo/index.ts +0 -3
- /package/dist/components/{button.d.ts → form/button.d.ts} +0 -0
- /package/dist/components/{calendar.d.ts → form/calendar.d.ts} +0 -0
- /package/dist/components/{checkbox.d.ts → form/checkbox.d.ts} +0 -0
- /package/dist/components/{otp-input.d.ts → form/otp-input.d.ts} +0 -0
- /package/dist/components/{radio.d.ts → form/radio.d.ts} +0 -0
- /package/dist/components/{search-input.d.ts → form/search-input.d.ts} +0 -0
- /package/dist/components/{switch.d.ts → form/switch.d.ts} +0 -0
- /package/src/components/{button.tsx → form/button.tsx} +0 -0
- /package/src/components/{otp-input.tsx → form/otp-input.tsx} +0 -0
- /package/src/components/{switch.tsx → form/switch.tsx} +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
-
import { EditorOptions,
|
|
3
|
+
import { EditorOptions, EditorContent } from '@tiptap/react';
|
|
4
4
|
export { useCurrentEditor as useRichTextEditor, useEditorState as useRichTextEditorState } from '@tiptap/react';
|
|
5
|
+
import { Extension } from '@tiptap/core';
|
|
5
6
|
import { ButtonProps } from './button.js';
|
|
6
7
|
import 'class-variance-authority/types';
|
|
7
8
|
import '@xjur-ui/util';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b as b$1,c as c$1,d}from'../../chunk-NELCN6E2.js';import {a as a$2,c as c$2,d as d$1,e,h,i}from'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import {b}from'../../chunk-PKCW37CJ.js';import {a}from'../../chunk-KS6WGBHQ.js';import {b as b$2}from'../../chunk-WV7QV2PU.js';import {a as a$1}from'../../chunk-EIG6CBTQ.js';import {cx}from'@xjur-ui/util';import {useMemo,useCallback,useState}from'react';import {useEditor,EditorContext,useCurrentEditor,EditorContent,useEditorState}from'@tiptap/react';export{useCurrentEditor as useRichTextEditor,useEditorState as useRichTextEditorState}from'@tiptap/react';import {StarterKit}from'@tiptap/starter-kit';import {Heading}from'@tiptap/extension-heading';import {Placeholder}from'@tiptap/extension-placeholder';import {jsx,jsxs}from'react/jsx-runtime';var c={1:"text-size-body-md",2:"text-size-title-lg",3:"text-size-headline-lg"};function X({className:t,editorOptions:n,...r}){let i=useEditor({...n,extensions:[StarterKit.configure({bulletList:{HTMLAttributes:{class:"list-disc list-outside pl-large-1x"}},orderedList:{HTMLAttributes:{class:"list-decimal list-outside pl-large-1x"}},heading:false}),Placeholder.configure({placeholder:({node:o,editor:s})=>o.type.name==="paragraph"&&s.isEmpty?"Digite aqui\u2026":"",showOnlyWhenEditable:true,includeChildren:false,emptyNodeClass:"before:content-[attr(data-placeholder)] before:absolute before:top-0 before:left-0 before:text-neutral-placeholder first:before:float-left first:before:content-[attr(data-placeholder)] first:before:pointer-events-none"}),Heading.configure({levels:[1,2,3]}).extend({renderHTML({node:o,HTMLAttributes:s}){let u=o.attrs.level??1;return ["h",{...s,class:c[u]},0]}}),...n?.extensions??[]]}),a=useMemo(()=>({editor:i}),[i]);return jsx(EditorContext.Provider,{value:a,children:jsx("div",{className:cx("gap-small flex w-full flex-col",t),"data-slot":"text-area-root",...r})})}function j({className:t,...n}){return jsx("div",{className:cx("bg-layer-2-hover py-small_1x-alt px-small rounded-small-1x min-h-[116px] w-full border border-transparent","hover:border-border-layer-2 transition-colors duration-200","[&_ul_ul]:list-[circle]","[&_ul_ul_ul]:list-[square]","[&_ol_ol]:list-[lower-alpha]","[&_ol_ol_ol]:list-[lower-roman]","gap-small flex flex-col overflow-x-hidden overflow-y-auto",t),"data-slot":"text-area-content",...n})}function ee({className:t,...n}){return jsx("p",{...n,className:cx("text-size-body-sm text-neutral-dark font-normal",t),"data-slot":"text-area-caption"})}function te({className:t,...n}){let{editor:r}=useCurrentEditor();return jsx(EditorContent,{className:cx("text-size-body-md text-neutral-dark max-h-[116px] *:h-full *:w-full *:outline-0",t),editor:r,...n})}function oe({className:t,...n}){return jsx("div",{className:cx("h-large-4x gap-small-1x h-large-6px scrollbar-hide flex flex-nowrap items-center overflow-x-auto overflow-y-hidden",t),"data-slot":"text-area-toolbar",...n})}function $({appearance:t="ghost",variant:n="secondary",onMouseDown:r,onPointerDown:i,...a}){return jsx(b,{appearance:t,size:"icon_md",tabIndex:-1,type:"button",variant:n,onMouseDown:o=>{o.preventDefault(),r?.(o);},onPointerDown:o=>{o.preventDefault(),i?.(o);},...a})}function re({name:t,...n}){let{editor:r}=useCurrentEditor(),{shortcut:i}=a(),a$2=useEditorState({editor:r,selector:d=>d.editor?.isActive(t)??false}),o=useMemo(()=>new Map([["bold","format_bold"],["italic","format_italic"],["underline","format_underlined"],["strike","format_strikethrough"],["bulletList","format_list_bulleted"],["orderedList","format_list_numbered"],["undo","undo"],["redo","redo"]]).get(t),[t]),s=useMemo(()=>new Map([["bold",`Negrito (${i} + B)`],["italic",`It\xE1lico (${i} + I)`],["underline",`Sublinhado (${i} + U)`],["strike",`Tachado (${i} + S)`],["bulletList",`Lista (${i} + Shift + 7)`],["orderedList",`Lista numerada (${i} + Shift + 8)`],["undo",`Desfazer (${i} + Z)`],["redo",`Refazer (${i} + Y)`]]).get(t),[t,i]),u=useCallback(()=>{if(!r)throw new Error("Editor not found");new Map([["bold",()=>r.chain().focus().toggleBold().run()],["italic",()=>r.chain().focus().toggleItalic().run()],["underline",()=>r.chain().focus().toggleUnderline().run()],["strike",()=>r.chain().focus().toggleStrike().run()],["bulletList",()=>r.chain().focus().toggleBulletList().run()],["orderedList",()=>r.chain().focus().toggleOrderedList().run()],["undo",()=>r.chain().focus().undo().run()],["redo",()=>r.chain().focus().redo().run()]]).get(t)?.();},[r,t]);return jsxs(b$1,{children:[jsx(c$1,{asChild:true,children:jsx($,{onClick:u,...a$2&&{appearance:"solid"},...n,children:o&&jsx(b$2,{className:"text-icon-neutral-3",name:o})})}),jsx(d,{children:s&&jsx(a$1,{size:"sm",children:s})})]})}function ne({appearance:t="ghost",variant:n="secondary",...r}){let[i$1,a]=useState(false),{editor:o}=useCurrentEditor(),s=useEditorState({editor:o,selector:l=>l.editor?.isActive("heading")??false}),u=useCallback(l=>{if(!o)throw new Error("Editor not found");return o.isActive("heading",{level:l})},[o]),d$2=useCallback(l=>{if(!o)throw new Error("Editor not found");a(false),setTimeout(()=>{o.chain().focus().toggleHeading({level:l}).run();},0);},[o]),P=[{level:1,label:"Normal",className:c[1]},{level:2,label:"Grande",className:c[2]},{level:3,label:"Enorme",className:c[3]}];return jsxs(a$2,{open:i$1,onOpenChange:l=>a(l),children:[jsx(c$2,{asChild:true,children:jsx(b,{appearance:s?"solid":t,size:"icon_md",tabIndex:-1,type:"button",variant:n,...r,children:jsxs(b$1,{children:[jsx(c$1,{asChild:true,children:jsx(b$2,{className:"text-icon-neutral-3",name:"format_size"})}),jsx(d,{children:jsx(a$1,{size:"sm",children:"Tamanho"})})]})})}),jsx(d$1,{children:jsx(e,{children:P.map(l=>jsx(h,{isActive:u(l.level),onPointerDown:()=>d$2(l.level),children:jsx(i,{className:l.className,children:l.label})},l.level))})})]})}export{ne as HeadingButton,te as RichEditorAreaText,ee as RichEditorCaption,j as RichEditorContent,X as RichEditorRoot,oe as RichEditorToolbar,re as ToggleButton,$ as ToolbarButton};//# sourceMappingURL=rich-editor.js.map
|
|
2
|
+
//# sourceMappingURL=rich-editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/form/rich-editor.tsx"],"names":["headingClasses","RichEditorRoot","className","editorOptions","props","editor","useEditor","StarterKit","Placeholder","node","Heading","HTMLAttributes","level","value","useMemo","jsx","EditorContext","cx","RichEditorContent","RichEditorCaption","RichEditorAreaText","useRichTextEditor","EditorContent","RichEditorToolbar","ToolbarButton","appearance","variant","onMouseDown","onPointerDown","Button","e","ToggleButton","name","shortcut","useOS","isActive","useRichTextEditorState","ctx","icon","description","handleToggle","useCallback","jsxs","Tooltip","TooltipTrigger","Icon","TooltipContent","Typography","HeadingButton","isOpen","setIsOpen","useState","isLevelActive","toggleHeading","levels","DropdownMenuRoot","open","DropdownMenuTrigger","DropdownMenuContent","DropdownMenuList","DropdownMenuItem","DropdownMenuItemText"],"mappings":"y0BA6BA,IAAMA,CAAAA,CAAiD,CACrD,CAAA,CAAG,mBAAA,CACH,CAAA,CAAG,oBAAA,CACH,CAAA,CAAG,uBACL,CAAA,CAEO,SAASC,CAAAA,CAAe,CAC7B,SAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAMG,CACD,IAAMC,CAAAA,CAASC,SAAAA,CAAU,CACvB,GAAGH,CAAAA,CACH,UAAA,CAAY,CACVI,UAAAA,CAAW,SAAA,CAAU,CACnB,UAAA,CAAY,CACV,cAAA,CAAgB,CACd,KAAA,CAAO,oCACT,CACF,CAAA,CACA,WAAA,CAAa,CACX,cAAA,CAAgB,CACd,KAAA,CAAO,uCACT,CACF,CAAA,CACA,OAAA,CAAS,KACX,CAAC,CAAA,CACDC,WAAAA,CAAY,SAAA,CAAU,CACpB,WAAA,CAAa,CAAC,CAAE,IAAA,CAAAC,CAAAA,CAAM,MAAA,CAAAJ,CAAO,CAAA,GAC3BI,CAAAA,CAAK,IAAA,CAAK,IAAA,GAAS,WAAA,EAAeJ,CAAAA,CAAO,OAAA,CACrC,mBAAA,CACA,EAAA,CACN,oBAAA,CAAsB,IAAA,CACtB,eAAA,CAAiB,KAAA,CACjB,cAAA,CACE,2NACJ,CAAC,CAAA,CACDK,OAAAA,CAAQ,SAAA,CAAU,CAChB,MAAA,CAAQ,CAAC,CAAA,CAAG,CAAA,CAAG,CAAC,CAClB,CAAC,CAAA,CAAE,OAAO,CACR,UAAA,CAAW,C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UAAA5B,GAAAA,CAAC6B,GAAAA,CAAA,CAAe,OAAA,CAAS,IAAA,CACvB,QAAA,CAAA7B,GAAAA,CAAC8B,GAAAA,CAAA,CAAK,SAAA,CAAU,qBAAA,CAAsB,IAAA,CAAK,aAAA,CAAc,CAAA,CAC3D,EAEA9B,GAAAA,CAAC+B,CAAAA,CAAA,CACC,QAAA,CAAA/B,GAAAA,CAACgC,GAAAA,CAAA,CAAW,IAAA,CAAK,IAAA,CAAK,QAAA,CAAA,SAAA,CAAO,CAAA,CAC/B,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CACF,EACAhC,GAAAA,CAAC2C,GAAAA,CAAA,CACC,QAAA,CAAA3C,GAAAA,CAAC4C,CAAAA,CAAA,CACE,QAAA,CAAAL,CAAAA,CAAO,GAAA,CAAI1C,CAAAA,EACVG,GAAAA,CAAC6C,CAAAA,CAAA,CACC,SAAUR,CAAAA,CAAcxC,CAAAA,CAAM,KAAK,CAAA,CAEnC,aAAA,CAAe,IAAMyC,GAAAA,CAAczC,CAAAA,CAAM,KAAK,CAAA,CAE9C,QAAA,CAAAG,GAAAA,CAAC8C,CAAAA,CAAA,CAAqB,UAAWjD,CAAAA,CAAM,SAAA,CACpC,QAAA,CAAAA,CAAAA,CAAM,KAAA,CACT,CAAA,CAAA,CALKA,CAAAA,CAAM,KAMb,CACD,CAAA,CACH,CAAA,CACF,CAAA,CAAA,CACF,CAEJ","file":"rich-editor.js","sourcesContent":["import { cx } from '@xjur-ui/util'\nimport { useCallback, useMemo, useState, type ComponentProps } from 'react'\nimport {\n EditorContent,\n EditorContext,\n useCurrentEditor as useRichTextEditor,\n useEditorState as useRichTextEditorState,\n useEditor,\n type EditorOptions\n} from '@tiptap/react'\nimport type { Extension } from '@tiptap/core'\nimport { StarterKit } from '@tiptap/starter-kit'\nimport { Heading, type Level } from '@tiptap/extension-heading'\n// Import specific extension instead of full extensions bundle\nimport { Placeholder } from '@tiptap/extension-placeholder'\nimport { useOS } from '../../hooks'\nimport { Icon, type IconType } from '../icon'\nimport { Button, type ButtonProps } from '../form/button'\nimport {\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuItemText,\n DropdownMenuList,\n DropdownMenuRoot,\n DropdownMenuTrigger\n} from '../dropdown-menu'\nimport { Tooltip, TooltipTrigger, TooltipContent } from '../tooltip'\nimport { Typography } from '../typography'\n\nconst headingClasses: Partial<Record<Level, string>> = {\n 1: 'text-size-body-md',\n 2: 'text-size-title-lg',\n 3: 'text-size-headline-lg'\n}\n\nexport function RichEditorRoot({\n className,\n editorOptions,\n ...props\n}: ComponentProps<'div'> & {\n editorOptions?: Partial<\n Omit<EditorOptions, 'extensions'> & {\n extensions?: Extension[]\n }\n >\n}) {\n const editor = useEditor({\n ...editorOptions,\n extensions: [\n StarterKit.configure({\n bulletList: {\n HTMLAttributes: {\n class: 'list-disc list-outside pl-large-1x'\n }\n },\n orderedList: {\n HTMLAttributes: {\n class: 'list-decimal list-outside pl-large-1x'\n }\n },\n heading: false\n }),\n Placeholder.configure({\n placeholder: ({ node, editor }) =>\n node.type.name === 'paragraph' && editor.isEmpty\n ? 'Digite aqui…'\n : '',\n showOnlyWhenEditable: true,\n includeChildren: false,\n emptyNodeClass:\n 'before:content-[attr(data-placeholder)] before:absolute before:top-0 before:left-0 before:text-neutral-placeholder first:before:float-left first:before:content-[attr(data-placeholder)] first:before:pointer-events-none'\n }),\n Heading.configure({\n levels: [1, 2, 3]\n }).extend({\n renderHTML({ node, HTMLAttributes }) {\n const level: Level = node.attrs.level ?? 1\n\n return [\n 'h',\n {\n ...HTMLAttributes,\n class: headingClasses[level]\n },\n 0\n ]\n }\n }),\n ...(editorOptions?.extensions ?? [])\n ]\n })\n\n const value = useMemo(() => ({ editor }), [editor])\n\n return (\n <EditorContext.Provider value={value}>\n <div\n className={cx('gap-small flex w-full flex-col', className)}\n data-slot=\"text-area-root\"\n {...props}\n />\n </EditorContext.Provider>\n )\n}\n\nexport function RichEditorContent({\n className,\n ...props\n}: ComponentProps<'div'>) {\n return (\n <div\n className={cx(\n 'bg-layer-2-hover py-small_1x-alt px-small rounded-small-1x min-h-[116px] w-full border border-transparent',\n 'hover:border-border-layer-2 transition-colors duration-200',\n '[&_ul_ul]:list-[circle]',\n '[&_ul_ul_ul]:list-[square]',\n '[&_ol_ol]:list-[lower-alpha]',\n '[&_ol_ol_ol]:list-[lower-roman]',\n 'gap-small flex flex-col overflow-x-hidden overflow-y-auto',\n className\n )}\n data-slot=\"text-area-content\"\n {...props}\n />\n )\n}\n\nexport function RichEditorCaption({\n className,\n ...props\n}: ComponentProps<'p'>) {\n return (\n <p\n {...props}\n className={cx(\n 'text-size-body-sm text-neutral-dark font-normal',\n className\n )}\n data-slot=\"text-area-caption\"\n />\n )\n}\n\nexport function RichEditorAreaText({\n className,\n ...props\n}: Omit<ComponentProps<typeof EditorContent>, 'editor'>) {\n const { editor } = useRichTextEditor()\n\n return (\n <EditorContent\n className={cx(\n 'text-size-body-md text-neutral-dark max-h-[116px] *:h-full *:w-full *:outline-0',\n className\n )}\n editor={editor}\n {...props}\n />\n )\n}\n\nexport function RichEditorToolbar({\n className,\n ...props\n}: ComponentProps<'div'>) {\n return (\n <div\n className={cx(\n 'h-large-4x gap-small-1x h-large-6px scrollbar-hide flex flex-nowrap items-center overflow-x-auto overflow-y-hidden',\n className\n )}\n data-slot=\"text-area-toolbar\"\n {...props}\n />\n )\n}\n\nexport function ToolbarButton({\n appearance = 'ghost',\n variant = 'secondary',\n onMouseDown,\n onPointerDown,\n ...props\n}: ButtonProps) {\n return (\n <Button\n appearance={appearance}\n size=\"icon_md\"\n tabIndex={-1}\n type=\"button\"\n variant={variant}\n onMouseDown={e => {\n e.preventDefault()\n onMouseDown?.(e)\n }}\n onPointerDown={e => {\n e.preventDefault()\n onPointerDown?.(e)\n }}\n {...props}\n />\n )\n}\n\ntype ToggleButtonName =\n | 'bold'\n | 'italic'\n | 'underline'\n | 'strike'\n | 'bulletList'\n | 'orderedList'\n | 'undo'\n | 'redo'\n\nexport function ToggleButton({\n name,\n ...props\n}: ButtonProps & { name: ToggleButtonName }) {\n const { editor } = useRichTextEditor()\n const { shortcut } = useOS()\n\n const isActive = useRichTextEditorState({\n editor,\n selector: ctx => ctx.editor?.isActive(name) ?? false\n })\n\n const icon = useMemo(() => {\n const iconsMap = new Map<ToggleButtonName, IconType>([\n ['bold', 'format_bold'],\n ['italic', 'format_italic'],\n ['underline', 'format_underlined'],\n ['strike', 'format_strikethrough'],\n ['bulletList', 'format_list_bulleted'],\n ['orderedList', 'format_list_numbered'],\n ['undo', 'undo'],\n ['redo', 'redo']\n ])\n\n return iconsMap.get(name)\n }, [name])\n\n const description = useMemo(() => {\n const descriptionsMap = new Map<ToggleButtonName, string>([\n ['bold', `Negrito (${shortcut} + B)`],\n ['italic', `Itálico (${shortcut} + I)`],\n ['underline', `Sublinhado (${shortcut} + U)`],\n ['strike', `Tachado (${shortcut} + S)`],\n ['bulletList', `Lista (${shortcut} + Shift + 7)`],\n ['orderedList', `Lista numerada (${shortcut} + Shift + 8)`],\n ['undo', `Desfazer (${shortcut} + Z)`],\n ['redo', `Refazer (${shortcut} + Y)`]\n ])\n\n return descriptionsMap.get(name)\n }, [name, shortcut])\n\n const handleToggle = useCallback(() => {\n if (!editor) throw new Error('Editor not found')\n\n const commandsMap = new Map<ToggleButtonName, () => void>([\n ['bold', () => editor.chain().focus().toggleBold().run()],\n ['italic', () => editor.chain().focus().toggleItalic().run()],\n ['underline', () => editor.chain().focus().toggleUnderline().run()],\n ['strike', () => editor.chain().focus().toggleStrike().run()],\n ['bulletList', () => editor.chain().focus().toggleBulletList().run()],\n ['orderedList', () => editor.chain().focus().toggleOrderedList().run()],\n ['undo', () => editor.chain().focus().undo().run()],\n ['redo', () => editor.chain().focus().redo().run()]\n ])\n\n commandsMap.get(name)?.()\n }, [editor, name])\n\n return (\n <Tooltip>\n <TooltipTrigger asChild={true}>\n <ToolbarButton\n onClick={handleToggle}\n {...(isActive && { appearance: 'solid' })}\n {...props}\n >\n {icon && <Icon className=\"text-icon-neutral-3\" name={icon} />}\n </ToolbarButton>\n </TooltipTrigger>\n\n <TooltipContent>\n {description && <Typography size=\"sm\">{description}</Typography>}\n </TooltipContent>\n </Tooltip>\n )\n}\n\nexport function HeadingButton({\n appearance = 'ghost',\n variant = 'secondary',\n ...props\n}: ButtonProps) {\n const [isOpen, setIsOpen] = useState(false)\n const { editor } = useRichTextEditor()\n\n const isActive = useRichTextEditorState({\n editor,\n selector: ctx => ctx.editor?.isActive('heading') ?? false\n })\n\n const isLevelActive = useCallback(\n (level: Level) => {\n if (!editor) throw new Error('Editor not found')\n return editor.isActive('heading', { level })\n },\n [editor]\n )\n\n const toggleHeading = useCallback(\n (level: Level) => {\n if (!editor) throw new Error('Editor not found')\n setIsOpen(false)\n setTimeout(() => {\n editor.chain().focus().toggleHeading({ level }).run()\n }, 0)\n },\n [editor]\n )\n\n const levels: { level: Level; label: string; className?: string }[] = [\n { level: 1, label: 'Normal', className: headingClasses[1] },\n { level: 2, label: 'Grande', className: headingClasses[2] },\n { level: 3, label: 'Enorme', className: headingClasses[3] }\n ]\n\n return (\n <DropdownMenuRoot open={isOpen} onOpenChange={open => setIsOpen(open)}>\n <DropdownMenuTrigger asChild={true}>\n <Button\n appearance={isActive ? 'solid' : appearance}\n size=\"icon_md\"\n tabIndex={-1}\n type=\"button\"\n variant={variant}\n {...props}\n >\n <Tooltip>\n <TooltipTrigger asChild={true}>\n <Icon className=\"text-icon-neutral-3\" name=\"format_size\" />\n </TooltipTrigger>\n\n <TooltipContent>\n <Typography size=\"sm\">Tamanho</Typography>\n </TooltipContent>\n </Tooltip>\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent>\n <DropdownMenuList>\n {levels.map(level => (\n <DropdownMenuItem\n isActive={isLevelActive(level.level)}\n key={level.level}\n onPointerDown={() => toggleHeading(level.level)}\n >\n <DropdownMenuItemText className={level.className}>\n {level.label}\n </DropdownMenuItemText>\n </DropdownMenuItem>\n ))}\n </DropdownMenuList>\n </DropdownMenuContent>\n </DropdownMenuRoot>\n )\n}\n\nexport { useRichTextEditorState, useRichTextEditor }\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b as b$1}from'../../chunk-PKCW37CJ.js';import {a}from'../../chunk-EIG6CBTQ.js';import {cx,cva}from'@xjur-ui/util';import {createContext}from'react';import {jsx}from'react/jsx-runtime';var i=createContext({variant:"outlined"});function h({className:e,variant:r="outlined",...o}){return jsx(i.Provider,{value:{variant:r},children:jsx("div",{className:cx(e,"relative flex w-full"),...o})})}function b({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(i.Consumer,{children:({variant:a})=>jsx("div",{className:cx(e,o({variant:a})),"data-variant":a,...r})})}function f({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 v({className:e,...r}){return jsx("input",{className:cx(e,"flex-1 outline-none"),...r})}function y(e){return jsx("div",{...e,"data-slot":"search-input-slot"})}function C({className:e,appearance:r="ghost",variant:o="outlined",...a}){return jsx(b$1,{...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"),"data-slot":"search-input-action",variant:o})}export{C as SearchInputAction,b as SearchInputContent,f as SearchInputLabel,h as SearchInputRoot,y as SearchInputSlot,v as SearchInputText};//# sourceMappingURL=search-input.js.map
|
|
2
|
+
//# sourceMappingURL=search-input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/form/search-input.tsx"],"names":["SearchInputRootContext","createContext","SearchInputRoot","className","variant","props","jsx","cx","SearchInputContent","contentVarians","cva","SearchInputLabel","htmlFor","Typography","SearchInputText","SearchInputSlot","SearchInputAction","appearance","Button"],"mappings":"gMASA,IAAMA,CAAAA,CAAyBC,aAAAA,CAAgC,CAC7D,OAAA,CAAS,UACX,CAAC,EAEM,SAASC,CAAAA,CAAgB,CAC9B,SAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,EAAU,UAAA,CACV,GAAGC,CACL,CAAA,CAA6C,CAC3C,OACEC,IAACN,CAAAA,CAAuB,QAAA,CAAvB,CAAgC,KAAA,CAAO,CAAE,OAAA,CAAAI,CAAQ,CAAA,CAChD,QAAA,CAAAE,GAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAWC,EAAAA,CAAGJ,EAAW,sBAAsB,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAAA,CACpE,CAEJ,CAEO,SAASG,CAAAA,CAAmB,CACjC,SAAA,CAAAL,CAAAA,CACA,GAAGE,CACL,CAAA,CAA0B,CACxB,IAAMI,CAAAA,CAAiBC,GAAAA,CACrB,CACE,8DACA,2BAAA,CACA,0HAAA,CACA,kEAAA,CACA,qBAAA,CACA,kCACF,CAAA,CACA,CACE,QAAA,CAAU,CACR,OAAA,CAAS,CACP,QAAA,CAAU,kDAAA,CACV,KAAM,+CAAA,CACN,MAAA,CAAQ,4CACV,CACF,CACF,CACF,EAEA,OACEJ,GAAAA,CAACN,CAAAA,CAAuB,QAAA,CAAvB,CACE,QAAA,CAAA,CAAC,CAAE,OAAA,CAAAI,CAAQ,CAAA,GACVE,GAAAA,CAAC,KAAA,CAAA,CACC,SAAA,CAAWC,EAAAA,CAAGJ,CAAAA,CAAWM,CAAAA,CAAe,CAAE,OAAA,CAAAL,CAAQ,CAAC,CAAC,EACpD,cAAA,CAAcA,CAAAA,CACb,GAAGC,CAAAA,CACN,CAAA,CAEJ,CAEJ,CAEO,SAASM,CAAAA,CAAiB,CAC/B,OAAA,CAAAC,CAAAA,CACA,GAAGP,CACL,CAAA,CAA4B,CAC1B,OACEC,GAAAA,CAACO,CAAAA,CAAA,CACC,QAAS,IAAA,CACT,SAAA,CAAWN,EAAAA,CAAG,6BAA6B,CAAA,CAC3C,IAAA,CAAK,KACL,OAAA,CAAQ,OAAA,CACR,MAAA,CAAO,QAAA,CAEP,QAAA,CAAAD,GAAAA,CAAC,SAAM,OAAA,CAASM,CAAAA,CAAU,GAAGP,CAAAA,CAAO,CAAA,CACtC,CAEJ,CAEO,SAASS,CAAAA,CAAgB,CAC9B,SAAA,CAAAX,CAAAA,CACA,GAAGE,CACL,CAAA,CAA4B,CAC1B,OAAOC,GAAAA,CAAC,OAAA,CAAA,CAAM,SAAA,CAAWC,GAAGJ,CAAAA,CAAW,qBAAqB,CAAA,CAAI,GAAGE,CAAAA,CAAO,CAC5E,CAEO,SAASU,CAAAA,CAAgBV,CAAAA,CAA8B,CAC5D,OAAOC,GAAAA,CAAC,OAAK,GAAGD,CAAAA,CAAO,WAAA,CAAU,mBAAA,CAAoB,CACvD,CAEO,SAASW,CAAAA,CAAkB,CAChC,SAAA,CAAAb,CAAAA,CACA,UAAA,CAAAc,CAAAA,CAAa,QACb,OAAA,CAAAb,CAAAA,CAAU,UAAA,CACV,GAAGC,CACL,CAAA,CAAgB,CACd,OACEC,GAAAA,CAACY,GAAAA,CAAA,CACE,GAAGb,CAAAA,CACJ,WAAYY,CAAAA,CACZ,SAAA,CAAWV,EAAAA,CACTJ,CAAAA,CACA,gBAAA,CACA,uHAAA,CACA,kDACF,CAAA,CACA,WAAA,CAAU,qBAAA,CACV,OAAA,CAASC,CAAAA,CACX,CAEJ","file":"search-input.js","sourcesContent":["import { cva, cx } from '@xjur-ui/util'\nimport { createContext, type ComponentProps } from 'react'\nimport { Typography } from '../typography'\nimport { Button, type ButtonProps } from '../form/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(className, 'relative flex w-full')} {...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 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'\n )}\n data-slot=\"search-input-action\"\n variant={variant}\n />\n )\n}\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
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-CmDuL0gZ.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 { FloatingLabel } from './floating-label.js';
|
|
10
|
+
import 'class-variance-authority/types';
|
|
11
|
+
import '@xjur-ui/util';
|
|
12
|
+
import '@react-input/mask';
|
|
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 SelectLabel(props: ComponentProps<typeof FloatingLabel>): react_jsx_runtime.JSX.Element;
|
|
81
|
+
declare function SelectValue({ className, displayValue, value, placeholder, ...props }: ComponentProps<'input'> & {
|
|
82
|
+
displayValue?: string;
|
|
83
|
+
}): react_jsx_runtime.JSX.Element;
|
|
84
|
+
declare function SelectMultiValue({ className, value, placeholder, children, ...props }: ComponentProps<'input'>): react_jsx_runtime.JSX.Element;
|
|
85
|
+
declare function SelectContent({ className, sideOffset, side, align, children, ...props }: ComponentProps<typeof RadixPopover.Content>): react_jsx_runtime.JSX.Element;
|
|
86
|
+
declare function SelectCaption({ className, ...props }: ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
87
|
+
declare function SelectSlot({ className, ...props }: ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
88
|
+
declare function SelectOptions(props: ComponentProps<typeof ListContent>): react_jsx_runtime.JSX.Element;
|
|
89
|
+
declare function SelectOption({ className, ...props }: ComponentProps<typeof ListItem>): react_jsx_runtime.JSX.Element;
|
|
90
|
+
declare function SelectOptionText(props: ComponentProps<typeof Typography>): react_jsx_runtime.JSX.Element;
|
|
91
|
+
declare function SelectHeader(props: ComponentProps<typeof ListHeader>): react_jsx_runtime.JSX.Element;
|
|
92
|
+
declare function SelectHeaderTitle(props: ComponentProps<typeof ListHeaderTitle>): react_jsx_runtime.JSX.Element;
|
|
93
|
+
|
|
94
|
+
export { SelectCaption, SelectContent, SelectHeader, SelectHeaderTitle, SelectIcon, SelectLabel, SelectMultiValue, SelectOption, SelectOptionText, SelectOptions, SelectRoot, SelectSlot, SelectTrigger, SelectValue, select };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{i as SelectCaption,h as SelectContent,n as SelectHeader,o as SelectHeaderTitle,d as SelectIcon,e as SelectLabel,g as SelectMultiValue,l as SelectOption,m as SelectOptionText,k as SelectOptions,b as SelectRoot,j as SelectSlot,c as SelectTrigger,f as SelectValue,a as select}from'../../chunk-AA6V5YEC.js';import'../../chunk-TSVURBUY.js';import'../../chunk-IRHU7PDO.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=select.js.map
|
|
2
|
+
//# sourceMappingURL=select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"select.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"switch.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface CalendarAddEventProps {
|
|
4
|
+
date: Date;
|
|
5
|
+
onAddEvent: (date: Date) => void;
|
|
6
|
+
}
|
|
7
|
+
declare function CalendarAddEvent({ date, onAddEvent }: CalendarAddEventProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { CalendarAddEvent };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b}from'../../chunk-PKCW37CJ.js';import {b as b$1}from'../../chunk-WV7QV2PU.js';import {jsx}from'react/jsx-runtime';function i({date:a,onAddEvent:d}){return jsx(b,{size:"icon_sm",variant:"outlined",onClick:()=>d(a),children:jsx(b$1,{className:"text-icon-neutral-3",name:"add"})})}export{i as CalendarAddEvent};//# sourceMappingURL=calendar-add-event.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-add-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/full-calendar/calendar-add-event.tsx"],"names":["CalendarAddEvent","date","onAddEvent","jsx","Button","Icon"],"mappings":"2HAQO,SAASA,CAAAA,CAAiB,CAAE,IAAA,CAAAC,CAAAA,CAAM,UAAA,CAAAC,CAAW,CAAA,CAA0B,CAC5E,OACEC,GAAAA,CAACC,EAAA,CAAO,IAAA,CAAK,SAAA,CAAU,OAAA,CAAQ,UAAA,CAAW,OAAA,CAAS,IAAMF,CAAAA,CAAWD,CAAI,CAAA,CACtE,QAAA,CAAAE,GAAAA,CAACE,GAAAA,CAAA,CAAK,SAAA,CAAU,qBAAA,CAAsB,IAAA,CAAK,KAAA,CAAM,EACnD,CAEJ","file":"calendar-add-event.js","sourcesContent":["import { Button } from '../form/button'\nimport { Icon } from '../icon'\n\ninterface CalendarAddEventProps {\n date: Date\n onAddEvent: (date: Date) => void\n}\n\nexport function CalendarAddEvent({ date, onAddEvent }: CalendarAddEventProps) {\n return (\n <Button size=\"icon_sm\" variant=\"outlined\" onClick={() => onAddEvent(date)}>\n <Icon className=\"text-icon-neutral-3\" name=\"add\" />\n </Button>\n )\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-body.js"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ICalendarCell } from './types/calendar-cell.js';
|
|
3
|
+
import { ICalendarEvent } from './types/calendar-event.js';
|
|
4
|
+
|
|
5
|
+
interface CalendarCellProps {
|
|
6
|
+
events: ICalendarEvent[];
|
|
7
|
+
cell: ICalendarCell;
|
|
8
|
+
}
|
|
9
|
+
declare function CalendarCell({ cell, events }: CalendarCellProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { CalendarCell };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarCell}from'../../chunk-UXIVZWLB.js';import'../../chunk-L4ET6GIZ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-cell.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-cell.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarDayView}from'../../chunk-BK6FP63A.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-UXIVZWLB.js';import'../../chunk-L4ET6GIZ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-day-view.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-day-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-day-view.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { Typography } from '../typography.js';
|
|
4
|
+
import { ICalendarEvent, ICalendarEventStatus } from './types/calendar-event.js';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
import '@xjur-ui/util';
|
|
7
|
+
|
|
8
|
+
interface CalendarEventProps extends ComponentProps<'div'> {
|
|
9
|
+
event: ICalendarEvent;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
status?: ICalendarEventStatus;
|
|
12
|
+
}
|
|
13
|
+
declare function CalendarEvent({ event, disabled, status, className, children, ...props }: CalendarEventProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare function CalendarEventTitle({ size, variant, weight, className, ...props }: ComponentProps<typeof Typography>): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function CalendarEventDescription({ size, variant, weight, className, ...props }: ComponentProps<typeof Typography>): react_jsx_runtime.JSX.Element;
|
|
16
|
+
declare function CalendarEventStatus({ variant, size, weight, className, ...props }: ComponentProps<typeof Typography>): react_jsx_runtime.JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { CalendarEvent, CalendarEventDescription, CalendarEventStatus, CalendarEventTitle };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarEvent,c as CalendarEventDescription,d as CalendarEventStatus,b as CalendarEventTitle}from'../../chunk-F4DYKYWJ.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-NELCN6E2.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-event.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-event.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-header.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarMonthView}from'../../chunk-2CTBH6VI.js';import'../../chunk-UXIVZWLB.js';import'../../chunk-L4ET6GIZ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-month-view.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-month-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-month-view.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ICalendarEvent } from './types/calendar-event.js';
|
|
3
|
+
|
|
4
|
+
interface CalendarMoreEventsDropdownProps {
|
|
5
|
+
events: ICalendarEvent[];
|
|
6
|
+
}
|
|
7
|
+
declare function CalendarMoreEventsDropdown({ events }: CalendarMoreEventsDropdownProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { CalendarMoreEventsDropdown };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarMoreEventsDropdown}from'../../chunk-L4ET6GIZ.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-more-events-dropdown.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-more-events-dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-more-events-dropdown.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarNavigator}from'../../chunk-OS53BV63.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-SLAAEXWI.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-navigator.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-navigator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-navigator.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { ICalendarEvent } from './types/calendar-event.js';
|
|
4
|
+
import { CalendarView } from './types/calendar-view.js';
|
|
5
|
+
|
|
6
|
+
interface CalendarContextType {
|
|
7
|
+
events: ICalendarEvent[];
|
|
8
|
+
selectedDate: Date;
|
|
9
|
+
calendarView?: CalendarView;
|
|
10
|
+
activeEventId: string | null;
|
|
11
|
+
disableEventCreationInPast?: boolean;
|
|
12
|
+
renderEvent: (event: ICalendarEvent) => React__default.ReactNode;
|
|
13
|
+
handleChangeView: (view: CalendarView) => void;
|
|
14
|
+
setSelectedDate: React__default.Dispatch<React__default.SetStateAction<Date>>;
|
|
15
|
+
onEventMove?: (eventId: string, newDate: Date) => void;
|
|
16
|
+
onAddEvent?: (date: Date) => void;
|
|
17
|
+
}
|
|
18
|
+
declare function CalendarRoot({ children, events, calendarView: calendarViewProp, selectedDate: selectedDateProp, disableEventCreationInPast, renderEvent, onEventMove, onAddEvent }: {
|
|
19
|
+
children: React__default.ReactNode;
|
|
20
|
+
events: ICalendarEvent[];
|
|
21
|
+
selectedDate?: Date;
|
|
22
|
+
calendarView?: CalendarView;
|
|
23
|
+
disableEventCreationInPast?: boolean;
|
|
24
|
+
renderEvent: (event: ICalendarEvent) => React__default.ReactNode;
|
|
25
|
+
onEventMove?: (eventId: string, newDate: Date) => void;
|
|
26
|
+
onAddEvent?: (date: Date) => void;
|
|
27
|
+
}): react_jsx_runtime.JSX.Element;
|
|
28
|
+
declare function useFullCalendar(): CalendarContextType;
|
|
29
|
+
|
|
30
|
+
export { CalendarRoot, useFullCalendar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-root.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonProps } from '../form/button.js';
|
|
3
|
+
import 'class-variance-authority/types';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '@xjur-ui/util';
|
|
6
|
+
|
|
7
|
+
declare function CalendarTodayButton({ children, variant, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
8
|
+
|
|
9
|
+
export { CalendarTodayButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-today-button.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarToggleView}from'../../chunk-CI3ZXWEX.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-AA6V5YEC.js';import'../../chunk-TSVURBUY.js';import'../../chunk-IRHU7PDO.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-toggle-view.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-toggle-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-toggle-view.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarViewRenderer}from'../../chunk-5WLIDYZH.js';import'../../chunk-IKL6PSXU.js';import'../../chunk-2CTBH6VI.js';import'../../chunk-BK6FP63A.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-UXIVZWLB.js';import'../../chunk-L4ET6GIZ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-view-renderer.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-view-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-view-renderer.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
|
|
4
|
+
interface CalendarWeekDayProps extends ComponentProps<'div'> {
|
|
5
|
+
date: Date;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function CalendarWeekDay({ date, className, ...props }: CalendarWeekDayProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { CalendarWeekDay };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-week-day.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarWeekView}from'../../chunk-IKL6PSXU.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-UXIVZWLB.js';import'../../chunk-L4ET6GIZ.js';import'../../chunk-EXC2XOL6.js';import'../../chunk-SXGSWVMZ.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=calendar-week-view.js.map
|
|
2
|
+
//# sourceMappingURL=calendar-week-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-week-view.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ICalendarEvent } from '../types/calendar-event.js';
|
|
2
|
+
import { ICalendarCell } from '../types/calendar-cell.js';
|
|
3
|
+
import { ICalendarWeekHour } from '../types/calendar-week-hour.js';
|
|
4
|
+
|
|
5
|
+
declare const WEEKDAYS: string[];
|
|
6
|
+
declare const WEEK_HOURS: ICalendarWeekHour[];
|
|
7
|
+
declare function getDaysInMonth(date: Date): ICalendarCell[];
|
|
8
|
+
declare function getEventsForDay(events: ICalendarEvent[], date: Date): ICalendarEvent<unknown>[];
|
|
9
|
+
declare function isToday(date: Date): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Week view helpers
|
|
12
|
+
*/
|
|
13
|
+
declare function getWeekDaysInMonth(date: Date): ICalendarCell[];
|
|
14
|
+
declare function getEventsForDayAndHour(events: ICalendarEvent[], date: Date, hour: number): ICalendarEvent[];
|
|
15
|
+
declare function isCurrentHour(date: Date, hour: number): boolean;
|
|
16
|
+
declare function getStartAndEndDateOfWeek(date: Date): {
|
|
17
|
+
start: Date;
|
|
18
|
+
end: Date;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Day view helpers
|
|
22
|
+
*/
|
|
23
|
+
declare function getDaysInDay(date: Date): ICalendarCell[];
|
|
24
|
+
|
|
25
|
+
export { WEEKDAYS, WEEK_HOURS, getDaysInDay, getDaysInMonth, getEventsForDay, getEventsForDayAndHour, getStartAndEndDateOfWeek, getWeekDaysInMonth, isCurrentHour, isToday };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{k as WEEKDAYS,l as WEEK_HOURS,t as getDaysInDay,m as getDaysInMonth,n as getEventsForDay,q as getEventsForDayAndHour,s as getStartAndEndDateOfWeek,p as getWeekDaysInMonth,r as isCurrentHour,o as isToday}from'../../../chunk-EXC2XOL6.js';//# sourceMappingURL=calendar.js.map
|
|
2
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar.js"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { CalendarMonthView } from './calendar-month-view.js';
|
|
2
|
+
export { CalendarWeekView } from './calendar-week-view.js';
|
|
3
|
+
export { CalendarViewRenderer } from './calendar-view-renderer.js';
|
|
4
|
+
export { CalendarNavigator } from './calendar-navigator.js';
|
|
5
|
+
export { CalendarRoot, useFullCalendar } from './calendar-root.js';
|
|
6
|
+
export { CalendarToggleView } from './calendar-toggle-view.js';
|
|
7
|
+
export { CalendarHeader } from './calendar-header.js';
|
|
8
|
+
export { CalendarBody } from './calendar-body.js';
|
|
9
|
+
export { CalendarEvent, CalendarEventDescription, CalendarEventStatus, CalendarEventTitle } from './calendar-event.js';
|
|
10
|
+
export { CalendarTodayButton } from './calendar-today-button.js';
|
|
11
|
+
export { ICalendarEvent, ICalendarEventStatus } from './types/calendar-event.js';
|
|
12
|
+
export { CalendarView } from './types/calendar-view.js';
|
|
13
|
+
import 'react/jsx-runtime';
|
|
14
|
+
import 'react';
|
|
15
|
+
import '../typography.js';
|
|
16
|
+
import 'class-variance-authority/types';
|
|
17
|
+
import '@xjur-ui/util';
|
|
18
|
+
import '../form/button.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{a as CalendarNavigator}from'../../chunk-OS53BV63.js';export{a as CalendarTodayButton}from'../../chunk-6AD6O6II.js';export{a as CalendarToggleView}from'../../chunk-CI3ZXWEX.js';export{a as CalendarViewRenderer}from'../../chunk-5WLIDYZH.js';export{a as CalendarWeekView}from'../../chunk-IKL6PSXU.js';export{a as CalendarMonthView}from'../../chunk-2CTBH6VI.js';export{a as CalendarBody}from'../../chunk-J4X5RQTR.js';import'../../chunk-BK6FP63A.js';import'../../chunk-ZVVPUP7V.js';import'../../chunk-MZSV4LNY.js';import'../../chunk-UXIVZWLB.js';import'../../chunk-L4ET6GIZ.js';import'../../chunk-EXC2XOL6.js';export{a as CalendarEvent,c as CalendarEventDescription,d as CalendarEventStatus,b as CalendarEventTitle}from'../../chunk-F4DYKYWJ.js';export{a as CalendarRoot,b as useFullCalendar}from'../../chunk-SXGSWVMZ.js';export{a as CalendarHeader}from'../../chunk-4BGTC333.js';import'../../chunk-AA6V5YEC.js';import'../../chunk-TSVURBUY.js';import'../../chunk-IRHU7PDO.js';import'../../chunk-SLAAEXWI.js';import'../../chunk-NELCN6E2.js';import'../../chunk-RWMV7APX.js';import'../../chunk-CBFC4QME.js';import'../../chunk-KIFR5VIE.js';import'../../chunk-PKCW37CJ.js';import'../../chunk-WV7QV2PU.js';import'../../chunk-EIG6CBTQ.js';//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"calendar-cell.js"}
|