@orsetra/shared-ui 1.1.10 → 1.1.12

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.
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import React, { useState } from 'react';
2
4
  import { ChevronDown, ChevronUp, Trash2 } from 'lucide-react';
3
5
  import { Card, CardContent, CardHeader } from '../../ui/card';
@@ -1,10 +1,12 @@
1
+ "use client";
2
+
1
3
  import React, { useState } from 'react';
2
4
  import { Check, ChevronsUpDown, X } from 'lucide-react';
3
- import { Button } from '@/components/ui/button';
4
- import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
5
- import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '@/components/ui/command';
6
- import { Badge } from '@/components/ui/badge';
7
- import { cn } from '@/lib/utils';
5
+ import { Button } from '../../ui/button';
6
+ import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';
7
+ import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '../../ui/command';
8
+ import { Badge } from '../../ui/badge';
9
+ import { cn } from '../../../lib/utils';
8
10
 
9
11
  type Props = {
10
12
  value?: string[];
@@ -1,10 +1,12 @@
1
+ "use client";
2
+
1
3
  import React, { useState, useEffect } from 'react';
2
4
  import { ChevronDown, ChevronUp } from 'lucide-react';
3
- import { Card, CardContent, CardHeader } from '@/components/ui/card';
4
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible';
5
- import { Switch } from '@/components/ui/switch';
6
- import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '@/components/ui/alert-dialog';
7
- import { cn } from '@/lib/utils';
5
+ import { Card, CardContent, CardHeader } from '../../ui/card';
6
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../ui/collapsible';
7
+ import { Switch } from '../../ui/switch';
8
+ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from '../../ui/alert-dialog';
9
+ import { cn } from '../../../lib/utils';
8
10
 
9
11
  type Props = {
10
12
  title?: string | React.ReactNode;
@@ -1,13 +1,15 @@
1
+ "use client";
2
+
1
3
  import React, { useState, useEffect } from 'react';
2
4
  import { HardDrive, Upload, Container, Loader2 } from 'lucide-react';
3
- import { getImageInfo, getImageRepos, type ImageInfo } from '@/api/repository';
4
- import { Input } from '@/components/ui/input';
5
- import { Badge } from '@/components/ui/badge';
6
- import { Label } from '@/components/ui/label';
7
- import { Card, CardContent } from '@/components/ui/card';
8
- import { beautifyTime, beautifyBinarySize } from '@/utils/common';
5
+ import { getImageInfo, type ImageInfo } from '../../../api/repository';
6
+ import { Input } from '../../ui/input';
7
+ import { Badge } from '../../ui/badge';
8
+ import { Label } from '../../ui/label';
9
+ import { Card, CardContent } from '../../ui/card';
10
+ import { beautifyTime, beautifyBinarySize } from '../../../utils/common';
9
11
  import ImageSecretSelect from '../ImageSecretSelect';
10
- import { cn } from '@/lib/utils';
12
+ import { cn } from '../../../lib/utils';
11
13
 
12
14
  type Props = {
13
15
  value?: string;
@@ -1,12 +1,14 @@
1
+ "use client";
2
+
1
3
  import React, { useState, useEffect } from 'react';
2
4
  import { Check, ChevronsUpDown, X, Loader2 } from 'lucide-react';
3
- import { Button } from '@/components/ui/button';
4
- import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
5
- import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '@/components/ui/command';
6
- import { Badge } from '@/components/ui/badge';
7
- import { cn } from '@/lib/utils';
8
- import i18n from '@/i18n';
9
- import type { GetImageReposResponse, ImageRegistry } from '@/api/repository';
5
+ import { Button } from '../../ui/button';
6
+ import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';
7
+ import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '../../ui/command';
8
+ import { Badge } from '../../ui/badge';
9
+ import { cn } from '../../../lib/utils';
10
+ import i18n from '../../../i18n';
11
+ import type { GetImageReposResponse, ImageRegistry } from '../../../api/repository';
10
12
 
11
13
 
12
14
  type Props = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { NumbersInput } from '@/components/ui/numbers-input';
2
+ import { NumbersInput } from '../../ui/numbers-input';
3
3
 
4
4
  type Props = {
5
5
  label?: string;
@@ -1,6 +1,8 @@
1
+ "use client";
2
+
1
3
  import React, { useState, useEffect } from 'react';
2
4
  import { MultiSelect } from '../../ui/multi-select';
3
- import type { ApplicationPolicyBase } from '@/api';
5
+ import type { ApplicationPolicyBase } from '../../../api';
4
6
 
5
7
  type Props = {
6
8
  onChange: (value: any) => void;
@@ -1,10 +1,12 @@
1
+ "use client";
2
+
1
3
  import React, { useState } from 'react';
2
4
  import { Check, ChevronsUpDown } from 'lucide-react';
3
5
  import { Button } from '../../ui/button';
4
6
  import { Popover, PopoverContent, PopoverTrigger } from '../../ui/popover';
5
7
  import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem } from '../../ui/command';
6
8
  import { cn } from '../../../lib/utils';
7
- import i18n from '@/i18n';
9
+ import i18n from '../../../i18n';
8
10
 
9
11
  type Props = {
10
12
  onChange: (value: any) => void;
@@ -1,8 +1,10 @@
1
+ "use client";
2
+
1
3
  import React, { useState, useEffect, useCallback } from 'react';
2
4
  import { Combobox } from '../../ui/combobox';
3
5
 
4
- import { locale } from '@/utils/locale';
5
- import type { Secret } from '@/api';
6
+ import { locale } from '../../../utils/locale';
7
+ import type { Secret } from '../../../api';
6
8
 
7
9
  type Props = {
8
10
  onChange: (value: any) => void;
@@ -1,11 +1,13 @@
1
+ "use client";
2
+
1
3
  import React, { useContext } from 'react';
2
4
 
3
- import { MultiSelect } from '@/components/ui/multi-select';
4
- import { WorkflowContext, WorkflowEditContext } from '@/context';
5
- import i18n from '@/i18n';
6
- import type { WorkflowStep, WorkflowStepBase } from '@/api';
7
- import { showAlias } from '@/utils/common';
8
- import { locale } from '@/utils/locale';
5
+ import { MultiSelect } from '../../ui/multi-select';
6
+ import { WorkflowContext, WorkflowEditContext } from '../../../context';
7
+ import i18n from '../../../i18n';
8
+ import type { WorkflowStep, WorkflowStepBase } from '../../../api';
9
+ import { showAlias } from '../../../utils/common';
10
+ import { locale } from '../../../utils/locale';
9
11
 
10
12
  type Props = {
11
13
  value?: string[];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { StringsInput } from '@/components/ui/strings-input';
2
+ import { StringsInput } from '../../ui/strings-input';
3
3
 
4
4
  type Props = {
5
5
  label?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Switch } from '@/components/ui/switch';
2
+ import { Switch } from '../../ui/switch';
3
3
 
4
4
  type Props = {
5
5
  value: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.1.10",
3
+ "version": "1.1.12",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",