From b11d47b14ead64e951b5f04f07edc8d76e8f585e Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Fri, 3 Jul 2026 10:40:45 +0900 Subject: [PATCH] 260703_01_FST: First Commit --- .gitignore | 5 + .tooling/components/ui/badge.tsx | 12 + .tooling/components/ui/button.tsx | 17 + .tooling/components/ui/checkbox.tsx | 25 + .tooling/components/ui/command.tsx | 66 + .tooling/components/ui/dialog.tsx | 45 + .tooling/components/ui/dropdown-menu.tsx | 42 + .tooling/components/ui/input.tsx | 9 + .tooling/components/ui/label.tsx | 7 + .tooling/components/ui/pagination.tsx | 23 + .tooling/components/ui/popover.tsx | 32 + .tooling/components/ui/select.tsx | 34 + .tooling/components/ui/separator.tsx | 10 + .tooling/components/ui/table.tsx | 26 + .tooling/lib/as-child.tsx | 12 + .tooling/lib/utils.ts | 6 + README.md | 106 + package-lock.json | 6273 +++++++++++++++++ package.json | 40 + registry.json | 8 + registry/components/KriAutoComplete.tsx | 207 + registry/components/KriDateRangePicker.tsx | 120 + registry/components/KriDialog.tsx | 76 + registry/components/KriLoadingOverlay.tsx | 26 + registry/components/KriPassword.tsx | 118 + registry/components/KriSelect.tsx | 95 + registry/components/data-table/DataTable.tsx | 182 + .../components/data-table/DataTable.type.ts | 36 + .../data-table/DataTablePagination.tsx | 96 + .../data-table/hooks-usePagination.ts | 30 + .../data-table/hooks-usePreventClickOnDrag.ts | 37 + .../data-table/hooks/usePagination.ts | 30 + .../data-table/hooks/usePreventClickOnDrag.ts | 37 + registry/components/data-table/index.ts | 8 + registry/components/kri-editor/KriEditor.tsx | 24 + .../kri-editor/KriEditorHtmlOnly.tsx | 158 + .../components/kri-editor/KriEditorSms.tsx | 117 + .../kri-editor/KriEditorWysiwyg.tsx | 642 ++ .../components/kri-editor/extensions/div.ts | 31 + .../kri-editor/extensions/font-size.ts | 46 + .../kri-editor/hooks/useDebouncedChange.ts | 42 + .../kri-editor/hooks/useTextareaInsert.ts | 61 + registry/components/kri-editor/index.ts | 13 + .../components/kri-editor/toolbar/Toolbar.tsx | 283 + .../kri-editor/toolbar/ToolbarButton.tsx | 35 + registry/components/kri-editor/types.ts | 77 + .../kri-editor/utils/editorTypeGuards.ts | 9 + .../kri-editor/utils/imageCompression.ts | 85 + .../kri-editor/utils/sanitizeHtml.ts | 28 + registry/components/layout/KriHeader.tsx | 78 + registry/components/layout/KriMainLayout.tsx | 50 + registry/components/layout/KriPageTitle.tsx | 22 + registry/components/layout/KriSidebar.tsx | 129 + registry/components/layout/index.ts | 9 + registry/components/layout/types.ts | 11 + .../components/multi-select/MultiSelect.tsx | 220 + .../multi-select/MultiSelectContent.tsx | 169 + .../multi-select/MultiSelectTrigger.tsx | 143 + registry/components/multi-select/index.ts | 13 + registry/components/multi-select/types.ts | 89 + .../multi-select/use-responsive-settings.ts | 43 + registry/components/multi-select/utils.ts | 48 + registry/components/registry.json | 353 + scripts/verify-registry.mjs | 56 + tsconfig.json | 22 + 65 files changed, 11002 insertions(+) create mode 100644 .gitignore create mode 100644 .tooling/components/ui/badge.tsx create mode 100644 .tooling/components/ui/button.tsx create mode 100644 .tooling/components/ui/checkbox.tsx create mode 100644 .tooling/components/ui/command.tsx create mode 100644 .tooling/components/ui/dialog.tsx create mode 100644 .tooling/components/ui/dropdown-menu.tsx create mode 100644 .tooling/components/ui/input.tsx create mode 100644 .tooling/components/ui/label.tsx create mode 100644 .tooling/components/ui/pagination.tsx create mode 100644 .tooling/components/ui/popover.tsx create mode 100644 .tooling/components/ui/select.tsx create mode 100644 .tooling/components/ui/separator.tsx create mode 100644 .tooling/components/ui/table.tsx create mode 100644 .tooling/lib/as-child.tsx create mode 100644 .tooling/lib/utils.ts create mode 100644 README.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 registry.json create mode 100644 registry/components/KriAutoComplete.tsx create mode 100644 registry/components/KriDateRangePicker.tsx create mode 100644 registry/components/KriDialog.tsx create mode 100644 registry/components/KriLoadingOverlay.tsx create mode 100644 registry/components/KriPassword.tsx create mode 100644 registry/components/KriSelect.tsx create mode 100644 registry/components/data-table/DataTable.tsx create mode 100644 registry/components/data-table/DataTable.type.ts create mode 100644 registry/components/data-table/DataTablePagination.tsx create mode 100644 registry/components/data-table/hooks-usePagination.ts create mode 100644 registry/components/data-table/hooks-usePreventClickOnDrag.ts create mode 100644 registry/components/data-table/hooks/usePagination.ts create mode 100644 registry/components/data-table/hooks/usePreventClickOnDrag.ts create mode 100644 registry/components/data-table/index.ts create mode 100644 registry/components/kri-editor/KriEditor.tsx create mode 100644 registry/components/kri-editor/KriEditorHtmlOnly.tsx create mode 100644 registry/components/kri-editor/KriEditorSms.tsx create mode 100644 registry/components/kri-editor/KriEditorWysiwyg.tsx create mode 100644 registry/components/kri-editor/extensions/div.ts create mode 100644 registry/components/kri-editor/extensions/font-size.ts create mode 100644 registry/components/kri-editor/hooks/useDebouncedChange.ts create mode 100644 registry/components/kri-editor/hooks/useTextareaInsert.ts create mode 100644 registry/components/kri-editor/index.ts create mode 100644 registry/components/kri-editor/toolbar/Toolbar.tsx create mode 100644 registry/components/kri-editor/toolbar/ToolbarButton.tsx create mode 100644 registry/components/kri-editor/types.ts create mode 100644 registry/components/kri-editor/utils/editorTypeGuards.ts create mode 100644 registry/components/kri-editor/utils/imageCompression.ts create mode 100644 registry/components/kri-editor/utils/sanitizeHtml.ts create mode 100644 registry/components/layout/KriHeader.tsx create mode 100644 registry/components/layout/KriMainLayout.tsx create mode 100644 registry/components/layout/KriPageTitle.tsx create mode 100644 registry/components/layout/KriSidebar.tsx create mode 100644 registry/components/layout/index.ts create mode 100644 registry/components/layout/types.ts create mode 100644 registry/components/multi-select/MultiSelect.tsx create mode 100644 registry/components/multi-select/MultiSelectContent.tsx create mode 100644 registry/components/multi-select/MultiSelectTrigger.tsx create mode 100644 registry/components/multi-select/index.ts create mode 100644 registry/components/multi-select/types.ts create mode 100644 registry/components/multi-select/use-responsive-settings.ts create mode 100644 registry/components/multi-select/utils.ts create mode 100644 registry/components/registry.json create mode 100644 scripts/verify-registry.mjs create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da8a47d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules/ +dist/ +.idea/ +*.iml +.DS_Store diff --git a/.tooling/components/ui/badge.tsx b/.tooling/components/ui/badge.tsx new file mode 100644 index 0000000..ee62e3a --- /dev/null +++ b/.tooling/components/ui/badge.tsx @@ -0,0 +1,12 @@ +import type { HTMLAttributes } from "react"; +import { cn } from "@/lib/utils"; + +export type BadgeVariant = "default" | "secondary" | "outline" | "destructive"; + +export interface BadgeProps extends HTMLAttributes { + variant?: BadgeVariant; +} + +export function Badge({ className, variant = "default", ...props }: BadgeProps) { + return ; +} diff --git a/.tooling/components/ui/button.tsx b/.tooling/components/ui/button.tsx new file mode 100644 index 0000000..71443ac --- /dev/null +++ b/.tooling/components/ui/button.tsx @@ -0,0 +1,17 @@ +import { forwardRef, type ButtonHTMLAttributes } from "react"; +import { cn } from "@/lib/utils"; + +export type ButtonVariant = "default" | "outline" | "ghost" | "secondary" | "destructive" | "link"; +export type ButtonSize = "default" | "sm" | "lg" | "icon" | "icon-sm"; + +export interface ButtonProps extends ButtonHTMLAttributes { + variant?: ButtonVariant; + size?: ButtonSize; +} + +export const Button = forwardRef( + ({ className, variant = "default", size = "default", ...props }, ref) => ( +