@loadsmart/loadsmart-ui 6.0.0 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DragDropFile.context-0f0ede42.js.map +1 -1
- package/dist/components/DatePicker/useDatePicker.d.ts +39 -37
- package/dist/components/DatePicker/useDateRangePicker.d.ts +60 -57
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/miranda-compatibility.theme-97e29e8e.js.map +1 -1
- package/dist/testing/index.js.map +1 -1
- package/package.json +58 -58
- package/src/components/Link/Link.test.tsx +2 -2
- package/src/components/TopNavigation/Menu/Menu.test.tsx +33 -0
- package/src/components/TopNavigation/Menu/MenuItemDropdown.tsx +6 -2
- package/src/components/TopNavigation/TopNavigation.stories.tsx +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DragDropFile.context-0f0ede42.js","sources":["../node_modules/tslib/tslib.es6.js","../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.push(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.push(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps): JSX.Element => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(() => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }), [\n fileList,\n onFilesAdded,\n onRemoveFile,\n onRetryUpload,\n ])\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"names":["__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","__await","v","this","DragDropFileContext","createContext","undefined","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","useCallback","removedItem","index","slice","contextValue","useMemo","React","createElement","Provider","thisArg","_arguments","generator","asyncIterator","g","apply","q","verb","n","Promise","a","b","push","resume","r","resolve","then","fulfill","reject","settle","e","f","shift","d","P","fulfilled","step","rejected","result","t","p","Object","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","propertyIsEnumerable","context","useContext","Error"],"mappings":"uHAwKO,SAASA,EAASC,GACrB,IAAIC,EAAsB,mBAAXC,QAAyBA,OAAOC,SAAUC,EAAIH,GAAKD,EAAEC,GAAII,EAAI,EAC5E,GAAID,EAAG,OAAOA,EAAEE,KAAKN,GACrB,GAAIA,GAAyB,iBAAbA,EAAEO,OAAqB,MAAO,CAC1CC,KAAM,WAEF,OADIR,GAAKK,GAAKL,EAAEO,SAAQP,OAAI,GACrB,CAAES,MAAOT,GAAKA,EAAEK,KAAMK,MAAOV,EACvC,GAEL,MAAM,IAAIW,UAAUV,EAAI,0BAA4B,kCACxD,CA6CO,SAASW,EAAQC,GACpB,OAAOC,gBAAgBF,GAAWE,KAAKD,EAAIA,EAAGC,MAAQ,IAAIF,EAAQC,EACtE,OC7NaE,EAAsBC,EAAaA,mBAAuCC,8DAEnD,EAClCC,WACAC,eACAC,gBACAC,gBACAC,eAEA,MAAMC,EAAeC,EAAAA,aACnB,CAACC,EAA6BC,KAC5BN,EAAc,IAAIF,EAASS,MAAM,EAAGD,MAAWR,EAASS,MAAMD,EAAQ,IAAKD,EAAaC,EAAM,GAEhG,CAACR,IAGGU,EAAeC,EAAOA,SAAC,MAASX,WAAUC,eAAcI,eAAcF,mBAAkB,CAC5FH,EACAC,EACAI,EACAF,IAGF,OACES,EAAA,QAAAC,cAAChB,EAAoBiB,SAAQ,CAACvB,MAAOmB,GAAeN,EACrD,2BDsMI,SAA0BW,EAASC,EAAYC,GAClD,IAAKjC,OAAOkC,cAAe,MAAM,IAAIzB,UAAU,wCAC/C,IAAoDN,EAAhD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qBAAqB/D,KAAKL,EAAG8D,EAAE1D,MACvEyD,EAAEC,EAAE1D,IAAMJ,EAAE8D,EAAE1D,IAF4B,CAItD,OAAOyD,CACX,iCCpBsC,KACpC,MAAMQ,EAAUC,aAAWxD,GAE3B,IAAKuD,EACH,MAAM,IAAIE,MAAM,sEAGlB,OAAOF,CAAO"}
|
|
1
|
+
{"version":3,"file":"DragDropFile.context-0f0ede42.js","sources":["../node_modules/tslib/tslib.es6.js","../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.push(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.push(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps): JSX.Element => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(() => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }), [\n fileList,\n onFilesAdded,\n onRemoveFile,\n onRetryUpload,\n ])\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"names":["__values","o","s","Symbol","iterator","m","i","call","length","next","value","done","TypeError","__await","v","this","DragDropFileContext","createContext","undefined","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","useCallback","removedItem","index","slice","contextValue","useMemo","React","createElement","Provider","thisArg","_arguments","generator","asyncIterator","g","apply","q","verb","n","Promise","a","b","push","resume","r","resolve","then","fulfill","reject","settle","e","f","shift","d","P","fulfilled","step","rejected","result","t","p","Object","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","propertyIsEnumerable","context","useContext","Error"],"mappings":"uHAwKO,SAASA,EAASC,GACrB,IAAIC,EAAsB,mBAAXC,QAAyBA,OAAOC,SAAUC,EAAIH,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ocus?: boolean | undefined;
|
|
33
|
-
capture?:
|
|
33
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
34
34
|
checked?: boolean | undefined;
|
|
35
|
-
crossOrigin?:
|
|
35
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
36
36
|
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
37
37
|
form?: string | undefined;
|
|
38
38
|
formAction?: string | undefined;
|
|
@@ -54,7 +54,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
54
54
|
size?: number | undefined;
|
|
55
55
|
src?: string | undefined;
|
|
56
56
|
step?: string | number | undefined;
|
|
57
|
-
type?:
|
|
57
|
+
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
58
58
|
value?: string | number | readonly string[] | undefined;
|
|
59
59
|
width?: string | number | undefined;
|
|
60
60
|
defaultChecked?: boolean | undefined;
|
|
@@ -68,6 +68,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
68
68
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
69
69
|
hidden?: boolean | undefined;
|
|
70
70
|
lang?: string | undefined;
|
|
71
|
+
nonce?: string | undefined;
|
|
71
72
|
slot?: string | undefined;
|
|
72
73
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
73
74
|
style?: import("react").CSSProperties | undefined;
|
|
@@ -75,7 +76,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
75
76
|
title?: string | undefined;
|
|
76
77
|
translate?: "yes" | "no" | undefined;
|
|
77
78
|
radioGroup?: string | undefined;
|
|
78
|
-
role?:
|
|
79
|
+
role?: import("react").AriaRole | undefined;
|
|
79
80
|
about?: string | undefined;
|
|
80
81
|
datatype?: string | undefined;
|
|
81
82
|
inlist?: any;
|
|
@@ -96,12 +97,12 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
96
97
|
results?: number | undefined;
|
|
97
98
|
security?: string | undefined;
|
|
98
99
|
unselectable?: "on" | "off" | undefined;
|
|
99
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
100
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
100
101
|
is?: string | undefined;
|
|
101
102
|
'aria-activedescendant'?: string | undefined;
|
|
102
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
103
|
-
'aria-autocomplete'?: "
|
|
104
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
103
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
104
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
105
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
105
106
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
106
107
|
'aria-colcount'?: number | undefined;
|
|
107
108
|
'aria-colindex'?: number | undefined;
|
|
@@ -110,36 +111,36 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
110
111
|
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
111
112
|
'aria-describedby'?: string | undefined;
|
|
112
113
|
'aria-details'?: string | undefined;
|
|
113
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
114
|
-
'aria-dropeffect'?: "
|
|
114
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
115
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
115
116
|
'aria-errormessage'?: string | undefined;
|
|
116
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
117
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
117
118
|
'aria-flowto'?: string | undefined;
|
|
118
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
119
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
120
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
119
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
120
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
121
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
121
122
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
122
123
|
'aria-keyshortcuts'?: string | undefined;
|
|
123
124
|
'aria-label'?: string | undefined;
|
|
124
125
|
'aria-labelledby'?: string | undefined;
|
|
125
126
|
'aria-level'?: number | undefined;
|
|
126
127
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
127
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
128
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
129
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
128
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
129
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
130
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
130
131
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
131
132
|
'aria-owns'?: string | undefined;
|
|
132
133
|
'aria-placeholder'?: string | undefined;
|
|
133
134
|
'aria-posinset'?: number | undefined;
|
|
134
135
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
135
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
136
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
136
137
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
137
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
138
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
138
139
|
'aria-roledescription'?: string | undefined;
|
|
139
140
|
'aria-rowcount'?: number | undefined;
|
|
140
141
|
'aria-rowindex'?: number | undefined;
|
|
141
142
|
'aria-rowspan'?: number | undefined;
|
|
142
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
143
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
143
144
|
'aria-setsize'?: number | undefined;
|
|
144
145
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
145
146
|
'aria-valuemax'?: number | undefined;
|
|
@@ -334,6 +335,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
334
335
|
hidden?: boolean | undefined;
|
|
335
336
|
id?: string | undefined;
|
|
336
337
|
lang?: string | undefined;
|
|
338
|
+
nonce?: string | undefined;
|
|
337
339
|
placeholder?: string | undefined;
|
|
338
340
|
slot?: string | undefined;
|
|
339
341
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -342,7 +344,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
342
344
|
title?: string | undefined;
|
|
343
345
|
translate?: "yes" | "no" | undefined;
|
|
344
346
|
radioGroup?: string | undefined;
|
|
345
|
-
role?:
|
|
347
|
+
role?: import("react").AriaRole | undefined;
|
|
346
348
|
about?: string | undefined;
|
|
347
349
|
datatype?: string | undefined;
|
|
348
350
|
inlist?: any;
|
|
@@ -363,12 +365,12 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
363
365
|
results?: number | undefined;
|
|
364
366
|
security?: string | undefined;
|
|
365
367
|
unselectable?: "on" | "off" | undefined;
|
|
366
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
368
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
367
369
|
is?: string | undefined;
|
|
368
370
|
'aria-activedescendant'?: string | undefined;
|
|
369
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
370
|
-
'aria-autocomplete'?: "
|
|
371
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
371
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
372
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
373
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
372
374
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
373
375
|
'aria-colcount'?: number | undefined;
|
|
374
376
|
'aria-colindex'?: number | undefined;
|
|
@@ -377,36 +379,36 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
377
379
|
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
378
380
|
'aria-describedby'?: string | undefined;
|
|
379
381
|
'aria-details'?: string | undefined;
|
|
380
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
381
|
-
'aria-dropeffect'?: "
|
|
382
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
383
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
382
384
|
'aria-errormessage'?: string | undefined;
|
|
383
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
385
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
384
386
|
'aria-flowto'?: string | undefined;
|
|
385
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
386
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
387
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
387
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
388
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
389
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
388
390
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
389
391
|
'aria-keyshortcuts'?: string | undefined;
|
|
390
392
|
'aria-label'?: string | undefined;
|
|
391
393
|
'aria-labelledby'?: string | undefined;
|
|
392
394
|
'aria-level'?: number | undefined;
|
|
393
395
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
394
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
395
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
396
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
396
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
397
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
398
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
397
399
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
398
400
|
'aria-owns'?: string | undefined;
|
|
399
401
|
'aria-placeholder'?: string | undefined;
|
|
400
402
|
'aria-posinset'?: number | undefined;
|
|
401
403
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
402
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
404
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
403
405
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
404
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
406
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
405
407
|
'aria-roledescription'?: string | undefined;
|
|
406
408
|
'aria-rowcount'?: number | undefined;
|
|
407
409
|
'aria-rowindex'?: number | undefined;
|
|
408
410
|
'aria-rowspan'?: number | undefined;
|
|
409
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
411
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
410
412
|
'aria-setsize'?: number | undefined;
|
|
411
413
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
412
414
|
'aria-valuemax'?: number | undefined;
|
|
@@ -23,9 +23,9 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
23
23
|
alt?: string | undefined;
|
|
24
24
|
autoComplete?: string | undefined;
|
|
25
25
|
autoFocus?: boolean | undefined;
|
|
26
|
-
capture?:
|
|
26
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
27
27
|
checked?: boolean | undefined;
|
|
28
|
-
crossOrigin?:
|
|
28
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
29
29
|
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
30
30
|
form?: string | undefined;
|
|
31
31
|
formAction?: string | undefined;
|
|
@@ -47,7 +47,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
47
47
|
size?: number | undefined;
|
|
48
48
|
src?: string | undefined;
|
|
49
49
|
step?: string | number | undefined;
|
|
50
|
-
type?:
|
|
50
|
+
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
51
51
|
value?: string | number | readonly string[] | undefined;
|
|
52
52
|
width?: string | number | undefined;
|
|
53
53
|
defaultChecked?: boolean | undefined;
|
|
@@ -61,6 +61,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
61
61
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
62
62
|
hidden?: boolean | undefined;
|
|
63
63
|
lang?: string | undefined;
|
|
64
|
+
nonce?: string | undefined;
|
|
64
65
|
slot?: string | undefined;
|
|
65
66
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
66
67
|
style?: import("react").CSSProperties | undefined;
|
|
@@ -68,7 +69,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
68
69
|
title?: string | undefined;
|
|
69
70
|
translate?: "yes" | "no" | undefined;
|
|
70
71
|
radioGroup?: string | undefined;
|
|
71
|
-
role?:
|
|
72
|
+
role?: import("react").AriaRole | undefined;
|
|
72
73
|
about?: string | undefined;
|
|
73
74
|
datatype?: string | undefined;
|
|
74
75
|
inlist?: any;
|
|
@@ -89,12 +90,12 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
89
90
|
results?: number | undefined;
|
|
90
91
|
security?: string | undefined;
|
|
91
92
|
unselectable?: "on" | "off" | undefined;
|
|
92
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
93
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
93
94
|
is?: string | undefined;
|
|
94
95
|
'aria-activedescendant'?: string | undefined;
|
|
95
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
96
|
-
'aria-autocomplete'?: "none" | "
|
|
97
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
96
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
97
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
98
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
98
99
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
99
100
|
'aria-colcount'?: number | undefined;
|
|
100
101
|
'aria-colindex'?: number | undefined;
|
|
@@ -103,36 +104,36 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
103
104
|
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
104
105
|
'aria-describedby'?: string | undefined;
|
|
105
106
|
'aria-details'?: string | undefined;
|
|
106
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
107
|
-
'aria-dropeffect'?: "none" | "
|
|
107
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
108
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
108
109
|
'aria-errormessage'?: string | undefined;
|
|
109
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
110
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
110
111
|
'aria-flowto'?: string | undefined;
|
|
111
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
112
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
113
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
112
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
113
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
114
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
114
115
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
115
116
|
'aria-keyshortcuts'?: string | undefined;
|
|
116
117
|
'aria-label'?: string | undefined;
|
|
117
118
|
'aria-labelledby'?: string | undefined;
|
|
118
119
|
'aria-level'?: number | undefined;
|
|
119
120
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
120
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
121
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
122
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
121
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
122
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
123
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
123
124
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
124
125
|
'aria-owns'?: string | undefined;
|
|
125
126
|
'aria-placeholder'?: string | undefined;
|
|
126
127
|
'aria-posinset'?: number | undefined;
|
|
127
128
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
128
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
129
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
129
130
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
130
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
131
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
131
132
|
'aria-roledescription'?: string | undefined;
|
|
132
133
|
'aria-rowcount'?: number | undefined;
|
|
133
134
|
'aria-rowindex'?: number | undefined;
|
|
134
135
|
'aria-rowspan'?: number | undefined;
|
|
135
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
136
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
136
137
|
'aria-setsize'?: number | undefined;
|
|
137
138
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
138
139
|
'aria-valuemax'?: number | undefined;
|
|
@@ -319,9 +320,9 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
319
320
|
alt?: string | undefined;
|
|
320
321
|
autoComplete?: string | undefined;
|
|
321
322
|
autoFocus?: boolean | undefined;
|
|
322
|
-
capture?:
|
|
323
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
323
324
|
checked?: boolean | undefined;
|
|
324
|
-
crossOrigin?:
|
|
325
|
+
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
325
326
|
enterKeyHint?: "search" | "enter" | "done" | "go" | "next" | "previous" | "send" | undefined;
|
|
326
327
|
form?: string | undefined;
|
|
327
328
|
formAction?: string | undefined;
|
|
@@ -343,7 +344,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
343
344
|
size?: number | undefined;
|
|
344
345
|
src?: string | undefined;
|
|
345
346
|
step?: string | number | undefined;
|
|
346
|
-
type?:
|
|
347
|
+
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
347
348
|
value?: string | number | readonly string[] | undefined;
|
|
348
349
|
width?: string | number | undefined;
|
|
349
350
|
defaultChecked?: boolean | undefined;
|
|
@@ -357,6 +358,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
357
358
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
358
359
|
hidden?: boolean | undefined;
|
|
359
360
|
lang?: string | undefined;
|
|
361
|
+
nonce?: string | undefined;
|
|
360
362
|
slot?: string | undefined;
|
|
361
363
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
362
364
|
style?: import("react").CSSProperties | undefined;
|
|
@@ -364,7 +366,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
364
366
|
title?: string | undefined;
|
|
365
367
|
translate?: "yes" | "no" | undefined;
|
|
366
368
|
radioGroup?: string | undefined;
|
|
367
|
-
role?:
|
|
369
|
+
role?: import("react").AriaRole | undefined;
|
|
368
370
|
about?: string | undefined;
|
|
369
371
|
datatype?: string | undefined;
|
|
370
372
|
inlist?: any;
|
|
@@ -385,12 +387,12 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
385
387
|
results?: number | undefined;
|
|
386
388
|
security?: string | undefined;
|
|
387
389
|
unselectable?: "on" | "off" | undefined;
|
|
388
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
390
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
389
391
|
is?: string | undefined;
|
|
390
392
|
'aria-activedescendant'?: string | undefined;
|
|
391
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
392
|
-
'aria-autocomplete'?: "none" | "
|
|
393
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
393
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
394
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
395
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
394
396
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
395
397
|
'aria-colcount'?: number | undefined;
|
|
396
398
|
'aria-colindex'?: number | undefined;
|
|
@@ -399,36 +401,36 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
399
401
|
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
400
402
|
'aria-describedby'?: string | undefined;
|
|
401
403
|
'aria-details'?: string | undefined;
|
|
402
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
403
|
-
'aria-dropeffect'?: "none" | "
|
|
404
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
405
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
404
406
|
'aria-errormessage'?: string | undefined;
|
|
405
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
407
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
406
408
|
'aria-flowto'?: string | undefined;
|
|
407
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
408
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
409
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
409
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
410
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
411
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
410
412
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
411
413
|
'aria-keyshortcuts'?: string | undefined;
|
|
412
414
|
'aria-label'?: string | undefined;
|
|
413
415
|
'aria-labelledby'?: string | undefined;
|
|
414
416
|
'aria-level'?: number | undefined;
|
|
415
417
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
416
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
417
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
418
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
418
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
419
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
420
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
419
421
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
420
422
|
'aria-owns'?: string | undefined;
|
|
421
423
|
'aria-placeholder'?: string | undefined;
|
|
422
424
|
'aria-posinset'?: number | undefined;
|
|
423
425
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
424
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
426
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
425
427
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
426
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
428
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
427
429
|
'aria-roledescription'?: string | undefined;
|
|
428
430
|
'aria-rowcount'?: number | undefined;
|
|
429
431
|
'aria-rowindex'?: number | undefined;
|
|
430
432
|
'aria-rowspan'?: number | undefined;
|
|
431
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
433
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
432
434
|
'aria-setsize'?: number | undefined;
|
|
433
435
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
434
436
|
'aria-valuemax'?: number | undefined;
|
|
@@ -622,6 +624,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
622
624
|
hidden?: boolean | undefined;
|
|
623
625
|
id?: string | undefined;
|
|
624
626
|
lang?: string | undefined;
|
|
627
|
+
nonce?: string | undefined;
|
|
625
628
|
placeholder?: string | undefined;
|
|
626
629
|
slot?: string | undefined;
|
|
627
630
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -630,7 +633,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
630
633
|
title?: string | undefined;
|
|
631
634
|
translate?: "yes" | "no" | undefined;
|
|
632
635
|
radioGroup?: string | undefined;
|
|
633
|
-
role?:
|
|
636
|
+
role?: import("react").AriaRole | undefined;
|
|
634
637
|
about?: string | undefined;
|
|
635
638
|
datatype?: string | undefined;
|
|
636
639
|
inlist?: any;
|
|
@@ -651,12 +654,12 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
651
654
|
results?: number | undefined;
|
|
652
655
|
security?: string | undefined;
|
|
653
656
|
unselectable?: "on" | "off" | undefined;
|
|
654
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
657
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
655
658
|
is?: string | undefined;
|
|
656
659
|
'aria-activedescendant'?: string | undefined;
|
|
657
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
658
|
-
'aria-autocomplete'?: "none" | "
|
|
659
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
660
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
661
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
662
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
660
663
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
661
664
|
'aria-colcount'?: number | undefined;
|
|
662
665
|
'aria-colindex'?: number | undefined;
|
|
@@ -665,36 +668,36 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
665
668
|
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
666
669
|
'aria-describedby'?: string | undefined;
|
|
667
670
|
'aria-details'?: string | undefined;
|
|
668
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
669
|
-
'aria-dropeffect'?: "none" | "
|
|
671
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
672
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
670
673
|
'aria-errormessage'?: string | undefined;
|
|
671
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
674
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
672
675
|
'aria-flowto'?: string | undefined;
|
|
673
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
674
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
675
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
676
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
677
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
678
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
676
679
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
677
680
|
'aria-keyshortcuts'?: string | undefined;
|
|
678
681
|
'aria-label'?: string | undefined;
|
|
679
682
|
'aria-labelledby'?: string | undefined;
|
|
680
683
|
'aria-level'?: number | undefined;
|
|
681
684
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
682
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
683
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
684
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
685
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
686
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
687
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
685
688
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
686
689
|
'aria-owns'?: string | undefined;
|
|
687
690
|
'aria-placeholder'?: string | undefined;
|
|
688
691
|
'aria-posinset'?: number | undefined;
|
|
689
692
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
690
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
693
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
691
694
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
692
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
695
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
693
696
|
'aria-roledescription'?: string | undefined;
|
|
694
697
|
'aria-rowcount'?: number | undefined;
|
|
695
698
|
'aria-rowindex'?: number | undefined;
|
|
696
699
|
'aria-rowspan'?: number | undefined;
|
|
697
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
700
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
698
701
|
'aria-setsize'?: number | undefined;
|
|
699
702
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
700
703
|
'aria-valuemax'?: number | undefined;
|
|
@@ -5,7 +5,7 @@ export declare const MenuDropdownSeparator: import("styled-components").StyledCo
|
|
|
5
5
|
export declare const MenuDropdownLabel: import("styled-components").StyledComponent<"label", any, {}, never>;
|
|
6
6
|
declare type MenuDropdownSubItemProps = HTMLAttributes<HTMLElement> & {
|
|
7
7
|
label: string;
|
|
8
|
-
url
|
|
8
|
+
url?: string;
|
|
9
9
|
icon?: ReactNode;
|
|
10
10
|
separator?: boolean;
|
|
11
11
|
};
|