index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/gpbl/react-day-picker/website/src/theme/CodeBlock | petrpan-code/gpbl/react-day-picker/website/src/theme/CodeBlock/sandpack-app/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>react-day-picker example</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
| 3,700 |
0 | petrpan-code/gpbl/react-day-picker/website/src/theme/CodeBlock | petrpan-code/gpbl/react-day-picker/website/src/theme/CodeBlock/sandpack-app/index.tsx | import React, { StrictMode } from 'react';
/** Root file used by the Sandpack */
import 'react-day-picker/dist/style.css';
import { render } from 'react-dom';
import App from './App';
import './styles.css';
render(
<StrictMode>
<App />
</StrictMode>,
document.getElementById('root')
);
| 3,701 |
0 | petrpan-code/gpbl/react-day-picker/website/src/theme/CodeBlock | petrpan-code/gpbl/react-day-picker/website/src/theme/CodeBlock/sandpack-app/light.css | body {
margin: 1em;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell,
'Noto Sans', sans-serif, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial,
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: ant... | 3,702 |
0 | petrpan-code/gpbl/react-day-picker/website | petrpan-code/gpbl/react-day-picker/website/static/CNAME | react-day-picker.js.org | 3,703 |
0 | petrpan-code/gpbl/react-day-picker/website/static | petrpan-code/gpbl/react-day-picker/website/static/images/sublist-icon.svg | <?xml version="1.0" encoding="UTF-8"?>
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>sublist-icon</title>
<g id="sublist-icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" fill-opacity="0.... | 3,704 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/container-attributes.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import Example from '@examples/container-attributes';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
let firstChild: HTMLDivElement;
be... | 3,705 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/controlled.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { render, screen } from '@testing-library/react';
import { act } from 'react-dom/test-utils';
import { getMonthCaption } from 'react-day-picker/test/selec... | 3,706 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/custom-day.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getDaysInMonth } from 'date-fns';
import Example from '@examples/custom-day';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
let container: HTMLElement;
beforeEach(... | 3,707 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/custom-disable-row.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import Example from '@examples/custom-disable-row';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
let container: HTMLElement;
beforeEa... | 3,708 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/custom-multiple.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { act } from 'react-dom/test-utils';
import { getDayButton, getTableFooter } from 'react-day-picker/test/... | 3,709 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/custom-single.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { act } from 'react-dom/test-utils';
import { getDayButton, getTableFooter } from 'react-day-picker/test/... | 3,710 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/date-picker-dialog.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { render, screen } from '@testing-library/react';
import { format } from 'date-fns';
import { act } from 'react-dom/test-utils';
import { getDayButton } f... | 3,711 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/default-month.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getMonthCaption } from 'react-day-picker/test/selectors';
import Example from '@examples/default-month';
const today = new Date(2022, 5, 10);
freezeBeforeAll(today);
beforeEach((... | 3,712 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/disabled.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { setDate } from 'date-fns';
import {
getDayButton,
getFocusedElement,
getMonthCaption,
queryPrev... | 3,713 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/dropdown-buttons.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import {
getMonthDropdown,
getMonthGrid,
getNextButton,
getPrevButton,
getYearDropdown
} from 're... | 3,714 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/dropdown-multiple-months.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render, screen } from '@testing-library/react';
import { getMonthGrid } from 'react-day-picker/test/selectors';
import Example from '@examples/dro... | 3,715 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/dropdown.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import {
getMonthDropdown,
getMonthGrid,
getYearDropdown
} from 'react-day-picker/test/selectors';
i... | 3,716 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/fixedweeks.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import Example from '@examples/fixedweeks';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
let container: HTMLElement;
beforeEach(() =>... | 3,717 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/focus-recursive.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import {
getDayButton,
getFocusedElement
} from 'react-day-picker/test/selectors';
import Example from... | 3,718 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/formatters.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render, screen } from '@testing-library/react';
import Example from '@examples/formatters';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
beforeEach(() => {
render(<Example />);
});
test('should display the au... | 3,719 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/from-to-month.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { act, render } from '@testing-library/react';
import { differenceInMonths } from 'date-fns';
import { getNextButton, getPrevButton } from 'react-day-picker/test/selectors';
import Example from '@examples/... | 3,720 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/from-to-year.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { differenceInMonths } from 'date-fns';
import { getNextButton, getPrevButton } from 'react-day-pick... | 3,721 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/keyboard-focus.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { focusDaysGrid } from '@site/test/utils/focusDaysGrid';
import { act, render } from '@testing-library/react';
import { addDays, addMonths, startOfMonth } ... | 3,722 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/keyboard.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import {
addDays,
addMonths,
addWeeks,
addYears,
endOfWeek,
lastDayOfMonth,
setDate,
startOf... | 3,723 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/modifiers-classnames.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getDayButton } from 'react-day-picker/test/selectors';
import Example from '@examples/modifiers-classnames';
const days = [
new Date(2021, 5, 8),
new Date(2021, 5, 9),
new D... | 3,724 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/modifiers-custom.test.tsx | import React from 'react';
import { user } from '@site/test/user';
import { act, render } from '@testing-library/react';
import { getDayButton, getTableFooter } from 'react-day-picker/test/selectors';
import Example from '@examples/modifiers-custom';
const bookedDays = [new Date(2021, 5, 8), new Date(2021, 5, 9)];
... | 3,725 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/modifiers-disabled.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getDayButton } from 'react-day-picker/test/selectors';
import Example from '@examples/modifiers-disabled';
const days = [
new Date(2022, 5, 10),
new Date(2022, 5, 12),
new D... | 3,726 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/modifiers-hidden.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { queryDayButton } from 'react-day-picker/test/selectors';
import Example from '@examples/modifiers-hidden';
const days = [
new Date(2022, 5, 10),
new Date(2022, 5, 20),
new D... | 3,727 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/modifiers-style.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getDayButton } from 'react-day-picker/test/selectors';
import Example from '@examples/modifiers-style';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
beforeEach((... | 3,728 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/modifiers-today.test.tsx | import React from 'react';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { addDays } from 'date-fns';
import { getDayButton, getTableFooter } from 'react-day-picker/test/selectors';
import Example from '@exampl... | 3,729 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/multiple-min-max.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { addDays } from 'date-fns';
import { getDayButton, getTableFooter } from 'react-day-picker/test/sel... | 3,730 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/multiple-months-paged.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render, screen } from '@testing-library/react';
import { getPrevButton } from 'react-day-picker/test/selectors';
import Example from '@examples/mu... | 3,731 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/multiple-months.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render, screen } from '@testing-library/react';
import { getMonthGrid, getPrevButton } from 'react-day-picker/test/selectors';
import Example from... | 3,732 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/multiple.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { getDayButton, getTableFooter } from 'react-day-picker/test/selectors';
import Example from '@exam... | 3,733 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/numbering-system.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { freezeBeforeAll } from '@site/test/utils';
import { render, screen } from '@testing-library/react';
import Example from '@examples/numbering-system';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
let container: HTMLElement;
be... | 3,734 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/outside-days.test.tsx | import React from 'react';
import { getDayButton } from '@site/../test/selectors';
import { axe } from '@site/test/axe';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import Example from '@examples/outside-days';
const today = new Date(2021, 10, 25);
freezeBefor... | 3,735 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/range-min-max.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { setDate } from 'date-fns';
import { getDayButton } from 'react-day-picker/test/selectors';
import... | 3,736 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/range-shift-key.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { getDayButton } from 'react-day-picker/test/selectors';
import Example from '@examples/range-shift... | 3,737 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/range.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { act, render } from '@testing-library/react';
import { addDays } from 'date-fns';
import {
getAllSelectedDays,
getDayButton
} from 'react-day-picker/test/selectors';
import Example from '@examples/ran... | 3,738 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/rtl.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import {
getMonthCaption,
getNextButton,
getPrevButton
} from 'react-day-picker/test/selectors';
imp... | 3,739 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/single-required.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { getDayButton, getTableFooter } from 'react-day-picker/test/selectors';
import Example from '@exam... | 3,740 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/single.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { getDayButton, getTableFooter } from 'react-day-picker/test/selectors';
import Example from '@exam... | 3,741 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/spanish-week-starts-on.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getMonthGrid } from 'react-day-picker/test/selectors';
import Example from '@examples/spanish-week-starts-on';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
befor... | 3,742 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/spanish.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getMonthCaption } from 'react-day-picker/test/selectors';
import Example from '@examples/spanish';
const today = new Date(2021, 10, 25);
free... | 3,743 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/start.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { getDayButton, getTableFooter } from 'react-day-picker/test/selectors';
import Example from '@exam... | 3,744 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/styling-css.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import Example from '@examples/styling-css';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
let container: HTMLElement;
beforeEach(() => {
container = render(<Example />).... | 3,745 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/styling-inline.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render } from '@testing-library/react';
import { getMonthCaption } from 'react-day-picker/test/selectors';
import Example from '@examples/styling-inline';
const today = new Date(2021, 10, 25);
freezeBeforeAll(today);
beforeEach... | 3,746 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/testcase-1567.test.tsx | import React from 'react';
import { user } from '@site/test/user';
import { act, render, screen } from '@testing-library/react';
import Example from '@examples/testcase-1567';
beforeEach(async () => {
render(<Example />);
await act(() => user.tab());
await act(() => user.tab());
await act(() => user.tab());
... | 3,747 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/useinput.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render, screen } from '@testing-library/react';
import { addDays, format } from 'date-fns';
import {
getAllSelectedDays,
getDayButton
} from 'r... | 3,748 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/weeknumber-custom.test.tsx | import React from 'react';
import { freezeBeforeAll } from '@site/test/utils';
import { render, screen } from '@testing-library/react';
import Example from '@examples/weeknumber-custom';
const today = new Date(2022, 0, 1);
freezeBeforeAll(today);
beforeEach(() => render(<Example />));
describe('when displaying Jan... | 3,749 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/weeknumber.test.tsx | import React from 'react';
import { axe } from '@site/test/axe';
import { user } from '@site/test/user';
import { freezeBeforeAll } from '@site/test/utils';
import { act, render } from '@testing-library/react';
import { getTableFooter, getWeekButton } from 'react-day-picker/test/selectors';
import Example from '@exa... | 3,750 |
0 | petrpan-code/gpbl/react-day-picker/website/test-integration/examples | petrpan-code/gpbl/react-day-picker/website/test-integration/examples/__snapshots__/range.test.tsx.snap | // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should match the snapshot 1`] = `
<div>
<div
class="rdp "
id="test"
>
<div
class="rdp-months"
>
<div
class="rdp-month rdp-caption_start rdp-caption_end"
>
<div
class="rdp-caption"
>
<di... | 3,751 |
0 | petrpan-code/gpbl/react-day-picker/website | petrpan-code/gpbl/react-day-picker/website/test/axe.ts | import { configureAxe } from 'jest-axe';
export const axe = configureAxe({
rules: {
'aria-allowed-role': { enabled: false }
}
});
| 3,752 |
0 | petrpan-code/gpbl/react-day-picker/website | petrpan-code/gpbl/react-day-picker/website/test/setup.ts | import '@testing-library/jest-dom';
import 'jest-axe/extend-expect';
| 3,753 |
0 | petrpan-code/gpbl/react-day-picker/website | petrpan-code/gpbl/react-day-picker/website/test/user.ts | import { userEvent } from '@testing-library/user-event';
export const user = userEvent.setup();
| 3,754 |
0 | petrpan-code/gpbl/react-day-picker/website/test | petrpan-code/gpbl/react-day-picker/website/test/utils/focusDaysGrid.ts | import { fireEvent } from '@testing-library/dom';
import { act } from '@testing-library/react';
import { getFocusedElement } from 'react-day-picker/test/selectors';
import { user } from '../user';
export async function focusDaysGrid() {
// Make sure nothing is focused
await act(() => fireEvent.blur(getFocusedEle... | 3,755 |
0 | petrpan-code/gpbl/react-day-picker/website/test | petrpan-code/gpbl/react-day-picker/website/test/utils/freezeBeforeAll.ts | import MockDate from 'mockdate';
export function freezeBeforeAll(date: Date) {
beforeAll(() => MockDate.set(date));
afterAll(() => MockDate.reset());
}
| 3,756 |
0 | petrpan-code/gpbl/react-day-picker/website/test | petrpan-code/gpbl/react-day-picker/website/test/utils/index.ts | export * from './freezeBeforeAll';
| 3,757 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/.eslintignore | dist/*
demo/*
spec/*
| 3,758 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/.eslintrc.js | module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
commonjs: true,
es6: true,
node: true
},
extends: [
'plugin:@typescript-eslint/recommended'
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
rules: {
'indent': ['error', 2],
'm... | 3,759 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/.npmignore | # Source & demo
src/
demo/
spec/
# dependencies
yarn.lock
# Configuration
.gitignore
.jscsrc
.npmignore
.travis.yml
.eslint*
.vscode
Gruntfile.js
ISSUE_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
freelancer
karma.conf.js
protractor.conf.js
tsconfig.json
webpack.config.js
## From .gitignore:
*.log
*.tgz
*.zip
coverage/
node... | 3,760 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/.travis.yml | language: node_js
node_js:
- 10.19.0
dist: trusty
sudo: required
addons:
chrome: stable
#before_install:
#- yarn global add protractor@3.3.0
cache:
directories:
- node_modules
install:
#- yarn global add npm@6.0.1
- yarn global add grunt-cli
#- yarn add selenium-webdriver
- yarn
#- ./node_modules/protractor/bin... | 3,761 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/Gruntfile.js | module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-copy');
// grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt... | 3,762 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/ISSUE_TEMPLATE.md | ## Subject of the issue
Describe your issue here.
If unsure if lib bug, use slack channel instead: https://join.slack.com/t/gridstackjs/shared_invite/zt-27q0rwf80-5vCt81Z_hfVgpRW7L17MnQ
## Your environment
* version of gridstack.js - DON'T SAY LATEST as that doesn't mean anything a month/year from now.
* which browser... | 3,763 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/LICENSE | MIT License
Copyright (c) 2019-2023 Alain Dumesny. v0.4.0 and older (c) 2014-2018 Pavel Reznikov, Dylan Weiss
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including withou... | 3,764 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/PULL_REQUEST_TEMPLATE.md | ### Description
Please explain the changes you made here. Include an example of what your changes fix or how to use the changes.
### Checklist
- [ ] Created tests which fail without the change (if possible)
- [ ] All tests passing (`yarn test`)
- [ ] Extended the README / documentation, if necessary
| 3,765 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/README.md | # gridstack.js
[](https://www.npmjs.com/package/gridstack)
[](https://coveralls.io/github/gridstack/gridstack.js?branch=develop)
[ {
config.set({
// see https://www.npmjs.com/package/karma-typescript
karmaTypescriptConfig: {
compilerOptions: {
lib: ['dom', 'es6'],
},
// bundlerOptions: {
// resolve: {
// alias: {
// }
//... | 3,767 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/package.json | {
"name": "gridstack",
"version": "10.0.0-dev",
"license": "MIT",
"author": "Alain Dumesny <alaind831+github@gmail.com> (https://github.com/adumesny)",
"contributors": [
"Pavel Reznikov <pashka.reznikov@gmail.com>",
"Dylan Weiss <dylan.weiss@gmail.com> (https://dylandreams.com)"
],
"description": ... | 3,768 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/protractor.conf.js | exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['spec/e2e/*-spec.js'],
capabilities: {
browserName: 'firefox',
version: '',
platform: 'ANY',
loggingPrefs: {
browser: 'SEVERE'
}
},
};
| 3,769 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/tsconfig.json | {
"compilerOptions": {
// "allowJs": true,
// "esModuleInterop": true,
// "allowSyntheticDefaultImports": true
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"inlineSources": true,
"lib": [ "es6", "es2015", "dom" ],
"module": "ES2020",
"noIm... | 3,770 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/webpack.config.js | const path = require('path');
module.exports = {
entry: {
'gridstack-all': './src/gridstack.ts',
},
mode: 'production', // production vs development
devtool: 'source-map',
// devtool: 'eval-source-map', // for best (large .js) debugging. see https://survivejs.com/webpack/building/source-maps/
module: {... | 3,771 |
0 | petrpan-code/gridstack | petrpan-code/gridstack/gridstack.js/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@ampproject/remapping@^2.2.0":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.1.tgz#99e8e11851128b8702cd57c33684f1d0f260b630"
integrity sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBn... | 3,772 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/.editorconfig | # Editor configuration, see https://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
[*.ts]
quote_type = single
[*.md]
max_line_length = off
trim_trailing_whitespace = false
| 3,773 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/README.md | # Angular wrapper
The Angular [wrapper component](projects/lib/src/lib/gridstack.component.ts) <gridstack> is a better way to use Gridstack, but alternative raw [ngFor](projects/demo/src/app/ngFor.ts) or [simple](projects/demo/src/app/simple.ts) demos are also given.
# Dynamic grid items
this is the recommended way i... | 3,774 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/README_build.md | # GridstackLib
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.10.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
## Code scaffolding
Run... | 3,775 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/angular.json | {
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"lib": {
"projectType": "library",
"root": "projects/lib",
"sourceRoot": "projects/lib/src",
"prefix": "lib",
"architect": {
"build": {
... | 3,776 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/package.json | {
"name": "gridstack-lib",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"dependencies": {
"@angular/animations": "^14.2.0",
"@angular/common": ... | 3,777 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/tsconfig.json | /* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true,
"paths": {
"lib": [
"..... | 3,778 |
0 | petrpan-code/gridstack/gridstack.js | petrpan-code/gridstack/gridstack.js/angular/yarn.lock | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"@adobe/css-tools@^4.0.1":
version "4.3.1"
resolved "https://registry.yarnpkg.com/@adobe/css-tools/-/css-tools-4.3.1.tgz#abfccb8ca78075a2b6187345c26243c1a0842f28"
integrity sha512-/62yikz7NLScCGAAST5SHdnjaDJQBDq0M2muyRTpf2VQhw6S... | 3,779 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects | petrpan-code/gridstack/gridstack.js/angular/projects/demo/.browserslistrc | # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For the full list of supported browsers by the Angular framework, please ... | 3,780 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects | petrpan-code/gridstack/gridstack.js/angular/projects/demo/karma.conf.js | // Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... | 3,781 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects | petrpan-code/gridstack/gridstack.js/angular/projects/demo/tsconfig.app.json | /* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
| 3,782 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects | petrpan-code/gridstack/gridstack.js/angular/projects/demo/tsconfig.spec.json | /* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": [
"jasmine"
]
},
"files": [
"src/test.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.spec.ts",
"... | 3,783 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/index.html | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
</html>
| 3,784 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/main.ts | import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapMod... | 3,785 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/polyfills.ts | /**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported... | 3,786 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/styles.css | /* re-use existing demo css file we already use for the plain demos - that include gridstack.css which is required */
@import "../../../../demo/demo.css";
/* required file for gridstack 2-11 column */
@import "../../../../dist/gridstack-extra.css";
/* for two.html example from bootstrap.min.css */
.row {
display: -m... | 3,787 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/test.ts | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const requ... | 3,788 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/app.component.css | .test-container {
margin-top: 30px;
}
button.active {
color: #fff;
background-color: #007bff;
}
.text-container {
display: flex;
}
| 3,789 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/app.component.html |
<div class="button-container">
<p class="pick-info">Pick a demo to load:</p>
<button (click)="onShow(0)" [class.active]="show===0">Simple</button>
<button (click)="onShow(1)" [class.active]="show===1">ngFor case</button>
<button (click)="onShow(2)" [class.active]="show===2">ngFor custom command</button>
<but... | 3,790 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/app.component.spec.ts | import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
});
it('should create the app', ()... | 3,791 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/app.component.ts | import { Component, OnInit, ViewChild, ElementRef } from '@angular/core';
import { GridStack, GridStackOptions, GridStackWidget } from 'gridstack';
import { AngularSimpleComponent } from './simple';
import { AngularNgForTestComponent } from './ngFor';
import { AngularNgForCmdTestComponent } from './ngFor_cmd';
// NOTE... | 3,792 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/app.module.ts | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { AngularNgForTestComponent } from './ngFor';
import { AngularNgForCmdTestComponent } from './ngFor_cmd';
import { AngularSimpleComponent } from './simple';
import... | 3,793 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/dummy.component.ts | /**
* gridstack.component.ts 8.2.1
* Copyright (c) 2022 Alain Dumesny - see GridStack root license
*/
// dummy testing component that will be grid items content
import { Component, OnDestroy, Input } from '@angular/core';
import { BaseWidget, NgCompInputs } from 'gridstack/dist/angular';
@Component({
selector: ... | 3,794 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/ngFor.ts | /**
* Example using Angular ngFor to loop through items and create DOM items
*/
import { Component, AfterViewInit, Input, ViewChildren, QueryList, ElementRef } from '@angular/core';
import { GridItemHTMLElement, GridStack, GridStackNode, GridStackWidget, Utils } from 'gridstack';
// unique ids sets for each item fo... | 3,795 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/ngFor_cmd.ts | /**
* Example using Angular ngFor to loop through items and create DOM items - this uses a custom command.
* NOTE: see the simpler and better (tracks all changes) angular-ng-for-test
*/
import { Component, AfterViewInit, Input, ViewChildren, QueryList, ElementRef } from '@angular/core';
import { Subject, zip } from... | 3,796 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/app/simple.ts | /**
* Simplest Angular Example using GridStack API directly
*/
import { Component, OnInit } from '@angular/core';
import { GridStack, GridStackWidget } from 'gridstack';
@Component({
selector: 'angular-simple-test',
template: `
<p><b>SIMPLEST</b>: angular example using GridStack API directly, so not re... | 3,797 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src | petrpan-code/gridstack/gridstack.js/angular/projects/demo/src/environments/environment.ts | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
};
/*
* For easier debugging in development mode, you ... | 3,798 |
0 | petrpan-code/gridstack/gridstack.js/angular/projects | petrpan-code/gridstack/gridstack.js/angular/projects/lib/README.md | # Gs
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
## Code scaffolding
Run `ng generate component component-name --project gs` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project gs`.
> N... | 3,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.