@rowsncolumns/ui 15.0.38
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/LICENSE.md +100 -0
- package/dist/cjs/arrow/index.d.ts +17 -0
- package/dist/cjs/arrow/index.d.ts.map +1 -0
- package/dist/cjs/arrow/index.js +46 -0
- package/dist/cjs/button/index.d.ts +14 -0
- package/dist/cjs/button/index.d.ts.map +1 -0
- package/dist/cjs/button/index.js +46 -0
- package/dist/cjs/calendar/index.d.ts +5 -0
- package/dist/cjs/calendar/index.d.ts.map +1 -0
- package/dist/cjs/calendar/index.js +13 -0
- package/dist/cjs/card/index.d.ts +10 -0
- package/dist/cjs/card/index.d.ts.map +1 -0
- package/dist/cjs/card/index.js +32 -0
- package/dist/cjs/cell-tooltip/index.d.ts +17 -0
- package/dist/cjs/cell-tooltip/index.d.ts.map +1 -0
- package/dist/cjs/cell-tooltip/index.js +38 -0
- package/dist/cjs/circular-loader/index.d.ts +9 -0
- package/dist/cjs/circular-loader/index.d.ts.map +1 -0
- package/dist/cjs/circular-loader/index.js +11 -0
- package/dist/cjs/color-picker/index.d.ts +12 -0
- package/dist/cjs/color-picker/index.d.ts.map +1 -0
- package/dist/cjs/color-picker/index.js +101 -0
- package/dist/cjs/color-picker/style.d.ts +5 -0
- package/dist/cjs/color-picker/style.d.ts.map +1 -0
- package/dist/cjs/color-picker/style.js +11 -0
- package/dist/cjs/command/index.d.ts +74 -0
- package/dist/cjs/command/index.d.ts.map +1 -0
- package/dist/cjs/command/index.js +37 -0
- package/dist/cjs/conditional-wrapper/index.d.ts +9 -0
- package/dist/cjs/conditional-wrapper/index.d.ts.map +1 -0
- package/dist/cjs/conditional-wrapper/index.js +4 -0
- package/dist/cjs/dialog/index.d.ts +17 -0
- package/dist/cjs/dialog/index.d.ts.map +1 -0
- package/dist/cjs/dialog/index.js +50 -0
- package/dist/cjs/dropdown/index.d.ts +34 -0
- package/dist/cjs/dropdown/index.d.ts.map +1 -0
- package/dist/cjs/dropdown/index.js +73 -0
- package/dist/cjs/editor/constants.d.ts +7 -0
- package/dist/cjs/editor/constants.d.ts.map +1 -0
- package/dist/cjs/editor/constants.js +50 -0
- package/dist/cjs/editor/editor-error-boundary.d.ts +3 -0
- package/dist/cjs/editor/editor-error-boundary.d.ts.map +1 -0
- package/dist/cjs/editor/editor-error-boundary.js +9 -0
- package/dist/cjs/editor/style.d.ts +12 -0
- package/dist/cjs/editor/style.d.ts.map +1 -0
- package/dist/cjs/editor/style.js +24 -0
- package/dist/cjs/editor/suggestions-dropdown.d.ts +25 -0
- package/dist/cjs/editor/suggestions-dropdown.d.ts.map +1 -0
- package/dist/cjs/editor/suggestions-dropdown.js +120 -0
- package/dist/cjs/editor-pm/constants.d.ts +2 -0
- package/dist/cjs/editor-pm/constants.d.ts.map +1 -0
- package/dist/cjs/editor-pm/constants.js +2 -0
- package/dist/cjs/editor-pm/decoration-plugin.d.ts +15 -0
- package/dist/cjs/editor-pm/decoration-plugin.d.ts.map +1 -0
- package/dist/cjs/editor-pm/decoration-plugin.js +38 -0
- package/dist/cjs/editor-pm/helpers.d.ts +197 -0
- package/dist/cjs/editor-pm/helpers.d.ts.map +1 -0
- package/dist/cjs/editor-pm/helpers.js +1170 -0
- package/dist/cjs/editor-pm/index.d.ts +10 -0
- package/dist/cjs/editor-pm/index.d.ts.map +1 -0
- package/dist/cjs/editor-pm/index.js +9 -0
- package/dist/cjs/editor-pm/mention-nodeview.d.ts +31 -0
- package/dist/cjs/editor-pm/mention-nodeview.d.ts.map +1 -0
- package/dist/cjs/editor-pm/mention-nodeview.js +105 -0
- package/dist/cjs/editor-pm/mentions-dropdown.d.ts +13 -0
- package/dist/cjs/editor-pm/mentions-dropdown.d.ts.map +1 -0
- package/dist/cjs/editor-pm/mentions-dropdown.js +19 -0
- package/dist/cjs/editor-pm/mentions-plugin.d.ts +18 -0
- package/dist/cjs/editor-pm/mentions-plugin.d.ts.map +1 -0
- package/dist/cjs/editor-pm/mentions-plugin.js +72 -0
- package/dist/cjs/editor-pm/placeholder-plugin.d.ts +4 -0
- package/dist/cjs/editor-pm/placeholder-plugin.d.ts.map +1 -0
- package/dist/cjs/editor-pm/placeholder-plugin.js +20 -0
- package/dist/cjs/editor-pm/prosemirror-editor.d.ts +493 -0
- package/dist/cjs/editor-pm/prosemirror-editor.d.ts.map +1 -0
- package/dist/cjs/editor-pm/prosemirror-editor.js +1145 -0
- package/dist/cjs/editor-pm/schema.d.ts +3 -0
- package/dist/cjs/editor-pm/schema.d.ts.map +1 -0
- package/dist/cjs/editor-pm/schema.js +183 -0
- package/dist/cjs/editor-pm/types.d.ts +8 -0
- package/dist/cjs/editor-pm/types.d.ts.map +1 -0
- package/dist/cjs/editor-pm/types.js +1 -0
- package/dist/cjs/editor-pm/unfocused-selection-plugin.d.ts +25 -0
- package/dist/cjs/editor-pm/unfocused-selection-plugin.d.ts.map +1 -0
- package/dist/cjs/editor-pm/unfocused-selection-plugin.js +61 -0
- package/dist/cjs/editor-pm/use-dropdown-change-pm.d.ts +24 -0
- package/dist/cjs/editor-pm/use-dropdown-change-pm.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-dropdown-change-pm.js +140 -0
- package/dist/cjs/editor-pm/use-editor-change-pm.d.ts +29 -0
- package/dist/cjs/editor-pm/use-editor-change-pm.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-editor-change-pm.js +154 -0
- package/dist/cjs/editor-pm/use-editor-decorator-pm.d.ts +17 -0
- package/dist/cjs/editor-pm/use-editor-decorator-pm.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-editor-decorator-pm.js +59 -0
- package/dist/cjs/editor-pm/use-editor-keydown-pm.d.ts +21 -0
- package/dist/cjs/editor-pm/use-editor-keydown-pm.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-editor-keydown-pm.js +81 -0
- package/dist/cjs/editor-pm/use-mention-keydown.d.ts +11 -0
- package/dist/cjs/editor-pm/use-mention-keydown.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-mention-keydown.js +59 -0
- package/dist/cjs/editor-pm/use-parameter-suggestions.d.ts +19 -0
- package/dist/cjs/editor-pm/use-parameter-suggestions.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-parameter-suggestions.js +79 -0
- package/dist/cjs/editor-pm/use-parameter-suggestions.test.d.ts +2 -0
- package/dist/cjs/editor-pm/use-parameter-suggestions.test.d.ts.map +1 -0
- package/dist/cjs/editor-pm/use-parameter-suggestions.test.js +122 -0
- package/dist/cjs/eye-dropper/index.d.ts +10 -0
- package/dist/cjs/eye-dropper/index.d.ts.map +1 -0
- package/dist/cjs/eye-dropper/index.js +24 -0
- package/dist/cjs/function-info/helpers.d.ts +10 -0
- package/dist/cjs/function-info/helpers.d.ts.map +1 -0
- package/dist/cjs/function-info/helpers.js +20 -0
- package/dist/cjs/function-info/index.d.ts +11 -0
- package/dist/cjs/function-info/index.d.ts.map +1 -0
- package/dist/cjs/function-info/index.js +71 -0
- package/dist/cjs/function-info/style.d.ts +7 -0
- package/dist/cjs/function-info/style.d.ts.map +1 -0
- package/dist/cjs/function-info/style.js +13 -0
- package/dist/cjs/hex-color-picker/index.d.ts +8 -0
- package/dist/cjs/hex-color-picker/index.d.ts.map +1 -0
- package/dist/cjs/hex-color-picker/index.js +47 -0
- package/dist/cjs/hooks/use-cycle-reference.d.ts +16 -0
- package/dist/cjs/hooks/use-cycle-reference.d.ts.map +1 -0
- package/dist/cjs/hooks/use-cycle-reference.js +72 -0
- package/dist/cjs/hooks/use-dropdown-categories.d.ts +9 -0
- package/dist/cjs/hooks/use-dropdown-categories.d.ts.map +1 -0
- package/dist/cjs/hooks/use-dropdown-categories.js +45 -0
- package/dist/cjs/hooks/use-dropdown.d.ts +38 -0
- package/dist/cjs/hooks/use-dropdown.d.ts.map +1 -0
- package/dist/cjs/hooks/use-dropdown.js +236 -0
- package/dist/cjs/hooks/use-isomorphic-layout-effect.ts.d.ts +6 -0
- package/dist/cjs/hooks/use-isomorphic-layout-effect.ts.d.ts.map +1 -0
- package/dist/cjs/hooks/use-isomorphic-layout-effect.ts.js +8 -0
- package/dist/cjs/hooks/use-modal.d.ts +28 -0
- package/dist/cjs/hooks/use-modal.d.ts.map +1 -0
- package/dist/cjs/hooks/use-modal.js +101 -0
- package/dist/cjs/hooks/use-visibility.d.ts +2 -0
- package/dist/cjs/hooks/use-visibility.d.ts.map +1 -0
- package/dist/cjs/hooks/use-visibility.js +12 -0
- package/dist/cjs/icon-button/index.d.ts +15 -0
- package/dist/cjs/icon-button/index.d.ts.map +1 -0
- package/dist/cjs/icon-button/index.js +34 -0
- package/dist/cjs/index.d.ts +34 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +33 -0
- package/dist/cjs/input/index.d.ts +9 -0
- package/dist/cjs/input/index.d.ts.map +1 -0
- package/dist/cjs/input/index.js +9 -0
- package/dist/cjs/popover/index.d.ts +13 -0
- package/dist/cjs/popover/index.d.ts.map +1 -0
- package/dist/cjs/popover/index.js +29 -0
- package/dist/cjs/progress/index.d.ts +10 -0
- package/dist/cjs/progress/index.d.ts.map +1 -0
- package/dist/cjs/progress/index.js +15 -0
- package/dist/cjs/select/index.d.ts +14 -0
- package/dist/cjs/select/index.d.ts.map +1 -0
- package/dist/cjs/select/index.js +46 -0
- package/dist/cjs/separator/index.d.ts +5 -0
- package/dist/cjs/separator/index.d.ts.map +1 -0
- package/dist/cjs/separator/index.js +10 -0
- package/dist/cjs/skeleton/index.d.ts +7 -0
- package/dist/cjs/skeleton/index.d.ts.map +1 -0
- package/dist/cjs/skeleton/index.js +11 -0
- package/dist/cjs/stack/index.d.ts +11 -0
- package/dist/cjs/stack/index.d.ts.map +1 -0
- package/dist/cjs/stack/index.js +22 -0
- package/dist/cjs/tabs/index.d.ts +8 -0
- package/dist/cjs/tabs/index.d.ts.map +1 -0
- package/dist/cjs/tabs/index.js +21 -0
- package/dist/cjs/tooltip/index.d.ts +12 -0
- package/dist/cjs/tooltip/index.d.ts.map +1 -0
- package/dist/cjs/tooltip/index.js +20 -0
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -0
- package/dist/cjs/utils.d.ts +3 -0
- package/dist/cjs/utils.d.ts.map +1 -0
- package/dist/cjs/utils.js +9 -0
- package/dist/cjs/vitest.config.d.ts +3 -0
- package/dist/cjs/vitest.config.d.ts.map +1 -0
- package/dist/cjs/vitest.config.js +21 -0
- package/dist/esm/arrow/index.d.ts +17 -0
- package/dist/esm/arrow/index.d.ts.map +1 -0
- package/dist/esm/arrow/index.js +45 -0
- package/dist/esm/button/index.d.ts +14 -0
- package/dist/esm/button/index.d.ts.map +1 -0
- package/dist/esm/button/index.js +44 -0
- package/dist/esm/calendar/index.d.ts +5 -0
- package/dist/esm/calendar/index.d.ts.map +1 -0
- package/dist/esm/calendar/index.js +34 -0
- package/dist/esm/card/index.d.ts +10 -0
- package/dist/esm/card/index.d.ts.map +1 -0
- package/dist/esm/card/index.js +24 -0
- package/dist/esm/cell-tooltip/index.d.ts +17 -0
- package/dist/esm/cell-tooltip/index.d.ts.map +1 -0
- package/dist/esm/cell-tooltip/index.js +31 -0
- package/dist/esm/circular-loader/index.d.ts +9 -0
- package/dist/esm/circular-loader/index.d.ts.map +1 -0
- package/dist/esm/circular-loader/index.js +7 -0
- package/dist/esm/color-picker/index.d.ts +12 -0
- package/dist/esm/color-picker/index.d.ts.map +1 -0
- package/dist/esm/color-picker/index.js +99 -0
- package/dist/esm/color-picker/style.d.ts +5 -0
- package/dist/esm/color-picker/style.d.ts.map +1 -0
- package/dist/esm/color-picker/style.js +7 -0
- package/dist/esm/command/index.d.ts +74 -0
- package/dist/esm/command/index.d.ts.map +1 -0
- package/dist/esm/command/index.js +18 -0
- package/dist/esm/conditional-wrapper/index.d.ts +9 -0
- package/dist/esm/conditional-wrapper/index.d.ts.map +1 -0
- package/dist/esm/conditional-wrapper/index.js +1 -0
- package/dist/esm/dialog/index.d.ts +17 -0
- package/dist/esm/dialog/index.d.ts.map +1 -0
- package/dist/esm/dialog/index.js +30 -0
- package/dist/esm/dropdown/index.d.ts +34 -0
- package/dist/esm/dropdown/index.d.ts.map +1 -0
- package/dist/esm/dropdown/index.js +42 -0
- package/dist/esm/editor/constants.d.ts +7 -0
- package/dist/esm/editor/constants.d.ts.map +1 -0
- package/dist/esm/editor/constants.js +51 -0
- package/dist/esm/editor/editor-error-boundary.d.ts +3 -0
- package/dist/esm/editor/editor-error-boundary.d.ts.map +1 -0
- package/dist/esm/editor/editor-error-boundary.js +9 -0
- package/dist/esm/editor/style.d.ts +12 -0
- package/dist/esm/editor/style.d.ts.map +1 -0
- package/dist/esm/editor/style.js +17 -0
- package/dist/esm/editor/suggestions-dropdown.d.ts +25 -0
- package/dist/esm/editor/suggestions-dropdown.d.ts.map +1 -0
- package/dist/esm/editor/suggestions-dropdown.js +115 -0
- package/dist/esm/editor-pm/constants.d.ts +2 -0
- package/dist/esm/editor-pm/constants.d.ts.map +1 -0
- package/dist/esm/editor-pm/constants.js +2 -0
- package/dist/esm/editor-pm/decoration-plugin.d.ts +15 -0
- package/dist/esm/editor-pm/decoration-plugin.d.ts.map +1 -0
- package/dist/esm/editor-pm/decoration-plugin.js +38 -0
- package/dist/esm/editor-pm/helpers.d.ts +197 -0
- package/dist/esm/editor-pm/helpers.d.ts.map +1 -0
- package/dist/esm/editor-pm/helpers.js +1113 -0
- package/dist/esm/editor-pm/index.d.ts +10 -0
- package/dist/esm/editor-pm/index.d.ts.map +1 -0
- package/dist/esm/editor-pm/index.js +9 -0
- package/dist/esm/editor-pm/mention-nodeview.d.ts +31 -0
- package/dist/esm/editor-pm/mention-nodeview.d.ts.map +1 -0
- package/dist/esm/editor-pm/mention-nodeview.js +88 -0
- package/dist/esm/editor-pm/mentions-dropdown.d.ts +13 -0
- package/dist/esm/editor-pm/mentions-dropdown.d.ts.map +1 -0
- package/dist/esm/editor-pm/mentions-dropdown.js +17 -0
- package/dist/esm/editor-pm/mentions-plugin.d.ts +18 -0
- package/dist/esm/editor-pm/mentions-plugin.d.ts.map +1 -0
- package/dist/esm/editor-pm/mentions-plugin.js +92 -0
- package/dist/esm/editor-pm/placeholder-plugin.d.ts +4 -0
- package/dist/esm/editor-pm/placeholder-plugin.d.ts.map +1 -0
- package/dist/esm/editor-pm/placeholder-plugin.js +20 -0
- package/dist/esm/editor-pm/prosemirror-editor.d.ts +493 -0
- package/dist/esm/editor-pm/prosemirror-editor.d.ts.map +1 -0
- package/dist/esm/editor-pm/prosemirror-editor.js +1135 -0
- package/dist/esm/editor-pm/schema.d.ts +3 -0
- package/dist/esm/editor-pm/schema.d.ts.map +1 -0
- package/dist/esm/editor-pm/schema.js +179 -0
- package/dist/esm/editor-pm/types.d.ts +8 -0
- package/dist/esm/editor-pm/types.d.ts.map +1 -0
- package/dist/esm/editor-pm/types.js +1 -0
- package/dist/esm/editor-pm/unfocused-selection-plugin.d.ts +25 -0
- package/dist/esm/editor-pm/unfocused-selection-plugin.d.ts.map +1 -0
- package/dist/esm/editor-pm/unfocused-selection-plugin.js +61 -0
- package/dist/esm/editor-pm/use-dropdown-change-pm.d.ts +24 -0
- package/dist/esm/editor-pm/use-dropdown-change-pm.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-dropdown-change-pm.js +137 -0
- package/dist/esm/editor-pm/use-editor-change-pm.d.ts +29 -0
- package/dist/esm/editor-pm/use-editor-change-pm.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-editor-change-pm.js +152 -0
- package/dist/esm/editor-pm/use-editor-decorator-pm.d.ts +17 -0
- package/dist/esm/editor-pm/use-editor-decorator-pm.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-editor-decorator-pm.js +57 -0
- package/dist/esm/editor-pm/use-editor-keydown-pm.d.ts +21 -0
- package/dist/esm/editor-pm/use-editor-keydown-pm.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-editor-keydown-pm.js +79 -0
- package/dist/esm/editor-pm/use-mention-keydown.d.ts +11 -0
- package/dist/esm/editor-pm/use-mention-keydown.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-mention-keydown.js +57 -0
- package/dist/esm/editor-pm/use-parameter-suggestions.d.ts +19 -0
- package/dist/esm/editor-pm/use-parameter-suggestions.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-parameter-suggestions.js +66 -0
- package/dist/esm/editor-pm/use-parameter-suggestions.test.d.ts +2 -0
- package/dist/esm/editor-pm/use-parameter-suggestions.test.d.ts.map +1 -0
- package/dist/esm/editor-pm/use-parameter-suggestions.test.js +66 -0
- package/dist/esm/eye-dropper/index.d.ts +10 -0
- package/dist/esm/eye-dropper/index.d.ts.map +1 -0
- package/dist/esm/eye-dropper/index.js +23 -0
- package/dist/esm/function-info/helpers.d.ts +10 -0
- package/dist/esm/function-info/helpers.d.ts.map +1 -0
- package/dist/esm/function-info/helpers.js +20 -0
- package/dist/esm/function-info/index.d.ts +11 -0
- package/dist/esm/function-info/index.d.ts.map +1 -0
- package/dist/esm/function-info/index.js +68 -0
- package/dist/esm/function-info/style.d.ts +7 -0
- package/dist/esm/function-info/style.d.ts.map +1 -0
- package/dist/esm/function-info/style.js +10 -0
- package/dist/esm/hex-color-picker/index.d.ts +8 -0
- package/dist/esm/hex-color-picker/index.d.ts.map +1 -0
- package/dist/esm/hex-color-picker/index.js +44 -0
- package/dist/esm/hooks/use-cycle-reference.d.ts +16 -0
- package/dist/esm/hooks/use-cycle-reference.d.ts.map +1 -0
- package/dist/esm/hooks/use-cycle-reference.js +70 -0
- package/dist/esm/hooks/use-dropdown-categories.d.ts +9 -0
- package/dist/esm/hooks/use-dropdown-categories.d.ts.map +1 -0
- package/dist/esm/hooks/use-dropdown-categories.js +38 -0
- package/dist/esm/hooks/use-dropdown.d.ts +38 -0
- package/dist/esm/hooks/use-dropdown.d.ts.map +1 -0
- package/dist/esm/hooks/use-dropdown.js +236 -0
- package/dist/esm/hooks/use-isomorphic-layout-effect.ts.d.ts +6 -0
- package/dist/esm/hooks/use-isomorphic-layout-effect.ts.d.ts.map +1 -0
- package/dist/esm/hooks/use-isomorphic-layout-effect.ts.js +8 -0
- package/dist/esm/hooks/use-modal.d.ts +28 -0
- package/dist/esm/hooks/use-modal.d.ts.map +1 -0
- package/dist/esm/hooks/use-modal.js +93 -0
- package/dist/esm/hooks/use-visibility.d.ts +2 -0
- package/dist/esm/hooks/use-visibility.d.ts.map +1 -0
- package/dist/esm/hooks/use-visibility.js +12 -0
- package/dist/esm/icon-button/index.d.ts +15 -0
- package/dist/esm/icon-button/index.d.ts.map +1 -0
- package/dist/esm/icon-button/index.js +32 -0
- package/dist/esm/index.d.ts +34 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +33 -0
- package/dist/esm/input/index.d.ts +9 -0
- package/dist/esm/input/index.d.ts.map +1 -0
- package/dist/esm/input/index.js +7 -0
- package/dist/esm/popover/index.d.ts +13 -0
- package/dist/esm/popover/index.d.ts.map +1 -0
- package/dist/esm/popover/index.js +22 -0
- package/dist/esm/progress/index.d.ts +10 -0
- package/dist/esm/progress/index.d.ts.map +1 -0
- package/dist/esm/progress/index.js +12 -0
- package/dist/esm/select/index.d.ts +14 -0
- package/dist/esm/select/index.d.ts.map +1 -0
- package/dist/esm/select/index.js +30 -0
- package/dist/esm/separator/index.d.ts +5 -0
- package/dist/esm/separator/index.d.ts.map +1 -0
- package/dist/esm/separator/index.js +6 -0
- package/dist/esm/skeleton/index.d.ts +7 -0
- package/dist/esm/skeleton/index.d.ts.map +1 -0
- package/dist/esm/skeleton/index.js +9 -0
- package/dist/esm/stack/index.d.ts +11 -0
- package/dist/esm/stack/index.d.ts.map +1 -0
- package/dist/esm/stack/index.js +20 -0
- package/dist/esm/tabs/index.d.ts +8 -0
- package/dist/esm/tabs/index.d.ts.map +1 -0
- package/dist/esm/tabs/index.js +11 -0
- package/dist/esm/tooltip/index.d.ts +12 -0
- package/dist/esm/tooltip/index.d.ts.map +1 -0
- package/dist/esm/tooltip/index.js +13 -0
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -0
- package/dist/esm/utils.d.ts +3 -0
- package/dist/esm/utils.d.ts.map +1 -0
- package/dist/esm/utils.js +5 -0
- package/dist/esm/vitest.config.d.ts +3 -0
- package/dist/esm/vitest.config.d.ts.map +1 -0
- package/dist/esm/vitest.config.js +21 -0
- package/package.json +78 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAO,MAAM,MAAM,CAAC;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.config.d.ts","sourceRoot":"","sources":["../../vitest.config.ts"],"names":[],"mappings":";AAEA,wBAqBG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineConfig } from "vitest/config";
|
|
2
|
+
export default defineConfig({
|
|
3
|
+
test: {
|
|
4
|
+
globals: true,
|
|
5
|
+
environment: "jsdom",
|
|
6
|
+
// ✅ correct location for deps.inline
|
|
7
|
+
deps: {
|
|
8
|
+
inline: ["konva", "react-konva"],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
// Ensure Vite bundles these for SSR-style test runs
|
|
12
|
+
ssr: {
|
|
13
|
+
noExternal: ["konva", "react-konva"],
|
|
14
|
+
},
|
|
15
|
+
// Prefer the ESM build of react-konva (avoid its CJS wrapper that requires konva)
|
|
16
|
+
resolve: {
|
|
17
|
+
alias: {
|
|
18
|
+
"react-konva": "react-konva/es/ReactKonvaCore.js",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ArrowProps {
|
|
3
|
+
x1: number;
|
|
4
|
+
y1: number;
|
|
5
|
+
x2: number;
|
|
6
|
+
y2: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
strokeWidth?: number;
|
|
9
|
+
circleRadius?: number;
|
|
10
|
+
showCircle?: boolean;
|
|
11
|
+
showTableIcon?: boolean;
|
|
12
|
+
tableIconSize?: number;
|
|
13
|
+
onStartClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const Arrow: ({ x1, y1, x2, y2, color, strokeWidth, circleRadius, showCircle, showTableIcon, tableIconSize, onStartClick, }: ArrowProps) => React.JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../arrow/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,KAAK,GAAI,+GAYnB,UAAU,sBAiIZ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const Arrow = ({ x1, y1, x2, y2, color = "#4169E1", strokeWidth = 1, circleRadius = 4, showCircle = true, showTableIcon = true, tableIconSize = 16, onStartClick, }) => {
|
|
3
|
+
// Calculate the bounding box for the SVG
|
|
4
|
+
const minX = Math.min(x1, x2);
|
|
5
|
+
const minY = Math.min(y1, y2);
|
|
6
|
+
const maxX = Math.max(x1, x2);
|
|
7
|
+
const maxY = Math.max(y1, y2);
|
|
8
|
+
// Add padding for the arrow head, circle, and table icon
|
|
9
|
+
const padding = 30;
|
|
10
|
+
const width = maxX - minX + padding * 2;
|
|
11
|
+
const height = maxY - minY + padding * 2;
|
|
12
|
+
// Adjust coordinates relative to SVG viewBox
|
|
13
|
+
const adjustedX1 = x1 - minX + padding;
|
|
14
|
+
const adjustedY1 = y1 - minY + padding;
|
|
15
|
+
const adjustedX2 = x2 - minX + padding;
|
|
16
|
+
const adjustedY2 = y2 - minY + padding;
|
|
17
|
+
// Generate unique ID for this arrow instance
|
|
18
|
+
const arrowId = `arrow-${Math.random().toString(36).substr(2, 9)}`;
|
|
19
|
+
// Table icon position (to the left of the circle)
|
|
20
|
+
const tableIconX = adjustedX1 - circleRadius - tableIconSize - 4;
|
|
21
|
+
const tableIconY = adjustedY1 - tableIconSize / 2;
|
|
22
|
+
return (React.createElement("svg", { width: width, height: height, style: {
|
|
23
|
+
position: "absolute",
|
|
24
|
+
left: minX - padding,
|
|
25
|
+
top: minY - padding,
|
|
26
|
+
pointerEvents: "none",
|
|
27
|
+
} },
|
|
28
|
+
React.createElement("defs", null,
|
|
29
|
+
React.createElement("marker", { id: arrowId, markerWidth: "10", markerHeight: "10", refX: "9", refY: "3", orient: "auto" },
|
|
30
|
+
React.createElement("polygon", { points: "0 0, 10 3, 0 6", fill: color }))),
|
|
31
|
+
React.createElement("line", { x1: adjustedX1, y1: adjustedY1, x2: adjustedX2, y2: adjustedY2, stroke: color, strokeWidth: strokeWidth, markerEnd: `url(#${arrowId})` }),
|
|
32
|
+
showCircle && (React.createElement("circle", { cx: adjustedX1, cy: adjustedY1, r: circleRadius, fill: color, style: {
|
|
33
|
+
pointerEvents: onStartClick ? "auto" : "none",
|
|
34
|
+
cursor: onStartClick ? "pointer" : "default",
|
|
35
|
+
}, onClick: onStartClick })),
|
|
36
|
+
showTableIcon && (React.createElement("g", { transform: `translate(${tableIconX}, ${tableIconY})`, style: {
|
|
37
|
+
pointerEvents: onStartClick ? "auto" : "none",
|
|
38
|
+
cursor: onStartClick ? "pointer" : "default",
|
|
39
|
+
}, onClick: onStartClick },
|
|
40
|
+
React.createElement("rect", { width: tableIconSize, height: tableIconSize, fill: "none", stroke: "#666", strokeWidth: "1.5", rx: "2" }),
|
|
41
|
+
React.createElement("line", { x1: tableIconSize / 3, y1: "0", x2: tableIconSize / 3, y2: tableIconSize, stroke: "#666", strokeWidth: "1.5" }),
|
|
42
|
+
React.createElement("line", { x1: (tableIconSize / 3) * 2, y1: "0", x2: (tableIconSize / 3) * 2, y2: tableIconSize, stroke: "#666", strokeWidth: "1.5" }),
|
|
43
|
+
React.createElement("line", { x1: "0", y1: tableIconSize / 3, x2: tableIconSize, y2: tableIconSize / 3, stroke: "#666", strokeWidth: "1.5" }),
|
|
44
|
+
React.createElement("line", { x1: "0", y1: (tableIconSize / 3) * 2, x2: tableIconSize, y2: (tableIconSize / 3) * 2, stroke: "#666", strokeWidth: "1.5" })))));
|
|
45
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "ghost" | "unstyled" | "outline" | "link" | "warning" | "success" | null | undefined;
|
|
5
|
+
size?: "default" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
|
+
isFullWidth?: boolean | null | undefined;
|
|
7
|
+
align?: "center" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
10
|
+
asChild?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export { Button, buttonVariants };
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../button/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,cAAc;;;;;mFAyCnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAYX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "./../utils";
|
|
5
|
+
const buttonVariants = cva("inline-flex items-center border-none bg-transparent font-normal rounded-sm text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-0 text-rnc-foreground disabled:text-rnc-foreground/40 disabled:pointer-events-none ring-offset-background py-2 px-3 shrink-0 font-system", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
primary: "bg-rnc-primary text-rnc-primary-foreground disabled:text-rnc-primary-foreground/80 hover:bg-rnc-primary/90",
|
|
9
|
+
secondary: "bg-rnc-secondary text-rnc-secondary-foreground hover:bg-rnc-secondary/80",
|
|
10
|
+
ghost: "hover:bg-rnc-accent hover:text-rnc-accent-foreground",
|
|
11
|
+
unstyled: "",
|
|
12
|
+
outline: "border-solid border border-rnc-border hover:bg-rnc-accent focus:bg-rnc-accent",
|
|
13
|
+
link: "underline underline-offset-2 text-rnc-primary p-0 hover:text-rnc-accent-foreground",
|
|
14
|
+
warning: "bg-rnc-warning text-rnc-warning-foreground hover:bg-rnc-warning/90",
|
|
15
|
+
success: "bg-rnc-success hover:bg-rnc-success/90 text-rnc-warning-foreground",
|
|
16
|
+
},
|
|
17
|
+
size: {
|
|
18
|
+
default: "",
|
|
19
|
+
xs: "text-xs",
|
|
20
|
+
sm: "text-sm",
|
|
21
|
+
md: "text-base",
|
|
22
|
+
lg: "text-lg",
|
|
23
|
+
xl: "text-xl",
|
|
24
|
+
},
|
|
25
|
+
isFullWidth: {
|
|
26
|
+
true: {
|
|
27
|
+
width: "100%",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
align: {
|
|
31
|
+
center: "justify-center",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
variant: "ghost",
|
|
36
|
+
size: "xs",
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
40
|
+
const Comp = asChild ? Slot : "button";
|
|
41
|
+
return (React.createElement(Comp, { className: cn(buttonVariants({ variant, size, className })), ref: ref, type: "button", ...props }));
|
|
42
|
+
});
|
|
43
|
+
Button.displayName = "Button";
|
|
44
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
export declare const Calendar: ({ className, classNames, showOutsideDays, ...props }: CalendarProps) => React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../calendar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,eAAO,MAAM,QAAQ,GAAI,sDAKtB,aAAa,sBA8Cf,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
import { buttonVariants } from "../button";
|
|
4
|
+
import { cn } from "../utils";
|
|
5
|
+
import { TriangleLeftIcon, TriangleRightIcon } from "@rowsncolumns/icons";
|
|
6
|
+
export const Calendar = ({ className, classNames, showOutsideDays = true, ...props }) => {
|
|
7
|
+
return (React.createElement(DayPicker, { showOutsideDays: showOutsideDays, className: className, classNames: {
|
|
8
|
+
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
9
|
+
month: "space-y-4",
|
|
10
|
+
caption: "flex justify-center pt-1 relative items-center font-system",
|
|
11
|
+
caption_label: "text-sm font-medium font-system",
|
|
12
|
+
nav: "space-x-1 flex items-center",
|
|
13
|
+
nav_button: cn(buttonVariants({ variant: "outline", align: "center" }), "h-5 w-5 bg-transparent p-0 opacity-50 hover:opacity-100"),
|
|
14
|
+
nav_button_previous: "absolute left-1",
|
|
15
|
+
nav_button_next: "absolute right-1",
|
|
16
|
+
table: "w-full border-collapse space-y-1",
|
|
17
|
+
head_row: "flex",
|
|
18
|
+
head_cell: "text-muted-foreground rounded-md w-7 font-normal font-system text-[0.8rem] text-center",
|
|
19
|
+
row: "flex w-full mt-2",
|
|
20
|
+
cell: "h-7 w-7 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-rnc-accent/50 [&:has([aria-selected])]:bg-rnc-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
21
|
+
day: cn(buttonVariants({ variant: "ghost", align: "center" }), "h-7 w-7 p-0 font-normal aria-selected:opacity-100"),
|
|
22
|
+
day_range_end: "day-range-end",
|
|
23
|
+
day_selected: "!bg-rnc-primary text-rnc-primary-foreground hover:bg-rnc-primary/90 hover:text-rnc-primary-foreground",
|
|
24
|
+
day_today: "!bg-rnc-accent text-rnc-accent-foreground",
|
|
25
|
+
day_outside: "day-outside text-rnc-muted-foreground opacity-50 aria-selected:bg-rnc-accent/50 aria-selected:text-rnc-muted-foreground aria-selected:opacity-30",
|
|
26
|
+
day_disabled: "text-rnc-muted-foreground opacity-50",
|
|
27
|
+
day_range_middle: "aria-selected:bg-rnc-accent aria-selected:text-rnc-accent-foreground",
|
|
28
|
+
day_hidden: "invisible",
|
|
29
|
+
...classNames,
|
|
30
|
+
}, components: {
|
|
31
|
+
IconLeft: () => React.createElement(TriangleLeftIcon, { className: "h-4 w-4" }),
|
|
32
|
+
IconRight: () => React.createElement(TriangleRightIcon, { className: "h-4 w-4" }),
|
|
33
|
+
}, ...props }));
|
|
34
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { cn } from "../utils";
|
|
3
|
+
function Card({ className, ...props }) {
|
|
4
|
+
return (React.createElement("div", { "data-slot": "card", className: cn("bg-card text-card-foreground flex flex-col gap-3 rounded-xl border border-solid border-rnc-border py-3 shadow-md text-sm", className), ...props }));
|
|
5
|
+
}
|
|
6
|
+
function CardHeader({ className, ...props }) {
|
|
7
|
+
return (React.createElement("div", { "data-slot": "card-header", className: cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className), ...props }));
|
|
8
|
+
}
|
|
9
|
+
function CardTitle({ className, ...props }) {
|
|
10
|
+
return (React.createElement("div", { "data-slot": "card-title", className: cn("leading-none font-semibold", className), ...props }));
|
|
11
|
+
}
|
|
12
|
+
function CardDescription({ className, ...props }) {
|
|
13
|
+
return (React.createElement("div", { "data-slot": "card-description", className: cn("text-muted-foreground text-sm", className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
function CardAction({ className, ...props }) {
|
|
16
|
+
return (React.createElement("div", { "data-slot": "card-action", className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className), ...props }));
|
|
17
|
+
}
|
|
18
|
+
function CardContent({ className, ...props }) {
|
|
19
|
+
return (React.createElement("div", { "data-slot": "card-content", className: cn("px-3", className), ...props }));
|
|
20
|
+
}
|
|
21
|
+
function CardFooter({ className, ...props }) {
|
|
22
|
+
return (React.createElement("div", { "data-slot": "card-footer", className: cn("flex items-center px-3 [.border-t]:pt-6", className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const cellTooltipVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "none" | "note" | "error" | "invalid" | "custom" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare const tooltipTitleVariants: (props?: ({
|
|
7
|
+
variant?: "link" | "none" | "note" | "error" | "invalid" | "custom" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const CellTooltip: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
10
|
+
variant?: "link" | "none" | "note" | "error" | "invalid" | "custom" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const CellTooltipTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
13
|
+
variant?: "link" | "none" | "note" | "error" | "invalid" | "custom" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export type CellTooltipVariants = VariantProps<typeof cellTooltipVariants>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../cell-tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,QAAA,MAAM,mBAAmB;;mFAcxB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;mFAW/B,CAAC;AAEH,eAAO,MAAM,WAAW;;2HAUtB,CAAC;AAIH,eAAO,MAAM,gBAAgB;;2HAU3B,CAAC;AAIH,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { cn } from "../utils";
|
|
4
|
+
const cellTooltipVariants = cva("absolute left-0 top-0 bg-rnc-background text-rnc-foreground p-2 shadow-md rounded-md text-sm break-words min-w-[160px] max-w-[300px] border-t-0 border-r-0 border-b-0 border-l-4 border-solid flex flex-col", {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
error: "border-l-rnc-destructive",
|
|
8
|
+
invalid: "border-l-rnc-warning",
|
|
9
|
+
link: "border-l-blue-700",
|
|
10
|
+
none: "border-l-none",
|
|
11
|
+
note: "p-0 max-w-none border-l-0",
|
|
12
|
+
custom: "p-0 border-l-0 rounded-none bg-transparent shadow-none",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
export const tooltipTitleVariants = cva("font-bold font-system", {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
error: "text-rnc-destructive",
|
|
20
|
+
invalid: "text-rnc-warning",
|
|
21
|
+
link: "text-blue-700",
|
|
22
|
+
none: "text-transparent",
|
|
23
|
+
note: "",
|
|
24
|
+
custom: "",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
export const CellTooltip = React.forwardRef(({ className, variant, ...props }, ref) => (React.createElement("div", { ref: ref, className: cn(cellTooltipVariants({ variant }), className), ...props })));
|
|
29
|
+
CellTooltip.displayName = "CellTooltip";
|
|
30
|
+
export const CellTooltipTitle = React.forwardRef(({ className, variant, ...props }, ref) => (React.createElement("div", { ref: ref, className: cn(tooltipTitleVariants({ variant }), className), ...props })));
|
|
31
|
+
CellTooltipTitle.displayName = "CellTooltipTitle";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoadingIcon } from "@rowsncolumns/icons";
|
|
2
|
+
import React, { ComponentProps } from "react";
|
|
3
|
+
type CircularLoaderProps = ComponentProps<"div"> & {
|
|
4
|
+
label?: React.ReactNode;
|
|
5
|
+
iconProps?: ComponentProps<typeof LoadingIcon>;
|
|
6
|
+
};
|
|
7
|
+
export declare const CircularLoader: React.ForwardRefExoticComponent<Omit<CircularLoaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../circular-loader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI9C,KAAK,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACjD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;CAChD,CAAC;AAEF,eAAO,MAAM,cAAc,yGAmBzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoadingIcon } from "@rowsncolumns/icons";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { cn } from "../utils";
|
|
4
|
+
export const CircularLoader = React.forwardRef(({ className, label, iconProps, ...props }, ref) => (React.createElement("div", { ref: ref, className: cn("flex flex-1 gap-2 text-sm font-system bg-rnc-background text-rnc-foreground items-center justify-center", className), ...props },
|
|
5
|
+
React.createElement(LoadingIcon, { size: 30, className: "h-6 w-6 animate-spin", ...iconProps }),
|
|
6
|
+
typeof label === "string" ? (React.createElement("span", { className: "whitespace-pre-line" }, label)) : (label))));
|
|
7
|
+
CircularLoader.displayName = "CircularLoader";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Stack } from "../stack";
|
|
4
|
+
type ColorPickerProps = {
|
|
5
|
+
colors?: string[];
|
|
6
|
+
value?: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
} & Pick<ComponentProps<typeof Stack>, "className" | "direction">;
|
|
10
|
+
export declare const ColorPicker: ({ colors, value, onChange, size, ...rest }: ColorPickerProps) => React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../color-picker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAsFjC,KAAK,gBAAgB,GAAG;IACtB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC,CAAC;AAElE,eAAO,MAAM,WAAW,GAAI,4CAMzB,gBAAgB,sBA0BlB,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Stack } from "../stack";
|
|
3
|
+
import { StyledColorBox } from "./style";
|
|
4
|
+
const colorSet = [
|
|
5
|
+
"#000000",
|
|
6
|
+
"#434343",
|
|
7
|
+
"#666666",
|
|
8
|
+
"#999999",
|
|
9
|
+
"#b7b7b7",
|
|
10
|
+
"#cccccc",
|
|
11
|
+
"#d9d9d9",
|
|
12
|
+
"#efefef",
|
|
13
|
+
"#f3f3f3",
|
|
14
|
+
"#ffffff",
|
|
15
|
+
"#980000",
|
|
16
|
+
"#ff0000",
|
|
17
|
+
"#ff9900",
|
|
18
|
+
"#ffff00",
|
|
19
|
+
"#00ff00",
|
|
20
|
+
"#00ffff",
|
|
21
|
+
"#4a86e8",
|
|
22
|
+
"#0000ff",
|
|
23
|
+
"#9900ff",
|
|
24
|
+
"#ff00ff",
|
|
25
|
+
"#e6b8af",
|
|
26
|
+
"#f4cccc",
|
|
27
|
+
"#fce5cd",
|
|
28
|
+
"#fff2cc",
|
|
29
|
+
"#d9ead3",
|
|
30
|
+
"#d0e0e3",
|
|
31
|
+
"#c9daf8",
|
|
32
|
+
"#cfe2f3",
|
|
33
|
+
"#d9d2e9",
|
|
34
|
+
"#ead1dc",
|
|
35
|
+
"#dd7e6b",
|
|
36
|
+
"#ea9999",
|
|
37
|
+
"#f9cb9c",
|
|
38
|
+
"#ffe599",
|
|
39
|
+
"#b6d7a8",
|
|
40
|
+
"#a2c4c9",
|
|
41
|
+
"#a4c2f4",
|
|
42
|
+
"#9fc5e8",
|
|
43
|
+
"#b4a7d6",
|
|
44
|
+
"#d5a6bd",
|
|
45
|
+
"#cc4125",
|
|
46
|
+
"#e06666",
|
|
47
|
+
"#f6b26b",
|
|
48
|
+
"#ffd966",
|
|
49
|
+
"#93c47d",
|
|
50
|
+
"#76a5af",
|
|
51
|
+
"#6d9eeb",
|
|
52
|
+
"#6fa8dc",
|
|
53
|
+
"#8e7cc3",
|
|
54
|
+
"#c27ba0",
|
|
55
|
+
"#a61c00",
|
|
56
|
+
"#cc0000",
|
|
57
|
+
"#e69138",
|
|
58
|
+
"#f1c232",
|
|
59
|
+
"#6aa84f",
|
|
60
|
+
"#45818e",
|
|
61
|
+
"#3c78d8",
|
|
62
|
+
"#3d85c6",
|
|
63
|
+
"#674ea7",
|
|
64
|
+
"#a64d79",
|
|
65
|
+
"#85200c",
|
|
66
|
+
"#990000",
|
|
67
|
+
"#b45f06",
|
|
68
|
+
"#bf9000",
|
|
69
|
+
"#38761d",
|
|
70
|
+
"#134f5c",
|
|
71
|
+
"#1155cc",
|
|
72
|
+
"#0b5394",
|
|
73
|
+
"#351c75",
|
|
74
|
+
"#741b47",
|
|
75
|
+
"#5b0f00",
|
|
76
|
+
"#660000",
|
|
77
|
+
"#783f04",
|
|
78
|
+
"#7f6000",
|
|
79
|
+
"#274e13",
|
|
80
|
+
"#0c343d",
|
|
81
|
+
"#1c4587",
|
|
82
|
+
"#073763",
|
|
83
|
+
"#20124d",
|
|
84
|
+
"#4c1130",
|
|
85
|
+
];
|
|
86
|
+
export const ColorPicker = ({ colors = colorSet, value, onChange, size = 16, ...rest }) => {
|
|
87
|
+
return (React.createElement(Stack, { className: "gap-0", ...rest }, colors.map((color, idx) => {
|
|
88
|
+
const canSelect = !!onChange;
|
|
89
|
+
const active = color.toLowerCase() === value?.toLowerCase();
|
|
90
|
+
return (React.createElement(StyledColorBox, { key: idx, style: {
|
|
91
|
+
backgroundColor: color,
|
|
92
|
+
width: size,
|
|
93
|
+
height: size,
|
|
94
|
+
boxShadow: active
|
|
95
|
+
? "rgba(0, 0, 0,0.8) 0px 0px 0px 1px inset"
|
|
96
|
+
: undefined,
|
|
97
|
+
}, canSelect: canSelect, type: "button", disabled: !onChange, onClick: () => onChange?.(color) }));
|
|
98
|
+
})));
|
|
99
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const StyledColorBox: React.ForwardRefExoticComponent<Omit<import("../button").ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
3
|
+
canSelect?: boolean;
|
|
4
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../color-picker/style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,cAAc;gBAGX,OAAO;2CAcrB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button } from "../button";
|
|
3
|
+
import { cn } from "../utils";
|
|
4
|
+
export const StyledColorBox = React.forwardRef(({ className, canSelect, ...props }, ref) => (React.createElement(Button, { ref: ref, className: cn("w-4 h-4 min-w-0 min-h-0 rounded-none p-0", canSelect
|
|
5
|
+
? "hover:shadow-[rgba(0,0,0,0.8)_0px_0px_0px_1px_inset]"
|
|
6
|
+
: undefined, className), ...props })));
|
|
7
|
+
StyledColorBox.displayName = "StyledColorBox";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
5
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
6
|
+
} & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
9
|
+
label?: string;
|
|
10
|
+
shouldFilter?: boolean;
|
|
11
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
value?: string;
|
|
14
|
+
onValueChange?: (value: string) => void;
|
|
15
|
+
loop?: boolean;
|
|
16
|
+
disablePointerSelection?: boolean;
|
|
17
|
+
vimBindings?: boolean;
|
|
18
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
20
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
21
|
+
} & {
|
|
22
|
+
asChild?: boolean;
|
|
23
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
24
|
+
value?: string;
|
|
25
|
+
onValueChange?: (search: string) => void;
|
|
26
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
27
|
+
export declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
30
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
31
|
+
} & {
|
|
32
|
+
asChild?: boolean;
|
|
33
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
34
|
+
label?: string;
|
|
35
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
export declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
37
|
+
children?: React.ReactNode;
|
|
38
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
39
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
40
|
+
} & {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
export declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
50
|
+
heading?: React.ReactNode;
|
|
51
|
+
value?: string;
|
|
52
|
+
forceMount?: boolean;
|
|
53
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
54
|
+
export declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
} & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
59
|
+
alwaysRender?: boolean;
|
|
60
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
export declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
62
|
+
children?: React.ReactNode;
|
|
63
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
64
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
65
|
+
} & {
|
|
66
|
+
asChild?: boolean;
|
|
67
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
onSelect?: (value: string) => void;
|
|
70
|
+
value?: string;
|
|
71
|
+
keywords?: string[];
|
|
72
|
+
forceMount?: boolean;
|
|
73
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../command/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;sFAYlB,CAAC;AAGH,eAAO,MAAM,YAAY;;;;;;;0FAcvB,CAAC;AAGH,eAAO,MAAM,WAAW;;;;;;;;sFAStB,CAAC;AAGH,eAAO,MAAM,YAAY;;;;;;uJASvB,CAAC;AAGH,eAAO,MAAM,YAAY;;;;;;;;;;sFAYvB,CAAC;AAGH,eAAO,MAAM,gBAAgB;;;;;;sFAS3B,CAAC;AAGH,eAAO,MAAM,WAAW;;;;;;;;;;;;sFAYtB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
+
import { cn } from "../utils";
|
|
4
|
+
export const Command = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CommandPrimitive, { ref: ref, className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-rnc-popover text-rnc-popover-foreground", className), ...props })));
|
|
5
|
+
Command.displayName = CommandPrimitive.displayName;
|
|
6
|
+
export const CommandInput = React.forwardRef(({ className, ...props }, ref) => (React.createElement("div", { className: "flex items-center border-b border-rnc-border p-3" },
|
|
7
|
+
React.createElement(CommandPrimitive.Input, { ref: ref, className: cn("flex w-full border-solid rounded-sm border border-rnc-input text-rnc-foreground bg-transparent px-1 py-0.5 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-rnc-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-50", className), ...props }))));
|
|
8
|
+
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
9
|
+
export const CommandList = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CommandPrimitive.List, { ref: ref, className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className), ...props })));
|
|
10
|
+
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
11
|
+
export const CommandEmpty = React.forwardRef((props, ref) => (React.createElement(CommandPrimitive.Empty, { ref: ref, className: "py-6 text-center text-sm text-rnc-muted-foreground", ...props })));
|
|
12
|
+
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
13
|
+
export const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CommandPrimitive.Group, { ref: ref, className: cn("overflow-hidden p-1 text-rnc-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-rnc-muted-foreground", className), ...props })));
|
|
14
|
+
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
15
|
+
export const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CommandPrimitive.Separator, { ref: ref, className: cn("-mx-1 h-px bg-rnc-border", className), ...props })));
|
|
16
|
+
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
17
|
+
export const CommandItem = React.forwardRef(({ className, ...props }, ref) => (React.createElement(CommandPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-rnc-accent data-[selected=true]:text-rnc-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className), ...props })));
|
|
18
|
+
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
type ConditionalWrapperProps = {
|
|
3
|
+
children: React.ReactElement | null;
|
|
4
|
+
condition: boolean;
|
|
5
|
+
wrapper: (children: React.ReactElement | null) => React.JSX.Element | null;
|
|
6
|
+
};
|
|
7
|
+
export declare const ConditionalWrapper: ({ condition, wrapper, children, }: ConditionalWrapperProps) => React.JSX.Element | null;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../conditional-wrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC;IACpC,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;CAC5E,CAAC;AACF,eAAO,MAAM,kBAAkB,GAAI,mCAIhC,uBAAuB,6BAA+C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ConditionalWrapper = ({ condition, wrapper, children, }) => (condition ? wrapper(children) : children);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
4
|
+
export declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
+
portalClassName?: string;
|
|
7
|
+
container?: HTMLElement | null;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
10
|
+
export declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
export declare const DialogCloseButton: React.ForwardRefExoticComponent<Omit<import("./../icon-button").IconButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export declare const DialogBody: ({ className, children, }: {
|
|
14
|
+
className?: string;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|