перенос ui

This commit is contained in:
2025-07-28 17:22:16 +03:00
parent 088ecc7e70
commit 27b9b79c60
46 changed files with 153 additions and 156 deletions

View File

@@ -1,9 +1,9 @@
import { Button } from '@/component/ui/button'
import { Input } from '@/component/ui/input'
import { ElementDefinition } from '@/entity/element/model/interface'
import { CellsBadge } from '@/entity/element/ui/cellsBadge'
import { ElementOption } from '@/type/template'
import { Plus, Square, Trash2 } from 'lucide-react'
import { Button } from 'shared/ui/button'
import { Input } from 'shared/ui/input'
interface ButtonGroupConfig {
placeholder?: string

View File

@@ -1,5 +1,10 @@
import { Button } from '@/component/ui/button'
import { Input } from '@/component/ui/input'
import { ElementDefinition } from '@/entity/element/model/interface'
import { CellsBadge } from '@/entity/element/ui/cellsBadge'
import { useToast } from '@/lib/hooks/useToast'
import { ElementOption } from '@/type/template'
import { ChevronDown, Plus, Trash2 } from 'lucide-react'
import { Button } from 'shared/ui/button'
import { Input } from 'shared/ui/input'
import {
Select,
SelectContent,
@@ -7,12 +12,7 @@ import {
SelectItem,
SelectTrigger,
SelectValue,
} from '@/component/ui/select'
import { ElementDefinition } from '@/entity/element/model/interface'
import { CellsBadge } from '@/entity/element/ui/cellsBadge'
import { useToast } from '@/lib/hooks/useToast'
import { ElementOption } from '@/type/template'
import { ChevronDown, Plus, Trash2 } from 'lucide-react'
} from 'shared/ui/select'
interface SelectConfig {
placeholder?: string

View File

@@ -1,13 +1,13 @@
import { Button } from '@/component/ui/button'
import { Info, Settings } from 'lucide-react'
import { useState } from 'react'
import { Button } from 'shared/ui/button'
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/component/ui/select'
import { Info, Settings } from 'lucide-react'
import { useState } from 'react'
} from 'shared/ui/select'
import { StandardsSelector } from './StandardsSelector'
import { StandardsConfig } from './definition'

View File

@@ -1,6 +1,6 @@
import { Button } from '@/component/ui/button'
import { Label } from '@/component/ui/label'
import { FileText, Settings } from 'lucide-react'
import { Button } from 'shared/ui/button'
import { Label } from 'shared/ui/label'
import { StandardsConfig } from './definition'
interface StandardsPreviewProps {

View File

@@ -1,13 +1,3 @@
import { Badge } from '@/component/ui/badge'
import { Button } from '@/component/ui/button'
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
} from '@/component/ui/dialog'
import { Input } from '@/component/ui/input'
import { Separator } from '@/component/ui/separator'
import { useToast } from '@/lib/hooks/useToast'
import {
DndContext,
@@ -36,6 +26,16 @@ import {
X,
} from 'lucide-react'
import { useEffect, useMemo, useRef, useState } from 'react'
import { Badge } from 'shared/ui/badge'
import { Button } from 'shared/ui/button'
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
} from 'shared/ui/dialog'
import { Input } from 'shared/ui/input'
import { Separator } from 'shared/ui/separator'
import { useStandards } from './hooks'
import { Standard } from './types'

View File

@@ -1,11 +1,11 @@
import { Badge } from '@/component/ui/badge'
import { Button } from '@/component/ui/button'
import { Label } from '@/component/ui/label'
import { ElementDefinition } from '@/entity/element/model/interface'
import { CellsBadge } from '@/entity/element/ui/cellsBadge'
import { CellTarget } from '@/type/template'
import { FileText, Settings, Weight } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Badge } from 'shared/ui/badge'
import { Button } from 'shared/ui/button'
import { Label } from 'shared/ui/label'
import { useStandards } from './hooks'
import { StandardsEditor } from './StandardsEditor'
import { StandardsPreview } from './StandardsPreview'

View File

@@ -1,9 +1,9 @@
import { Checkbox } from '@/component/ui/checkbox'
import { Input } from '@/component/ui/input'
import { ElementDefinition } from '@/entity/element/model/interface'
import { CellsBadge } from '@/entity/element/ui/cellsBadge'
import { Plus, Save, SaveOff, Type } from 'lucide-react'
import { useEffect, useState } from 'react'
import { Checkbox } from 'shared/ui/checkbox'
import { Input } from 'shared/ui/input'
interface TextConfig {
placeholder?: string

View File

@@ -1,14 +1,14 @@
import { Badge } from '@/component/ui/badge'
import { Label } from '@/component/ui/label'
import { CellTarget } from '@/type/template'
import { Building2, Calendar } from 'lucide-react'
import { Badge } from 'shared/ui/badge'
import { Label } from 'shared/ui/label'
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from '@/component/ui/select'
import { CellTarget } from '@/type/template'
import { Building2, Calendar } from 'lucide-react'
} from 'shared/ui/select'
import { useLaboratories, useLaboratoryConditions } from './hooks'
import { ConditionMapping, VerificationConditionsConfig } from './types'

View File

@@ -1,5 +1,3 @@
import { Button } from '@/component/ui/button'
import { Card, CardContent } from '@/component/ui/card'
import {
AlertCircle,
Building2,
@@ -9,6 +7,8 @@ import {
Settings,
Thermometer,
} from 'lucide-react'
import { Button } from 'shared/ui/button'
import { Card, CardContent } from 'shared/ui/card'
import { VerificationConditionsConfig } from './types'
interface VerificationConditionsPreviewProps {

View File

@@ -1,14 +1,3 @@
import { Button } from '@/component/ui/button'
import { Card, CardContent } from '@/component/ui/card'
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogTrigger,
} from '@/component/ui/dialog'
import { Input } from '@/component/ui/input'
import { Label } from '@/component/ui/label'
import { CellsBadge } from '@/entity/element/ui/cellsBadge'
import {
AlertCircle,
@@ -21,6 +10,17 @@ import {
Thermometer,
} from 'lucide-react'
import { useEffect, useState } from 'react'
import { Button } from 'shared/ui/button'
import { Card, CardContent } from 'shared/ui/card'
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogTrigger,
} from 'shared/ui/dialog'
import { Input } from 'shared/ui/input'
import { Label } from 'shared/ui/label'
import {
useDailyConditions,
useLaboratories,