@hintoric/ui 0.4.0 → 0.5.0

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.
Files changed (75) hide show
  1. package/dist/components/AccordionSummary/AccordionSummary.d.ts.map +1 -1
  2. package/dist/components/AddressAutofill/AddressAutofill.d.ts +8 -0
  3. package/dist/components/AddressAutofill/AddressAutofill.d.ts.map +1 -0
  4. package/dist/components/AddressAutofill/addressApi.d.ts +6 -0
  5. package/dist/components/AddressAutofill/addressApi.d.ts.map +1 -0
  6. package/dist/components/AddressAutofill/index.d.ts +3 -0
  7. package/dist/components/AddressAutofill/index.d.ts.map +1 -0
  8. package/dist/components/AddressAutofill/types.d.ts +38 -0
  9. package/dist/components/AddressAutofill/types.d.ts.map +1 -0
  10. package/dist/components/AddressAutofill/useAddressSuggestions.d.ts +13 -0
  11. package/dist/components/AddressAutofill/useAddressSuggestions.d.ts.map +1 -0
  12. package/dist/components/AnimatedMapImage/AnimatedMapImage.d.ts +4 -0
  13. package/dist/components/AnimatedMapImage/AnimatedMapImage.d.ts.map +1 -0
  14. package/dist/components/AnimatedMapImage/index.d.ts +3 -0
  15. package/dist/components/AnimatedMapImage/index.d.ts.map +1 -0
  16. package/dist/components/AnimatedMapImage/types.d.ts +2 -0
  17. package/dist/components/AnimatedMapImage/types.d.ts.map +1 -0
  18. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  19. package/dist/components/Autocomplete/types.d.ts +31 -1
  20. package/dist/components/Autocomplete/types.d.ts.map +1 -1
  21. package/dist/components/Blurhash/Blurhash.d.ts +12 -0
  22. package/dist/components/Blurhash/Blurhash.d.ts.map +1 -0
  23. package/dist/components/Blurhash/index.d.ts +3 -0
  24. package/dist/components/Blurhash/index.d.ts.map +1 -0
  25. package/dist/components/Blurhash/types.d.ts +14 -0
  26. package/dist/components/Blurhash/types.d.ts.map +1 -0
  27. package/dist/components/BlurhashImage/BlurhashImage.d.ts +12 -0
  28. package/dist/components/BlurhashImage/BlurhashImage.d.ts.map +1 -0
  29. package/dist/components/BlurhashImage/index.d.ts +3 -0
  30. package/dist/components/BlurhashImage/index.d.ts.map +1 -0
  31. package/dist/components/BlurhashImage/types.d.ts +23 -0
  32. package/dist/components/BlurhashImage/types.d.ts.map +1 -0
  33. package/dist/components/Button/buttonVariants.d.ts.map +1 -1
  34. package/dist/components/Checkbox/checkboxVariants.d.ts.map +1 -1
  35. package/dist/components/ChipDelete/ChipDelete.d.ts.map +1 -1
  36. package/dist/components/FileInput/FileInput.d.ts +12 -0
  37. package/dist/components/FileInput/FileInput.d.ts.map +1 -0
  38. package/dist/components/FileInput/index.d.ts +3 -0
  39. package/dist/components/FileInput/index.d.ts.map +1 -0
  40. package/dist/components/FileInput/types.d.ts +13 -0
  41. package/dist/components/FileInput/types.d.ts.map +1 -0
  42. package/dist/components/IconButton/iconButtonVariants.d.ts.map +1 -1
  43. package/dist/components/Input/Input.d.ts.map +1 -1
  44. package/dist/components/Input/inputVariants.d.ts.map +1 -1
  45. package/dist/components/Link/Link.d.ts.map +1 -1
  46. package/dist/components/List/List.d.ts.map +1 -1
  47. package/dist/components/ListItem/ListItem.d.ts.map +1 -1
  48. package/dist/components/MapImage/MapImage.d.ts +4 -0
  49. package/dist/components/MapImage/MapImage.d.ts.map +1 -0
  50. package/dist/components/MapImage/MapImageFrame.d.ts +16 -0
  51. package/dist/components/MapImage/MapImageFrame.d.ts.map +1 -0
  52. package/dist/components/MapImage/index.d.ts +3 -0
  53. package/dist/components/MapImage/index.d.ts.map +1 -0
  54. package/dist/components/MapImage/types.d.ts +22 -0
  55. package/dist/components/MapImage/types.d.ts.map +1 -0
  56. package/dist/components/MapImage/useMapImage.d.ts +19 -0
  57. package/dist/components/MapImage/useMapImage.d.ts.map +1 -0
  58. package/dist/components/MenuList/MenuList.d.ts.map +1 -1
  59. package/dist/components/ModalClose/ModalClose.d.ts.map +1 -1
  60. package/dist/components/Radio/radioVariants.d.ts.map +1 -1
  61. package/dist/components/RelativeTime/RelativeTime.d.ts.map +1 -1
  62. package/dist/components/StepIndicator/StepIndicator.d.ts.map +1 -1
  63. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  64. package/dist/components/Tab/Tab.d.ts.map +1 -1
  65. package/dist/components/Table/tableVariants.d.ts +3 -3
  66. package/dist/index.d.ts +14 -0
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +3109 -2625
  69. package/dist/index.js.map +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/utils/blurhash.d.ts +26 -0
  72. package/dist/utils/blurhash.d.ts.map +1 -0
  73. package/dist/utils/usePrefersReducedMotion.d.ts +3 -0
  74. package/dist/utils/usePrefersReducedMotion.d.ts.map +1 -0
  75. package/package.json +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionSummary.d.ts","sourceRoot":"","sources":["../../../src/components/AccordionSummary/AccordionSummary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQrD,eAAO,MAAM,gBAAgB,iGAqB3B,CAAC"}
1
+ {"version":3,"file":"AccordionSummary.d.ts","sourceRoot":"","sources":["../../../src/components/AccordionSummary/AccordionSummary.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQrD,eAAO,MAAM,gBAAgB,iGA2B3B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { AddressAutofillProps } from './types';
2
+ import * as React from 'react';
3
+ export declare const AddressAutofill: ((props: AddressAutofillProps & {
4
+ ref?: React.Ref<HTMLInputElement>;
5
+ }) => React.ReactElement) & {
6
+ displayName?: string;
7
+ };
8
+ //# sourceMappingURL=AddressAutofill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddressAutofill.d.ts","sourceRoot":"","sources":["../../../src/components/AddressAutofill/AddressAutofill.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,oBAAoB,EAAqB,MAAM,SAAS,CAAC;AAuGvE,eAAO,MAAM,eAAe,EAAiD,CAAC,CAC5E,KAAK,EAAE,oBAAoB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,KAChE,KAAK,CAAC,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { AddressSuggestion } from './types';
2
+ export declare function fetchAddressSuggestions(query: string, { limit, signal }: {
3
+ limit: number;
4
+ signal: AbortSignal;
5
+ }): Promise<AddressSuggestion[]>;
6
+ //# sourceMappingURL=addressApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addressApi.d.ts","sourceRoot":"","sources":["../../../src/components/AddressAutofill/addressApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIjD,wBAAsB,uBAAuB,CAC3C,KAAK,EAAE,MAAM,EACb,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,GACxD,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAU9B"}
@@ -0,0 +1,3 @@
1
+ export { AddressAutofill } from './AddressAutofill';
2
+ export type { AddressAutofillProps, AddressSuggestion } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AddressAutofill/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { JoyColor, JoyVariant } from '../../utils/colorVariantClasses';
2
+ import type * as React from 'react';
3
+ export interface AddressSuggestion {
4
+ postalCode: string;
5
+ city: string;
6
+ street: string;
7
+ borough: string | null;
8
+ suburb: string | null;
9
+ }
10
+ export interface AddressAutofillProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'color' | 'size' | 'name' | 'value' | 'defaultValue' | 'onChange'> {
11
+ /** The react-hook-form field path. Required — this field always binds to a form. */
12
+ name: string;
13
+ variant?: JoyVariant;
14
+ color?: JoyColor;
15
+ size?: 'sm' | 'md' | 'lg';
16
+ /** Turns a suggestion into display text. @default `${street}, ${postalCode} ${city}` */
17
+ getOptionLabel?: (value: AddressSuggestion) => string;
18
+ /** Characters typed before a search fires. @default 2 */
19
+ minQueryLength?: number;
20
+ /** Debounce between the last keystroke and firing the request, in ms. @default 300 */
21
+ debounceMs?: number;
22
+ /** Passed to the API as the result cap. @default 10 */
23
+ limit?: number;
24
+ /** Shown when fewer than `minQueryLength` characters have been typed. No default — see spec. */
25
+ belowMinLengthContent: React.ReactNode;
26
+ /** Shown while a search request is in flight and there are no suggestions yet. No default. */
27
+ loadingContent: React.ReactNode;
28
+ /** Shown when a search completed with zero matches. No default. */
29
+ noResultsContent: React.ReactNode;
30
+ /** Shown when the search request failed. No default. */
31
+ errorContent: React.ReactNode;
32
+ label?: React.ReactNode;
33
+ helperText?: React.ReactNode;
34
+ error?: boolean;
35
+ disabled?: boolean;
36
+ placeholder?: string;
37
+ }
38
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AddressAutofill/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,iBAAiB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ion } from './types';
2
+ export interface UseAddressSuggestionsOptions {
3
+ minQueryLength: number;
4
+ debounceMs: number;
5
+ limit: number;
6
+ }
7
+ export interface UseAddressSuggestionsResult {
8
+ suggestions: AddressSuggestion[];
9
+ isLoading: boolean;
10
+ hasError: boolean;
11
+ }
12
+ export declare function useAddressSuggestions(query: string, { minQueryLength, debounceMs, limit }: UseAddressSuggestionsOptions): UseAddressSuggestionsResult;
13
+ //# sourceMappingURL=useAddressSuggestions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAddressSuggestions.d.ts","sourceRoot":"","sources":["../../../src/components/AddressAutofill/useAddressSuggestions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,WAAW,4BAA4B;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,EACb,EAAE,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,4BAA4B,GAClE,2BAA2B,CAmD7B"}
@@ -0,0 +1,4 @@
1
+ import { AnimatedMapImageProps } from './types';
2
+ import * as React from 'react';
3
+ export declare const AnimatedMapImage: React.ForwardRefExoticComponent<AnimatedMapImageProps & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=AnimatedMapImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedMapImage.d.ts","sourceRoot":"","sources":["../../../src/components/AnimatedMapImage/AnimatedMapImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQrD,eAAO,MAAM,gBAAgB,8FA8B3B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { AnimatedMapImage } from './AnimatedMapImage';
2
+ export type { AnimatedMapImageProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AnimatedMapImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { MapImageProps as AnimatedMapImageProps } from '../MapImage/types';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AnimatedMapImage/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,IAAI,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAkFjD,KAAK,yBAAyB,GAAG,CAAC,CAAC,KAAK,GAAG,MAAM,EAC/C,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,KACpE,KAAK,CAAC,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA4EpD,eAAO,MAAM,YAAY,EAET,yBAAyB,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA0GjD,KAAK,yBAAyB,GAAG,CAAC,CAAC,KAAK,GAAG,MAAM,EAC/C,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,KACpE,KAAK,CAAC,YAAY,CAAC,GAAG;IAAE,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA4EpD,eAAO,MAAM,YAAY,EAET,yBAAyB,CAAC"}
@@ -20,7 +20,16 @@ export interface AutocompleteProps<Value = string> extends Omit<React.ComponentP
20
20
  onChange?: (value: Value | null) => void;
21
21
  /** The raw text in the input. Use when controlled. */
22
22
  inputValue?: string;
23
- onInputChange?: (value: string) => void;
23
+ /**
24
+ * Called as the raw input text changes. `reason` mirrors `@mui/joy`'s own
25
+ * three-value union (`AutocompleteInputChangeReason`): `'input'` for real
26
+ * typing, `'clear'` for the clear button, `'reset'` for everything else —
27
+ * most commonly the text resetting to a freshly selected option's label. A
28
+ * consumer that re-fetches on every input change should gate that on
29
+ * `reason === 'input'`, otherwise selecting an option immediately re-fires
30
+ * a search for its own label.
31
+ */
32
+ onInputChange?: (value: string, reason: 'input' | 'reset' | 'clear') => void;
24
33
  /** Renders a FormLabel above the field. Omit it and no wrapper is added. */
25
34
  label?: React.ReactNode;
26
35
  /** Renders a FormHelperText below the field. A field error replaces it while one is pending. */
@@ -30,5 +39,26 @@ export interface AutocompleteProps<Value = string> extends Omit<React.ComponentP
30
39
  name?: string;
31
40
  /** Hides the built-in clear ("x") button. @default false */
32
41
  disableClearable?: boolean;
42
+ /**
43
+ * Shows `loadingText` in the empty-state slot instead of `noOptionsText`,
44
+ * but only while `options` is empty — matches `@mui/joy`'s own
45
+ * `Autocomplete` `loading` prop exactly, including that rule.
46
+ * @default false
47
+ */
48
+ loading?: boolean;
49
+ /** Shown in the empty-state slot while `loading` is true and `options` is empty. @default 'Loading…' */
50
+ loadingText?: React.ReactNode;
51
+ /** Shown in the empty-state slot when `options` is empty and not loading. @default 'No options' */
52
+ noOptionsText?: React.ReactNode;
53
+ /**
54
+ * Passed straight to Base UI's `Combobox.Root`. Pass `null` to disable Base
55
+ * UI's own client-side filtering of `options` against the input text —
56
+ * required whenever `options` already reflects a server-filtered result set
57
+ * for the current query (a debounced remote search), since otherwise Base
58
+ * UI's default text-match filter can hide valid results whose label
59
+ * doesn't literally contain what's currently typed.
60
+ * @default undefined (Base UI's built-in filter)
61
+ */
62
+ filter?: null | ((itemValue: Value, query: string, itemToString?: (itemValue: Value) => string) => boolean);
33
63
  }
34
64
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,iBAAiB,CAAC,KAAK,GAAG,MAAM,CAC/C,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,MAAM,CAAC;IAC/G,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,8FAA8F;IAC9F,OAAO,EAAE,SAAS,KAAK,EAAE,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;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AC;CAC7G"}
@@ -0,0 +1,12 @@
1
+ import { BlurhashProps } from './types';
2
+ import * as React from 'react';
3
+ /**
4
+ * The decoded gradient of a BlurHash string, painted on a canvas that fills
5
+ * its nearest positioned ancestor.
6
+ *
7
+ * No Joy counterpart. The canvas is deliberately tiny — 32×32 by default —
8
+ * and stretched by the browser; that upscale is what produces the blur, so
9
+ * there is no filter to pay for.
10
+ */
11
+ export declare const Blurhash: React.ForwardRefExoticComponent<BlurhashProps & React.RefAttributes<HTMLCanvasElement>>;
12
+ //# sourceMappingURL=Blurhash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blurhash.d.ts","sourceRoot":"","sources":["../../../src/components/Blurhash/Blurhash.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,yFAiDnB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Blurhash } from './Blurhash';
2
+ export type { BlurhashProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Blurhash/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type * as React from 'react';
2
+ export interface BlurhashProps extends Omit<React.ComponentPropsWithoutRef<'canvas'>, 'width' | 'height'> {
3
+ /** A BlurHash string, as produced by `encodeBlurhash` or by your backend. */
4
+ hash: string;
5
+ /** Contrast of the decoded gradient. 1 is the hash as encoded. */
6
+ punch?: number;
7
+ /**
8
+ * Edge length in pixels the hash is decoded to. The canvas is then stretched
9
+ * over its container, so bigger is smoother but quadratically slower — and
10
+ * past about 32 the difference stops being visible.
11
+ */
12
+ resolution?: number;
13
+ }
14
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Blurhash/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACvG,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,12 @@
1
+ import { BlurhashImageProps } from './types';
2
+ import * as React from 'react';
3
+ /**
4
+ * A picture that holds its own place: the BlurHash paints immediately, the
5
+ * real image fades in over it.
6
+ *
7
+ * No Joy counterpart. This is the Skeleton role — reserve the space, say
8
+ * "something is coming" — filled with the colours of the actual picture
9
+ * instead of a grey rectangle. Without a `hash` it really is a Skeleton.
10
+ */
11
+ export declare const BlurhashImage: React.ForwardRefExoticComponent<BlurhashImageProps & React.RefAttributes<HTMLImageElement>>;
12
+ //# sourceMappingURL=BlurhashImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlurhashImage.d.ts","sourceRoot":"","sources":["../../../src/components/BlurhashImage/BlurhashImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,6FAsFxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { BlurhashImage } from './BlurhashImage';
2
+ export type { BlurhashImageProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BlurhashImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type * as React from 'react';
2
+ export interface BlurhashImageProps extends Omit<React.ComponentPropsWithoutRef<'img'>, 'placeholder'> {
3
+ /**
4
+ * Omit it while the URL is still being fetched: no `<img>` is rendered at
5
+ * all, and the placeholder holds the space. An empty string would resolve
6
+ * to the page itself and fire an error instead.
7
+ */
8
+ src?: string;
9
+ alt: string;
10
+ /**
11
+ * The picture's BlurHash. Without one the placeholder is a plain
12
+ * {@link Skeleton}, so a missing hash degrades rather than breaks.
13
+ */
14
+ hash?: string;
15
+ /** Passed to {@link AspectRatio}. The box keeps this shape while loading. */
16
+ ratio?: string | number;
17
+ /** Contrast of the decoded gradient. 1 is the hash as encoded. */
18
+ punch?: number;
19
+ /** Edge length in pixels the hash is decoded to. */
20
+ resolution?: number;
21
+ objectFit?: React.CSSProperties['objectFit'];
22
+ }
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/BlurhashImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;IACpG;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;CAC9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Button/buttonVariants.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,cAAc;;;;8EAe1B,CAAC"}
1
+ {"version":3,"file":"buttonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Button/buttonVariants.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,cAAc;;;;8EAe1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkboxVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/checkboxVariants.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,mBAAmB;;;;8EAiB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAS/B,CAAC"}
1
+ {"version":3,"file":"checkboxVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/checkboxVariants.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,mBAAmB;;;;8EAsB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;8EAS/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChipDelete.d.ts","sourceRoot":"","sources":["../../../src/components/ChipDelete/ChipDelete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK/C,eAAO,MAAM,UAAU,2FA4BrB,CAAC"}
1
+ {"version":3,"file":"ChipDelete.d.ts","sourceRoot":"","sources":["../../../src/components/ChipDelete/ChipDelete.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK/C,eAAO,MAAM,UAAU,2FAsCrB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FileInputProps } from './types';
2
+ import * as React from 'react';
3
+ /**
4
+ * A drop zone that also opens the file picker.
5
+ *
6
+ * There is no Joy counterpart. The reason for the component is that the native
7
+ * control renders as the browser's own grey widget, which looks foreign beside
8
+ * anything designed. The field stays underneath: that is what keeps the
9
+ * keyboard, screen readers and `userEvent.upload` working.
10
+ */
11
+ export declare const FileInput: React.ForwardRefExoticComponent<FileInputProps & React.RefAttributes<HTMLInputElement>>;
12
+ //# sourceMappingURL=FileInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/FileInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,yFA6DpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { FileInput } from './FileInput';
2
+ export type { FileInputProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type * as React from 'react';
2
+ export interface FileInputProps {
3
+ /** As on `<input type="file">`, e.g. `.docx,application/pdf`. */
4
+ accept?: string;
5
+ multiple?: boolean;
6
+ disabled?: boolean;
7
+ /** What was chosen or dropped. Never called with an empty list. */
8
+ onFiles: (files: File[]) => void;
9
+ /** The zone's caption, and the field's accessible name. */
10
+ children?: React.ReactNode;
11
+ className?: string;
12
+ }
13
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/FileInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,cAAc;IAC7B,iEAAiE;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mEAAmE;IACnE,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACjC,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"iconButtonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/iconButtonVariants.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,kBAAkB;;;;8EAe9B,CAAC"}
1
+ {"version":3,"file":"iconButtonVariants.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/iconButtonVariants.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,kBAAkB;;;;8EAe9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA+F1C,eAAO,MAAM,KAAK,qFAMhB,CAAC"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AA6G1C,eAAO,MAAM,KAAK,qFAMhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inputVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Input/inputVariants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAc,MAAM,iCAAiC,CAAC;AAS5E,eAAO,MAAM,aAAa;;;;8EAuBxB,CAAC"}
1
+ {"version":3,"file":"inputVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Input/inputVariants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAc,MAAM,iCAAiC,CAAC;AAS5E,eAAO,MAAM,aAAa;;;;8EA4BxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAqBzC,eAAO,MAAM,IAAI,+EAyCf,CAAC"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAyBzC,eAAO,MAAM,IAAI,+EAyCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC;IACrE,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC9B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAWD,eAAO,MAAM,IAAI,oFAiBf,CAAC"}
1
+ {"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC;IACrE,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC9B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAiBD,eAAO,MAAM,IAAI,oFAiBf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAEjE,eAAO,MAAM,QAAQ,kKAWnB,CAAC"}
1
+ {"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../src/components/ListItem/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAEjE,eAAO,MAAM,QAAQ,kKAqBnB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { MapImageProps } from './types';
2
+ import * as React from 'react';
3
+ export declare const MapImage: React.ForwardRefExoticComponent<MapImageProps & React.RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=MapImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapImage.d.ts","sourceRoot":"","sources":["../../../src/components/MapImage/MapImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,sFAoBnB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { MapImageStatus } from './useMapImage';
2
+ import * as React from 'react';
3
+ export interface MapImageFrameProps extends React.ComponentPropsWithoutRef<'div'> {
4
+ src: string;
5
+ status: MapImageStatus;
6
+ alt: string;
7
+ width: number;
8
+ height: number;
9
+ errorLabel: string;
10
+ onLoad: () => void;
11
+ onError: () => void;
12
+ /** Rendered on top of the image once it has loaded — used by AnimatedMapImage for its pin/ripple. */
13
+ children?: React.ReactNode;
14
+ }
15
+ export declare const MapImageFrame: React.ForwardRefExoticComponent<MapImageFrameProps & React.RefAttributes<HTMLDivElement>>;
16
+ //# sourceMappingURL=MapImageFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapImageFrame.d.ts","sourceRoot":"","sources":["../../../src/components/MapImage/MapImageFrame.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,cAAc,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qGAAqG;IACrG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AASD,eAAO,MAAM,aAAa,2FAsCxB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { MapImage } from './MapImage';
2
+ export type { MapImageProps } from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MapImage/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type * as React from 'react';
2
+ export interface MapImageProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children' | 'onLoad' | 'onError'> {
3
+ /** Latitude of the map center, -90 to 90. */
4
+ lat: number;
5
+ /** Longitude of the map center, -180 to 180. */
6
+ lng: number;
7
+ /** Zoom level, 1-19. */
8
+ zoom?: number;
9
+ /** Image width in pixels, 64-2048. */
10
+ width?: number;
11
+ /** Image height in pixels, 64-2048. */
12
+ height?: number;
13
+ /** Accessible alt text. Defaults to a description including the coordinates. */
14
+ alt?: string;
15
+ /** Text shown when the map image fails to load. */
16
+ errorLabel?: string;
17
+ /** Called once the map image has finished loading. */
18
+ onLoad?: () => void;
19
+ /** Called if the map image fails to load (e.g. out-of-range coordinates). */
20
+ onError?: () => void;
21
+ }
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/MapImage/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;IACnH,6CAA6C;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,wBAAwB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
@@ -0,0 +1,19 @@
1
+ export type MapImageStatus = 'loading' | 'loaded' | 'error';
2
+ export interface UseMapImageOptions {
3
+ lat: number;
4
+ lng: number;
5
+ width: number;
6
+ height: number;
7
+ zoom: number;
8
+ onLoad?: () => void;
9
+ onError?: () => void;
10
+ }
11
+ export interface UseMapImageResult {
12
+ src: string;
13
+ status: MapImageStatus;
14
+ handleLoad: () => void;
15
+ handleError: () => void;
16
+ }
17
+ export declare function buildMapImageSrc(lat: number, lng: number, width: number, height: number, zoom: number): string;
18
+ export declare function useMapImage({ lat, lng, width, height, zoom, onLoad, onError }: UseMapImageOptions): UseMapImageResult;
19
+ //# sourceMappingURL=useMapImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMapImage.d.ts","sourceRoot":"","sources":["../../../src/components/MapImage/useMapImage.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAS9G;AAKD,wBAAgB,WAAW,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,kBAAkB,GAAG,iBAAiB,CA0BrH"}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../src/components/MenuList/MenuList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C,eAAO,MAAM,QAAQ,wFAWnB,CAAC"}
1
+ {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../src/components/MenuList/MenuList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAO7C,eAAO,MAAM,QAAQ,wFAiBnB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ModalClose.d.ts","sourceRoot":"","sources":["../../../src/components/ModalClose/ModalClose.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AAEtF,eAAO,MAAM,UAAU,2FAkBrB,CAAC"}
1
+ {"version":3,"file":"ModalClose.d.ts","sourceRoot":"","sources":["../../../src/components/ModalClose/ModalClose.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AAEtF,eAAO,MAAM,UAAU,2FAqBrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"radioVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radioVariants.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB;;;;8EAe5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;8EAS5B,CAAC"}
1
+ {"version":3,"file":"radioVariants.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/radioVariants.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB;;;;8EAoB5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;8EAS5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../../src/components/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAMjD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EAAE,QAAQ,EACd,MAAe,EACf,WAAW,EACX,KAAc,EACd,SAAkB,EAClB,SAAoB,EACpB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,aAAa,EACxB,OAAe,EACf,SAAS,EACT,aAAa,EAAE,UAAU,GAC1B,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CA0CxC"}
1
+ {"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../../src/components/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAMjD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EAAE,QAAQ,EACd,MAAe,EACf,WAAW,EACX,KAAc,EACd,SAAkB,EAClB,SAAoB,EACpB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,aAAa,EACxB,OAAe,EACf,SAAS,EACT,aAAa,EAAE,UAAU,GAC1B,EAAE,iBAAiB,GAAG,KAAK,CAAC,YAAY,CAkDxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"StepIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StepIndicator/StepIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAclD,eAAO,MAAM,aAAa,2FAoBxB,CAAC"}
1
+ {"version":3,"file":"StepIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/StepIndicator/StepIndicator.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAclD,eAAO,MAAM,aAAa,2FAyBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAK5C,eAAO,MAAM,OAAO,uFAiBlB,CAAC"}
1
+ {"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAqB5C,eAAO,MAAM,OAAO,uFAkBlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tab/Tab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAaxC,eAAO,MAAM,GAAG,oFAqBd,CAAC"}
1
+ {"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tab/Tab.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAqDxC,eAAO,MAAM,GAAG,oFAsBd,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { TableBorderAxis } from './types';
2
2
  export declare const TABLE_SIZE_CLASS: {
3
- readonly sm: "[&_th]:h-8 [&_td]:h-8 [&_th]:px-1 [&_td]:px-1 [&_th]:py-1 [&_td]:py-1 text-xs";
4
- readonly md: "[&_th]:h-10 [&_td]:h-10 [&_th]:px-2 [&_td]:px-2 [&_th]:py-1.5 [&_td]:py-1.5 text-sm";
5
- readonly lg: "[&_th]:h-12 [&_td]:h-12 [&_th]:px-3 [&_td]:px-3 [&_th]:py-2 [&_td]:py-2 text-base";
3
+ readonly sm: "[&_th]:h-8 [&_td]:h-8 [&_th]:px-1 [&_td]:px-1 [&_th]:py-1 [&_td]:py-1 text-xs/[1.5]";
4
+ readonly md: "[&_th]:h-10 [&_td]:h-10 [&_th]:px-2 [&_td]:px-2 [&_th]:py-1.5 [&_td]:py-1.5 text-sm/[1.5]";
5
+ readonly lg: "[&_th]:h-12 [&_td]:h-12 [&_th]:px-3 [&_td]:px-3 [&_th]:py-2 [&_td]:py-2 text-base/[1.5]";
6
6
  };
7
7
  export declare const TABLE_HEAD_CLASS = "[&_th]:bg-surface [&_th]:text-left [&_th]:align-bottom [&_th]:font-semibold [&_th]:text-ink-secondary [&_th]:overflow-hidden [&_th]:text-ellipsis [&_th]:whitespace-nowrap";
8
8
  export declare const TABLE_BORDER_AXIS_CLASS: Record<TableBorderAxis, string>;
package/dist/index.d.ts CHANGED
@@ -54,8 +54,14 @@ export { LocaleSwitcher } from './components/LocaleSwitcher';
54
54
  export type { LocaleSwitcherProps } from './components/LocaleSwitcher';
55
55
  export { ConfirmationDialog } from './components/ConfirmationDialog';
56
56
  export type { ConfirmationDialogProps } from './components/ConfirmationDialog';
57
+ export { MapImage } from './components/MapImage';
58
+ export type { MapImageProps } from './components/MapImage';
59
+ export { AnimatedMapImage } from './components/AnimatedMapImage';
60
+ export type { AnimatedMapImageProps } from './components/AnimatedMapImage';
57
61
  export { Link } from './components/Link';
58
62
  export type { LinkProps } from './components/Link';
63
+ export { FileInput } from './components/FileInput';
64
+ export type { FileInputProps } from './components/FileInput';
59
65
  export { FormControl, FormControlContext } from './components/FormControl';
60
66
  export type { FormControlProps, FormControlContextValue } from './components/FormControl';
61
67
  export { FormLabel } from './components/FormLabel';
@@ -136,6 +142,8 @@ export { Autocomplete } from './components/Autocomplete';
136
142
  export type { AutocompleteProps } from './components/Autocomplete';
137
143
  export { AutocompleteOption } from './components/AutocompleteOption';
138
144
  export type { AutocompleteOptionProps } from './components/AutocompleteOption';
145
+ export { AddressAutofill } from './components/AddressAutofill';
146
+ export type { AddressAutofillProps, AddressSuggestion } from './components/AddressAutofill';
139
147
  export { Table } from './components/Table';
140
148
  export type { TableProps, TableBorderAxis } from './components/Table';
141
149
  export { DataGrid, DataGridRow, DataGridHeaderCell, DataGridCell, useDataGrid } from './components/DataGrid';
@@ -186,5 +194,11 @@ export { ColorSchemeSwitch } from './components/ColorSchemeSwitch';
186
194
  export type { ColorSchemeSwitchProps } from './components/ColorSchemeSwitch';
187
195
  export { ColorSchemeSelect } from './components/ColorSchemeSelect';
188
196
  export type { ColorSchemeSelectProps } from './components/ColorSchemeSelect';
197
+ export { Blurhash } from './components/Blurhash';
198
+ export type { BlurhashProps } from './components/Blurhash';
199
+ export { BlurhashImage } from './components/BlurhashImage';
200
+ export type { BlurhashImageProps } from './components/BlurhashImage';
201
+ export { encodeBlurhash } from './utils/blurhash';
202
+ export type { EncodeBlurhashOptions } from './utils/blurhash';
189
203
  export type { JoyColor, JoyVariant } from './utils/colorVariantClasses';
190
204
  //# sourceMappingURL=index.d.ts.map