Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add: snapshot tests and progress test

kruzhambus25645479a5ad
diff --git a/src/ui/test/Alert.test.tsx b/src/ui/__test__/Alert.test.tsx
similarity index 88%
rename from src/ui/test/Alert.test.tsx
rename to src/ui/__test__/Alert.test.tsx
index 8c742f908..9c2f91fca 100644
--- a/src/ui/test/Alert.test.tsx
+++ b/src/ui/__test__/Alert.test.tsx
@@ -47,4 +47,11 @@ describe('AlertTemplate', () => {
fireEvent.click(getByRole('button'))
expect(closeMock).toHaveBeenCalled()
})
+
+ it('snapshot', () => {
+ const { container } = render(
+ <AlertTemplate message='This is an error alert' options={{ type: 'error' }} close={closeMock} />,
+ )
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Beta.test.tsx b/src/ui/__test__/Beta.test.tsx
similarity index 80%
rename from src/ui/test/Beta.test.tsx
rename to src/ui/__test__/Beta.test.tsx
index b9f6b030f..5abe93236 100644
--- a/src/ui/test/Beta.test.tsx
+++ b/src/ui/__test__/Beta.test.tsx
@@ -28,4 +28,13 @@ describe('Beta component', () => {
)
expect(getByText('beta.title')).toHaveClass('custom-class-name')
})
+
+ it('snapshot', () => {
+ const { container } = render(
+ <I18nextProvider i18n={i18n}>
+ <Beta />
+ </I18nextProvider>,
+ )
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Button.test.tsx b/src/ui/__test__/Button.test.tsx
similarity index 95%
rename from src/ui/test/Button.test.tsx
rename to src/ui/__test__/Button.test.tsx
index d42343a72..abb4fe337 100644
--- a/src/ui/test/Button.test.tsx
+++ b/src/ui/__test__/Button.test.tsx
@@ -87,4 +87,9 @@ describe('Button component', () => {
const button = getByText('Click me')
expect(button).toHaveClass('border-none')
})
+
+ it('snapshot', () => {
+ const { container } = render(<Button text='Click me' />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Chart.test.tsx b/src/ui/__test__/Chart.test.tsx
similarity index 80%
rename from src/ui/test/Chart.test.tsx
rename to src/ui/__test__/Chart.test.tsx
index e821ae3a2..8a74ad31a 100644
--- a/src/ui/test/Chart.test.tsx
+++ b/src/ui/__test__/Chart.test.tsx
@@ -20,4 +20,9 @@ describe('Chart component', () => {
const { getByTestId } = render(<Chart current='chart' options={options} />)
expect(getByTestId('chart')).toBeInTheDocument()
})
+
+ it('snapshot', () => {
+ const { container } = render(<Chart current='chart' options={options} />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Checkbox.test.tsx b/src/ui/__test__/Checkbox.test.tsx
similarity index 86%
rename from src/ui/test/Checkbox.test.tsx
rename to src/ui/__test__/Checkbox.test.tsx
index 4297e61db..289b40ebb 100644
--- a/src/ui/test/Checkbox.test.tsx
+++ b/src/ui/__test__/Checkbox.test.tsx
@@ -25,4 +25,9 @@ describe('Checkbox', () => {
fireEvent.click(getByRole('checkbox'))
expect(onChange).toHaveBeenCalled()
})
+
+ it('snapshot', () => {
+ const { container } = render(<Checkbox label='Checkbox' checked />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Code.test.tsx b/src/ui/__test__/Code.test.tsx
similarity index 85%
rename from src/ui/test/Code.test.tsx
rename to src/ui/__test__/Code.test.tsx
index 9d20b678b..f2e7b75a3 100644
--- a/src/ui/test/Code.test.tsx
+++ b/src/ui/__test__/Code.test.tsx
@@ -25,4 +25,11 @@ describe('Code component', () => {
// eslint-disable-next-line testing-library/no-node-access
expect(container.firstChild).toHaveClass(testClassName)
})
+
+ it('snapshot', () => {
+ const { container } = render(
+ <Code text={testText} language={testLanguage} />,
+ )
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Dropdown.test.tsx b/src/ui/__test__/Dropdown.test.tsx
similarity index 90%
rename from src/ui/test/Dropdown.test.tsx
rename to src/ui/__test__/Dropdown.test.tsx
index e32bf9ac3..b4e277983 100644
--- a/src/ui/test/Dropdown.test.tsx
+++ b/src/ui/__test__/Dropdown.test.tsx
@@ -36,4 +36,9 @@ describe('Dropdown', () => {
fireEvent.click(item)
expect(onSelect).toHaveBeenCalledWith(items[0])
})
+
+ it('snapshot', () => {
+ const { container } = render(<Dropdown {...defaultProps} />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Flatpicker.test.tsx b/src/ui/__test__/Flatpicker.test.tsx
similarity index 77%
rename from src/ui/test/Flatpicker.test.tsx
rename to src/ui/__test__/Flatpicker.test.tsx
index 5eca18ed2..104c50976 100644
--- a/src/ui/test/Flatpicker.test.tsx
+++ b/src/ui/__test__/Flatpicker.test.tsx
@@ -9,4 +9,9 @@ describe('Flatpicker', () => {
const { getByTestId } = render(<Flatpicker />)
expect(getByTestId('calendar')).toBeInTheDocument()
})
+
+ it('snapshot', () => {
+ const { container } = render(<Flatpicker />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Input.test.tsx b/src/ui/__test__/Input.test.tsx
similarity index 92%
rename from src/ui/test/Input.test.tsx
rename to src/ui/__test__/Input.test.tsx
index d19c22a74..757ccb7d1 100644
--- a/src/ui/test/Input.test.tsx
+++ b/src/ui/__test__/Input.test.tsx
@@ -34,4 +34,9 @@ describe('Input component', () => {
const input = getByRole('textbox') as HTMLInputElement
expect(input).toBeDisabled()
})
+
+ it('snapshot', () => {
+ const { container } = render(<Input label='Username' />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Loader.test.tsx b/src/ui/__test__/Loader.test.tsx
similarity index 78%
rename from src/ui/test/Loader.test.tsx
rename to src/ui/__test__/Loader.test.tsx
index 5cae6b806..7ea70796b 100644
--- a/src/ui/test/Loader.test.tsx
+++ b/src/ui/__test__/Loader.test.tsx
@@ -9,4 +9,9 @@ describe('Loader', () => {
const { getByText } = render(<Loader />)
expect(getByText('Loading...')).toBeInTheDocument()
})
+
+ it('snapshot', () => {
+ const { container } = render(<Loader />)
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Modal.test.tsx b/src/ui/__test__/Modal.test.tsx
similarity index 93%
rename from src/ui/test/Modal.test.tsx
rename to src/ui/__test__/Modal.test.tsx
index 56237c09f..8d4513696 100644
--- a/src/ui/test/Modal.test.tsx
+++ b/src/ui/__test__/Modal.test.tsx
@@ -99,4 +99,13 @@ describe('Modal component', () => {
)
expect(getByText('beta.title')).toBeInTheDocument()
})
+
+ it('snapshot', () => {
+ const { asFragment } = render(
+ <HocWithI18n>
+ <Modal {...defaultProps} />
+ </HocWithI18n>,
+ )
+ expect(asFragment()).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Pagination.test.tsx b/src/ui/__test__/Pagination.test.tsx
similarity index 94%
rename from src/ui/test/Pagination.test.tsx
rename to src/ui/__test__/Pagination.test.tsx
index 74b40574d..568016ba1 100644
--- a/src/ui/test/Pagination.test.tsx
+++ b/src/ui/__test__/Pagination.test.tsx
@@ -118,4 +118,13 @@ describe('Pagination', () => {
expect(getByText('11')).toBeInTheDocument()
expect(getByText('project.prev')).toBeInTheDocument()
})
+
+ it('snapshot', () => {
+ const { container } = render(
+ <HocWithI18n>
+ <Pagination {...defaultProps} />
+ </HocWithI18n>,
+ )
+ expect(container).toMatchSnapshot()
+ })
})
diff --git a/src/ui/test/Pin.test.tsx b/src/ui/__test__/Pin.test.tsx
similarity index 100%
rename from src/ui/test/Pin.test.tsx
rename to src/ui/__test__/Pin.test.tsx
diff --git a/src/ui/__test__/Progress.test.tsx b/src/ui/__test__/Progress.test.tsx
new file mode 100644
index 000000000..6783651ef
--- /dev/null
+++ b/src/ui/__test__/Progress.test.tsx
@@ -0,0 +1,13 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+
+import Progress from '../Progress'
+
+describe('Progress', () => {
+ it('should render', () => {
+ const { container } = render(<Progress now={50} />)
+ expect(container).toMatchSnapshot()
+ })
+})
diff --git a/src/ui/__test__/__snapshots__/Alert.test.tsx.snap b/src/ui/__test__/__snapshots__/Alert.test.tsx.snap
new file mode 100644
index 000000000..38375f197
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Alert.test.tsx.snap
@@ -0,0 +1,55 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`AlertTemplate snapshot 1`] = `
+<div>
+ <div
+ class="flex justify-between items-center mb-5 mr-2 rounded-md p-4 z-50 shadow-sm w-96 pointer-events-auto bg-red-50"
+ >
+ <div
+ class="flex-shrink-0"
+ >
+ <svg
+ aria-hidden="true"
+ class="h-6 w-6 mr-2 text-red-400"
+ fill="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ clip-rule="evenodd"
+ d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z"
+ fill-rule="evenodd"
+ />
+ </svg>
+ </div>
+ <span
+ class="text-sm font-medium uppercase text-red-800"
+ >
+ This is an error alert
+ </span>
+ <button
+ class="inline-flex cursor-pointer rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2 bg-red-50 text-red-500 hover:bg-red-100 focus:ring-offset-red-50 focus:ring-red-600"
+ type="button"
+ >
+ <span
+ class="sr-only"
+ >
+ Dismiss
+ </span>
+ <svg
+ aria-hidden="true"
+ class="h-5 w-5"
+ fill="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ clip-rule="evenodd"
+ d="M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z"
+ fill-rule="evenodd"
+ />
+ </svg>
+ </button>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Beta.test.tsx.snap b/src/ui/__test__/__snapshots__/Beta.test.tsx.snap
new file mode 100644
index 000000000..e9b54627e
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Beta.test.tsx.snap
@@ -0,0 +1,27 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Beta component snapshot 1`] = `
+<div>
+ <div
+ class="w-5 h-5 relative flex flex-col group items-center max-w-content !w-full"
+ >
+ <p
+ class="px-2 inline-flex text-sm leading-5 font-normal rounded-full bg-yellow-200 text-yellow-800 dark:bg-yellow-300 dark:text-yellow-900"
+ >
+ beta.title
+ </p>
+ <div
+ class="absolute bottom-0 flex-col mb-6 hidden group-hover:flex items-center"
+ >
+ <span
+ class="opacity-95 relative w-60 z-10 p-2 text-xs leading-none text-white whitespace-no-wrap bg-gray-700 shadow-lg rounded-md"
+ >
+ beta.description
+ </span>
+ <div
+ class="w-3 h-3 -mt-2 rotate-45 bg-gray-700 opacity-95"
+ />
+ </div>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Button.test.tsx.snap b/src/ui/__test__/__snapshots__/Button.test.tsx.snap
new file mode 100644
index 000000000..4bd3d00d3
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Button.test.tsx.snap
@@ -0,0 +1,12 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Button component snapshot 1`] = `
+<div>
+ <button
+ class="relative inline-flex select-none items-center border leading-4 font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
+ type="button"
+ >
+ Click me
+ </button>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Chart.test.tsx.snap b/src/ui/__test__/__snapshots__/Chart.test.tsx.snap
new file mode 100644
index 000000000..f411196da
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Chart.test.tsx.snap
@@ -0,0 +1,668 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Chart component snapshot 1`] = `
+<div>
+ <div>
+ <div
+ class="bb"
+ data-testid="chart"
+ id="chart"
+ style="position: relative;"
+ >
+ <svg
+ height="320"
+ style="overflow: hidden; display: block;"
+ width="0"
+ >
+ <defs>
+ <clippath
+ id="bb-10089432076500000-clip"
+ >
+ <rect
+ height="226"
+ width="0"
+ />
+ </clippath>
+ <clippath
+ id="bb-10089432076500000-clip-xaxis"
+ >
+ <rect
+ height="110"
+ width="20"
+ x="-9"
+ y="-15"
+ />
+ </clippath>
+ <clippath
+ id="bb-10089432076500000-clip-yaxis"
+ >
+ <rect
+ height="240"
+ width="50"
+ x="-29"
+ y="-4"
+ />
+ </clippath>
+ <clippath
+ id="bb-10089432076500000-clip-grid"
+ >
+ <rect
+ height="226"
+ width="0"
+ />
+ </clippath>
+ </defs>
+ <g
+ class="bb-main"
+ transform="translate(30.5, 4.5)"
+ >
+ <g
+ class="bb-grid"
+ clip-path="url(http://localhost/#bb-10089432076500000-clip-grid)"
+ >
+ <g
+ class="bb-xgrid-focus"
+ >
+ <line
+ class="bb-xgrid-focus"
+ x1="-10"
+ x2="-10"
+ y1="0"
+ y2="226"
+ />
+ </g>
+ </g>
+ <g
+ class="bb-chart"
+ clip-path="url(http://localhost/#bb-10089432076500000-clip)"
+ >
+ <g
+ class="bb-event-rects bb-event-rects-single"
+ style="fill-opacity: 0;"
+ >
+ <rect
+ class="bb-event-rect"
+ height="226"
+ width="0"
+ x="0"
+ y="0"
+ />
+ </g>
+ <g
+ class="bb-chart-lines"
+ >
+ <g
+ class="bb-chart-line bb-target bb-target-data1"
+ style="pointer-events: none;"
+ >
+ <g
+ class="bb-shapes bb-shapes-data1 bb-lines bb-lines-data1"
+ >
+ <path
+ class="bb-shape bb-shape bb-line bb-line-data1 "
+ d="M0,197.635L0,115.904L0,163.981L0,19.75L0,139.942L0,91.865"
+ style="stroke: #1f77b4;"
+ />
+ </g>
+ <g
+ class="bb-shapes bb-shapes-data1 bb-circles bb-circles-data1"
+ >
+ <circle
+ class="bb-shape bb-shape-0 bb-circle bb-circle-0"
+ cx="0"
+ cy="197.6346153846154"
+ r="2.5"
+ style="fill: #1f77b4; stroke: #1f77b4;"
+ />
+ <circle
+ class="bb-shape bb-shape-1 bb-circle bb-circle-1"
+ cx="0"
+ cy="115.90384615384615"
+ r="2.5"
+ style="fill: #1f77b4; stroke: #1f77b4;"
+ />
+ <circle
+ class="bb-shape bb-shape-2 bb-circle bb-circle-2"
+ cx="0"
+ cy="163.98076923076923"
+ r="2.5"
+ style="fill: #1f77b4; stroke: #1f77b4;"
+ />
+ <circle
+ class="bb-shape bb-shape-3 bb-circle bb-circle-3"
+ cx="0"
+ cy="19.75000000000001"
+ r="2.5"
+ style="fill: #1f77b4; stroke: #1f77b4;"
+ />
+ <circle
+ class="bb-shape bb-shape-4 bb-circle bb-circle-4"
+ cx="0"
+ cy="139.9423076923077"
+ r="2.5"
+ style="fill: #1f77b4; stroke: #1f77b4;"
+ />
+ <circle
+ class="bb-shape bb-shape-5 bb-circle bb-circle-5"
+ cx="0"
+ cy="91.86538461538461"
+ r="2.5"
+ style="fill: #1f77b4; stroke: #1f77b4;"
+ />
+ </g>
+ </g>
+ <g
+ class="bb-chart-line bb-target bb-target-data2"
+ style="pointer-events: none;"
+ >
+ <g
+ class="bb-shapes bb-shapes-data2 bb-lines bb-lines-data2"
+ >
+ <path
+ class="bb-shape bb-shape bb-line bb-line-data2 "
+ d="M0,188.019L0,202.442L0,207.25L0,192.827L0,204.846L0,200.038"
+ style="stroke: #ff7f0e;"
+ />
+ </g>
+ <g
+ class="bb-shapes bb-shapes-data2 bb-circles bb-circles-data2"
+ >
+ <circle
+ class="bb-shape bb-shape-0 bb-circle bb-circle-0"
+ cx="0"
+ cy="188.01923076923075"
+ r="2.5"
+ style="fill: #ff7f0e; stroke: #ff7f0e;"
+ />
+ <circle
+ class="bb-shape bb-shape-1 bb-circle bb-circle-1"
+ cx="0"
+ cy="202.4423076923077"
+ r="2.5"
+ style="fill: #ff7f0e; stroke: #ff7f0e;"
+ />
+ <circle
+ class="bb-shape bb-shape-2 bb-circle bb-circle-2"
+ cx="0"
+ cy="207.25"
+ r="2.5"
+ style="fill: #ff7f0e; stroke: #ff7f0e;"
+ />
+ <circle
+ class="bb-shape bb-shape-3 bb-circle bb-circle-3"
+ cx="0"
+ cy="192.82692307692307"
+ r="2.5"
+ style="fill: #ff7f0e; stroke: #ff7f0e;"
+ />
+ <circle
+ class="bb-shape bb-shape-4 bb-circle bb-circle-4"
+ cx="0"
+ cy="204.84615384615384"
+ r="2.5"
+ style="fill: #ff7f0e; stroke: #ff7f0e;"
+ />
+ <circle
+ class="bb-shape bb-shape-5 bb-circle bb-circle-5"
+ cx="0"
+ cy="200.03846153846152"
+ r="2.5"
+ style="fill: #ff7f0e; stroke: #ff7f0e;"
+ />
+ </g>
+ </g>
+ </g>
+ </g>
+ <g
+ class="bb-axis bb-axis-x"
+ clip-path="url(http://localhost/#bb-10089432076500000-clip-xaxis)"
+ transform="translate(0, 226)"
+ >
+ <text
+ class="bb-axis-x-label"
+ dx="-0.5em"
+ dy="-0.5em"
+ style="text-anchor: end;"
+ x="0"
+ />
+ <g
+ class="tick"
+ transform="translate(0,0)"
+ >
+ <line
+ x1="0"
+ x2="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: middle;"
+ x="0"
+ y="9"
+ >
+ <tspan
+ dx="0"
+ dy=".71em"
+ x="0"
+ >
+ 0
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,0)"
+ >
+ <line
+ x1="0"
+ x2="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: middle;"
+ x="0"
+ y="9"
+ >
+ <tspan
+ dx="0"
+ dy=".71em"
+ x="0"
+ >
+ 1
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,0)"
+ >
+ <line
+ x1="0"
+ x2="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: middle;"
+ x="0"
+ y="9"
+ >
+ <tspan
+ dx="0"
+ dy=".71em"
+ x="0"
+ >
+ 2
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,0)"
+ >
+ <line
+ x1="0"
+ x2="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: middle;"
+ x="0"
+ y="9"
+ >
+ <tspan
+ dx="0"
+ dy=".71em"
+ x="0"
+ >
+ 3
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,0)"
+ >
+ <line
+ x1="0"
+ x2="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: middle;"
+ x="0"
+ y="9"
+ >
+ <tspan
+ dx="0"
+ dy=".71em"
+ x="0"
+ >
+ 4
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,0)"
+ >
+ <line
+ x1="0"
+ x2="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: middle;"
+ x="0"
+ y="9"
+ >
+ <tspan
+ dx="0"
+ dy=".71em"
+ x="0"
+ >
+ 5
+ </tspan>
+ </text>
+ </g>
+ <path
+ class="domain"
+ d="M0,6V0H0V6"
+ />
+ </g>
+ <g
+ class="bb-axis bb-axis-y"
+ clip-path="url(http://localhost/#bb-10089432076500000-clip-yaxis)"
+ transform="translate(0, 0)"
+ >
+ <text
+ class="bb-axis-y-label"
+ dx="-0.5em"
+ dy="1.2em"
+ style="text-anchor: end;"
+ transform="rotate(-90)"
+ x="0"
+ />
+ <g
+ class="tick"
+ transform="translate(0,213)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 0
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,189)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 50
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,164)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 100
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,140)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 150
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,116)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 200
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,92)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 250
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,68)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 300
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,44)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 350
+ </tspan>
+ </text>
+ </g>
+ <g
+ class="tick"
+ transform="translate(0,20)"
+ >
+ <line
+ x2="-6"
+ y1="0"
+ y2="0"
+ />
+ <text
+ style="text-anchor: end;"
+ x="-9"
+ y="0"
+ >
+ <tspan
+ dx="0"
+ dy="3"
+ x="-9"
+ >
+ 400
+ </tspan>
+ </text>
+ </g>
+ <path
+ class="domain"
+ d="M-6,1H0V226H-6"
+ />
+ </g>
+ </g>
+ <g
+ class="bb-legend"
+ transform="translate(0, 260)"
+ >
+ <g
+ class="bb-legend-item bb-legend-item-data1"
+ style="cursor: pointer;"
+ >
+ <text
+ style="pointer-events: none;"
+ x="1.5"
+ y="13"
+ >
+ data1
+ </text>
+ <rect
+ class="bb-legend-item-event"
+ height="4"
+ style="fill-opacity: 0;"
+ width="25"
+ x="-12.5"
+ y="-1"
+ />
+ <line
+ class="bb-legend-item-tile"
+ stroke-width="10"
+ style="stroke: #1f77b4; pointer-events: none;"
+ x1="-14.5"
+ x2="-4.5"
+ y1="8"
+ y2="8"
+ />
+ </g>
+ <g
+ class="bb-legend-item bb-legend-item-data2"
+ style="cursor: pointer;"
+ >
+ <text
+ style="pointer-events: none;"
+ x="6.5"
+ y="17"
+ >
+ data2
+ </text>
+ <rect
+ class="bb-legend-item-event"
+ height="4"
+ style="fill-opacity: 0;"
+ width="15"
+ x="-7.5"
+ y="3"
+ />
+ <line
+ class="bb-legend-item-tile"
+ stroke-width="10"
+ style="stroke: #ff7f0e; pointer-events: none;"
+ x1="-9.5"
+ x2="0.5"
+ y1="12"
+ y2="12"
+ />
+ </g>
+ </g>
+ </svg>
+ <div
+ class="bb-tooltip-container"
+ style="position: absolute; pointer-events: none; display: none;"
+ />
+ </div>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Checkbox.test.tsx.snap b/src/ui/__test__/__snapshots__/Checkbox.test.tsx.snap
new file mode 100644
index 000000000..f87978338
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Checkbox.test.tsx.snap
@@ -0,0 +1,32 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Checkbox snapshot 1`] = `
+<div>
+ <div
+ class="relative flex items-start whitespace-pre-line"
+ >
+ <div
+ class="flex items-center h-5"
+ >
+ <input
+ aria-describedby=""
+ checked=""
+ class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 dark:border-gray-800 dark:bg-gray-700 dark:checked:bg-indigo-600 rounded cursor-pointer"
+ id=""
+ name=""
+ type="checkbox"
+ />
+ </div>
+ <div
+ class="ml-3 text-sm"
+ >
+ <label
+ class="font-medium text-gray-700 dark:text-gray-200 cursor-pointer"
+ for=""
+ >
+ Checkbox
+ </label>
+ </div>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Code.test.tsx.snap b/src/ui/__test__/__snapshots__/Code.test.tsx.snap
new file mode 100644
index 000000000..dba39da0e
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Code.test.tsx.snap
@@ -0,0 +1,15 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Code component snapshot 1`] = `
+<div>
+ <pre
+ class="w-full rounded-md bg-gray-800 dark:bg-gray-750"
+ >
+ <code
+ class="whitespace-pre-wrap language-javascript"
+ >
+ const greeting = "Hello, world!";
+ </code>
+ </pre>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Dropdown.test.tsx.snap b/src/ui/__test__/__snapshots__/Dropdown.test.tsx.snap
new file mode 100644
index 000000000..e96692475
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Dropdown.test.tsx.snap
@@ -0,0 +1,36 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Dropdown snapshot 1`] = `
+<div>
+ <div
+ class="relative inline-block text-left"
+ data-headlessui-state=""
+ >
+ <div>
+ <button
+ aria-expanded="false"
+ aria-haspopup="menu"
+ class="inline-flex w-full rounded-md border border-gray-300 shadow-sm px-3 md:px-4 py-2 bg-white text-sm font-medium text-gray-700 dark:text-gray-50 dark:border-gray-800 dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500 justify-center"
+ data-headlessui-state=""
+ id="headlessui-menu-button-:r7:"
+ type="button"
+ >
+ Dropdown Title
+ <svg
+ aria-hidden="true"
+ class="-mr-1 ml-2 h-5 w-5"
+ fill="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ clip-rule="evenodd"
+ d="M12.53 16.28a.75.75 0 01-1.06 0l-7.5-7.5a.75.75 0 011.06-1.06L12 14.69l6.97-6.97a.75.75 0 111.06 1.06l-7.5 7.5z"
+ fill-rule="evenodd"
+ />
+ </svg>
+ </button>
+ </div>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Flatpicker.test.tsx.snap b/src/ui/__test__/__snapshots__/Flatpicker.test.tsx.snap
new file mode 100644
index 000000000..1a905fa7e
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Flatpicker.test.tsx.snap
@@ -0,0 +1,467 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Flatpicker snapshot 1`] = `
+<div>
+ <div
+ class="h-0 flatpicker-custom"
+ >
+ <div
+ class="flatpickr-wrapper"
+ >
+ <input
+ class="invisible flatpickr-input"
+ data-testid="calendar"
+ id="calendar"
+ type="hidden"
+ value=""
+ />
+ <input
+ class="hidden"
+ placeholder=""
+ readonly="readonly"
+ tabindex="0"
+ type="text"
+ />
+ <div
+ class="flatpickr-calendar rangeMode animate static"
+ tabindex="-1"
+ >
+ <div
+ class="flatpickr-months"
+ >
+ <span
+ class="flatpickr-prev-month"
+ >
+ <svg
+ version="1.1"
+ viewBox="0 0 17 17"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ >
+ <g />
+ <path
+ d="M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z"
+ />
+ </svg>
+ </span>
+ <div
+ class="flatpickr-month"
+ >
+ <div
+ class="flatpickr-current-month"
+ >
+ <select
+ aria-label="Month"
+ class="flatpickr-monthDropdown-months"
+ tabindex="-1"
+ >
+ <option
+ class="flatpickr-monthDropdown-month"
+ tabindex="-1"
+ value="0"
+ >
+ January
+ </option>
+ <option
+ class="flatpickr-monthDropdown-month"
+ tabindex="-1"
+ value="1"
+ >
+ February
+ </option>
+ <option
+ class="flatpickr-monthDropdown-month"
+ tabindex="-1"
+ value="2"
+ >
+ March
+ </option>
+ <option
+ class="flatpickr-monthDropdown-month"
+ tabindex="-1"
+ value="3"
+ >
+ April
+ </option>
+ </select>
+ <div
+ class="numInputWrapper"
+ >
+ <input
+ aria-label="Year"
+ class="numInput cur-year"
+ max="2023"
+ min="2021"
+ tabindex="-1"
+ type="number"
+ />
+ <span
+ class="arrowUp"
+ />
+ <span
+ class="arrowDown"
+ />
+ </div>
+ </div>
+ </div>
+ <span
+ class="flatpickr-next-month flatpickr-disabled"
+ >
+ <svg
+ version="1.1"
+ viewBox="0 0 17 17"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ >
+ <g />
+ <path
+ d="M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z"
+ />
+ </svg>
+ </span>
+ </div>
+ <div
+ class="flatpickr-innerContainer"
+ >
+ <div
+ class="flatpickr-rContainer"
+ >
+ <div
+ class="flatpickr-weekdays"
+ >
+ <div
+ class="flatpickr-weekdaycontainer"
+ >
+
+
+ <span
+ class="flatpickr-weekday"
+ >
+
+ Sun
+ </span>
+ <span
+ class="flatpickr-weekday"
+ >
+ Mon
+ </span>
+ <span
+ class="flatpickr-weekday"
+ >
+ Tue
+ </span>
+ <span
+ class="flatpickr-weekday"
+ >
+ Wed
+ </span>
+ <span
+ class="flatpickr-weekday"
+ >
+ Thu
+ </span>
+ <span
+ class="flatpickr-weekday"
+ >
+ Fri
+ </span>
+ <span
+ class="flatpickr-weekday"
+ >
+ Sat
+
+ </span>
+
+
+ </div>
+ </div>
+ <div
+ class="flatpickr-days"
+ tabindex="-1"
+ >
+ <div
+ class="dayContainer"
+ >
+ <span
+ aria-label="March 26, 2023"
+ class="flatpickr-day prevMonthDay"
+ tabindex="-1"
+ >
+ 26
+ </span>
+ <span
+ aria-label="March 27, 2023"
+ class="flatpickr-day prevMonthDay"
+ tabindex="-1"
+ >
+ 27
+ </span>
+ <span
+ aria-label="March 28, 2023"
+ class="flatpickr-day prevMonthDay"
+ tabindex="-1"
+ >
+ 28
+ </span>
+ <span
+ aria-label="March 29, 2023"
+ class="flatpickr-day prevMonthDay"
+ tabindex="-1"
+ >
+ 29
+ </span>
+ <span
+ aria-label="March 30, 2023"
+ class="flatpickr-day prevMonthDay"
+ tabindex="-1"
+ >
+ 30
+ </span>
+ <span
+ aria-label="March 31, 2023"
+ class="flatpickr-day prevMonthDay"
+ tabindex="-1"
+ >
+ 31
+ </span>
+ <span
+ aria-label="April 1, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 1
+ </span>
+ <span
+ aria-label="April 2, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 2
+ </span>
+ <span
+ aria-label="April 3, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 3
+ </span>
+ <span
+ aria-label="April 4, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 4
+ </span>
+ <span
+ aria-label="April 5, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 5
+ </span>
+ <span
+ aria-label="April 6, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 6
+ </span>
+ <span
+ aria-label="April 7, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 7
+ </span>
+ <span
+ aria-label="April 8, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 8
+ </span>
+ <span
+ aria-label="April 9, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 9
+ </span>
+ <span
+ aria-label="April 10, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 10
+ </span>
+ <span
+ aria-label="April 11, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 11
+ </span>
+ <span
+ aria-label="April 12, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 12
+ </span>
+ <span
+ aria-label="April 13, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 13
+ </span>
+ <span
+ aria-label="April 14, 2023"
+ class="flatpickr-day"
+ tabindex="-1"
+ >
+ 14
+ </span>
+ <span
+ aria-current="date"
+ aria-label="April 15, 2023"
+ class="flatpickr-day today"
+ tabindex="-1"
+ >
+ 15
+ </span>
+ <span
+ aria-label="April 16, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 16
+ </span>
+ <span
+ aria-label="April 17, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 17
+ </span>
+ <span
+ aria-label="April 18, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 18
+ </span>
+ <span
+ aria-label="April 19, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 19
+ </span>
+ <span
+ aria-label="April 20, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 20
+ </span>
+ <span
+ aria-label="April 21, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 21
+ </span>
+ <span
+ aria-label="April 22, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 22
+ </span>
+ <span
+ aria-label="April 23, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 23
+ </span>
+ <span
+ aria-label="April 24, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 24
+ </span>
+ <span
+ aria-label="April 25, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 25
+ </span>
+ <span
+ aria-label="April 26, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 26
+ </span>
+ <span
+ aria-label="April 27, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 27
+ </span>
+ <span
+ aria-label="April 28, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 28
+ </span>
+ <span
+ aria-label="April 29, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 29
+ </span>
+ <span
+ aria-label="April 30, 2023"
+ class="flatpickr-day flatpickr-disabled"
+ >
+ 30
+ </span>
+ <span
+ aria-label="May 1, 2023"
+ class="flatpickr-day nextMonthDay flatpickr-disabled"
+ >
+ 1
+ </span>
+ <span
+ aria-label="May 2, 2023"
+ class="flatpickr-day nextMonthDay flatpickr-disabled"
+ >
+ 2
+ </span>
+ <span
+ aria-label="May 3, 2023"
+ class="flatpickr-day nextMonthDay flatpickr-disabled"
+ >
+ 3
+ </span>
+ <span
+ aria-label="May 4, 2023"
+ class="flatpickr-day nextMonthDay flatpickr-disabled"
+ >
+ 4
+ </span>
+ <span
+ aria-label="May 5, 2023"
+ class="flatpickr-day nextMonthDay flatpickr-disabled"
+ >
+ 5
+ </span>
+ <span
+ aria-label="May 6, 2023"
+ class="flatpickr-day nextMonthDay flatpickr-disabled"
+ >
+ 6
+ </span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Input.test.tsx.snap b/src/ui/__test__/__snapshots__/Input.test.tsx.snap
new file mode 100644
index 000000000..f6875d643
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Input.test.tsx.snap
@@ -0,0 +1,37 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Input component snapshot 1`] = `
+<div>
+ <div
+ class=""
+ >
+ <div
+ class=""
+ >
+ <label
+ class="flex text-sm font-medium text-gray-700 dark:text-gray-200"
+ for=""
+ >
+ Username
+ </label>
+ </div>
+ <div
+ class="mt-1 relative"
+ >
+ <input
+ aria-describedby="-optional"
+ class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 dark:text-gray-50 dark:placeholder-gray-400 dark:border-gray-800 dark:bg-gray-700 rounded-md"
+ id=""
+ name=""
+ placeholder=""
+ type=""
+ value=""
+ />
+ </div>
+ <p
+ class="mt-2 text-sm text-gray-500 dark:text-gray-300 whitespace-pre-line"
+ id="-optional"
+ />
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Loader.test.tsx.snap b/src/ui/__test__/__snapshots__/Loader.test.tsx.snap
new file mode 100644
index 000000000..62fa1d241
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Loader.test.tsx.snap
@@ -0,0 +1,35 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Loader snapshot 1`] = `
+<div>
+ <div
+ class="flex justify-center pt-10"
+ >
+ <svg
+ class="animate-spin -ml-1 mr-2 h-4 w-4 text-white h-20 w-20 text-indigo-700"
+ fill="none"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <circle
+ class="opacity-25"
+ cx="12"
+ cy="12"
+ r="10"
+ stroke="currentColor"
+ stroke-width="4"
+ />
+ <path
+ class="opacity-75"
+ d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
+ fill="currentColor"
+ />
+ </svg>
+ <span
+ class="sr-only"
+ >
+ Loading...
+ </span>
+ </div>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Modal.test.tsx.snap b/src/ui/__test__/__snapshots__/Modal.test.tsx.snap
new file mode 100644
index 000000000..96839e5be
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Modal.test.tsx.snap
@@ -0,0 +1,9 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Modal component snapshot 1`] = `
+<DocumentFragment>
+ <div
+ style="position: fixed; top: 1px; left: 1px; width: 1px; height: 0px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border-width: 0px; display: none;"
+ />
+</DocumentFragment>
+`;
diff --git a/src/ui/__test__/__snapshots__/Pagination.test.tsx.snap b/src/ui/__test__/__snapshots__/Pagination.test.tsx.snap
new file mode 100644
index 000000000..3aabbb518
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Pagination.test.tsx.snap
@@ -0,0 +1,81 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Pagination snapshot 1`] = `
+<div>
+ <nav
+ class="border-t-0 border-gray-200 px-4 flex items-center justify-between sm:px-0"
+ >
+ <div
+ class="-mt-px w-0 flex-1 flex group"
+ />
+ <div
+ class="hidden md:-mt-px md:flex"
+ >
+ <button
+ class="border-indigo-500 text-indigo-600 dark:text-indigo-400 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ type="button"
+ >
+ 1
+ </button>
+ <button
+ class="border-transparent text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-400 hover:border-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ type="button"
+ >
+ 2
+ </button>
+ <button
+ class="border-transparent text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-400 hover:border-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ type="button"
+ >
+ 3
+ </button>
+ <button
+ class="border-transparent text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-400 hover:border-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ type="button"
+ >
+ 4
+ </button>
+ <button
+ class="border-transparent text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-400 hover:border-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ type="button"
+ >
+ 5
+ </button>
+ <span
+ class="border-transparent text-gray-500 dark:text-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ >
+ ...
+ </span>
+ <button
+ class="border-transparent text-gray-500 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-400 hover:border-gray-300 border-t-2 pt-4 px-4 inline-flex items-center text-sm font-medium"
+ type="button"
+ >
+ 10
+ </button>
+ </div>
+ <div
+ class="-mt-px w-0 flex-1 flex justify-end group"
+ >
+ <button
+ class="pt-4 pl-1 inline-flex items-center text-sm font-medium dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500"
+ type="button"
+ >
+ project.next
+ <svg
+ aria-hidden="true"
+ class="ml-3 h-5 w-5 dark:group-hover:text-gray-400 group-hover:text-gray-700 dark:text-gray-300 text-gray-500 transition-none"
+ fill="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ clip-rule="evenodd"
+ d="M16.72 7.72a.75.75 0 011.06 0l3.75 3.75a.75.75 0 010 1.06l-3.75 3.75a.75.75 0 11-1.06-1.06l2.47-2.47H3a.75.75 0 010-1.5h16.19l-2.47-2.47a.75.75 0 010-1.06z"
+ fill-rule="evenodd"
+ />
+ </svg>
+ </button>
+ </div>
+ </nav>
+</div>
+`;
diff --git a/src/ui/__test__/__snapshots__/Progress.test.tsx.snap b/src/ui/__test__/__snapshots__/Progress.test.tsx.snap
new file mode 100644
index 000000000..50206b7a0
--- /dev/null
+++ b/src/ui/__test__/__snapshots__/Progress.test.tsx.snap
@@ -0,0 +1,18 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`Progress should render 1`] = `
+<div>
+ <div
+ class="relative"
+ >
+ <div
+ class="overflow-hidden h-2 text-xs flex rounded bg-blue-200 dark:bg-gray-500"
+ >
+ <div
+ class="shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center bg-blue-500 dark:bg-blue-700"
+ style="width: 50%;"
+ />
+ </div>
+ </div>
+</div>
+`;