repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/style/motion.ts
components/upload/style/motion.ts
import { Keyframes } from '@ant-design/cssinjs'; import type { UploadToken } from '.'; import { initFadeMotion } from '../../style/motion'; import type { GenerateStyle } from '../../theme/internal'; // =========================== Motion =========================== const genMotionStyle: GenerateStyle<UploadToken> = (t...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/style/dragger.ts
components/upload/style/dragger.ts
import { unit } from '@ant-design/cssinjs'; import type { UploadToken } from '.'; import type { GenerateStyle } from '../../theme/internal'; const genDraggerStyle: GenerateStyle<UploadToken> = (token) => { const { componentCls, iconCls } = token; return { [`${componentCls}-wrapper`]: { [`${componentCls...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/style/index.ts
components/upload/style/index.ts
import { resetComponent } from '../../style'; import { genCollapseMotion } from '../../style/motion'; import type { FullToken, GenerateStyle, GetDefaultToken } from '../../theme/internal'; import { genStyleHooks, mergeToken } from '../../theme/internal'; import genDraggerStyle from './dragger'; import genListStyle from...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/style/list.ts
components/upload/style/list.ts
import { unit } from '@ant-design/cssinjs'; import type { UploadToken } from '.'; import { clearFix, textEllipsis } from '../../style'; import type { GenerateStyle } from '../../theme/internal'; const genListStyle: GenerateStyle<UploadToken> = (token) => { const { componentCls, iconCls, fontSize, lineHeight, calc }...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/a11y.test.ts
components/upload/__tests__/a11y.test.ts
import accessibilityDemoTest from '../../../tests/shared/accessibilityTest'; accessibilityDemoTest('upload', { // Skip due to external dependency issue skip: ['drag-sorting.tsx', 'crop-image.tsx'], });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/requests.ts
components/upload/__tests__/requests.ts
import type { UploadProps } from '../interface'; export const successRequest: UploadProps['customRequest'] = ({ onSuccess, file }) => { setTimeout(() => { onSuccess?.(null, file); }); }; export const errorRequest: UploadProps['customRequest'] = ({ onError }) => { setTimeout(() => { onError?.(new Error('...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/type.test.tsx
components/upload/__tests__/type.test.tsx
import React from 'react'; import type { DraggerProps, UploadListProps, UploadProps } from '..'; import Upload from '..'; import Dragger from '../Dragger'; import UploadList from '../UploadList'; describe('Upload.typescript', () => { it('Upload', () => { const upload = ( <Upload> <span>click to up...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/image.test.ts
components/upload/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('Upload image', () => { imageDemoTest('upload', { skip: ['crop-image.tsx'] }); });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/upload.test.tsx
components/upload/__tests__/upload.test.tsx
import React, { useEffect, useRef } from 'react'; import type { UploadRequestOption } from '@rc-component/upload/lib/interface'; import { produce } from 'immer'; import cloneDeep from 'lodash/cloneDeep'; import type { RcFile, UploadFile, UploadProps } from '..'; import Upload from '..'; import { resetWarned } from '.....
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
true
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/demo.test.ts
components/upload/__tests__/demo.test.ts
import demoTest from '../../../tests/shared/demoTest'; demoTest('upload', { skip: ['crop-image.tsx'] });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/mock.ts
components/upload/__tests__/mock.ts
import mock from 'xhr-mock'; export function setup() { mock.setup(); mock.post('http://upload.com/', (req, res) => { req.headers({ 'content-length': 100 as unknown as string }); req.body('thisisbody'); return res; }); } export const teardown = mock.teardown.bind(mock);
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/demo-extend.test.ts
components/upload/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('upload', { skip: ['crop-image.tsx', 'drag-sorting.tsx'] });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/uploadlist.test.tsx
components/upload/__tests__/uploadlist.test.tsx
import React from 'react'; import { ConfigProvider } from 'antd'; import type { UploadFile, UploadProps } from '..'; import Upload from '..'; import { act, fireEvent, render, waitFakeTimer, waitFor } from '../../../tests/utils'; import type { FormInstance } from '../../form'; import Form from '../../form'; import type...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
true
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/dragger.test.tsx
components/upload/__tests__/dragger.test.tsx
import React from 'react'; import Upload from '..'; import mountTest from '../../../tests/shared/mountTest'; import { act, fireEvent, render, waitFor } from '../../../tests/utils'; import { setup, teardown } from './mock'; describe('Upload.Dragger', () => { mountTest(Upload.Dragger); beforeEach(() => setup()); ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/__tests__/semantic.test.tsx
components/upload/__tests__/semantic.test.tsx
import React from 'react'; import Upload from '..'; import type { UploadProps } from '..'; import { render } from '../../../tests/utils'; import ConfigProvider from '../../config-provider'; describe('Upload.Semantic', () => { it('should work with classNames object', () => { const { container } = render( <...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/upload-manually.tsx
components/upload/demo/upload-manually.tsx
import React, { useState } from 'react'; import { UploadOutlined } from '@ant-design/icons'; import { Button, message, Upload } from 'antd'; import type { GetProp, UploadFile, UploadProps } from 'antd'; type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0]; const App: React.FC = () => { const [fileLis...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/paste.tsx
components/upload/demo/paste.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, message, Upload } from 'antd'; const props: UploadProps = { name: 'file', pastable: true, action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', headers: { aut...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/crop-image.tsx
components/upload/demo/crop-image.tsx
import React, { useState } from 'react'; import { Upload } from 'antd'; import type { GetProp, UploadFile, UploadProps } from 'antd'; import ImgCrop from 'antd-img-crop'; type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0]; const App: React.FC = () => { const [fileList, setFileList] = useState<Uploa...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/_semantic.tsx
components/upload/demo/_semantic.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, Upload } from 'antd'; import SemanticPreview from '../../../.dumi/theme/common/SemanticPreview'; import useLocale from '../../../.dumi/hooks/useLocale'; const locales = { cn: { ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/avatar.tsx
components/upload/demo/avatar.tsx
import React, { useState } from 'react'; import { LoadingOutlined, PlusOutlined } from '@ant-design/icons'; import { Flex, message, Upload } from 'antd'; import type { GetProp, UploadProps } from 'antd'; type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0]; const getBase64 = (img: FileType, callback: (...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/upload-with-aliyun-oss.tsx
components/upload/demo/upload-with-aliyun-oss.tsx
import React, { useEffect, useState } from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadFile, UploadProps } from 'antd'; import { App, Button, Form, Upload } from 'antd'; interface OSSDataType { dir: string; expire: string; host: string; accessId: string; policy: string; ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/preview-file.tsx
components/upload/demo/preview-file.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, Upload } from 'antd'; const props: UploadProps = { action: '//jsonplaceholder.typicode.com/posts/', listType: 'picture', previewFile(file) { console.log('Your upload file:'...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/upload-custom-action-icon.tsx
components/upload/demo/upload-custom-action-icon.tsx
import React from 'react'; import { StarOutlined, UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, Upload } from 'antd'; const props: UploadProps = { action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', onChange({ file, fileList }) { if (file.sta...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/defaultFileList.tsx
components/upload/demo/defaultFileList.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, Upload } from 'antd'; const props: UploadProps = { action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', onChange({ file, fileList }) { if (file.status !== 'uploa...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/picture-circle.tsx
components/upload/demo/picture-circle.tsx
import React, { useState } from 'react'; import { PlusOutlined } from '@ant-design/icons'; import { Image, Upload } from 'antd'; import type { GetProp, UploadFile, UploadProps } from 'antd'; type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0]; const getBase64 = (file: FileType): Promise<string> => n...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/fileList.tsx
components/upload/demo/fileList.tsx
import React, { useState } from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadFile, UploadProps } from 'antd'; import { Button, Upload } from 'antd'; const App: React.FC = () => { const [fileList, setFileList] = useState<UploadFile[]>([ { uid: '-1', name: 'xxx.png',...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/picture-card.tsx
components/upload/demo/picture-card.tsx
import React, { useState } from 'react'; import { PlusOutlined } from '@ant-design/icons'; import { Image, Upload } from 'antd'; import type { GetProp, UploadFile, UploadProps } from 'antd'; type FileType = Parameters<GetProp<UploadProps, 'beforeUpload'>>[0]; const getBase64 = (file: FileType): Promise<string> => n...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/debug-disabled.tsx
components/upload/demo/debug-disabled.tsx
import React from 'react'; import { InboxOutlined, PlusOutlined, UploadOutlined } from '@ant-design/icons'; import { Button, Space, Upload } from 'antd'; import type { UploadFile } from 'antd'; const { Dragger } = Upload; const fileList: UploadFile[] = [ { uid: '-1', name: 'image.png', status: 'done', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/transform-file.tsx
components/upload/demo/transform-file.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, Upload } from 'antd'; const props: UploadProps = { action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', listType: 'picture', beforeUpload(file) { return new Pr...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/picture-style.tsx
components/upload/demo/picture-style.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import { Button, Upload } from 'antd'; import type { UploadFile } from 'antd'; const fileList: UploadFile[] = [ { uid: '0', name: 'xxx.png', status: 'uploading', percent: 33, }, { uid: '-1', name: 'yyy.png', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/upload-png-only.tsx
components/upload/demo/upload-png-only.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, message, Upload } from 'antd'; const props: UploadProps = { beforeUpload: (file) => { const isPNG = file.type === 'image/png'; if (!isPNG) { message.error(`${file.nam...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/directory.tsx
components/upload/demo/directory.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import { Button, Upload } from 'antd'; const App: React.FC = () => ( <Upload action="https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload" directory> <Button icon={<UploadOutlined />}>Upload Directory</Button> </Upload> ); export...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/component-token.tsx
components/upload/demo/component-token.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, ConfigProvider, Upload } from 'antd'; const props: UploadProps = { action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', onChange({ file, fileList }) { if (file.s...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/file-type.tsx
components/upload/demo/file-type.tsx
import React, { useState } from 'react'; import { FileExcelTwoTone, FilePdfTwoTone, FileWordTwoTone, LoadingOutlined, PaperClipOutlined, PictureTwoTone, PlusOutlined, } from '@ant-design/icons'; import { Image, Upload } from 'antd'; import type { GetProp, UploadFile, UploadProps } from 'antd'; type FileT...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/customize-progress-bar.tsx
components/upload/demo/customize-progress-bar.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, message, Upload } from 'antd'; const props: UploadProps = { name: 'file', action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', headers: { authorization: 'autho...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/basic.tsx
components/upload/demo/basic.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { Button, message, Upload } from 'antd'; const props: UploadProps = { name: 'file', action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', headers: { authorization: 'autho...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/drag-sorting.tsx
components/upload/demo/drag-sorting.tsx
import React, { useState } from 'react'; import { UploadOutlined } from '@ant-design/icons'; import type { DragEndEvent } from '@dnd-kit/core'; import { DndContext, PointerSensor, useSensor } from '@dnd-kit/core'; import { arrayMove, SortableContext, useSortable, verticalListSortingStrategy, } from '@dnd-kit/so...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/max-count.tsx
components/upload/demo/max-count.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import { Button, Space, Upload } from 'antd'; const App: React.FC = () => ( <Space vertical style={{ width: '100%' }} size="large"> <Upload action="https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload" listType="picture"...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/drag.tsx
components/upload/demo/drag.tsx
import React from 'react'; import { InboxOutlined } from '@ant-design/icons'; import type { UploadProps } from 'antd'; import { message, Upload } from 'antd'; const { Dragger } = Upload; const props: UploadProps = { name: 'file', multiple: true, action: 'https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/upload/demo/style-class.tsx
components/upload/demo/style-class.tsx
import React from 'react'; import { UploadOutlined } from '@ant-design/icons'; import { Button, Flex, Upload } from 'antd'; import type { UploadProps } from 'antd'; import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token }) => ({ root: { borderRadius: token.borderRadius, padding: t...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/util.ts
components/date-picker/util.ts
import * as React from 'react'; import type { PickerMode } from '@rc-component/picker/interface'; import useSelectIcons from '../select/useIcons'; import type { PickerLocale, PickerProps } from './generatePicker'; export function getPlaceholder( locale: PickerLocale, picker?: PickerMode, customizePlaceholder?: ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/index.tsx
components/date-picker/index.tsx
import dayjsGenerateConfig from '@rc-component/picker/generate/dayjs'; import type { Dayjs } from 'dayjs'; import genPurePanel from '../_util/PurePanel'; import generatePicker from './generatePicker'; import type { RangePickerProps as BaseRangePickerProps, PickerProps, PickerPropsWithMultiple, } from './generate...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/PickerButton.tsx
components/date-picker/PickerButton.tsx
import * as React from 'react'; import Button from '../button/Button'; import type { ButtonProps } from '../button/Button'; const PickerButton: React.FC<Readonly<ButtonProps>> = (props) => ( <Button size="small" type="primary" {...props} /> ); export default PickerButton;
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/style/variants.ts
components/date-picker/style/variants.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import { genBorderlessStyle, genFilledStyle, genOutlinedStyle, genUnderlinedStyle, } from '../../input/style/variants'; import type { PickerToken } from './token'; const genVariantsStyle = (token: PickerToken): C...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/style/util.ts
components/date-picker/style/util.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import type { SelectToken } from '../../select/style/token'; import { resetIcon } from '../../style'; /** * Get multiple selector needed style. The calculation: * * ContainerPadding = BasePadding - ItemMargin * * Bo...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/style/token.ts
components/date-picker/style/token.ts
import { FastColor } from '@ant-design/fast-color'; import type { SharedComponentToken, SharedInputToken } from '../../input/style/token'; import { initComponentToken } from '../../input/style/token'; import type { MultipleSelectorToken, SelectorToken } from '../../select/style/token'; import type { ArrowToken } from ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/style/index.ts
components/date-picker/style/index.ts
import type { CSSObject } from '@ant-design/cssinjs'; import { unit } from '@ant-design/cssinjs'; import { genPlaceholderStyle, initInputToken } from '../../input/style'; import { resetComponent, textEllipsis } from '../../style'; import { genCompactItemStyle } from '../../style/compact-item'; import { initMoveMotio...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/style/panel.ts
components/date-picker/style/panel.ts
import { unit } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs'; import { FastColor } from '@ant-design/fast-color'; import type { GenerateStyle } from '../../theme/internal'; import type { PickerToken, SharedPickerToken } from './token'; const genPickerCellInnerStyle = (token: Shared...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/style/multiple.ts
components/date-picker/style/multiple.ts
import type { CSSInterpolation } from '@ant-design/cssinjs'; import { unit } from '@ant-design/cssinjs'; import { mergeToken } from '../../theme/internal'; import type { GenerateStyle } from '../../theme/internal'; import type { PickerToken } from './token'; import { genOverflowStyle, getMultipleSelectorUnit } from '....
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/hooks/useMergedPickerSemantic.ts
components/date-picker/hooks/useMergedPickerSemantic.ts
import * as React from 'react'; import { clsx } from 'clsx'; import { useMergeSemantic } from '../../_util/hooks'; import type { AnyObject } from '../../_util/type'; import { useComponentConfig } from '../../config-provider/context'; import type { RequiredSemanticPicker } from '../generatePicker/interface'; const use...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/a11y.test.ts
components/date-picker/__tests__/a11y.test.ts
import accessibilityDemoTest from '../../../tests/shared/accessibilityTest'; accessibilityDemoTest('date-picker');
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/DatePicker.test.tsx
components/date-picker/__tests__/DatePicker.test.tsx
import type { TriggerProps } from '@rc-component/trigger'; import dayjs from 'dayjs'; import 'dayjs/locale/mk'; // to test local in 'prop locale should works' test case import React from 'react'; import { CloseCircleFilled } from '@ant-design/icons'; import dayJsGenerateConfig from '@rc-component/picker/generate/dayj...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/utils.ts
components/date-picker/__tests__/utils.ts
import type { render } from '../../../tests/utils'; import { fireEvent } from '../../../tests/utils'; export function openPicker(wrapper: ReturnType<typeof render>, index = 0) { const inputEle = wrapper.container?.querySelectorAll<HTMLInputElement>('input')?.[index]; fireEvent.mouseDown(inputEle); fireEvent.focu...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/WeekPicker.test.tsx
components/date-picker/__tests__/WeekPicker.test.tsx
import React from 'react'; import DatePicker from '..'; import focusTest from '../../../tests/shared/focusTest'; import { render, resetMockDate, setMockDate } from '../../../tests/utils'; const { WeekPicker } = DatePicker; describe('WeekPicker', () => { beforeEach(() => { setMockDate(); }); afterEach(() =...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/QuarterPicker.test.tsx
components/date-picker/__tests__/QuarterPicker.test.tsx
import React from 'react'; import DatePicker from '..'; import { resetWarned } from '../../_util/warning'; import { render } from '../../../tests/utils'; const { QuarterPicker } = DatePicker; describe('QuarterPicker', () => { it('should support style prop', () => { resetWarned(); const warnSpy = jest.spyOn...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/type.test.tsx
components/date-picker/__tests__/type.test.tsx
import * as React from 'react'; import dayjs from 'dayjs'; import type { Dayjs } from 'dayjs'; import DatePicker from '..'; describe('DatePicker.typescript', () => { it('DatePicker ref methods', () => { const datePicker = ( <DatePicker ref={(picker) => { picker?.focus(); picker...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/image.test.ts
components/date-picker/__tests__/image.test.ts
import { imageDemoTest } from '../../../tests/shared/imageTest'; describe('DatePicker image', () => { imageDemoTest('date-picker', { openTriggerClassName: 'ant-picker-dropdown', }); });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/other.test.tsx
components/date-picker/__tests__/other.test.tsx
import dayjs from 'dayjs'; import 'dayjs/locale/zh-cn'; import React from 'react'; import customParseFormat from 'dayjs/plugin/customParseFormat'; import DatePicker from '..'; import { render } from '../../../tests/utils'; import ConfigProvider from '../../config-provider'; import type { Locale } from '../../locale'...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/RangePicker.test.tsx
components/date-picker/__tests__/RangePicker.test.tsx
import React, { useState } from 'react'; import { CloseCircleFilled } from '@ant-design/icons'; import { warning } from '@rc-component/util'; import dayjs from 'dayjs'; import customParseFormat from 'dayjs/plugin/customParseFormat'; import DatePicker from '..'; import focusTest from '../../../tests/shared/focusTest'; ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/mount.test.ts
components/date-picker/__tests__/mount.test.ts
import DatePicker from '..'; import mountTest from '../../../tests/shared/mountTest'; import rtlTest from '../../../tests/shared/rtlTest'; const { MonthPicker, WeekPicker, RangePicker } = DatePicker; describe('mount', () => { mountTest(DatePicker); mountTest(MonthPicker); mountTest(WeekPicker); mountTest(Rang...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/demo-extend.test.ts
components/date-picker/__tests__/demo-extend.test.ts
import { extendTest } from '../../../tests/shared/demoTest'; extendTest('date-picker', { skip: ['locale.tsx', 'component-token.tsx'] });
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/demo.test.tsx
components/date-picker/__tests__/demo.test.tsx
import * as React from 'react'; import dayjs from 'dayjs'; import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest'; demoTest('date-picker', { skip: ['locale.tsx', 'component-token.tsx'], testRootProps: false }); rootPropsTest('date-picker', (DatePicker, props) => <DatePicker {...props} value={dayjs(...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/__tests__/semantic.test.tsx
components/date-picker/__tests__/semantic.test.tsx
import React from 'react'; import DatePicker from '..'; import { render } from '../../../tests/utils'; describe('DatePicker.Semantic', () => { describe('inline', () => { function test(name: string, renderFn: (props: any) => React.ReactElement) { it(name, () => { const classNames = { root...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/en_GB.ts
components/date-picker/locale/en_GB.ts
import CalendarLocale from '@rc-component/picker/locale/en_GB'; import TimePickerLocale from '../../time-picker/locale/en_GB'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Select date', yearPlaceholder: 'Select year...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/nb_NO.ts
components/date-picker/locale/nb_NO.ts
import CalendarLocale from '@rc-component/picker/locale/nb_NO'; import TimePickerLocale from '../../time-picker/locale/nb_NO'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Velg dato', yearPlaceholder: 'Velg år', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/km_KH.ts
components/date-picker/locale/km_KH.ts
import CalendarLocale from '@rc-component/picker/locale/km_KH'; import TimePickerLocale from '../../time-picker/locale/km_KH'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'រើសថ្ងៃ', yearPlaceholder: 'រើសឆ្នាំ', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/hi_IN.ts
components/date-picker/locale/hi_IN.ts
import CalendarLocale from '@rc-component/picker/locale/hi_IN'; import TimePickerLocale from '../../time-picker/locale/hi_IN'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'तारीख़ चुनें', yearPlaceholder: 'वर्ष चुनें...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/vi_VN.ts
components/date-picker/locale/vi_VN.ts
import CalendarLocale from '@rc-component/picker/locale/vi_VN'; import TimePickerLocale from '../../time-picker/locale/vi_VN'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Chọn thời điểm', yearPlaceholder: 'Chọn năm...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/kk_KZ.ts
components/date-picker/locale/kk_KZ.ts
import CalendarLocale from '@rc-component/picker/locale/kk_KZ'; import TimePickerLocale from '../../time-picker/locale/kk_KZ'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Күнді таңдаңыз', yearPlaceholder: 'Жылды та...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ms_MY.ts
components/date-picker/locale/ms_MY.ts
import CalendarLocale from '@rc-component/picker/locale/ms_MY'; import TimePickerLocale from '../../time-picker/locale/ms_MY'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Pilih tarikh', rangePlaceholder: ['Tarikh m...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/fr_BE.ts
components/date-picker/locale/fr_BE.ts
import CalendarLocale from '@rc-component/picker/locale/fr_BE'; import TimePickerLocale from '../../time-picker/locale/fr_BE'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Sélectionner une date', yearPlaceholder: 'S...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ar_EG.ts
components/date-picker/locale/ar_EG.ts
import CalendarLocale from '@rc-component/picker/locale/ar_EG'; import TimePickerLocale from '../../time-picker/locale/ar_EG'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'اختيار التاريخ', rangePlaceholder: ['البداي...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/mk_MK.ts
components/date-picker/locale/mk_MK.ts
import CalendarLocale from '@rc-component/picker/locale/mk_MK'; import TimePickerLocale from '../../time-picker/locale/mk_MK'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Избери датум', rangePlaceholder: ['Од датум...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ml_IN.ts
components/date-picker/locale/ml_IN.ts
import CalendarLocale from '@rc-component/picker/locale/ml_IN'; import TimePickerLocale from '../../time-picker/locale/ml_IN'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'തിയതി തിരഞ്ഞെടുക്കുക', yearPlaceholder: 'വർ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ca_ES.ts
components/date-picker/locale/ca_ES.ts
import CalendarLocale from '@rc-component/picker/locale/ca_ES'; import TimePickerLocale from '../../time-picker/locale/ca_ES'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Seleccionar data', rangePlaceholder: ['Data...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/th_TH.ts
components/date-picker/locale/th_TH.ts
import CalendarLocale from '@rc-component/picker/locale/th_TH'; import TimePickerLocale from '../../time-picker/locale/th_TH'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'เลือกวันที่', yearPlaceholder: 'เลือกปี', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/zh_TW.ts
components/date-picker/locale/zh_TW.ts
import CalendarLocale from '@rc-component/picker/locale/zh_TW'; import TimePickerLocale from '../../time-picker/locale/zh_TW'; import type { PickerLocale } from '../generatePicker'; // 统一合并为完整的 Locale const locale: PickerLocale = { lang: { placeholder: '請選擇日期', yearPlaceholder: '請選擇年份', quarterPlacehold...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/it_IT.ts
components/date-picker/locale/it_IT.ts
import CalendarLocale from '@rc-component/picker/locale/it_IT'; import TimePickerLocale from '../../time-picker/locale/it_IT'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Selezionare la data', rangePlaceholder: ["D...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/kmr_IQ.ts
components/date-picker/locale/kmr_IQ.ts
import CalendarLocale from '@rc-component/picker/locale/kmr_IQ'; import TimePickerLocale from '../../time-picker/locale/kmr_IQ'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Dîrok hilbijêre', rangePlaceholder: ['Dîr...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ja_JP.ts
components/date-picker/locale/ja_JP.ts
import CalendarLocale from '@rc-component/picker/locale/ja_JP'; import TimePickerLocale from '../../time-picker/locale/ja_JP'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: '日付を選択', yearPlaceholder: '年を選択', quarte...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/nl_NL.ts
components/date-picker/locale/nl_NL.ts
import CalendarLocale from '@rc-component/picker/locale/nl_NL'; import TimePickerLocale from '../../time-picker/locale/nl_NL'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { monthPlaceholder: 'Selecteer maand', placeholder: 'Select...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ro_RO.ts
components/date-picker/locale/ro_RO.ts
import CalendarLocale from '@rc-component/picker/locale/ro_RO'; import TimePickerLocale from '../../time-picker/locale/ro_RO'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Selectează data', rangePlaceholder: ['Data ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/el_GR.ts
components/date-picker/locale/el_GR.ts
import CalendarLocale from '@rc-component/picker/locale/el_GR'; import TimePickerLocale from '../../time-picker/locale/el_GR'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Επιλέξτε ημερομηνία', yearPlaceholder: 'Επι...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/my_MM.ts
components/date-picker/locale/my_MM.ts
import CalendarLocale from '@rc-component/picker/locale/my_MM'; import TimePickerLocale from '../../time-picker/locale/my_MM'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'ရက်စွဲကို ရွေးပါ။', yearPlaceholder: 'နှစ်က...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/ko_KR.ts
components/date-picker/locale/ko_KR.ts
import CalendarLocale from '@rc-component/picker/locale/ko_KR'; import TimePickerLocale from '../../time-picker/locale/ko_KR'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: '날짜 선택', yearPlaceholder: '연도 선택', quart...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/hr_HR.ts
components/date-picker/locale/hr_HR.ts
import CalendarLocale from '@rc-component/picker/locale/hr_HR'; import TimePickerLocale from '../../time-picker/locale/hr_HR'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Odaberite datum', yearPlaceholder: 'Odaberi...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/et_EE.ts
components/date-picker/locale/et_EE.ts
import CalendarLocale from '@rc-component/picker/locale/et_EE'; import TimePickerLocale from '../../time-picker/locale/et_EE'; import type { PickerLocale } from '../generatePicker'; // 统一合并为完整的 Locale const locale: PickerLocale = { lang: { placeholder: 'Vali kuupäev', rangePlaceholder: ['Algus kuupäev', 'Lõ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/de_DE.ts
components/date-picker/locale/de_DE.ts
import CalendarLocale from '@rc-component/picker/locale/de_DE'; import TimePickerLocale from '../../time-picker/locale/de_DE'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Datum auswählen', rangePlaceholder: ['Start...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/pt_BR.ts
components/date-picker/locale/pt_BR.ts
import CalendarLocale from '@rc-component/picker/locale/pt_BR'; import TimePickerLocale from '../../time-picker/locale/pt_BR'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Selecionar data', rangePlaceholder: ['Data ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/cs_CZ.ts
components/date-picker/locale/cs_CZ.ts
import CalendarLocale from '@rc-component/picker/locale/cs_CZ'; import TimePickerLocale from '../../time-picker/locale/cs_CZ'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Vybrat datum', rangePlaceholder: ['Od', 'Do...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/id_ID.ts
components/date-picker/locale/id_ID.ts
import CalendarLocale from '@rc-component/picker/locale/id_ID'; import TimePickerLocale from '../../time-picker/locale/id_ID'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Pilih tanggal', yearPlaceholder: 'Pilih tah...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/mr_IN.ts
components/date-picker/locale/mr_IN.ts
import CalendarLocale from '@rc-component/picker/locale/mr_IN'; import TimePickerLocale from '../../time-picker/locale/mr_IN'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'दिनांक निवडा', yearPlaceholder: 'वर्ष निवडा...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/uz_UZ.ts
components/date-picker/locale/uz_UZ.ts
import CalendarLocale from '@rc-component/picker/locale/uz_UZ'; import TimePickerLocale from '../../time-picker/locale/uz_UZ'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Sanani tanlang', yearPlaceholder: 'Yilni ta...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/da_DK.ts
components/date-picker/locale/da_DK.ts
import CalendarLocale from '@rc-component/picker/locale/da_DK'; import TimePickerLocale from '../../time-picker/locale/da_DK'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Vælg dato', rangePlaceholder: ['Startdato',...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/sr_RS.ts
components/date-picker/locale/sr_RS.ts
import CalendarLocale from '@rc-component/picker/locale/sr_RS'; import TimePickerLocale from '../../time-picker/locale/sr_RS'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Izaberi datum', yearPlaceholder: 'Izaberi g...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/kn_IN.ts
components/date-picker/locale/kn_IN.ts
import CalendarLocale from '@rc-component/picker/locale/kn_IN'; import TimePickerLocale from '../../time-picker/locale/kn_IN'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'ದಿನಾಂಕ ಆಯ್ಕೆಮಾಡಿ', yearPlaceholder: 'ವರ್ಷ ಆ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/sv_SE.ts
components/date-picker/locale/sv_SE.ts
import CalendarLocale from '@rc-component/picker/locale/sv_SE'; import TimePickerLocale from '../../time-picker/locale/sv_SE'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Välj datum', yearPlaceholder: 'Välj år', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/tr_TR.ts
components/date-picker/locale/tr_TR.ts
import CalendarLocale from '@rc-component/picker/locale/tr_TR'; import TimePickerLocale from '../../time-picker/locale/tr_TR'; import type { PickerLocale } from '../generatePicker'; // Merge into a locale object const locale: PickerLocale = { lang: { placeholder: 'Tarih seç', yearPlaceholder: 'Yıl seç', ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/sk_SK.ts
components/date-picker/locale/sk_SK.ts
import CalendarLocale from '@rc-component/picker/locale/sk_SK'; import TimePickerLocale from '../../time-picker/locale/sk_SK'; import type { PickerLocale } from '../generatePicker'; // 统一合并为完整的 Locale const locale: PickerLocale = { lang: { placeholder: 'Vybrať dátum', rangePlaceholder: ['Od', 'Do'], ......
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false
ant-design/ant-design
https://github.com/ant-design/ant-design/blob/283b2822e0c371d083a1eaf51cfb1120c5cc4ffe/components/date-picker/locale/by_BY.ts
components/date-picker/locale/by_BY.ts
import CalendarLocale from '@rc-component/picker/locale/by_BY'; import TimePickerLocale from '../../time-picker/locale/by_BY'; import type { PickerLocale } from '../generatePicker'; const locale: PickerLocale = { lang: { placeholder: 'Выберыце дату', yearPlaceholder: 'Выберыце год', quarterPlaceholder: ...
typescript
MIT
283b2822e0c371d083a1eaf51cfb1120c5cc4ffe
2026-01-04T15:25:31.760576Z
false