nav-frontend-skjema
Advanced tools
Comparing version 1.0.28 to 1.0.29
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ export interface BekreftCheckboksPanelProps { |
@@ -74,2 +74,2 @@ "use strict"; | ||
exports.default = BekreftCheckboksPanel; | ||
BekreftCheckboksPanel.__docgenInfo = {"description":"","displayName":"BekreftCheckboksPanel","props":{"children":{"defaultValue":null,"description":"Tekst over checkboksen","name":"children","required":false,"type":{"name":"string | number | boolean | {} | ReactElement<any> | (string | number | boolean | any[] | ReactEl..."}},"onChange":{"defaultValue":null,"description":"Callback-funksjon som blir kalt når checkboksen endrer state","name":"onChange","required":true,"type":{"name":"(event: SyntheticEvent<EventTarget>) => void"}},"checked":{"defaultValue":null,"description":"Default checked state for checkboksen","name":"checked","required":true,"type":{"name":"boolean"}},"label":{"defaultValue":null,"description":"Tekst til høyre for checkboksen","name":"label","required":true,"type":{"name":"string"}},"inputProps":{"defaultValue":null,"description":"Øvrige custom props til <input>-elementet som ligger i bunn","name":"inputProps","required":false,"type":{"name":"InputHTMLAttributes<HTMLInputElement>"}},"className":{"defaultValue":null,"description":"Klassenavn","name":"className","required":false,"type":{"name":"string"}}}} | ||
BekreftCheckboksPanel.__docgenInfo = {"description":"","displayName":"BekreftCheckboksPanel","props":{"children":{"defaultValue":null,"description":"Tekst over checkboksen","name":"children","required":false,"type":{"name":"string | number | boolean | {} | ReactElement<any> | ReactNodeArray | ReactPortal | ReactChildren..."}},"onChange":{"defaultValue":null,"description":"Callback-funksjon som blir kalt når checkboksen endrer state","name":"onChange","required":true,"type":{"name":"(event: SyntheticEvent<EventTarget>) => void"}},"checked":{"defaultValue":null,"description":"Default checked state for checkboksen","name":"checked","required":true,"type":{"name":"boolean"}},"label":{"defaultValue":null,"description":"Tekst til høyre for checkboksen","name":"label","required":true,"type":{"name":"string"}},"inputProps":{"defaultValue":null,"description":"Øvrige custom props til <input>-elementet som ligger i bunn","name":"inputProps","required":false,"type":{"name":"InputHTMLAttributes<HTMLInputElement>"}},"className":{"defaultValue":null,"description":"Klassenavn","name":"className","required":false,"type":{"name":"string"}}}} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import { SkjemaelementFeil } from './skjemaelement-feilmelding'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -106,2 +106,2 @@ "use strict"; | ||
exports.default = Select; | ||
Select.__docgenInfo = {"description":"Select","displayName":"Select","props":{"children":{"defaultValue":null,"description":"En eller flere select options","name":"children","required":true,"type":{"name":"string | number | boolean | {} | ReactElement<any> | (string | number | boolean | any[] | ReactEl..."}},"className":{"defaultValue":null,"description":"ClassName","name":"className","required":false,"type":{"name":"string"}},"bredde":{"defaultValue":null,"description":"Bredden på select-boksen","name":"bredde","required":false,"type":{"name":"\"fullbredde\" | \"xxl\" | \"xl\" | \"l\" | \"m\" | \"s\" | \"xs\""}},"label":{"defaultValue":null,"description":"Label for select","name":"label","required":true,"type":{"name":"ReactNode"}},"id":{"defaultValue":null,"description":"Id for select, hvis id ikke er satt brukes en tilfeldig guid","name":"id","required":false,"type":{"name":"string"}},"feil":{"defaultValue":null,"description":"Hvis skjemaet har feil sender man inn et objekt med en feilmelding","name":"feil","required":false,"type":{"name":"SkjemaelementFeil"}},"selectRef":{"defaultValue":null,"description":"Referanse til selve selectfeltet. Brukes for eksempel til å sette fokus","name":"selectRef","required":false,"type":{"name":"() => any"}},"disabled":{"defaultValue":null,"description":"-","name":"disabled","required":false,"type":{"name":"boolean"}},"selected":{"defaultValue":null,"description":"-","name":"selected","required":false,"type":{"name":"ReactText"}},"aria-activedescendant":{"defaultValue":null,"description":"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.","name":"aria-activedescendant","required":false,"type":{"name":"string"}},"aria-atomic":{"defaultValue":null,"description":"Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.","name":"aria-atomic","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-autocomplete":{"defaultValue":null,"description":"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.","name":"aria-autocomplete","required":false,"type":{"name":"\"none\" | \"inline\" | \"list\" | \"both\""}},"aria-busy":{"defaultValue":null,"description":"Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.","name":"aria-busy","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-checked":{"defaultValue":null,"description":"Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed \n@see aria-selected.","name":"aria-checked","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"mixed\""}},"aria-colcount":{"defaultValue":null,"description":"Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.","name":"aria-colcount","required":false,"type":{"name":"number"}},"aria-colindex":{"defaultValue":null,"description":"Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount \n@see aria-colspan.","name":"aria-colindex","required":false,"type":{"name":"number"}},"aria-colspan":{"defaultValue":null,"description":"Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex \n@see aria-rowspan.","name":"aria-colspan","required":false,"type":{"name":"number"}},"aria-controls":{"defaultValue":null,"description":"Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.","name":"aria-controls","required":false,"type":{"name":"string"}},"aria-current":{"defaultValue":null,"description":"Indicates the element that represents the current item within a container or set of related elements.","name":"aria-current","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"page\" | \"step\" | \"location\" | \"date\" | \"time\""}},"aria-describedby":{"defaultValue":null,"description":"Identifies the element (or elements) that describes the object.\n@see aria-labelledby","name":"aria-describedby","required":false,"type":{"name":"string"}},"aria-details":{"defaultValue":null,"description":"Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.","name":"aria-details","required":false,"type":{"name":"string"}},"aria-disabled":{"defaultValue":null,"description":"Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden \n@see aria-readonly.","name":"aria-disabled","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-dropeffect":{"defaultValue":null,"description":"Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1","name":"aria-dropeffect","required":false,"type":{"name":"\"none\" | \"copy\" | \"execute\" | \"link\" | \"move\" | \"popup\""}},"aria-errormessage":{"defaultValue":null,"description":"Identifies the element that provides an error message for the object.\n@see aria-invalid \n@see aria-describedby.","name":"aria-errormessage","required":false,"type":{"name":"string"}},"aria-expanded":{"defaultValue":null,"description":"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.","name":"aria-expanded","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-flowto":{"defaultValue":null,"description":"Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.","name":"aria-flowto","required":false,"type":{"name":"string"}},"aria-grabbed":{"defaultValue":null,"description":"Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1","name":"aria-grabbed","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-haspopup":{"defaultValue":null,"description":"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.","name":"aria-haspopup","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"menu\" | \"listbox\" | \"tree\" | \"grid\" | \"dialog\""}},"aria-hidden":{"defaultValue":null,"description":"Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.","name":"aria-hidden","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-invalid":{"defaultValue":null,"description":"Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.","name":"aria-invalid","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"grammar\" | \"spelling\""}},"aria-keyshortcuts":{"defaultValue":null,"description":"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.","name":"aria-keyshortcuts","required":false,"type":{"name":"string"}},"aria-label":{"defaultValue":null,"description":"Defines a string value that labels the current element.\n@see aria-labelledby.","name":"aria-label","required":false,"type":{"name":"string"}},"aria-labelledby":{"defaultValue":null,"description":"Identifies the element (or elements) that labels the current element.\n@see aria-describedby.","name":"aria-labelledby","required":false,"type":{"name":"string"}},"aria-level":{"defaultValue":null,"description":"Defines the hierarchical level of an element within a structure.","name":"aria-level","required":false,"type":{"name":"number"}},"aria-live":{"defaultValue":null,"description":"Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.","name":"aria-live","required":false,"type":{"name":"\"off\" | \"assertive\" | \"polite\""}},"aria-modal":{"defaultValue":null,"description":"Indicates whether an element is modal when displayed.","name":"aria-modal","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-multiline":{"defaultValue":null,"description":"Indicates whether a text box accepts multiple lines of input or only a single line.","name":"aria-multiline","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-multiselectable":{"defaultValue":null,"description":"Indicates that the user may select more than one item from the current selectable descendants.","name":"aria-multiselectable","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-orientation":{"defaultValue":null,"description":"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.","name":"aria-orientation","required":false,"type":{"name":"\"horizontal\" | \"vertical\""}},"aria-owns":{"defaultValue":null,"description":"Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.","name":"aria-owns","required":false,"type":{"name":"string"}},"aria-placeholder":{"defaultValue":null,"description":"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.","name":"aria-placeholder","required":false,"type":{"name":"string"}},"aria-posinset":{"defaultValue":null,"description":"Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.","name":"aria-posinset","required":false,"type":{"name":"number"}},"aria-pressed":{"defaultValue":null,"description":"Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked \n@see aria-selected.","name":"aria-pressed","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"mixed\""}},"aria-readonly":{"defaultValue":null,"description":"Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.","name":"aria-readonly","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-relevant":{"defaultValue":null,"description":"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.","name":"aria-relevant","required":false,"type":{"name":"\"additions\" | \"additions text\" | \"all\" | \"removals\" | \"text\""}},"aria-required":{"defaultValue":null,"description":"Indicates that user input is required on the element before a form may be submitted.","name":"aria-required","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-roledescription":{"defaultValue":null,"description":"Defines a human-readable, author-localized description for the role of an element.","name":"aria-roledescription","required":false,"type":{"name":"string"}},"aria-rowcount":{"defaultValue":null,"description":"Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.","name":"aria-rowcount","required":false,"type":{"name":"number"}},"aria-rowindex":{"defaultValue":null,"description":"Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount \n@see aria-rowspan.","name":"aria-rowindex","required":false,"type":{"name":"number"}},"aria-rowspan":{"defaultValue":null,"description":"Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex \n@see aria-colspan.","name":"aria-rowspan","required":false,"type":{"name":"number"}},"aria-selected":{"defaultValue":null,"description":"Indicates the current \"selected\" state of various widgets.\n@see aria-checked \n@see aria-pressed.","name":"aria-selected","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-setsize":{"defaultValue":null,"description":"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.","name":"aria-setsize","required":false,"type":{"name":"number"}},"aria-sort":{"defaultValue":null,"description":"Indicates if items in a table or grid are sorted in ascending or descending order.","name":"aria-sort","required":false,"type":{"name":"\"none\" | \"ascending\" | \"descending\" | \"other\""}},"aria-valuemax":{"defaultValue":null,"description":"Defines the maximum allowed value for a range widget.","name":"aria-valuemax","required":false,"type":{"name":"number"}},"aria-valuemin":{"defaultValue":null,"description":"Defines the minimum allowed value for a range widget.","name":"aria-valuemin","required":false,"type":{"name":"number"}},"aria-valuenow":{"defaultValue":null,"description":"Defines the current value for a range widget.\n@see aria-valuetext.","name":"aria-valuenow","required":false,"type":{"name":"number"}},"aria-valuetext":{"defaultValue":null,"description":"Defines the human readable text alternative of aria-valuenow for a range widget.","name":"aria-valuetext","required":false,"type":{"name":"string"}}}} | ||
Select.__docgenInfo = {"description":"Select","displayName":"Select","props":{"children":{"defaultValue":null,"description":"En eller flere select options","name":"children","required":true,"type":{"name":"string | number | boolean | {} | ReactElement<any> | ReactNodeArray | ReactPortal | ReactNode[] |..."}},"className":{"defaultValue":null,"description":"ClassName","name":"className","required":false,"type":{"name":"string"}},"bredde":{"defaultValue":null,"description":"Bredden på select-boksen","name":"bredde","required":false,"type":{"name":"\"fullbredde\" | \"xxl\" | \"xl\" | \"l\" | \"m\" | \"s\" | \"xs\""}},"label":{"defaultValue":null,"description":"Label for select","name":"label","required":true,"type":{"name":"ReactNode"}},"id":{"defaultValue":null,"description":"Id for select, hvis id ikke er satt brukes en tilfeldig guid","name":"id","required":false,"type":{"name":"string"}},"feil":{"defaultValue":null,"description":"Hvis skjemaet har feil sender man inn et objekt med en feilmelding","name":"feil","required":false,"type":{"name":"SkjemaelementFeil"}},"selectRef":{"defaultValue":null,"description":"Referanse til selve selectfeltet. Brukes for eksempel til å sette fokus","name":"selectRef","required":false,"type":{"name":"() => any"}},"disabled":{"defaultValue":null,"description":"-","name":"disabled","required":false,"type":{"name":"boolean"}},"selected":{"defaultValue":null,"description":"-","name":"selected","required":false,"type":{"name":"ReactText"}},"aria-activedescendant":{"defaultValue":null,"description":"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.","name":"aria-activedescendant","required":false,"type":{"name":"string"}},"aria-atomic":{"defaultValue":null,"description":"Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.","name":"aria-atomic","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-autocomplete":{"defaultValue":null,"description":"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.","name":"aria-autocomplete","required":false,"type":{"name":"\"none\" | \"inline\" | \"list\" | \"both\""}},"aria-busy":{"defaultValue":null,"description":"Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.","name":"aria-busy","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-checked":{"defaultValue":null,"description":"Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed \n@see aria-selected.","name":"aria-checked","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"mixed\""}},"aria-colcount":{"defaultValue":null,"description":"Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.","name":"aria-colcount","required":false,"type":{"name":"number"}},"aria-colindex":{"defaultValue":null,"description":"Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount \n@see aria-colspan.","name":"aria-colindex","required":false,"type":{"name":"number"}},"aria-colspan":{"defaultValue":null,"description":"Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex \n@see aria-rowspan.","name":"aria-colspan","required":false,"type":{"name":"number"}},"aria-controls":{"defaultValue":null,"description":"Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.","name":"aria-controls","required":false,"type":{"name":"string"}},"aria-current":{"defaultValue":null,"description":"Indicates the element that represents the current item within a container or set of related elements.","name":"aria-current","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"page\" | \"step\" | \"location\" | \"date\" | \"time\""}},"aria-describedby":{"defaultValue":null,"description":"Identifies the element (or elements) that describes the object.\n@see aria-labelledby","name":"aria-describedby","required":false,"type":{"name":"string"}},"aria-details":{"defaultValue":null,"description":"Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.","name":"aria-details","required":false,"type":{"name":"string"}},"aria-disabled":{"defaultValue":null,"description":"Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden \n@see aria-readonly.","name":"aria-disabled","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-dropeffect":{"defaultValue":null,"description":"Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1","name":"aria-dropeffect","required":false,"type":{"name":"\"none\" | \"copy\" | \"execute\" | \"link\" | \"move\" | \"popup\""}},"aria-errormessage":{"defaultValue":null,"description":"Identifies the element that provides an error message for the object.\n@see aria-invalid \n@see aria-describedby.","name":"aria-errormessage","required":false,"type":{"name":"string"}},"aria-expanded":{"defaultValue":null,"description":"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.","name":"aria-expanded","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-flowto":{"defaultValue":null,"description":"Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.","name":"aria-flowto","required":false,"type":{"name":"string"}},"aria-grabbed":{"defaultValue":null,"description":"Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1","name":"aria-grabbed","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-haspopup":{"defaultValue":null,"description":"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.","name":"aria-haspopup","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"menu\" | \"listbox\" | \"tree\" | \"grid\" | \"dialog\""}},"aria-hidden":{"defaultValue":null,"description":"Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.","name":"aria-hidden","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-invalid":{"defaultValue":null,"description":"Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.","name":"aria-invalid","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"grammar\" | \"spelling\""}},"aria-keyshortcuts":{"defaultValue":null,"description":"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.","name":"aria-keyshortcuts","required":false,"type":{"name":"string"}},"aria-label":{"defaultValue":null,"description":"Defines a string value that labels the current element.\n@see aria-labelledby.","name":"aria-label","required":false,"type":{"name":"string"}},"aria-labelledby":{"defaultValue":null,"description":"Identifies the element (or elements) that labels the current element.\n@see aria-describedby.","name":"aria-labelledby","required":false,"type":{"name":"string"}},"aria-level":{"defaultValue":null,"description":"Defines the hierarchical level of an element within a structure.","name":"aria-level","required":false,"type":{"name":"number"}},"aria-live":{"defaultValue":null,"description":"Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.","name":"aria-live","required":false,"type":{"name":"\"off\" | \"assertive\" | \"polite\""}},"aria-modal":{"defaultValue":null,"description":"Indicates whether an element is modal when displayed.","name":"aria-modal","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-multiline":{"defaultValue":null,"description":"Indicates whether a text box accepts multiple lines of input or only a single line.","name":"aria-multiline","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-multiselectable":{"defaultValue":null,"description":"Indicates that the user may select more than one item from the current selectable descendants.","name":"aria-multiselectable","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-orientation":{"defaultValue":null,"description":"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.","name":"aria-orientation","required":false,"type":{"name":"\"horizontal\" | \"vertical\""}},"aria-owns":{"defaultValue":null,"description":"Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.","name":"aria-owns","required":false,"type":{"name":"string"}},"aria-placeholder":{"defaultValue":null,"description":"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.","name":"aria-placeholder","required":false,"type":{"name":"string"}},"aria-posinset":{"defaultValue":null,"description":"Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.","name":"aria-posinset","required":false,"type":{"name":"number"}},"aria-pressed":{"defaultValue":null,"description":"Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked \n@see aria-selected.","name":"aria-pressed","required":false,"type":{"name":"boolean | \"false\" | \"true\" | \"mixed\""}},"aria-readonly":{"defaultValue":null,"description":"Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.","name":"aria-readonly","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-relevant":{"defaultValue":null,"description":"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.","name":"aria-relevant","required":false,"type":{"name":"\"additions\" | \"additions text\" | \"all\" | \"removals\" | \"text\""}},"aria-required":{"defaultValue":null,"description":"Indicates that user input is required on the element before a form may be submitted.","name":"aria-required","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-roledescription":{"defaultValue":null,"description":"Defines a human-readable, author-localized description for the role of an element.","name":"aria-roledescription","required":false,"type":{"name":"string"}},"aria-rowcount":{"defaultValue":null,"description":"Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.","name":"aria-rowcount","required":false,"type":{"name":"number"}},"aria-rowindex":{"defaultValue":null,"description":"Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount \n@see aria-rowspan.","name":"aria-rowindex","required":false,"type":{"name":"number"}},"aria-rowspan":{"defaultValue":null,"description":"Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex \n@see aria-colspan.","name":"aria-rowspan","required":false,"type":{"name":"number"}},"aria-selected":{"defaultValue":null,"description":"Indicates the current \"selected\" state of various widgets.\n@see aria-checked \n@see aria-pressed.","name":"aria-selected","required":false,"type":{"name":"boolean | \"false\" | \"true\""}},"aria-setsize":{"defaultValue":null,"description":"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.","name":"aria-setsize","required":false,"type":{"name":"number"}},"aria-sort":{"defaultValue":null,"description":"Indicates if items in a table or grid are sorted in ascending or descending order.","name":"aria-sort","required":false,"type":{"name":"\"none\" | \"ascending\" | \"descending\" | \"other\""}},"aria-valuemax":{"defaultValue":null,"description":"Defines the maximum allowed value for a range widget.","name":"aria-valuemax","required":false,"type":{"name":"number"}},"aria-valuemin":{"defaultValue":null,"description":"Defines the minimum allowed value for a range widget.","name":"aria-valuemin","required":false,"type":{"name":"number"}},"aria-valuenow":{"defaultValue":null,"description":"Defines the current value for a range widget.\n@see aria-valuetext.","name":"aria-valuenow","required":false,"type":{"name":"number"}},"aria-valuetext":{"defaultValue":null,"description":"Defines the human readable text alternative of aria-valuenow for a range widget.","name":"aria-valuetext","required":false,"type":{"name":"string"}}}} |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -83,2 +83,2 @@ "use strict"; | ||
exports.default = SkjemaGruppe; | ||
SkjemaGruppe.__docgenInfo = {"description":"Fieldset","displayName":"SkjemaGruppe","props":{"children":{"defaultValue":null,"description":"En eller flere children, oftest en eller flere .skjemaelement","name":"children","required":true,"type":{"name":"string | number | boolean | {} | ReactElement<any> | (string | number | boolean | any[] | ReactEl..."}},"className":{"defaultValue":null,"description":"ClassName","name":"className","required":false,"type":{"name":"string"}},"title":{"defaultValue":null,"description":"Tittel eller skjemaspørsmål for skjemagruppe","name":"title","required":false,"type":{"name":"string"}},"feil":{"defaultValue":null,"description":"Hvis skjemagruppen har feil sender man inn et objekt med en feilmelding","name":"feil","required":false,"type":{"name":"SkjemaelementFeil"}}}} | ||
SkjemaGruppe.__docgenInfo = {"description":"Fieldset","displayName":"SkjemaGruppe","props":{"children":{"defaultValue":null,"description":"En eller flere children, oftest en eller flere .skjemaelement","name":"children","required":true,"type":{"name":"string | number | boolean | {} | ReactElement<any> | ReactNodeArray | ReactPortal | ReactNode[] |..."}},"className":{"defaultValue":null,"description":"ClassName","name":"className","required":false,"type":{"name":"string"}},"title":{"defaultValue":null,"description":"Tittel eller skjemaspørsmål for skjemagruppe","name":"title","required":false,"type":{"name":"string"}},"feil":{"defaultValue":null,"description":"Hvis skjemagruppen har feil sender man inn et objekt med en feilmelding","name":"feil","required":false,"type":{"name":"SkjemaelementFeil"}}}} |
@@ -1,3 +0,3 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
import * as PT from 'prop-types'; | ||
export interface SkjemaelementFeil { | ||
@@ -12,3 +12,5 @@ feilmelding: string | React.ReactNode; | ||
} | ||
export declare const skjemaelementFeilmeldingShape: any; | ||
export declare const skjemaelementFeilmeldingShape: PT.Requireable<PT.InferProps<{ | ||
feilmelding: PT.Validator<string | number | boolean | {} | React.ReactElement<any> | React.ReactNodeArray | React.ReactPortal>; | ||
}>>; | ||
export default SkjemaelementFeilmelding; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import { SkjemaelementFeil } from 'nav-frontend-skjema/src/skjemaelement-feilmelding'; |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import * as PT from 'prop-types'; | ||
import * as React from 'react'; | ||
@@ -48,12 +48,44 @@ import 'nav-frontend-skjema-style'; | ||
static propTypes: { | ||
label: any; | ||
maxLength: any; | ||
value: any; | ||
textareaClass: any; | ||
id: any; | ||
name: any; | ||
onChange: any; | ||
feil: any; | ||
tellerTekst: any; | ||
textareaRef: any; | ||
/** | ||
* Ledetekst for tekstområdet | ||
*/ | ||
label: PT.Validator<string | number | boolean | {} | React.ReactElement<any> | React.ReactNodeArray | React.ReactPortal>; | ||
/** | ||
* Maks antal tegn som kan skrives inn i tekstområdet | ||
*/ | ||
maxLength: PT.Requireable<number>; | ||
/** | ||
* Teksten som er skrevet inn i tekstområdet. | ||
*/ | ||
value: PT.Validator<string>; | ||
/** | ||
* Klassenavn for tekstomnrådet | ||
*/ | ||
textareaClass: PT.Requireable<string>; | ||
/** | ||
* Id for tekstområdet, settes til name eller random guid hvis prop ikke er satt | ||
*/ | ||
id: PT.Requireable<string>; | ||
/** | ||
* Navn for tekstområdet, settes til id eller random guid hvis prop ikke er satt | ||
*/ | ||
name: PT.Requireable<string>; | ||
/** | ||
* Optional onChange handler | ||
*/ | ||
onChange: PT.Validator<(...args: any[]) => any>; | ||
/** | ||
* Hvis skjemaet har feil sender man inn et objekt med en feilmelding | ||
*/ | ||
feil: PT.Requireable<PT.InferProps<{ | ||
feilmelding: PT.Validator<string | number | boolean | {} | React.ReactElement<any> | React.ReactNodeArray | React.ReactPortal>; | ||
}>>; | ||
/** | ||
* Funksjon for å generere tellerteksten som vises nede i høyre hjørne | ||
*/ | ||
tellerTekst: PT.Requireable<(...args: any[]) => any>; | ||
/** | ||
* Referanse til selve textareafeltet. Brukes for eksempel til å sette fokus | ||
*/ | ||
textareaRef: PT.Requireable<(...args: any[]) => any>; | ||
}; | ||
@@ -66,3 +98,3 @@ static defaultProps: { | ||
feil: undefined; | ||
tellerTekst: (antallTegn: any, maxLength: any) => JSX.Element; | ||
tellerTekst: typeof defaultTellerTekst; | ||
textareaRef: undefined; | ||
@@ -77,2 +109,3 @@ }; | ||
} | ||
declare function defaultTellerTekst(antallTegn: any, maxLength: any): JSX.Element; | ||
export default Textarea; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ import 'nav-frontend-skjema-style'; |
{ | ||
"name": "nav-frontend-skjema", | ||
"version": "1.0.28", | ||
"version": "1.0.29", | ||
"main": "lib/index.js", | ||
@@ -18,3 +18,3 @@ "types": "lib/index.d.ts", | ||
"nav-frontend-js-utils": "^1.0.6", | ||
"nav-frontend-skjema-style": "^1.0.13", | ||
"nav-frontend-skjema-style": "^1.0.14", | ||
"prop-types": "^15.5.10", | ||
@@ -26,3 +26,3 @@ "react": "^15.4.2 || ^16.0.0" | ||
"nav-frontend-js-utils": "^1.0.6", | ||
"nav-frontend-skjema-style": "^1.0.13", | ||
"nav-frontend-skjema-style": "^1.0.14", | ||
"prop-types": "^15.5.10", | ||
@@ -29,0 +29,0 @@ "react": "^15.4.2 || ^16.0.0" |
Sorry, the diff of this file is not supported yet
219984
2913