@vritti/quantum-ui 0.5.9 → 0.6.1
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 +5 -5
- package/dist/Badge2.js +2 -2
- package/dist/Breadcrumb.js +1 -1
- package/dist/Button2.js +2 -2
- package/dist/Checkbox2.js +5 -5
- package/dist/{CurrencyField.js → CurrencyFieldFilter.js} +150 -6
- package/dist/CurrencyFieldFilter.js.map +1 -0
- package/dist/CurrencySelector.js.map +1 -1
- package/dist/DatePicker.js +15 -0
- package/dist/DatePicker.js.map +1 -1
- package/dist/DateRangePicker.js +135 -9
- package/dist/DateRangePicker.js.map +1 -1
- package/dist/DateTimePicker.js +3 -3
- package/dist/DateTimePicker.js.map +1 -1
- package/dist/DetailSectionSkeleton.js +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/ISOCountrySelect.js.map +1 -1
- package/dist/IconSelect.js +256 -270
- package/dist/IconSelect.js.map +1 -1
- package/dist/Label.js +1 -1
- package/dist/LocaleSelector.js.map +1 -1
- package/dist/PieChart.js +13 -9
- package/dist/PieChart.js.map +1 -1
- package/dist/Progress.js +2 -2
- package/dist/RadioGroup.js +7 -7
- package/dist/RelativeDayStrip.js +83 -0
- package/dist/RelativeDayStrip.js.map +1 -0
- package/dist/Select.js +26 -9
- package/dist/Select.js.map +1 -1
- package/dist/SelectFilter.js +27 -12
- package/dist/SelectFilter.js.map +1 -1
- package/dist/Sidebar.js +3 -3
- package/dist/Sonner.js +1 -1
- package/dist/Switch.js +5 -5
- package/dist/TabsSkeleton.js +2 -2
- package/dist/TimezoneSelector.js.map +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/assets/quantum-ui.css +8 -0
- package/dist/banknote.js +19 -0
- package/dist/banknote.js.map +1 -0
- package/dist/components/CurrencyField.js +1 -1
- package/dist/components/DateFilter.js +17 -74
- package/dist/components/DateFilter.js.map +1 -1
- package/dist/components/DateRangePicker.js +1 -1
- package/dist/components/FormattedDate.js +4 -4
- package/dist/components/FormattedDate.js.map +1 -1
- package/dist/components/RichTextEditor.js +1 -1
- package/dist/components/TreeView.js +5 -5
- package/dist/dropdown-menu.js +9 -9
- package/dist/field.js +1 -1
- package/dist/hooks/index.js +3 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/image-component.js +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- 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 +503 -28
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +229 -454
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.js +1073 -213
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +14 -1139
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +173 -19
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +173 -168
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +201 -171
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +190 -186
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +204 -202
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +68 -209
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +1128 -70
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +4 -1133
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +232 -4
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +1123 -35
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +2541 -202
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +35 -1123
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +277 -2539
- package/dist/index29.js.map +1 -1
- package/dist/index30.js +7 -307
- 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 +35347 -9
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +72 -35342
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +187 -72
- package/dist/index36.js.map +1 -1
- package/dist/index5.js +4 -4
- package/dist/index7.js +99 -13
- package/dist/index7.js.map +1 -1
- package/dist/index8.js +43 -99
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +102 -42
- package/dist/index9.js.map +1 -1
- package/dist/lib/components/CurrencyField/CurrencyFieldFilter.d.ts +27 -0
- package/dist/lib/components/CurrencyField/CurrencyFieldFilter.d.ts.map +1 -0
- package/dist/lib/components/CurrencyField/index.d.ts +2 -0
- package/dist/lib/components/CurrencyField/index.d.ts.map +1 -1
- package/dist/lib/components/DateFilter/DateFilter.d.ts +14 -6
- package/dist/lib/components/DateFilter/DateFilter.d.ts.map +1 -1
- package/dist/lib/components/DateFilter/index.d.ts +2 -2
- package/dist/lib/components/DateFilter/index.d.ts.map +1 -1
- package/dist/lib/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/lib/components/DatePicker/RelativeDayStrip.d.ts +28 -0
- package/dist/lib/components/DatePicker/RelativeDayStrip.d.ts.map +1 -0
- package/dist/lib/components/DateRangePicker/DateRangeFilter.d.ts +28 -0
- package/dist/lib/components/DateRangePicker/DateRangeFilter.d.ts.map +1 -0
- package/dist/lib/components/DateRangePicker/index.d.ts +2 -0
- package/dist/lib/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/lib/components/PieChart/PieChart.d.ts +3 -1
- package/dist/lib/components/PieChart/PieChart.d.ts.map +1 -1
- package/dist/lib/components/Select/SelectFilter.d.ts +17 -4
- package/dist/lib/components/Select/SelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts +2 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts +4 -0
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/components/SingleSelect/SingleSelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/hooks/useMultiSelect.d.ts +2 -1
- package/dist/lib/components/Select/hooks/useMultiSelect.d.ts.map +1 -1
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/hooks/index.d.ts +4 -3
- package/dist/lib/hooks/index.d.ts.map +1 -1
- package/dist/lib/hooks/useCategoricalColors.d.ts +3 -0
- package/dist/lib/hooks/useCategoricalColors.d.ts.map +1 -0
- package/dist/lib/hooks/useFormatters.d.ts +4 -1
- package/dist/lib/hooks/useFormatters.d.ts.map +1 -1
- package/dist/lib/hooks/useWorkspaceCurrency.d.ts +2 -0
- package/dist/lib/hooks/useWorkspaceCurrency.d.ts.map +1 -0
- package/dist/lib/hooks/useWorkspaceTimeZone.d.ts +2 -0
- package/dist/lib/hooks/useWorkspaceTimeZone.d.ts.map +1 -0
- package/dist/lib/selects/currency/CurrencyFilter.d.ts +3 -5
- package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -1
- package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts +3 -4
- package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts.map +1 -1
- package/dist/lib/selects/locale/LocaleFilter.d.ts +3 -4
- package/dist/lib/selects/locale/LocaleFilter.d.ts.map +1 -1
- package/dist/lib/selects/timezone/TimezoneFilter.d.ts +3 -4
- package/dist/lib/selects/timezone/TimezoneFilter.d.ts.map +1 -1
- package/dist/lib/types/table-filter.d.ts +8 -2
- package/dist/lib/types/table-filter.d.ts.map +1 -1
- package/dist/lib/types/utility.d.ts +2 -0
- package/dist/lib/types/utility.d.ts.map +1 -0
- package/dist/lib/utils/colors.d.ts +8 -0
- package/dist/lib/utils/colors.d.ts.map +1 -1
- package/dist/lib/utils/currency.d.ts +2 -2
- package/dist/lib/utils/currency.d.ts.map +1 -1
- package/dist/lib/utils/format.d.ts +2 -2
- package/dist/lib/utils/format.d.ts.map +1 -1
- package/dist/lib/utils/timezone.d.ts +3 -2
- package/dist/lib/utils/timezone.d.ts.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/select2.js +1 -1
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts +2 -2
- package/dist/shadcn/shadcnMultiSelect/multi-select.d.ts.map +1 -1
- package/dist/timezone.js +68 -0
- package/dist/timezone.js.map +1 -0
- package/dist/tooltip2.js +1 -1
- package/dist/types/table-filter.js.map +1 -1
- package/dist/types/utility.js +2 -0
- package/dist/types/utility.js.map +1 -0
- package/dist/useCategoricalColors.js +20 -0
- package/dist/useCategoricalColors.js.map +1 -0
- package/dist/useDataTable.js +3 -3
- package/dist/useDataTable.js.map +1 -1
- package/dist/useFormatters.js +13 -13
- package/dist/useFormatters.js.map +1 -1
- package/dist/useTimer.js +1 -1
- package/dist/useWorkspaceTimeZone.js +10 -0
- package/dist/useWorkspaceTimeZone.js.map +1 -0
- package/dist/utils/axios.js +1 -1
- package/dist/utils/colors.js +187 -1
- package/dist/utils/colors.js.map +1 -1
- package/dist/utils/currency.js +14 -14
- package/dist/utils/currency.js.map +1 -1
- package/dist/utils/format.js +7 -8
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/money.js +1 -1
- package/dist/utils/motion.js +2 -2
- package/dist/utils/timezone.js +4 -51
- package/dist/utils/timezone.js.map +1 -1
- package/dist/value.js +1 -1
- package/package.json +5 -1
- package/dist/CurrencyField.js.map +0 -1
- package/dist/index37.js +0 -199
- package/dist/index37.js.map +0 -1
- package/dist/lib/hooks/useBUCurrency.d.ts +0 -2
- package/dist/lib/hooks/useBUCurrency.d.ts.map +0 -1
- package/dist/lib/hooks/useBUTimezone.d.ts +0 -2
- package/dist/lib/hooks/useBUTimezone.d.ts.map +0 -1
- package/dist/useBUTimezone.js +0 -10
- package/dist/useBUTimezone.js.map +0 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.6.1",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"repository": {
|
|
@@ -332,6 +332,10 @@
|
|
|
332
332
|
"types": "./dist/lib/types/table-filter.d.ts",
|
|
333
333
|
"import": "./dist/types/table-filter.js"
|
|
334
334
|
},
|
|
335
|
+
"./types/utility": {
|
|
336
|
+
"types": "./dist/lib/types/utility.d.ts",
|
|
337
|
+
"import": "./dist/types/utility.js"
|
|
338
|
+
},
|
|
335
339
|
"./types/api-response": {
|
|
336
340
|
"types": "./dist/lib/types/api-response.d.ts",
|
|
337
341
|
"import": "./dist/types/api-response.js"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyField.js","sources":["../lib/components/CurrencyField/CurrencyField.tsx"],"sourcesContent":["import { ChevronDown } from 'lucide-react';\nimport React from 'react';\nimport { Field, FieldContent, FieldDescription, FieldError, FieldLabel } from '../../../shadcn/shadcnField';\nimport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../../../shadcn/shadcnTooltip';\nimport { cn } from '../../../shadcn/utils';\nimport { CURRENCIES } from '../../selects/currency/currencies';\nimport { type CurrencyValue, getCurrencyExponent } from '../../utils/currency';\nimport { lockedTip, PermissionLockIcon, usePermission } from '../PermissionGate';\nimport { Select, type SelectOption, type SelectValue } from '../Select';\n\nexport interface CurrencyFieldProps {\n name?: string;\n\n value?: CurrencyValue;\n\n onChange?: (value: CurrencyValue) => void;\n\n currencyCode?: string;\n\n currencies?: string[];\n\n defaultCurrencyCode?: string;\n\n label?: React.ReactNode;\n\n description?: React.ReactNode;\n\n error?: React.ReactNode;\n\n disabled?: boolean;\n\n disabledTip?: string;\n\n placeholder?: string;\n\n className?: string;\n\n required?: boolean;\n\n /** Permission code gating this field: hidden when not granted, disabled with a lock + upsell tip when locked */\n permission?: string;\n}\n\n// Truncates an amount string to at most `decimals` fractional digits\nfunction truncateDecimals(amount: string, decimals: number): string {\n if (amount === '') return amount;\n if (!Number.isFinite(Number(amount))) return amount;\n const [whole, fraction] = amount.split('.');\n if (decimals === 0) return whole ?? '';\n if (fraction === undefined) return amount;\n if (fraction.length <= decimals) return amount;\n return `${whole}.${fraction.slice(0, decimals)}`;\n}\n\n// Returns the `step` attribute for an input given a currency exponent\nfunction stepForDecimals(decimals: number): string {\n if (decimals <= 0) return '1';\n return `0.${'0'.repeat(decimals - 1)}1`;\n}\n\n// The selectable currencies, in the caller's order; a code missing from the ISO list still appears as itself\nfunction currencyOptions(currencies?: string[]): SelectOption[] {\n if (!currencies) return CURRENCIES;\n return currencies.map((code) => CURRENCIES.find((option) => option.value === code) ?? { value: code, label: code });\n}\n\n// Currency-aware money input combining a currency selector with an exponent-aware amount input\nexport const CurrencyField = React.forwardRef<HTMLInputElement, CurrencyFieldProps>(\n (\n {\n name: _name,\n value,\n onChange,\n currencyCode,\n currencies,\n defaultCurrencyCode = 'USD',\n label,\n description,\n error,\n disabled: disabledProp,\n disabledTip,\n placeholder,\n className,\n required,\n permission,\n },\n ref,\n ) => {\n const fieldId = React.useId();\n const hasError = !!error;\n const gate = usePermission(permission);\n const { granted, locked, reason } = gate;\n // enable = role ∧ plan ∧ BU: granted but locked renders disabled with the upsell as its tooltip\n const disabled = disabledProp || locked;\n const tip = locked ? lockedTip(gate) : disabledTip;\n const isLocked = !!currencyCode || currencies?.length === 1;\n const options = React.useMemo(() => currencyOptions(currencies), [currencies]);\n const fallbackCurrency =\n currencies && currencies.length > 0 && !currencies.includes(defaultCurrencyCode)\n ? currencies[0]\n : defaultCurrencyCode;\n\n const initialCurrency = value?.currency ?? currencyCode ?? fallbackCurrency ?? 'USD';\n const [currency, setCurrency] = React.useState<string>(initialCurrency);\n const [amount, setAmount] = React.useState<string>(value?.value ?? '');\n\n // Sync with external controlled value changes\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentionally omitting internal state to avoid feedback loops\n React.useEffect(() => {\n if (value?.currency !== undefined && value.currency !== currency) {\n setCurrency(value.currency);\n }\n if (value?.value !== undefined && value.value !== amount) {\n setAmount(value.value);\n }\n }, [value?.currency, value?.value]);\n\n // If currencyCode prop changes while locked, reflect it\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentionally omitting internal state to avoid feedback loops\n React.useEffect(() => {\n if (currencyCode && currencyCode !== currency) {\n setCurrency(currencyCode);\n }\n }, [currencyCode]);\n\n // A narrowed list that no longer holds the current currency moves it to the first one allowed\n // biome-ignore lint/correctness/useExhaustiveDependencies: intentionally omitting internal state to avoid feedback loops\n React.useEffect(() => {\n if (!currencyCode && currencies && currencies.length > 0 && !currencies.includes(currency)) {\n setCurrency(currencies[0]);\n }\n }, [currencyCode, currencies?.join(',')]);\n\n const decimals = getCurrencyExponent(currency);\n const step = stepForDecimals(decimals);\n\n const emit = React.useCallback(\n (nextCurrency: string, nextAmount: string) => {\n onChange?.({ currency: nextCurrency, value: nextAmount });\n },\n [onChange],\n );\n\n const handleCurrencyChange = React.useCallback(\n (nextValue: SelectValue) => {\n if (nextValue == null) return;\n const nextCurrency = String(nextValue);\n const nextDecimals = getCurrencyExponent(nextCurrency);\n const truncated = truncateDecimals(amount, nextDecimals);\n setCurrency(nextCurrency);\n if (truncated !== amount) setAmount(truncated);\n emit(nextCurrency, truncated);\n },\n [amount, emit],\n );\n\n const handleAmountChange = React.useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const raw = event.target.value;\n // Allow empty, digits, and a single decimal separator; cap fractional digits\n if (raw === '') {\n setAmount('');\n emit(currency, '');\n return;\n }\n // Strict numeric pattern -- reject anything else silently\n if (!/^\\d*\\.?\\d*$/.test(raw)) return;\n const truncated = truncateDecimals(raw, decimals);\n setAmount(truncated);\n emit(currency, truncated);\n },\n [currency, decimals, emit],\n );\n\n const handleAmountBlur = React.useCallback(() => {\n if (amount === '' || amount === '.') return;\n const parsed = Number(amount);\n if (!Number.isFinite(parsed)) return;\n const snapped = parsed.toFixed(decimals);\n if (snapped !== amount) {\n setAmount(snapped);\n emit(currency, snapped);\n }\n }, [amount, currency, decimals, emit]);\n\n // render = role: the role doesn't grant this field, so it doesn't exist for this user\n if (!granted) {\n return null;\n }\n\n const field = (\n <Field data-disabled={disabled}>\n {label && (\n <FieldLabel htmlFor={fieldId} className={cn(locked && 'items-center gap-1.5')}>\n {locked && <PermissionLockIcon reason={reason} className=\"size-3.5\" />}\n {label}\n </FieldLabel>\n )}\n\n <FieldContent>\n <div\n className={cn(\n 'flex h-9 w-full items-stretch rounded-md border border-input bg-transparent dark:bg-input/30 shadow-xs transition-[color,box-shadow]',\n 'focus-within:border-ring focus-within:ring-ring/50 focus-within:ring-[1px]',\n disabled && 'opacity-50 cursor-not-allowed pointer-events-none',\n hasError && 'border-destructive focus-within:ring-destructive/20 dark:focus-within:ring-destructive/40',\n className,\n )}\n >\n {isLocked ? (\n <span\n role=\"img\"\n aria-label={`Currency ${currency}`}\n className=\"flex items-center justify-center border-r border-input px-3 text-sm font-medium text-muted-foreground select-none\"\n >\n {currency}\n </span>\n ) : (\n <div className=\"flex items-center border-r border-input\">\n <Select\n options={options}\n searchable\n placeholder=\"Select currency\"\n value={currency}\n onChange={handleCurrencyChange}\n disabled={disabled}\n clearable={false}\n label=\"\"\n contentClassName=\"min-w-[280px] w-auto\"\n anchor={({ selectedOption, open, disabled: anchorDisabled }) => (\n <button\n type=\"button\"\n disabled={anchorDisabled}\n aria-label=\"Select currency\"\n aria-expanded={open}\n className={cn(\n 'flex h-full items-center gap-1 px-3 text-sm font-medium text-foreground outline-none',\n 'hover:bg-accent/50 focus-visible:bg-accent/50',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n )}\n >\n <span>{selectedOption ? String(selectedOption.value) : currency}</span>\n <ChevronDown\n className={cn('size-3.5 text-muted-foreground transition-transform', open && 'rotate-180')}\n />\n </button>\n )}\n />\n </div>\n )}\n\n <input\n ref={ref}\n id={fieldId}\n type=\"text\"\n inputMode=\"decimal\"\n pattern=\"^[0-9]*\\.?[0-9]*$\"\n step={step}\n value={amount}\n onChange={handleAmountChange}\n onBlur={handleAmountBlur}\n disabled={disabled}\n required={required}\n placeholder={placeholder}\n aria-invalid={hasError}\n aria-describedby={description || error ? `${fieldId}-description ${fieldId}-error` : undefined}\n className={cn(\n 'flex-1 min-w-0 bg-transparent px-3 py-1 text-sm outline-none',\n 'placeholder:text-muted-foreground',\n 'disabled:cursor-not-allowed',\n )}\n />\n </div>\n\n {description && !error && <FieldDescription id={`${fieldId}-description`}>{description}</FieldDescription>}\n {error && <FieldError id={`${fieldId}-error`}>{error}</FieldError>}\n </FieldContent>\n </Field>\n );\n\n if (!tip || !disabled) {\n return field;\n }\n\n return (\n <TooltipProvider>\n <Tooltip>\n {/* Disabled inputs don't emit hover/focus events, so the trigger lives on a wrapper. */}\n <TooltipTrigger asChild>\n <span className=\"inline-flex w-full cursor-not-allowed\">{field}</span>\n </TooltipTrigger>\n <TooltipContent>{tip}</TooltipContent>\n </Tooltip>\n </TooltipProvider>\n );\n },\n);\n\nCurrencyField.displayName = 'CurrencyField';\n"],"names":["React"],"mappings":";;;;;;;;;;;AA4CA,SAAS,gBAAA,CAAiB,QAAgB,QAAA,EAA0B;AAClE,EAAA,IAAI,MAAA,KAAW,IAAI,OAAO,MAAA;AAC1B,EAAA,IAAI,CAAC,MAAA,CAAO,QAAA,CAAS,OAAO,MAAM,CAAC,GAAG,OAAO,MAAA;AAC7C,EAAA,MAAM,CAAC,KAAA,EAAO,QAAQ,CAAA,GAAI,MAAA,CAAO,MAAM,GAAG,CAAA;AAC1C,EAAA,IAAI,QAAA,KAAa,CAAA,EAAG,OAAO,KAAA,IAAS,EAAA;AACpC,EAAA,IAAI,QAAA,KAAa,QAAW,OAAO,MAAA;AACnC,EAAA,IAAI,QAAA,CAAS,MAAA,IAAU,QAAA,EAAU,OAAO,MAAA;AACxC,EAAA,OAAO,GAAG,KAAK,CAAA,CAAA,EAAI,SAAS,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EAAW,IAAI,CAAA,EAAG,OAAO,UAAW,QAAA,EAAA,KAAA,EAAM;AAAA,OAAA,EACvD;AAAA,KAAA,EACF,CAAA;AAGF,IAAA,IAAI,CAAC,GAAA,IAAO,CAAC,QAAA,EAAU;AACrB,MAAA,OAAO,KAAA;AAAA,IACT;AAEA,IAAA,uBACE,GAAA,CAAC,eAAA,EAAA,EACC,QAAA,kBAAA,IAAA,CAAC,OAAA,EAAA,EAEC,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,SAAO,IAAA,EACrB,QAAA,kBAAA,GAAA,CAAC,UAAK,SAAA,EAAU,uCAAA,EAAyC,iBAAM,CAAA,EACjE,CAAA;AAAA,sBACA,GAAA,CAAC,kBAAgB,QAAA,EAAA,GAAA,EAAI;AAAA,KAAA,EACvB,CAAA,EACF,CAAA;AAAA,EAEJ;AACF;AAEA,aAAA,CAAc,WAAA,GAAc,eAAA;;;;"}
|
package/dist/index37.js
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
var shim = {exports: {}};
|
|
4
|
-
|
|
5
|
-
var useSyncExternalStoreShim_production = {};
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @license React
|
|
9
|
-
* use-sync-external-store-shim.production.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
var hasRequiredUseSyncExternalStoreShim_production;
|
|
18
|
-
|
|
19
|
-
function requireUseSyncExternalStoreShim_production () {
|
|
20
|
-
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
21
|
-
hasRequiredUseSyncExternalStoreShim_production = 1;
|
|
22
|
-
var React = React__default;
|
|
23
|
-
function is(x, y) {
|
|
24
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
25
|
-
}
|
|
26
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
27
|
-
useState = React.useState,
|
|
28
|
-
useEffect = React.useEffect,
|
|
29
|
-
useLayoutEffect = React.useLayoutEffect,
|
|
30
|
-
useDebugValue = React.useDebugValue;
|
|
31
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
32
|
-
var value = getSnapshot(),
|
|
33
|
-
_useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),
|
|
34
|
-
inst = _useState[0].inst,
|
|
35
|
-
forceUpdate = _useState[1];
|
|
36
|
-
useLayoutEffect(
|
|
37
|
-
function () {
|
|
38
|
-
inst.value = value;
|
|
39
|
-
inst.getSnapshot = getSnapshot;
|
|
40
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
41
|
-
},
|
|
42
|
-
[subscribe, value, getSnapshot]
|
|
43
|
-
);
|
|
44
|
-
useEffect(
|
|
45
|
-
function () {
|
|
46
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
47
|
-
return subscribe(function () {
|
|
48
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
[subscribe]
|
|
52
|
-
);
|
|
53
|
-
useDebugValue(value);
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
function checkIfSnapshotChanged(inst) {
|
|
57
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
58
|
-
inst = inst.value;
|
|
59
|
-
try {
|
|
60
|
-
var nextValue = latestGetSnapshot();
|
|
61
|
-
return !objectIs(inst, nextValue);
|
|
62
|
-
} catch (error) {
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
67
|
-
return getSnapshot();
|
|
68
|
-
}
|
|
69
|
-
var shim =
|
|
70
|
-
"undefined" === typeof window ||
|
|
71
|
-
"undefined" === typeof window.document ||
|
|
72
|
-
"undefined" === typeof window.document.createElement
|
|
73
|
-
? useSyncExternalStore$1
|
|
74
|
-
: useSyncExternalStore$2;
|
|
75
|
-
useSyncExternalStoreShim_production.useSyncExternalStore =
|
|
76
|
-
void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
77
|
-
return useSyncExternalStoreShim_production;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
var useSyncExternalStoreShim_development = {};
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @license React
|
|
84
|
-
* use-sync-external-store-shim.development.js
|
|
85
|
-
*
|
|
86
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the MIT license found in the
|
|
89
|
-
* LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
var hasRequiredUseSyncExternalStoreShim_development;
|
|
93
|
-
|
|
94
|
-
function requireUseSyncExternalStoreShim_development () {
|
|
95
|
-
if (hasRequiredUseSyncExternalStoreShim_development) return useSyncExternalStoreShim_development;
|
|
96
|
-
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
97
|
-
"production" !== process.env.NODE_ENV &&
|
|
98
|
-
(function () {
|
|
99
|
-
function is(x, y) {
|
|
100
|
-
return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
|
|
101
|
-
}
|
|
102
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
103
|
-
didWarnOld18Alpha ||
|
|
104
|
-
void 0 === React.startTransition ||
|
|
105
|
-
((didWarnOld18Alpha = true),
|
|
106
|
-
console.error(
|
|
107
|
-
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
108
|
-
));
|
|
109
|
-
var value = getSnapshot();
|
|
110
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
111
|
-
var cachedValue = getSnapshot();
|
|
112
|
-
objectIs(value, cachedValue) ||
|
|
113
|
-
(console.error(
|
|
114
|
-
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
115
|
-
),
|
|
116
|
-
(didWarnUncachedGetSnapshot = true));
|
|
117
|
-
}
|
|
118
|
-
cachedValue = useState({
|
|
119
|
-
inst: { value: value, getSnapshot: getSnapshot }
|
|
120
|
-
});
|
|
121
|
-
var inst = cachedValue[0].inst,
|
|
122
|
-
forceUpdate = cachedValue[1];
|
|
123
|
-
useLayoutEffect(
|
|
124
|
-
function () {
|
|
125
|
-
inst.value = value;
|
|
126
|
-
inst.getSnapshot = getSnapshot;
|
|
127
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
128
|
-
},
|
|
129
|
-
[subscribe, value, getSnapshot]
|
|
130
|
-
);
|
|
131
|
-
useEffect(
|
|
132
|
-
function () {
|
|
133
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
134
|
-
return subscribe(function () {
|
|
135
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });
|
|
136
|
-
});
|
|
137
|
-
},
|
|
138
|
-
[subscribe]
|
|
139
|
-
);
|
|
140
|
-
useDebugValue(value);
|
|
141
|
-
return value;
|
|
142
|
-
}
|
|
143
|
-
function checkIfSnapshotChanged(inst) {
|
|
144
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
145
|
-
inst = inst.value;
|
|
146
|
-
try {
|
|
147
|
-
var nextValue = latestGetSnapshot();
|
|
148
|
-
return !objectIs(inst, nextValue);
|
|
149
|
-
} catch (error) {
|
|
150
|
-
return true;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
154
|
-
return getSnapshot();
|
|
155
|
-
}
|
|
156
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
157
|
-
"function" ===
|
|
158
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
159
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
160
|
-
var React = React__default,
|
|
161
|
-
objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
162
|
-
useState = React.useState,
|
|
163
|
-
useEffect = React.useEffect,
|
|
164
|
-
useLayoutEffect = React.useLayoutEffect,
|
|
165
|
-
useDebugValue = React.useDebugValue,
|
|
166
|
-
didWarnOld18Alpha = false,
|
|
167
|
-
didWarnUncachedGetSnapshot = false,
|
|
168
|
-
shim =
|
|
169
|
-
"undefined" === typeof window ||
|
|
170
|
-
"undefined" === typeof window.document ||
|
|
171
|
-
"undefined" === typeof window.document.createElement
|
|
172
|
-
? useSyncExternalStore$1
|
|
173
|
-
: useSyncExternalStore$2;
|
|
174
|
-
useSyncExternalStoreShim_development.useSyncExternalStore =
|
|
175
|
-
void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
176
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
177
|
-
"function" ===
|
|
178
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
179
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
180
|
-
})();
|
|
181
|
-
return useSyncExternalStoreShim_development;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
var hasRequiredShim;
|
|
185
|
-
|
|
186
|
-
function requireShim () {
|
|
187
|
-
if (hasRequiredShim) return shim.exports;
|
|
188
|
-
hasRequiredShim = 1;
|
|
189
|
-
|
|
190
|
-
if (process.env.NODE_ENV === 'production') {
|
|
191
|
-
shim.exports = requireUseSyncExternalStoreShim_production();
|
|
192
|
-
} else {
|
|
193
|
-
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
194
|
-
}
|
|
195
|
-
return shim.exports;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export { requireShim as r };
|
|
199
|
-
//# sourceMappingURL=index37.js.map
|
package/dist/index37.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":["../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js","../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/shim/index.js"],"sourcesContent":["/**\n * @license React\n * use-sync-external-store-shim.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue;\nfunction useSyncExternalStore$2(subscribe, getSnapshot) {\n var value = getSnapshot(),\n _useState = useState({ inst: { value: value, getSnapshot: getSnapshot } }),\n inst = _useState[0].inst,\n forceUpdate = _useState[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n}\nvar shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\nexports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n","/**\n * @license React\n * use-sync-external-store-shim.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n }\n function useSyncExternalStore$2(subscribe, getSnapshot) {\n didWarnOld18Alpha ||\n void 0 === React.startTransition ||\n ((didWarnOld18Alpha = !0),\n console.error(\n \"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.\"\n ));\n var value = getSnapshot();\n if (!didWarnUncachedGetSnapshot) {\n var cachedValue = getSnapshot();\n objectIs(value, cachedValue) ||\n (console.error(\n \"The result of getSnapshot should be cached to avoid an infinite loop\"\n ),\n (didWarnUncachedGetSnapshot = !0));\n }\n cachedValue = useState({\n inst: { value: value, getSnapshot: getSnapshot }\n });\n var inst = cachedValue[0].inst,\n forceUpdate = cachedValue[1];\n useLayoutEffect(\n function () {\n inst.value = value;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n },\n [subscribe, value, getSnapshot]\n );\n useEffect(\n function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceUpdate({ inst: inst });\n });\n },\n [subscribe]\n );\n useDebugValue(value);\n return value;\n }\n function checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n }\n function useSyncExternalStore$1(subscribe, getSnapshot) {\n return getSnapshot();\n }\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());\n var React = require(\"react\"),\n objectIs = \"function\" === typeof Object.is ? Object.is : is,\n useState = React.useState,\n useEffect = React.useEffect,\n useLayoutEffect = React.useLayoutEffect,\n useDebugValue = React.useDebugValue,\n didWarnOld18Alpha = !1,\n didWarnUncachedGetSnapshot = !1,\n shim =\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ? useSyncExternalStore$1\n : useSyncExternalStore$2;\n exports.useSyncExternalStore =\n void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;\n \"undefined\" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&\n \"function\" ===\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&\n __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('../cjs/use-sync-external-store-shim.production.js');\n} else {\n module.exports = require('../cjs/use-sync-external-store-shim.development.js');\n}\n"],"names":["require$$0","shimModule","require$$1"],"mappings":";;;;;;;;;;;;;;;;;;;;;CAWA,IAAI,KAAK,GAAGA,cAAgB;AAC5B,CAAA,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE;GAChB,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG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AAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,GAAG,IAAI;KAC3E,WAAW,KAAK,OAAO,8BAA8B;AACzD,OAAM,UAAU;SACR,OAAO,8BAA8B,CAAC,0BAA0B;AACxE,OAAM,8BAA8B,CAAC,0BAA0B,CAAC,KAAK,EAAE,CAAC;AACxE,GAAA,CAAG,GAAG;;;;;;;;;;AC5FN,CAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;GACzCC,IAAA,CAAA,OAAc,GAAGD,0CAAA,EAA4D;AAC/E,CAAA,CAAC,MAAM;GACLC,IAAA,CAAA,OAAc,GAAGC,2CAAA,EAA6D;AAChF,CAAA;;;;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBUCurrency.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useBUCurrency.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAI7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBUTimezone.d.ts","sourceRoot":"","sources":["../../../lib/hooks/useBUTimezone.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,IAAI,MAAM,GAAG,IAAI,CAI7C"}
|
package/dist/useBUTimezone.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useLocation } from 'react-router-dom';
|
|
2
|
-
import { resolveTimeZone } from './utils/timezone.js';
|
|
3
|
-
|
|
4
|
-
function useBUTimezone() {
|
|
5
|
-
useLocation();
|
|
6
|
-
return resolveTimeZone();
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { useBUTimezone as u };
|
|
10
|
-
//# sourceMappingURL=useBUTimezone.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBUTimezone.js","sources":["../lib/hooks/useBUTimezone.ts"],"sourcesContent":["import { useLocation } from 'react-router-dom';\nimport { resolveTimeZone } from '../utils/timezone';\n\n// Returns the IANA timezone resolved for the current route, re-resolving on route change (host resolver → user timezone → browser timezone).\nexport function useBUTimezone(): string | null {\n // Subscribe to URL changes so we re-resolve when the BU slug in the path changes.\n useLocation();\n return resolveTimeZone();\n}\n"],"names":[],"mappings":";;;AAIO,SAAS,aAAA,GAA+B;AAE7C,EAAA,WAAA,EAAY;AACZ,EAAA,OAAO,eAAA,EAAgB;AACzB;;;;"}
|