@simoncomputing/mui-bueno-v3 0.1.12 → 0.1.14

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 (30) hide show
  1. package/README.md +1 -1
  2. package/dist/components/Form/Inputs/Autocomplete/Autocomplete.d.ts +6 -6
  3. package/dist/components/Form/Inputs/Checkbox/Checkbox.d.ts +2 -2
  4. package/dist/components/Form/Inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
  5. package/dist/components/Form/Inputs/FileUpload/FileUpload.d.ts +1 -1
  6. package/dist/components/Form/Inputs/RadioGroup/RadioGroup.d.ts +1 -1
  7. package/dist/components/Form/Inputs/RangeSlider/RangeSlider.d.ts +1 -1
  8. package/dist/components/Form/Inputs/Select/Select.d.ts +1 -1
  9. package/dist/components/Form/Inputs/TextField/TextField.d.ts +1 -1
  10. package/dist/components/Form/RepeatableFormGroup/RepeatableFormGroup.d.ts +3 -3
  11. package/dist/index.cjs.js +129 -131
  12. package/dist/index.css +1 -1
  13. package/dist/index.d.ts +0 -6
  14. package/dist/index.es.js +24831 -25643
  15. package/dist/index.umd.js +130 -132
  16. package/package.json +136 -137
  17. package/dist/components/Form/Inputs/CitationField/CitationBubbleMenuHandler.d.ts +0 -43
  18. package/dist/components/Form/Inputs/CitationField/CitationField.d.ts +0 -78
  19. package/dist/components/Form/Inputs/CitationField/CitationMenu/AttachmentForm.d.ts +0 -13
  20. package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationBubbleMenu.d.ts +0 -25
  21. package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationForm.d.ts +0 -12
  22. package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationMenu.d.ts +0 -62
  23. package/dist/components/Form/Inputs/CitationField/CitationMenu/CitationTable.d.ts +0 -16
  24. package/dist/components/Form/Inputs/CitationField/CitationNode.d.ts +0 -2
  25. package/dist/components/Form/Inputs/CitationField/CitationNodeComponent.d.ts +0 -7
  26. package/dist/components/Form/Inputs/CitationField/CitationRefreshContext/CitationRefreshContext.d.ts +0 -29
  27. package/dist/components/Form/Inputs/CitationField/MenuButtonEditCitation.d.ts +0 -3
  28. package/dist/components/Form/Inputs/Location/Location.d.ts +0 -69
  29. package/dist/components/Form/Inputs/Location/Location.types.d.ts +0 -85
  30. package/dist/components/Form/Inputs/Location/LocationOption.d.ts +0 -38
@@ -1,69 +0,0 @@
1
- import { TypographyProps } from '@mui/material';
2
- import { TextFieldProps } from '../TextField/TextField';
3
- import * as React from 'react';
4
- type BaseLocationProps = {
5
- /**
6
- * Name of the component. Must match the initialValue name in Formik.
7
- * @required
8
- */
9
- name: string;
10
- /**
11
- * API Key. Needed for Location to work.
12
- *
13
- * NOTE: MAKE SURE TO TIE YOUR API KEY TO A DOMAIN TO ENSURE THE SECURITY OF YOUR KEY
14
- * @required
15
- */
16
- apiKey: string;
17
- /**
18
- * The label for the text field.
19
- * @recommended
20
- * @default props.name
21
- */
22
- label?: string;
23
- /**
24
- * If true, the parts of the location suggestions that match the input are highlighted
25
- * @default true
26
- */
27
- highlightMatches?: boolean;
28
- /**
29
- * The icon shown to the left of each location suggestion.
30
- * Use false to indicate no icon
31
- * @default <LocationOnIcon/>
32
- */
33
- resultIcon?: React.ReactElement | false;
34
- /**
35
- * If specified, restrict results from a Place Autocomplete request to be of a certain type.
36
- * More information can be found [here](https://developers.google.com/places/supported_types#table3)
37
- */
38
- types?: 'geocode' | 'address' | 'establishment' | '(regions)' | '(cities)';
39
- /**
40
- * Specifies the visual input style.
41
- * @default 'standard'
42
- */
43
- variant?: 'filled' | 'outlined' | 'standard';
44
- /**
45
- * If true, the prepackaged dynamic input label that comes with Material UI's input components
46
- * will be replaced with a static typography label above the input.
47
- * @default false
48
- */
49
- staticLabel?: boolean;
50
- /**
51
- * Props from MUI-Bueno's Typography component.
52
- * Used to customize the label when the static label option is selected.
53
- */
54
- staticLabelProps?: TypographyProps;
55
- /**
56
- * Margin for the FormControl
57
- */
58
- margin?: 'dense' | 'none' | 'normal';
59
- };
60
- export type LocationProps = BaseLocationProps & TextFieldProps;
61
- /**
62
- * The `Location` component provides a Google Maps Places Autocomplete functionality to the Mui Bueno library.
63
- * It supplies a text field that upon input provides location suggestions.
64
- *
65
- * Note: You must have an active Google Maps API key to use this component. More information on creating API keys can be found
66
- * at the [Google Maps API documentation](https://developers.google.com/maps/documentation/javascript/get-api-key).
67
- */
68
- export declare const Location: React.FC<LocationProps>;
69
- export {};
@@ -1,85 +0,0 @@
1
- /**
2
- * Represents a prediction substring.
3
- *
4
- * **Props**
5
- * - `offset`
6
- * - Type: `number`
7
- * - The offset to the substring's start within the description string.
8
- * - `length`
9
- * - Type: `number`
10
- * - The length of the substring
11
- *
12
- * https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#PredictionSubstring
13
- */
14
- export type PredictionSubstring = google.maps.places.PredictionSubstring;
15
- /**
16
- * Structured information about the place's description, divided into a main text and a secondary text,
17
- * including an array of matched substrings from the autocomplete input,
18
- * identified by an offset and a length, expressed in unicode characters.
19
- *
20
- * **Props**
21
- * - `main_text`
22
- * - Type: `string`
23
- * - This is the main text part of the unformatted description of the place suggested
24
- * by the Places service. Usually the name of the place.
25
- * - `secondary_text`
26
- * - Type: `string`
27
- * - This is the secondary text part of the unformatted description of the place suggested
28
- * by the Places service. Usually the location of the place.
29
- * - `main_text_matched_substrings`
30
- * - Type: `PredictionSubstring[]`
31
- * - A set of substrings in the main text that match elements in the user's input, suitable for
32
- * use in highlighting those substrings. Each substring is identified by an offset and a length,
33
- * expressed in unicode characters.
34
- *
35
- * https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#StructuredFormatting
36
- */
37
- export type StructuredFormatting = google.maps.places.StructuredFormatting;
38
- /**
39
- * Represents a single autocomplete prediction.
40
- *
41
- * **Props**
42
- * - `description`
43
- * - Type: `string`
44
- * - This is the unformatted version of the query suggested by the Places service.
45
- * - `structured_formatting`
46
- * - Type: `StructuredFormatting`
47
- * - Structured information about the place's description
48
- * - `place_id`
49
- * - Type: `string`
50
- * - A place ID that can be used to retrieve details about this place using the place details service
51
- * - `matched_substrings`
52
- * - Type: `PredictionSubstring[]`
53
- * - A set of substrings in the place's description that match elements in the user's input,
54
- * suitable for use in highlighting those substrings. Each substring is identified by an offset
55
- * and a length, expressed in unicode characters.
56
- * - `terms`
57
- * - Type: `PredictionTerm`
58
- * - Information about individual terms in the above description, from most to least specific.
59
- * For example, "Taco Bell", "Willitis", and "CA".
60
- * - `types`
61
- * - Type: `string[]`
62
- * - An array of types that the prediction belongs to, for example 'establishment' or 'geocode'.
63
- *
64
- * https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service#AutocompletePrediction
65
- */
66
- export type AutocompletePrediction = google.maps.places.AutocompletePrediction;
67
- /**
68
- * Request for fetching AutocompletePredictions
69
- */
70
- export interface FetchRequest {
71
- /**
72
- * Text input from autocomplete field
73
- * @required
74
- */
75
- input: string;
76
- /**
77
- * Acceptable address types for returning responses
78
- * @required
79
- */
80
- types: string[];
81
- }
82
- /**
83
- * Callback function for fetching AutocompletePredictions
84
- */
85
- export type FetchCallback = (results?: AutocompletePrediction[] | null) => void;
@@ -1,38 +0,0 @@
1
- import { AutocompletePrediction } from './Location.types';
2
- import * as React from 'react';
3
- interface LocationOptionProps {
4
- /**
5
- * Props for list item that wraps custom contents
6
- * @required
7
- */
8
- listItemProps: React.HTMLAttributes<HTMLLIElement>;
9
- /**
10
- * Definition of PlaceType option being rendered in list item
11
- * @required
12
- */
13
- option: AutocompletePrediction;
14
- /**
15
- * Icon to render on far left of list item
16
- * @required
17
- */
18
- resultIcon: React.ReactElement | false;
19
- /**
20
- * Indicates to highlight text in option that matches textfield input
21
- * @required
22
- */
23
- highlightMatches: boolean;
24
- }
25
- /**
26
- * Function to render custom location list items in the Autocomplete menu
27
- *
28
- * **Required Props**
29
- * - `listItemProps` - Props for list item that wraps custom contents
30
- * - `option` - Definition of PlaceType option being rendered in list item
31
- * - `resultIcon` - Icon to render on far left of list item
32
- * - `highlightMatches` - Indicates to highlight text in option that matches textfield input
33
- *
34
- * @param props LocationOptionProps
35
- * @returns Custom autocomplete option
36
- */
37
- declare const LocationOption: React.FC<LocationOptionProps>;
38
- export default LocationOption;