Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 94 additions & 3 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
},
"dependencies": {
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-collapsible": "^1.1.12",
"@radix-ui/react-scroll-area": "^1.2.10",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-popover": "^1.1.15",
"@radix-ui/react-radio-group": "^1.3.8",
Expand Down
14 changes: 6 additions & 8 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ import {
CardDescription,
CardHeader,
CardTitle,
Tabs,
TabsContent,
TabsList,
TabsTrigger,
cn,
} from '@remoteoss/remote-flows/internals';
import { Tabs, TabsContent, TabsList, TabsTrigger } from './components/ui/tabs';
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
Button,
cn,
} from '@remoteoss/remote-flows/internals';

} from './components/ui/collapsible';
import { Button } from './components/ui/button';
import { Check, Copy, ChevronRight, ChevronDown } from 'lucide-react';

import { useState } from 'react';
Expand Down
8 changes: 2 additions & 6 deletions example/src/ContractorOnboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@
eorProductIdentifier,
$TSFixMe,
} from '@remoteoss/remote-flows';
import {
Card,
Tabs,
TabsTrigger,
TabsList,
} from '@remoteoss/remote-flows/internals';
import { Card } from '@remoteoss/remote-flows/internals';
import { Tabs, TabsTrigger, TabsList } from './components/ui/tabs';
import Flag from 'react-flagpack';
import React, { useState } from 'react';
import { RemoteFlows } from './RemoteFlows';
Expand Down Expand Up @@ -163,10 +159,10 @@
<div className='contractor-onboarding-form-layout'>
<SelectCountryStep
onSubmit={(payload: SelectCountryFormPayload) =>
console.log('payload', payload)

Check warning on line 162 in example/src/ContractorOnboarding.tsx

View workflow job for this annotation

GitHub Actions / Checks and Tests

Unexpected console statement. Only these console methods are allowed: warn, error
}
onSuccess={(response: SelectCountrySuccess) =>
console.log('response', response)

Check warning on line 165 in example/src/ContractorOnboarding.tsx

View workflow job for this annotation

GitHub Actions / Checks and Tests

Unexpected console statement. Only these console methods are allowed: warn, error
}
onError={({
error,
Expand All @@ -188,7 +184,7 @@
<div className='contractor-onboarding-form-layout'>
<BasicInformationStep
onSubmit={(payload: BasicInformationFormPayload) =>
console.log('payload', payload)

Check warning on line 187 in example/src/ContractorOnboarding.tsx

View workflow job for this annotation

GitHub Actions / Checks and Tests

Unexpected console statement. Only these console methods are allowed: warn, error
}
onSuccess={(data: EmploymentCreationResponse) =>
console.log('data', data)
Expand Down
5 changes: 2 additions & 3 deletions example/src/CostCalculatorWithPremiumBenefits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ import {
convertFromCents,
ZendeskTriggerButton,
} from '@remoteoss/remote-flows';
import { Card, cn } from '@remoteoss/remote-flows/internals';
import {
Drawer,
DrawerContent,
DrawerHeader,
DrawerTitle,
DrawerTrigger,
Card,
cn,
} from '@remoteoss/remote-flows/internals';
} from './components/ui/drawer';
import { ButtonHTMLAttributes, useState, isValidElement } from 'react';
import { RemoteFlows } from './RemoteFlows';
import { components } from './CostCalculatorComponents';
Expand Down
6 changes: 3 additions & 3 deletions example/src/OffboardingRequestModal.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { TerminationDialogInfoContent } from '@remoteoss/remote-flows';
import { Button } from './components/ui/button';
import {
Dialog,
DialogTrigger,
DialogContent,
DialogHeader,
DialogTitle,
Button,
ScrollArea,
} from '@remoteoss/remote-flows/internals';
} from './components/ui/dialog';
import { ScrollArea } from './components/ui/scroll-area';

export function OffboardingRequestModal({
employee,
Expand Down
2 changes: 1 addition & 1 deletion example/src/ReviewContractorOnboardingStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
NormalizedFieldError,
useMagicLink,
} from '@remoteoss/remote-flows';
import { Button } from '@remoteoss/remote-flows/internals';
import { Button } from './components/ui/button';
import { InfoIcon } from 'lucide-react';
import { InviteSection, ReviewMeta } from './ReviewOnboardingStep';
import { AlertError } from './AlertError';
Expand Down
4 changes: 2 additions & 2 deletions example/src/TerminationReasonsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
DialogContent,
DialogHeader,
DialogTrigger,
ScrollArea,
DialogTitle,
} from '@remoteoss/remote-flows/internals';
} from './components/ui/dialog';
import { ScrollArea } from './components/ui/scroll-area';
import { TerminationReasonsDetailContent } from '@remoteoss/remote-flows';

export function TerminationReasonsDialog() {
Expand Down
4 changes: 2 additions & 2 deletions example/src/ZendeskDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
DialogDescription,
DialogHeader,
DialogTitle,
ScrollArea,
DialogTrigger,
} from '@remoteoss/remote-flows/internals';
} from './components/ui/dialog';
import { ScrollArea } from './components/ui/scroll-area';
import type { ZendeskDrawerComponentProps } from '@remoteoss/remote-flows';

export function ZendeskDialog({
Expand Down
4 changes: 2 additions & 2 deletions example/src/components/PricingPlanModals.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Button } from './ui/button';
import {
Dialog,
DialogTrigger,
Expand All @@ -6,8 +7,7 @@ import {
DialogTitle,
DialogDescription,
DialogFooter,
Button,
} from '@remoteoss/remote-flows/internals';
} from './ui/dialog';
import {
onboardingWorkflows,
corProductIdentifier,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';

import { cn } from '@/src/lib/utils';
import { cn } from '@remoteoss/remote-flows/internals';

const ScrollArea = React.forwardRef<
HTMLDivElement,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import * as TabsPrimitive from '@radix-ui/react-tabs';

import { cn } from '@/src/lib/utils';
import { cn } from '@remoteoss/remote-flows/internals';

function Tabs({
className,
Expand Down
Loading
Loading