@vritti/quantum-ui 0.3.3 → 0.3.5
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/Alert.js +1 -1
- package/dist/Avatar.js +4 -4
- package/dist/Badge2.js +2 -2
- package/dist/Breadcrumb.js +1 -1
- package/dist/Button2.js +2 -2
- package/dist/Checkbox2.js +6 -6
- package/dist/Combination.js +3 -3
- package/dist/DateTimePicker.js +2 -2
- package/dist/Dialog.js +1 -1
- package/dist/Label.js +1 -1
- package/dist/Progress.js +2 -2
- package/dist/RadioGroup.js +8 -8
- package/dist/Select.js +2 -2
- package/dist/SelectFilter.js +2 -2
- package/dist/Sidebar.js +3 -3
- package/dist/SingleSelect.js +1 -1
- package/dist/Sonner.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/TabsSkeleton.js +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/assets/quantum-ui.css +296 -392
- package/dist/calendar2.js +1 -1
- package/dist/cells.js +2 -2
- package/dist/collapsible2.js +1 -1
- package/dist/components/FormattedDate.js +2 -2
- package/dist/components/RichTextEditor.js +1 -1
- package/dist/components/Select.js +4 -4
- package/dist/components/TreeView.js +7 -7
- package/dist/dropdown-menu.js +9 -9
- package/dist/field.js +1 -1
- package/dist/image-component.js +1 -1
- package/dist/index.js +4 -4
- package/dist/index10.js +1499 -102
- package/dist/index10.js.map +1 -1
- package/dist/index11.js +37 -1499
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +476 -29
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +230 -426
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +1073 -214
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +14 -1139
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +20 -14
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +180 -25
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +201 -173
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +69 -203
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +211 -70
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +117 -207
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +71 -123
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +11 -74
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +1134 -13
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +2733 -1103
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +24 -2755
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +4 -32
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +37 -4
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +310 -36
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +7 -309
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +30 -8
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +59 -29
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +10 -59
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +35 -10
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +36810 -27
- package/dist/index35.js.map +1 -1
- package/dist/index4.js +136 -86
- package/dist/index4.js.map +1 -1
- package/dist/index5.js +315 -36745
- package/dist/index5.js.map +1 -1
- package/dist/index6.js +12 -141
- package/dist/index6.js.map +1 -1
- package/dist/index7.js +82 -382
- package/dist/index7.js.map +1 -1
- package/dist/index8.js +42 -12
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +102 -42
- package/dist/index9.js.map +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/select2.js +1 -1
- package/dist/separator2.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/useTimer.js +1 -1
- package/dist/utils/axios.js +1 -1
- package/dist/utils/currency.js +2 -2
- package/dist/utils/format.js +2 -2
- package/dist/utils/money.js +1 -1
- package/dist/utils/timezone.js +1 -1
- package/package.json +1 -1
package/dist/index7.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index7.js","sources":["../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzName/index.js","../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.js","../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/mini.js","../node_modules/.pnpm/@date-fns+tz@1.4.1/node_modules/@date-fns/tz/date/index.js"],"sourcesContent":["/**\n * Time zone name format.\n */\n\n/**\n * The function returns the time zone name for the given date in the specified\n * time zone.\n *\n * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone\n * name in a long format, e.g. \"Pacific Standard Time\" or\n * \"Singapore Standard Time\".\n *\n * It is possible to specify the format as the third argument using one of the following options\n *\n * - \"short\": e.g. \"EDT\" or \"GMT+8\".\n * - \"long\": e.g. \"Eastern Daylight Time\".\n * - \"shortGeneric\": e.g. \"ET\" or \"Singapore Time\".\n * - \"longGeneric\": e.g. \"Eastern Time\" or \"Singapore Standard Time\".\n *\n * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date object to get the time zone name for\n * @param format - Optional format of the time zone name. Defaults to \"long\". Can be \"short\", \"long\", \"shortGeneric\", or \"longGeneric\".\n *\n * @returns Time zone name (e.g. \"Singapore Standard Time\")\n */\nexport function tzName(timeZone, date, format = \"long\") {\n return new Intl.DateTimeFormat(\"en-US\", {\n // Enforces engine to render the time. Without the option JavaScriptCore omits it.\n hour: \"numeric\",\n timeZone: timeZone,\n timeZoneName: format\n }).format(date).split(/\\s/g) // Format.JS uses non-breaking spaces\n .slice(2) // Skip the hour and AM/PM parts\n .join(\" \");\n}","const offsetFormatCache = {};\nconst offsetCache = {};\n\n/**\n * The function extracts UTC offset in minutes from the given date in specified\n * time zone.\n *\n * Unlike `Date.prototype.getTimezoneOffset`, this function returns the value\n * mirrored to the sign of the offset in the time zone. For Asia/Singapore\n * (UTC+8), `tzOffset` returns 480, while `getTimezoneOffset` returns -480.\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date to check the offset for\n *\n * @returns UTC offset in minutes\n */\nexport function tzOffset(timeZone, date) {\n try {\n const format = offsetFormatCache[timeZone] ||= new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n timeZoneName: \"longOffset\"\n }).format;\n const offsetStr = format(date).split(\"GMT\")[1];\n if (offsetStr in offsetCache) return offsetCache[offsetStr];\n return calcOffset(offsetStr, offsetStr.split(\":\"));\n } catch {\n // Fallback to manual parsing if the runtime doesn't support ±HH:MM/±HHMM/±HH\n // See: https://github.com/nodejs/node/issues/53419\n if (timeZone in offsetCache) return offsetCache[timeZone];\n const captures = timeZone?.match(offsetRe);\n if (captures) return calcOffset(timeZone, captures.slice(1));\n return NaN;\n }\n}\nconst offsetRe = /([+-]\\d\\d):?(\\d\\d)?/;\nfunction calcOffset(cacheStr, values) {\n const hours = +(values[0] || 0);\n const minutes = +(values[1] || 0);\n // Convert seconds to minutes by dividing by 60 to keep the function return in minutes.\n const seconds = +(values[2] || 0) / 60;\n return offsetCache[cacheStr] = hours * 60 + minutes > 0 ? hours * 60 + minutes + seconds : hours * 60 - minutes - seconds;\n}","import { tzOffset } from \"../tzOffset/index.js\";\nexport class TZDateMini extends Date {\n //#region static\n\n constructor(...args) {\n super();\n if (args.length > 1 && typeof args[args.length - 1] === \"string\") {\n this.timeZone = args.pop();\n }\n this.internal = new Date();\n if (isNaN(tzOffset(this.timeZone, this))) {\n this.setTime(NaN);\n } else {\n if (!args.length) {\n this.setTime(Date.now());\n } else if (typeof args[0] === \"number\" && (args.length === 1 || args.length === 2 && typeof args[1] !== \"number\")) {\n this.setTime(args[0]);\n } else if (typeof args[0] === \"string\") {\n this.setTime(+new Date(args[0]));\n } else if (args[0] instanceof Date) {\n this.setTime(+args[0]);\n } else {\n this.setTime(+new Date(...args));\n adjustToSystemTZ(this, NaN);\n syncToInternal(this);\n }\n }\n }\n static tz(tz, ...args) {\n return args.length ? new TZDateMini(...args, tz) : new TZDateMini(Date.now(), tz);\n }\n\n //#endregion\n\n //#region time zone\n\n withTimeZone(timeZone) {\n return new TZDateMini(+this, timeZone);\n }\n getTimezoneOffset() {\n const offset = -tzOffset(this.timeZone, this);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n return offset > 0 ? Math.floor(offset) : Math.ceil(offset);\n }\n\n //#endregion\n\n //#region time\n\n setTime(time) {\n Date.prototype.setTime.apply(this, arguments);\n syncToInternal(this);\n return +this;\n }\n\n //#endregion\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDateMini(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}\n\n// Assign getters and setters\nconst re = /^(get|set)(?!UTC)/;\nObject.getOwnPropertyNames(Date.prototype).forEach(method => {\n if (!re.test(method)) return;\n const utcMethod = method.replace(re, \"$1UTC\");\n // Filter out methods without UTC counterparts\n if (!TZDateMini.prototype[utcMethod]) return;\n if (method.startsWith(\"get\")) {\n // Delegate to internal date's UTC method\n TZDateMini.prototype[method] = function () {\n return this.internal[utcMethod]();\n };\n } else {\n // Assign regular setter\n TZDateMini.prototype[method] = function () {\n Date.prototype[utcMethod].apply(this.internal, arguments);\n syncFromInternal(this);\n return +this;\n };\n\n // Assign UTC setter\n TZDateMini.prototype[utcMethod] = function () {\n Date.prototype[utcMethod].apply(this, arguments);\n syncToInternal(this);\n return +this;\n };\n }\n});\n\n/**\n * Function syncs time to internal date, applying the time zone offset.\n *\n * @param {Date} date - Date to sync\n */\nfunction syncToInternal(date) {\n date.internal.setTime(+date);\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() - Math.round(-tzOffset(date.timeZone, date) * 60));\n}\n\n/**\n * Function syncs the internal date UTC values to the date. It allows to get\n * accurate timestamp value.\n *\n * @param {Date} date - The date to sync\n */\nfunction syncFromInternal(date) {\n // First we transpose the internal values\n Date.prototype.setFullYear.call(date, date.internal.getUTCFullYear(), date.internal.getUTCMonth(), date.internal.getUTCDate());\n Date.prototype.setHours.call(date, date.internal.getUTCHours(), date.internal.getUTCMinutes(), date.internal.getUTCSeconds(), date.internal.getUTCMilliseconds());\n\n // Now we have to adjust the date to the system time zone\n adjustToSystemTZ(date);\n}\n\n/**\n * Function adjusts the date to the system time zone. It uses the time zone\n * differences to calculate the offset and adjust the date.\n *\n * @param {Date} date - Date to adjust\n */\nfunction adjustToSystemTZ(date) {\n // Save the time zone offset before all the adjustments\n const baseOffset = tzOffset(date.timeZone, date);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n const offset = baseOffset > 0 ? Math.floor(baseOffset) : Math.ceil(baseOffset);\n //#region System DST adjustment\n\n // The biggest problem with using the system time zone is that when we create\n // a date from internal values stored in UTC, the system time zone might end\n // up on the DST hour:\n //\n // $ TZ=America/New_York node\n // > new Date(2020, 2, 8, 1).toString()\n // 'Sun Mar 08 2020 01:00:00 GMT-0500 (Eastern Standard Time)'\n // > new Date(2020, 2, 8, 2).toString()\n // 'Sun Mar 08 2020 03:00:00 GMT-0400 (Eastern Daylight Time)'\n // > new Date(2020, 2, 8, 3).toString()\n // 'Sun Mar 08 2020 03:00:00 GMT-0400 (Eastern Daylight Time)'\n // > new Date(2020, 2, 8, 4).toString()\n // 'Sun Mar 08 2020 04:00:00 GMT-0400 (Eastern Daylight Time)'\n //\n // Here we get the same hour for both 2 and 3, because the system time zone\n // has DST beginning at 8 March 2020, 2 a.m. and jumps to 3 a.m. So we have\n // to adjust the internal date to reflect that.\n //\n // However we want to adjust only if that's the DST hour the change happenes,\n // not the hour where DST moves to.\n\n // We calculate the previous hour to see if the time zone offset has changed\n // and we have landed on the DST hour.\n const prevHour = new Date(+date);\n // We use UTC methods here as we don't want to land on the same hour again\n // in case of DST.\n prevHour.setUTCHours(prevHour.getUTCHours() - 1);\n\n // Calculate if we are on the system DST hour.\n const systemOffset = -new Date(+date).getTimezoneOffset();\n const prevHourSystemOffset = -new Date(+prevHour).getTimezoneOffset();\n const systemDSTChange = systemOffset - prevHourSystemOffset;\n // Detect the DST shift. System DST change will occur both on\n const dstShift = Date.prototype.getHours.apply(date) !== date.internal.getUTCHours();\n\n // Move the internal date when we are on the system DST hour.\n if (systemDSTChange && dstShift) date.internal.setUTCMinutes(date.internal.getUTCMinutes() + systemDSTChange);\n\n //#endregion\n\n //#region System diff adjustment\n\n // Now we need to adjust the date, since we just applied internal values.\n // We need to calculate the difference between the system and date time zones\n // and apply it to the date.\n\n const offsetDiff = systemOffset - offset;\n if (offsetDiff) Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetDiff);\n\n //#endregion\n\n //#region Seconds System diff adjustment\n\n const systemDate = new Date(+date);\n // Set the UTC seconds to 0 to isolate the timezone offset in seconds.\n systemDate.setUTCSeconds(0);\n // For negative systemOffset, invert the seconds.\n const systemSecondsOffset = systemOffset > 0 ? systemDate.getSeconds() : (systemDate.getSeconds() - 60) % 60;\n\n // Calculate the seconds offset based on the timezone offset.\n const secondsOffset = Math.round(-(tzOffset(date.timeZone, date) * 60)) % 60;\n if (secondsOffset || systemSecondsOffset) {\n date.internal.setUTCSeconds(date.internal.getUTCSeconds() + secondsOffset);\n Date.prototype.setUTCSeconds.call(date, Date.prototype.getUTCSeconds.call(date) + secondsOffset + systemSecondsOffset);\n }\n\n //#endregion\n\n //#region Post-adjustment DST fix\n\n const postBaseOffset = tzOffset(date.timeZone, date);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n const postOffset = postBaseOffset > 0 ? Math.floor(postBaseOffset) : Math.ceil(postBaseOffset);\n const postSystemOffset = -new Date(+date).getTimezoneOffset();\n const postOffsetDiff = postSystemOffset - postOffset;\n const offsetChanged = postOffset !== offset;\n const postDiff = postOffsetDiff - offsetDiff;\n if (offsetChanged && postDiff) {\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + postDiff);\n\n // Now we need to check if got offset change during the post-adjustment.\n // If so, we also need both dates to reflect that.\n\n const newBaseOffset = tzOffset(date.timeZone, date);\n // Remove the seconds offset\n // use Math.floor for negative GMT timezones and Math.ceil for positive GMT timezones.\n const newOffset = newBaseOffset > 0 ? Math.floor(newBaseOffset) : Math.ceil(newBaseOffset);\n const offsetChange = postOffset - newOffset;\n if (offsetChange) {\n date.internal.setUTCMinutes(date.internal.getUTCMinutes() + offsetChange);\n Date.prototype.setUTCMinutes.call(date, Date.prototype.getUTCMinutes.call(date) + offsetChange);\n }\n }\n\n //#endregion\n}","import { tzName } from \"../tzName/index.js\";\nimport { TZDateMini } from \"./mini.js\";\nexport class TZDate extends TZDateMini {\n //#region static\n\n static tz(tz, ...args) {\n return args.length ? new TZDate(...args, tz) : new TZDate(Date.now(), tz);\n }\n\n //#endregion\n\n //#region representation\n\n toISOString() {\n const [sign, hours, minutes] = this.tzComponents();\n const tz = `${sign}${hours}:${minutes}`;\n return this.internal.toISOString().slice(0, -1) + tz;\n }\n toString() {\n // \"Tue Aug 13 2024 07:50:19 GMT+0800 (Singapore Standard Time)\";\n return `${this.toDateString()} ${this.toTimeString()}`;\n }\n toDateString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const [day, date, month, year] = this.internal.toUTCString().split(\" \");\n // \"Tue Aug 13 2024\"\n return `${day?.slice(0, -1) /* Remove \",\" */} ${month} ${date} ${year}`;\n }\n toTimeString() {\n // toUTCString returns RFC 7231 (\"Mon, 12 Aug 2024 23:36:08 GMT\")\n const time = this.internal.toUTCString().split(\" \")[4];\n const [sign, hours, minutes] = this.tzComponents();\n // \"07:42:23 GMT+0800 (Singapore Standard Time)\"\n return `${time} GMT${sign}${hours}${minutes} (${tzName(this.timeZone, this)})`;\n }\n toLocaleString(locales, options) {\n return Date.prototype.toLocaleString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleDateString(locales, options) {\n return Date.prototype.toLocaleDateString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n toLocaleTimeString(locales, options) {\n return Date.prototype.toLocaleTimeString.call(this, locales, {\n ...options,\n timeZone: options?.timeZone || this.timeZone\n });\n }\n\n //#endregion\n\n //#region private\n\n tzComponents() {\n const offset = this.getTimezoneOffset();\n const sign = offset > 0 ? \"-\" : \"+\";\n const hours = String(Math.floor(Math.abs(offset) / 60)).padStart(2, \"0\");\n const minutes = String(Math.abs(offset) % 60).padStart(2, \"0\");\n return [sign, hours, minutes];\n }\n\n //#endregion\n\n withTimeZone(timeZone) {\n return new TZDate(+this, timeZone);\n }\n\n //#region date-fns integration\n\n [Symbol.for(\"constructDateFrom\")](date) {\n return new TZDate(+new Date(date), this.timeZone);\n }\n\n //#endregion\n}"],"names":[],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,MAAM,CAAC,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;AACxD,EAAE,OAAO,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;AAC1C;AACA,IAAI,IAAI,EAAE,SAAS;AACnB,IAAI,QAAQ,EAAE,QAAQ;AACtB,IAAI,YAAY,EAAE;AAClB,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;AAC9B,GAAG,KAAK,CAAC,CAAC,CAAC;AACX,GAAG,IAAI,CAAC,GAAG,CAAC;AACZ;;ACpCA,MAAM,iBAAiB,GAAG,EAAE;AAC5B,MAAM,WAAW,GAAG,EAAE;;AAEtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,QAAQ,CAAC,QAAQ,EAAE,IA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M,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,EAAE;AAC1C,IAAI,OAAO,IAAI,MAAM,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;AACrD,EAAE;;AAEF;AACA;;;;","x_google_ignoreList":[0,1,2,3]}
|
|
1
|
+
{"version":3,"file":"index7.js","sources":["../lib/config/index.ts"],"sourcesContent":["/**\n * quantum-ui Configuration System\n *\n * This module provides a type-safe configuration system for quantum-ui,\n * similar to how Tailwind CSS uses tailwind.config.js\n *\n * @example\n * ```typescript\n * // In your project root: quantum-ui.config.ts\n * import { defineConfig } from '@vritti/quantum-ui'\n *\n * export default defineConfig({\n * csrf: {\n * endpoint: '/csrf/token',\n * enabled: true,\n * },\n * axios: {\n * baseURL: '/api',\n * timeout: 30000,\n * }\n * })\n * ```\n */\n\n/**\n * CSRF configuration options\n */\nexport interface CsrfConfig {\n /**\n * The endpoint to fetch CSRF tokens from\n * @default '/csrf/token'\n */\n endpoint: string;\n\n /**\n * Whether CSRF protection is enabled\n * @default true\n */\n enabled: boolean;\n\n /**\n * The header name to send the CSRF token in\n * @default 'x-csrf-token'\n */\n headerName: string;\n}\n\n/**\n * Axios configuration options\n */\nexport interface AxiosConfig {\n /**\n * Base URL for all API requests\n * @default '/api'\n */\n baseURL: string;\n\n /**\n * Request timeout in milliseconds\n * @default 30000\n */\n timeout: number;\n\n /**\n * Whether to send cookies with requests\n * @default true\n */\n withCredentials: boolean;\n\n /**\n * Default headers to include in all requests\n */\n headers?: Record<string, string>;\n\n /**\n * Custom request interceptor — called before every request to add dynamic headers or modify config\n */\n onRequest?: (config: import('axios').InternalAxiosRequestConfig) => void | Promise<void>;\n}\n\n/**\n * Authentication configuration options\n */\nexport interface AuthConfig {\n /**\n * The header name for the authorization token\n * @default 'Authorization'\n */\n tokenHeaderName: string;\n\n /**\n * The prefix for the authorization token\n * @default 'Bearer'\n */\n tokenPrefix: string;\n\n /**\n * Endpoint for session recovery from httpOnly cookie\n * @default 'auth/access-token'\n */\n tokenEndpoint: string;\n\n /**\n * Endpoint for token refresh\n * @default 'auth/refresh-tokens'\n */\n refreshEndpoint: string;\n\n /**\n * Whether automatic session recovery is enabled\n * @default true\n */\n sessionRecoveryEnabled: boolean;\n}\n\n/**\n * Views management configuration\n */\nexport interface ViewsConfig {\n /**\n * Endpoint for named view CRUD operations\n */\n viewsEndpoint: string;\n\n /**\n * Endpoint for live state upsert\n */\n statesEndpoint: string;\n}\n\n/**\n * Time zone resolution configuration\n */\nexport interface TimeZoneConfig {\n /**\n * Custom resolver for the active application time zone\n */\n resolveTimeZone?: () => string | null | undefined;\n}\n\n/**\n * Currency resolution configuration\n */\nexport interface CurrencyConfig {\n /**\n * Custom resolver for the active application currency (ISO 4217)\n */\n resolveCurrency?: () => string | null | undefined;\n}\n\n/**\n * Complete quantum-ui configuration interface\n */\nexport interface QuantumUIConfig {\n /**\n * CSRF token configuration\n */\n csrf?: Partial<CsrfConfig>;\n\n /**\n * Axios HTTP client configuration\n */\n axios?: Partial<AxiosConfig>;\n\n /**\n * Authentication configuration\n */\n auth?: Partial<AuthConfig>;\n\n /**\n * Time zone resolution configuration\n */\n timeZone?: TimeZoneConfig;\n\n /**\n * Currency resolution configuration\n */\n currency?: CurrencyConfig;\n\n /**\n * Table views management configuration\n */\n views: ViewsConfig;\n}\n\n/**\n * Default configuration values\n */\nconst defaultConfig: {\n csrf: CsrfConfig;\n axios: AxiosConfig;\n auth: AuthConfig;\n views: Required<ViewsConfig>;\n timeZone: TimeZoneConfig;\n currency: CurrencyConfig;\n} = {\n csrf: {\n endpoint: 'csrf/token',\n enabled: true,\n headerName: 'x-csrf-token',\n },\n axios: {\n baseURL: '/api',\n timeout: 30000,\n withCredentials: true,\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n },\n auth: {\n tokenHeaderName: 'Authorization',\n tokenPrefix: 'Bearer',\n tokenEndpoint: 'auth/access-token',\n refreshEndpoint: 'auth/refresh-tokens',\n sessionRecoveryEnabled: true,\n },\n timeZone: {\n resolveTimeZone: undefined,\n },\n currency: {\n resolveCurrency: undefined,\n },\n views: {\n viewsEndpoint: 'table-views',\n statesEndpoint: 'table-states',\n },\n};\n\n/**\n * Global key for storing config in window object\n * This ensures config is shared across Module Federation boundaries\n */\nconst GLOBAL_CONFIG_KEY = '__QUANTUM_UI_CONFIG__';\n\n// Type-safe global window access\ntype GlobalWindow = Window & typeof globalThis & { [GLOBAL_CONFIG_KEY]?: typeof defaultConfig };\n\n/**\n * Get the current config from global storage or initialize with defaults\n */\nfunction getGlobalConfig(): typeof defaultConfig {\n if (typeof window !== 'undefined') {\n const globalWindow = window as GlobalWindow;\n if (!globalWindow[GLOBAL_CONFIG_KEY]) {\n globalWindow[GLOBAL_CONFIG_KEY] = { ...defaultConfig };\n }\n return globalWindow[GLOBAL_CONFIG_KEY] ?? { ...defaultConfig };\n }\n return { ...defaultConfig };\n}\n\n/**\n * Set the global config\n */\nfunction setGlobalConfig(config: typeof defaultConfig): void {\n if (typeof window !== 'undefined') {\n (window as GlobalWindow)[GLOBAL_CONFIG_KEY] = config;\n }\n}\n\n/**\n * Helper function to define configuration with type safety\n * Similar to Tailwind's defineConfig()\n *\n * @param config - User configuration object\n * @returns The same configuration object (for type inference)\n *\n * @example\n * ```typescript\n * export default defineConfig({\n * csrf: { endpoint: '/api/csrf' }\n * })\n * ```\n */\nexport function defineConfig(config: QuantumUIConfig): QuantumUIConfig {\n return config;\n}\n\n/**\n * Configure quantum-ui with user settings\n * This should be called once in your application's entry point\n *\n * @param userConfig - User configuration object\n *\n * @example\n * ```typescript\n * import config from './quantum-ui.config'\n * import { configureQuantumUI } from '@vritti/quantum-ui'\n *\n * configureQuantumUI(config)\n * ```\n */\nexport function configureQuantumUI(userConfig: QuantumUIConfig): void {\n const newConfig = {\n csrf: {\n ...defaultConfig.csrf,\n ...(userConfig.csrf || {}),\n },\n axios: {\n ...defaultConfig.axios,\n ...(userConfig.axios || {}),\n headers: {\n ...defaultConfig.axios.headers,\n ...(userConfig.axios?.headers || {}),\n },\n },\n auth: {\n ...defaultConfig.auth,\n ...(userConfig.auth || {}),\n },\n timeZone: {\n ...defaultConfig.timeZone,\n ...(userConfig.timeZone || {}),\n },\n currency: {\n ...defaultConfig.currency,\n ...(userConfig.currency || {}),\n },\n views: {\n ...defaultConfig.views,\n ...(userConfig.views || {}),\n },\n };\n setGlobalConfig(newConfig);\n}\n\n/**\n * Get the current configuration\n * @returns Current merged configuration\n */\nexport function getConfig(): typeof defaultConfig {\n return getGlobalConfig();\n}\n\n/**\n * Reset configuration to defaults\n * Mainly useful for testing\n */\nexport function resetConfig(): void {\n setGlobalConfig({ ...defaultConfig });\n}\n"],"names":[],"mappings":"AA4LA,MAAM,aAAA,GAOF;AAAA,EACF,IAAA,EAAM;AAAA,IACJ,QAAA,EAAU,YAAA;AAAA,IACV,OAAA,EAAS,IAAA;AAAA,IACT,UAAA,EAAY;AAAA,GACd;AAAA,EACA,KAAA,EAAO;AAAA,IACL,OAAA,EAAS,MAAA;AAAA,IACT,OAAA,EAAS,GAAA;AAAA,IACT,eAAA,EAAiB,IAAA;AAAA,IACjB,OAAA,EAAS;AAAA,MACP,cAAA,EAAgB,kBAAA;AAAA,MAChB,MAAA,EAAQ;AAAA;AACV,GACF;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,eAAA,EAAiB,eAAA;AAAA,IACjB,WAAA,EAAa,QAAA;AAAA,IACb,aAAA,EAAe,mBAAA;AAAA,IACf,eAAA,EAAiB,qBAAA;AAAA,IACjB,sBAAA,EAAwB;AAAA,GAC1B;AAAA,EACA,QAAA,EAAU;AAAA,IACR,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,QAAA,EAAU;AAAA,IACR,eAAA,EAAiB;AAAA,GACnB;AAAA,EACA,KAAA,EAAO;AAAA,IACL,aAAA,EAAe,aAAA;AAAA,IACf,cAAA,EAAgB;AAAA;AAEpB,CAAA;AAMA,M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,CAAW,QAAA,IAAY;AAAC,KAC9B;AAAA,IACA,QAAA,EAAU;AAAA,MACR,GAAG,aAAA,CAAc,QAAA;AAAA,MACjB,GAAI,UAAA,CAAW,QAAA,IAAY;AAAC,KAC9B;AAAA,IACA,KAAA,EAAO;AAAA,MACL,GAAG,aAAA,CAAc,KAAA;AAAA,MACjB,GAAI,UAAA,CAAW,KAAA,IAAS;AAAC;AAC3B,GACF;AACA,EAAA,eAAA,CAAgB,SAAS,CAAA;AAC3B;AAMO,SAAS,SAAA,GAAkC;AAChD,EAAA,OAAO,eAAA,EAAgB;AACzB;AAMO,SAAS,WAAA,GAAoB;AAClC,EAAA,eAAA,CAAgB,EAAE,GAAG,aAAA,EAAe,CAAA;AACtC;;;;"}
|
package/dist/index8.js
CHANGED
|
@@ -1,15 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as clsx } from './utils.js';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
const falsyToString = (value)=>typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
|
4
|
+
const cx = clsx;
|
|
5
|
+
const cva = (base, config)=>(props)=>{
|
|
6
|
+
var _config_compoundVariants;
|
|
7
|
+
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
8
|
+
const { variants, defaultVariants } = config;
|
|
9
|
+
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
|
10
|
+
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
|
11
|
+
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
|
12
|
+
if (variantProp === null) return null;
|
|
13
|
+
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
|
14
|
+
return variants[variant][variantKey];
|
|
15
|
+
});
|
|
16
|
+
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
|
17
|
+
let [key, value] = param;
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return acc;
|
|
20
|
+
}
|
|
21
|
+
acc[key] = value;
|
|
22
|
+
return acc;
|
|
23
|
+
}, {});
|
|
24
|
+
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{
|
|
25
|
+
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
|
26
|
+
return Object.entries(compoundVariantOptions).every((param)=>{
|
|
27
|
+
let [key, value] = param;
|
|
28
|
+
return Array.isArray(value) ? value.includes({
|
|
29
|
+
...defaultVariants,
|
|
30
|
+
...propsWithoutUndefined
|
|
31
|
+
}[key]) : ({
|
|
32
|
+
...defaultVariants,
|
|
33
|
+
...propsWithoutUndefined
|
|
34
|
+
})[key] === value;
|
|
35
|
+
}) ? [
|
|
36
|
+
...acc,
|
|
37
|
+
cvClass,
|
|
38
|
+
cvClassName
|
|
39
|
+
] : acc;
|
|
40
|
+
}, []);
|
|
41
|
+
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
|
42
|
+
};
|
|
13
43
|
|
|
14
|
-
export {
|
|
44
|
+
export { cva as c };
|
|
15
45
|
//# sourceMappingURL=index8.js.map
|
package/dist/index8.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index8.js","sources":["../node_modules/.pnpm
|
|
1
|
+
{"version":3,"file":"index8.js","sources":["../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs"],"sourcesContent":["/**\n * Copyright 2022 Joe Bell. All rights reserved.\n *\n * This file is licensed to you under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with the\n * License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the\n * License for the specific language governing permissions and limitations under\n * the License.\n */ import { clsx } from \"clsx\";\nconst falsyToString = (value)=>typeof value === \"boolean\" ? `${value}` : value === 0 ? \"0\" : value;\nexport const cx = clsx;\nexport const cva = (base, config)=>(props)=>{\n var _config_compoundVariants;\n if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n const { variants, defaultVariants } = config;\n const getVariantClassNames = Object.keys(variants).map((variant)=>{\n const variantProp = props === null || props === void 0 ? void 0 : props[variant];\n const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];\n if (variantProp === null) return null;\n const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);\n return variants[variant][variantKey];\n });\n const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{\n let [key, value] = param;\n if (value === undefined) {\n return acc;\n }\n acc[key] = value;\n return acc;\n }, {});\n const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{\n let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;\n return Object.entries(compoundVariantOptions).every((param)=>{\n let [key, value] = param;\n return Array.isArray(value) ? value.includes({\n ...defaultVariants,\n ...propsWithoutUndefined\n }[key]) : ({\n ...defaultVariants,\n ...propsWithoutUndefined\n })[key] === value;\n }) ? [\n ...acc,\n cvClass,\n cvClassName\n ] : acc;\n }, []);\n return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);\n };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BAAgB,GAAG,GAAG;AACtB,gBAAgB,OAAO;AACvB,gBAAgB;AAChB,aAAa,GAAG,GAAG;AACnB,QAAQ,CAAC,EAAE,EAAE,CAAC;AACd,QAAQ,OAAO,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;AACrM,IAAI;;;;","x_google_ignoreList":[0]}
|
package/dist/index9.js
CHANGED
|
@@ -1,45 +1,105 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { c as composeRefs } from './index11.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
5
|
+
// src/slot.tsx
|
|
6
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
7
|
+
var use = React[" use ".trim().toString()];
|
|
8
|
+
function isPromiseLike(value) {
|
|
9
|
+
return typeof value === "object" && value !== null && "then" in value;
|
|
10
|
+
}
|
|
11
|
+
function isLazyComponent(element) {
|
|
12
|
+
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
|
13
|
+
}
|
|
14
|
+
// @__NO_SIDE_EFFECTS__
|
|
15
|
+
function createSlot(ownerName) {
|
|
16
|
+
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
|
17
|
+
const Slot2 = React.forwardRef((props, forwardedRef) => {
|
|
18
|
+
let { children, ...slotProps } = props;
|
|
19
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
20
|
+
children = use(children._payload);
|
|
21
|
+
}
|
|
22
|
+
const childrenArray = React.Children.toArray(children);
|
|
23
|
+
const slottable = childrenArray.find(isSlottable);
|
|
24
|
+
if (slottable) {
|
|
25
|
+
const newElement = slottable.props.children;
|
|
26
|
+
const newChildren = childrenArray.map((child) => {
|
|
27
|
+
if (child === slottable) {
|
|
28
|
+
if (React.Children.count(newElement) > 1) return React.Children.only(null);
|
|
29
|
+
return React.isValidElement(newElement) ? newElement.props.children : null;
|
|
30
|
+
} else {
|
|
31
|
+
return child;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });
|
|
35
|
+
}
|
|
36
|
+
return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
|
|
37
|
+
});
|
|
38
|
+
Slot2.displayName = `${ownerName}.Slot`;
|
|
39
|
+
return Slot2;
|
|
40
|
+
}
|
|
41
|
+
var Slot = /* @__PURE__ */ createSlot("Slot");
|
|
42
|
+
// @__NO_SIDE_EFFECTS__
|
|
43
|
+
function createSlotClone(ownerName) {
|
|
44
|
+
const SlotClone = React.forwardRef((props, forwardedRef) => {
|
|
45
|
+
let { children, ...slotProps } = props;
|
|
46
|
+
if (isLazyComponent(children) && typeof use === "function") {
|
|
47
|
+
children = use(children._payload);
|
|
48
|
+
}
|
|
49
|
+
if (React.isValidElement(children)) {
|
|
50
|
+
const childrenRef = getElementRef(children);
|
|
51
|
+
const props2 = mergeProps(slotProps, children.props);
|
|
52
|
+
if (children.type !== React.Fragment) {
|
|
53
|
+
props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
|
|
54
|
+
}
|
|
55
|
+
return React.cloneElement(children, props2);
|
|
56
|
+
}
|
|
57
|
+
return React.Children.count(children) > 1 ? React.Children.only(null) : null;
|
|
58
|
+
});
|
|
59
|
+
SlotClone.displayName = `${ownerName}.SlotClone`;
|
|
60
|
+
return SlotClone;
|
|
61
|
+
}
|
|
62
|
+
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
|
63
|
+
function isSlottable(child) {
|
|
64
|
+
return React.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
|
65
|
+
}
|
|
66
|
+
function mergeProps(slotProps, childProps) {
|
|
67
|
+
const overrideProps = { ...childProps };
|
|
68
|
+
for (const propName in childProps) {
|
|
69
|
+
const slotPropValue = slotProps[propName];
|
|
70
|
+
const childPropValue = childProps[propName];
|
|
71
|
+
const isHandler = /^on[A-Z]/.test(propName);
|
|
72
|
+
if (isHandler) {
|
|
73
|
+
if (slotPropValue && childPropValue) {
|
|
74
|
+
overrideProps[propName] = (...args) => {
|
|
75
|
+
const result = childPropValue(...args);
|
|
76
|
+
slotPropValue(...args);
|
|
77
|
+
return result;
|
|
78
|
+
};
|
|
79
|
+
} else if (slotPropValue) {
|
|
80
|
+
overrideProps[propName] = slotPropValue;
|
|
81
|
+
}
|
|
82
|
+
} else if (propName === "style") {
|
|
83
|
+
overrideProps[propName] = { ...slotPropValue, ...childPropValue };
|
|
84
|
+
} else if (propName === "className") {
|
|
85
|
+
overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(" ");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return { ...slotProps, ...overrideProps };
|
|
89
|
+
}
|
|
90
|
+
function getElementRef(element) {
|
|
91
|
+
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
|
92
|
+
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
93
|
+
if (mayWarn) {
|
|
94
|
+
return element.ref;
|
|
95
|
+
}
|
|
96
|
+
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
|
97
|
+
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
|
98
|
+
if (mayWarn) {
|
|
99
|
+
return element.props.ref;
|
|
100
|
+
}
|
|
101
|
+
return element.props.ref || element.ref;
|
|
102
|
+
}
|
|
43
103
|
|
|
44
|
-
export {
|
|
104
|
+
export { Slot as S, createSlot as c };
|
|
45
105
|
//# sourceMappingURL=index9.js.map
|
package/dist/index9.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":["../node_modules/.pnpm
|
|
1
|
+
{"version":3,"file":"index9.js","sources":["../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.14_react@19.2.3/node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nvar use = React[\" use \".trim().toString()];\nfunction isPromiseLike(value) {\n return typeof value === \"object\" && value !== null && \"then\" in value;\n}\nfunction isLazyComponent(element) {\n return element != null && typeof element === \"object\" && \"$$typeof\" in element && element.$$typeof === REACT_LAZY_TYPE && \"_payload\" in element && isPromiseLike(element._payload);\n}\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n let { children, ...slotProps } = props;\n if (isLazyComponent(children) && typeof use === \"function\") {\n children = use(children._payload);\n }\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":[],"mappings":";;;;AAAA;AAIA,IAAI,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,CAAC;AAC9C,IAAI,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC;AAC1C,SAAS,aAAa,CAAC,KAAK,EAAE;AAC9B,EAAE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,IAAI,KAAK;AACvE;AACA,SAAS,eAAe,CAAC,OAAO,EAAE;AAClC,EAAE,OAAO,OAAO,IAAI,IAAI,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,UAAU,IAAI,OAAO,IAAI,OAAO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
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,CAAC;AACrB,OAAO,iBAAiB,CAAC;AAGzB,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,kBAAkB,EAClB,YAAY,EACZ,SAAS,EACT,KAAK,eAAe,EACpB,WAAW,EACX,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC;AAElB,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAG1B,OAAO,EACL,KAAK,EACL,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,QAAQ,GACT,MAAM,eAAe,CAAC"}
|
package/dist/popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { R as Root2, T as Trigger, P as Portal, C as Content2 } from './
|
|
2
|
+
import { R as Root2, T as Trigger, P as Portal, C as Content2 } from './index13.js';
|
|
3
3
|
import { c as cn } from './utils.js';
|
|
4
4
|
|
|
5
5
|
function Popover({ ...props }) {
|
package/dist/select2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { R as Root2, T as Trigger, I as Icon, V as Value, P as Portal, C as Content2, a as Viewport, b as Item, c as ItemIndicator, d as ItemText, S as ScrollUpButton, e as ScrollDownButton } from './
|
|
2
|
+
import { R as Root2, T as Trigger, I as Icon, V as Value, P as Portal, C as Content2, a as Viewport, b as Item, c as ItemIndicator, d as ItemText, S as ScrollUpButton, e as ScrollDownButton } from './index14.js';
|
|
3
3
|
import { c as cn } from './utils.js';
|
|
4
4
|
import { C as ChevronDown } from './chevron-down.js';
|
|
5
5
|
import { C as Check } from './check.js';
|
package/dist/separator2.js
CHANGED
package/dist/tooltip.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { P as Provider, R as Root3, T as Trigger, a as Portal, C as Content2, A as Arrow2 } from './
|
|
2
|
+
import { P as Provider, R as Root3, T as Trigger, a as Portal, C as Content2, A as Arrow2 } from './index12.js';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { c as cn } from './utils.js';
|
|
5
5
|
|
package/dist/useTimer.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useState, useEffect, useRef, useCallback, useMemo } from 'react';
|
|
|
2
2
|
import { w as we } from './index3.js';
|
|
3
3
|
import { useParams } from 'react-router-dom';
|
|
4
4
|
import { parseSlug } from './utils/slug.js';
|
|
5
|
-
import { g as getConfig } from './
|
|
5
|
+
import { g as getConfig } from './index7.js';
|
|
6
6
|
|
|
7
7
|
const DEFAULT_MIN_LENGTH = 3;
|
|
8
8
|
const DEFAULT_MAX_INTERVAL_MS = 50;
|
package/dist/utils/axios.js
CHANGED
package/dist/utils/currency.js
CHANGED
package/dist/utils/format.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import { t as tz } from '../
|
|
1
|
+
import '../index5.js';
|
|
2
|
+
import { t as tz } from '../index6.js';
|
|
3
3
|
import Decimal from './decimal.js';
|
|
4
4
|
import { formatCurrencyMajor } from './money.js';
|
|
5
5
|
import { getUserTimeZone } from './timezone.js';
|
package/dist/utils/money.js
CHANGED
package/dist/utils/timezone.js
CHANGED