@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
22 lines • 1.12 kB
JavaScript
import { FieldProperties } from "../FieldDocs.js";
import { StringProperties } from "../String/StringDocs.js";
export const PostalCodeAndCityProperties = {
countryCode: {
doc: 'Defines which country the postal code and city is for, based on the [ISO 3166-1 alpha-2 code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) i.e. `NO`, `DE` etc. ' + 'Setting it to anything other than `NO` will remove the default norwegian postal code pattern. ' + 'You can also use the value of another field to define the countryCode, by using a path value i.e. `/myCountryCodePath`. ' + 'Defaults to `NO`.',
type: ['Path', 'string'],
status: 'optional'
},
postalCode: {
doc: 'Properties for the [Field.String](/uilib/extensions/forms/base-fields/String/) component for postal code.',
type: 'object',
status: 'required'
},
city: {
doc: 'Properties for the [Field.String](/uilib/extensions/forms/base-fields/String/) component for city.',
type: 'object',
status: 'required'
},
help: FieldProperties.help,
size: StringProperties.size
};
//# sourceMappingURL=PostalCodeAndCityDocs.js.map