@navikt/ds-react 7.7.0 → 7.8.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/cjs/chips/Removable.d.ts +0 -5
- package/cjs/chips/Removable.js +2 -2
- package/cjs/chips/Removable.js.map +1 -1
- package/cjs/date/context/index.d.ts +2 -1
- package/cjs/date/context/index.js +5 -2
- package/cjs/date/context/index.js.map +1 -1
- package/cjs/date/context/useDateInputContext.d.ts +3 -3
- package/cjs/date/context/useDateInputContext.js +4 -4
- package/cjs/date/context/useDateInputContext.js.map +1 -1
- package/cjs/date/context/useDateTranslationContext.d.ts +8 -0
- package/cjs/date/context/useDateTranslationContext.js +7 -0
- package/cjs/date/context/useDateTranslationContext.js.map +1 -0
- package/cjs/date/datepicker/DatePicker.js +18 -16
- package/cjs/date/datepicker/DatePicker.js.map +1 -1
- package/cjs/date/datepicker/DatePickerStandalone.js +17 -14
- package/cjs/date/datepicker/DatePickerStandalone.js.map +1 -1
- package/cjs/date/datepicker/parts/Caption.js +2 -3
- package/cjs/date/datepicker/parts/Caption.js.map +1 -1
- package/cjs/date/datepicker/parts/DropdownCaption.js +2 -2
- package/cjs/date/datepicker/parts/DropdownCaption.js.map +1 -1
- package/cjs/date/datepicker/parts/WeekNumber.js +3 -4
- package/cjs/date/datepicker/parts/WeekNumber.js.map +1 -1
- package/cjs/date/datepicker/parts/WeekRow.js +2 -3
- package/cjs/date/datepicker/parts/WeekRow.js.map +1 -1
- package/cjs/date/datepicker/types.d.ts +8 -0
- package/cjs/date/monthpicker/MonthCaption.js +1 -3
- package/cjs/date/monthpicker/MonthCaption.js.map +1 -1
- package/cjs/date/monthpicker/MonthPicker.js +30 -28
- package/cjs/date/monthpicker/MonthPicker.js.map +1 -1
- package/cjs/date/monthpicker/MonthPickerStandalone.js +16 -12
- package/cjs/date/monthpicker/MonthPickerStandalone.js.map +1 -1
- package/cjs/date/monthpicker/types.d.ts +8 -0
- package/cjs/date/parts/DateInput.js +1 -2
- package/cjs/date/parts/DateInput.js.map +1 -1
- package/cjs/date/parts/DateWrapper.d.ts +3 -1
- package/cjs/date/parts/DateWrapper.js +3 -3
- package/cjs/date/parts/DateWrapper.js.map +1 -1
- package/cjs/date/utils/index.d.ts +1 -1
- package/cjs/date/utils/index.js +2 -1
- package/cjs/date/utils/index.js.map +1 -1
- package/cjs/date/utils/locale.d.ts +12 -2
- package/cjs/date/utils/locale.js +18 -2
- package/cjs/date/utils/locale.js.map +1 -1
- package/cjs/form/combobox/Combobox.d.ts +1 -1
- package/cjs/form/combobox/ComboboxWrapper.js +6 -7
- package/cjs/form/combobox/ComboboxWrapper.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/FilteredOptions.js +4 -4
- package/cjs/form/combobox/FilteredOptions/FilteredOptions.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/FilteredOptionsItem.js +1 -1
- package/cjs/form/combobox/FilteredOptions/FilteredOptionsItem.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/MaxSelectedMessage.d.ts +1 -1
- package/cjs/form/combobox/FilteredOptions/MaxSelectedMessage.js +2 -5
- package/cjs/form/combobox/FilteredOptions/MaxSelectedMessage.js.map +1 -1
- package/cjs/form/combobox/FilteredOptions/filteredOptionsContext.js +4 -4
- package/cjs/form/combobox/FilteredOptions/filteredOptionsContext.js.map +1 -1
- package/cjs/form/combobox/Input/Input.js +10 -10
- package/cjs/form/combobox/Input/Input.js.map +1 -1
- package/cjs/form/combobox/Input/InputController.d.ts +1 -1
- package/cjs/form/combobox/Input/InputController.js +15 -11
- package/cjs/form/combobox/Input/InputController.js.map +1 -1
- package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.d.ts +2 -1
- package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.js +14 -5
- package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.js.map +1 -1
- package/cjs/form/combobox/types.d.ts +7 -17
- package/cjs/form/search/Search.d.ts +3 -2
- package/cjs/form/search/Search.js +1 -1
- package/cjs/form/search/Search.js.map +1 -1
- package/cjs/form/textarea/Textarea.d.ts +1 -0
- package/cjs/form/textarea/Textarea.js.map +1 -1
- package/cjs/guide-panel/GuidePanel.js +11 -3
- package/cjs/guide-panel/GuidePanel.js.map +1 -1
- package/cjs/guide-panel/Illustration.d.ts +2 -8
- package/cjs/guide-panel/Illustration.darkside.d.ts +2 -0
- package/cjs/guide-panel/Illustration.darkside.js +30 -0
- package/cjs/guide-panel/Illustration.darkside.js.map +1 -0
- package/cjs/guide-panel/Illustration.js +2 -18
- package/cjs/guide-panel/Illustration.js.map +1 -1
- package/cjs/guide-panel/index.d.ts +0 -1
- package/cjs/guide-panel/index.js +1 -3
- package/cjs/guide-panel/index.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +2 -3
- package/cjs/index.js.map +1 -1
- package/cjs/layout/box/Box.d.ts +3 -2
- package/cjs/layout/box/Box.darkside.d.ts +10 -6
- package/cjs/layout/box/Box.darkside.js.map +1 -1
- package/cjs/layout/box/Box.js.map +1 -1
- package/cjs/layout/utilities/types.d.ts +7 -23
- package/cjs/modal/Modal.js +1 -1
- package/cjs/modal/Modal.js.map +1 -1
- package/cjs/modal/ModalHeader.js +1 -1
- package/cjs/modal/ModalHeader.js.map +1 -1
- package/cjs/popover/Popover.js +1 -1
- package/cjs/popover/Popover.js.map +1 -1
- package/cjs/provider/Provider.d.ts +35 -10
- package/cjs/provider/Provider.js +13 -14
- package/cjs/provider/Provider.js.map +1 -1
- package/cjs/table/ExpandableRow.js +3 -3
- package/cjs/table/ExpandableRow.js.map +1 -1
- package/cjs/tabs/Tabs.context.d.ts +1 -1
- package/cjs/tag/Tag.d.ts +1 -1
- package/cjs/tag/Tag.js +4 -1
- package/cjs/tag/Tag.js.map +1 -1
- package/cjs/timeline/Pin.js +5 -2
- package/cjs/timeline/Pin.js.map +1 -1
- package/cjs/timeline/Timeline.d.ts +1 -0
- package/cjs/timeline/Timeline.js.map +1 -1
- package/cjs/timeline/hooks/useTimelineRows.d.ts +5 -1
- package/cjs/timeline/hooks/useTimelineRows.js +14 -3
- package/cjs/timeline/hooks/useTimelineRows.js.map +1 -1
- package/cjs/timeline/period/ClickablePeriod.js +5 -2
- package/cjs/timeline/period/ClickablePeriod.js.map +1 -1
- package/cjs/tooltip/Tooltip.js +6 -3
- package/cjs/tooltip/Tooltip.js.map +1 -1
- package/cjs/util/i18n/i18n.context.d.ts +1 -1
- package/cjs/util/i18n/i18n.context.js +15 -14
- package/cjs/util/i18n/i18n.context.js.map +1 -1
- package/cjs/util/i18n/locales/en.d.ts +50 -54
- package/cjs/util/i18n/locales/en.js +52 -56
- package/cjs/util/i18n/locales/en.js.map +1 -1
- package/cjs/util/i18n/locales/index.d.ts +3 -0
- package/cjs/util/i18n/locales/index.js +14 -0
- package/cjs/util/i18n/locales/index.js.map +1 -0
- package/cjs/util/i18n/locales/nb.d.ts +53 -57
- package/cjs/util/i18n/locales/nb.js +56 -60
- package/cjs/util/i18n/locales/nb.js.map +1 -1
- package/cjs/util/i18n/locales/nn.d.ts +50 -54
- package/cjs/util/i18n/locales/nn.js +52 -56
- package/cjs/util/i18n/locales/nn.js.map +1 -1
- package/esm/chips/Removable.d.ts +0 -5
- package/esm/chips/Removable.js +2 -2
- package/esm/chips/Removable.js.map +1 -1
- package/esm/date/context/index.d.ts +2 -1
- package/esm/date/context/index.js +2 -1
- package/esm/date/context/index.js.map +1 -1
- package/esm/date/context/useDateInputContext.d.ts +3 -3
- package/esm/date/context/useDateInputContext.js +3 -3
- package/esm/date/context/useDateInputContext.js.map +1 -1
- package/esm/date/context/useDateTranslationContext.d.ts +8 -0
- package/esm/date/context/useDateTranslationContext.js +3 -0
- package/esm/date/context/useDateTranslationContext.js.map +1 -0
- package/esm/date/datepicker/DatePicker.js +21 -19
- package/esm/date/datepicker/DatePicker.js.map +1 -1
- package/esm/date/datepicker/DatePickerStandalone.js +19 -16
- package/esm/date/datepicker/DatePickerStandalone.js.map +1 -1
- package/esm/date/datepicker/parts/Caption.js +2 -3
- package/esm/date/datepicker/parts/Caption.js.map +1 -1
- package/esm/date/datepicker/parts/DropdownCaption.js +3 -3
- package/esm/date/datepicker/parts/DropdownCaption.js.map +1 -1
- package/esm/date/datepicker/parts/WeekNumber.js +3 -4
- package/esm/date/datepicker/parts/WeekNumber.js.map +1 -1
- package/esm/date/datepicker/parts/WeekRow.js +2 -3
- package/esm/date/datepicker/parts/WeekRow.js.map +1 -1
- package/esm/date/datepicker/types.d.ts +8 -0
- package/esm/date/monthpicker/MonthCaption.js +2 -4
- package/esm/date/monthpicker/MonthCaption.js.map +1 -1
- package/esm/date/monthpicker/MonthPicker.js +33 -31
- package/esm/date/monthpicker/MonthPicker.js.map +1 -1
- package/esm/date/monthpicker/MonthPickerStandalone.js +18 -14
- package/esm/date/monthpicker/MonthPickerStandalone.js.map +1 -1
- package/esm/date/monthpicker/types.d.ts +8 -0
- package/esm/date/parts/DateInput.js +2 -3
- package/esm/date/parts/DateInput.js.map +1 -1
- package/esm/date/parts/DateWrapper.d.ts +3 -1
- package/esm/date/parts/DateWrapper.js +4 -4
- package/esm/date/parts/DateWrapper.js.map +1 -1
- package/esm/date/utils/index.d.ts +1 -1
- package/esm/date/utils/index.js +1 -1
- package/esm/date/utils/index.js.map +1 -1
- package/esm/date/utils/locale.d.ts +12 -2
- package/esm/date/utils/locale.js +16 -1
- package/esm/date/utils/locale.js.map +1 -1
- package/esm/form/combobox/Combobox.d.ts +1 -1
- package/esm/form/combobox/ComboboxWrapper.js +6 -7
- package/esm/form/combobox/ComboboxWrapper.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/FilteredOptions.js +4 -4
- package/esm/form/combobox/FilteredOptions/FilteredOptions.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/FilteredOptionsItem.js +1 -1
- package/esm/form/combobox/FilteredOptions/FilteredOptionsItem.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/MaxSelectedMessage.d.ts +1 -1
- package/esm/form/combobox/FilteredOptions/MaxSelectedMessage.js +2 -5
- package/esm/form/combobox/FilteredOptions/MaxSelectedMessage.js.map +1 -1
- package/esm/form/combobox/FilteredOptions/filteredOptionsContext.js +4 -4
- package/esm/form/combobox/FilteredOptions/filteredOptionsContext.js.map +1 -1
- package/esm/form/combobox/Input/Input.js +10 -10
- package/esm/form/combobox/Input/Input.js.map +1 -1
- package/esm/form/combobox/Input/InputController.d.ts +1 -1
- package/esm/form/combobox/Input/InputController.js +15 -11
- package/esm/form/combobox/Input/InputController.js.map +1 -1
- package/esm/form/combobox/SelectedOptions/selectedOptionsContext.d.ts +2 -1
- package/esm/form/combobox/SelectedOptions/selectedOptionsContext.js +14 -5
- package/esm/form/combobox/SelectedOptions/selectedOptionsContext.js.map +1 -1
- package/esm/form/combobox/types.d.ts +7 -17
- package/esm/form/search/Search.d.ts +3 -2
- package/esm/form/search/Search.js +1 -1
- package/esm/form/search/Search.js.map +1 -1
- package/esm/form/textarea/Textarea.d.ts +1 -0
- package/esm/form/textarea/Textarea.js.map +1 -1
- package/esm/guide-panel/GuidePanel.js +11 -3
- package/esm/guide-panel/GuidePanel.js.map +1 -1
- package/esm/guide-panel/Illustration.d.ts +2 -8
- package/esm/guide-panel/Illustration.darkside.d.ts +2 -0
- package/esm/guide-panel/Illustration.darkside.js +23 -0
- package/esm/guide-panel/Illustration.darkside.js.map +1 -0
- package/esm/guide-panel/Illustration.js +2 -18
- package/esm/guide-panel/Illustration.js.map +1 -1
- package/esm/guide-panel/index.d.ts +0 -1
- package/esm/guide-panel/index.js +0 -1
- package/esm/guide-panel/index.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/layout/box/Box.d.ts +3 -2
- package/esm/layout/box/Box.darkside.d.ts +10 -6
- package/esm/layout/box/Box.darkside.js.map +1 -1
- package/esm/layout/box/Box.js.map +1 -1
- package/esm/layout/utilities/types.d.ts +7 -23
- package/esm/modal/Modal.js +2 -2
- package/esm/modal/Modal.js.map +1 -1
- package/esm/modal/ModalHeader.js +1 -1
- package/esm/modal/ModalHeader.js.map +1 -1
- package/esm/popover/Popover.js +2 -2
- package/esm/popover/Popover.js.map +1 -1
- package/esm/provider/Provider.d.ts +35 -10
- package/esm/provider/Provider.js +11 -15
- package/esm/provider/Provider.js.map +1 -1
- package/esm/table/ExpandableRow.js +3 -3
- package/esm/table/ExpandableRow.js.map +1 -1
- package/esm/tabs/Tabs.context.d.ts +1 -1
- package/esm/tag/Tag.d.ts +1 -1
- package/esm/tag/Tag.js +4 -1
- package/esm/tag/Tag.js.map +1 -1
- package/esm/timeline/Pin.js +5 -2
- package/esm/timeline/Pin.js.map +1 -1
- package/esm/timeline/Timeline.d.ts +1 -0
- package/esm/timeline/Timeline.js.map +1 -1
- package/esm/timeline/hooks/useTimelineRows.d.ts +5 -1
- package/esm/timeline/hooks/useTimelineRows.js +14 -3
- package/esm/timeline/hooks/useTimelineRows.js.map +1 -1
- package/esm/timeline/period/ClickablePeriod.js +5 -2
- package/esm/timeline/period/ClickablePeriod.js.map +1 -1
- package/esm/tooltip/Tooltip.js +6 -3
- package/esm/tooltip/Tooltip.js.map +1 -1
- package/esm/util/i18n/i18n.context.d.ts +1 -1
- package/esm/util/i18n/i18n.context.js +15 -14
- package/esm/util/i18n/i18n.context.js.map +1 -1
- package/esm/util/i18n/locales/en.d.ts +50 -54
- package/esm/util/i18n/locales/en.js +52 -56
- package/esm/util/i18n/locales/en.js.map +1 -1
- package/esm/util/i18n/locales/index.d.ts +3 -0
- package/esm/util/i18n/locales/index.js +5 -0
- package/esm/util/i18n/locales/index.js.map +1 -0
- package/esm/util/i18n/locales/nb.d.ts +53 -57
- package/esm/util/i18n/locales/nb.js +56 -60
- package/esm/util/i18n/locales/nb.js.map +1 -1
- package/esm/util/i18n/locales/nn.d.ts +50 -54
- package/esm/util/i18n/locales/nn.js +52 -56
- package/esm/util/i18n/locales/nn.js.map +1 -1
- package/package.json +14 -4
- package/src/chips/Removable.tsx +1 -9
- package/src/date/context/index.ts +5 -1
- package/src/date/context/useDateInputContext.tsx +6 -4
- package/src/date/context/useDateTranslationContext.ts +9 -0
- package/src/date/datepicker/DatePicker.tsx +41 -32
- package/src/date/datepicker/DatePickerStandalone.tsx +46 -37
- package/src/date/datepicker/parts/Caption.tsx +2 -3
- package/src/date/datepicker/parts/DropdownCaption.tsx +3 -3
- package/src/date/datepicker/parts/WeekNumber.tsx +3 -9
- package/src/date/datepicker/parts/WeekRow.tsx +2 -3
- package/src/date/datepicker/types.ts +8 -0
- package/src/date/monthpicker/MonthCaption.tsx +2 -4
- package/src/date/monthpicker/MonthPicker.tsx +67 -54
- package/src/date/monthpicker/MonthPickerStandalone.tsx +39 -26
- package/src/date/monthpicker/types.ts +8 -0
- package/src/date/parts/DateInput.tsx +2 -3
- package/src/date/parts/DateWrapper.tsx +6 -4
- package/src/date/utils/index.ts +5 -1
- package/src/date/utils/locale.ts +17 -1
- package/src/form/combobox/ComboboxWrapper.tsx +6 -7
- package/src/form/combobox/FilteredOptions/FilteredOptions.tsx +4 -4
- package/src/form/combobox/FilteredOptions/FilteredOptionsItem.tsx +1 -1
- package/src/form/combobox/FilteredOptions/MaxSelectedMessage.tsx +2 -9
- package/src/form/combobox/FilteredOptions/filteredOptionsContext.tsx +4 -4
- package/src/form/combobox/Input/Input.context.tsx +1 -1
- package/src/form/combobox/Input/Input.tsx +10 -10
- package/src/form/combobox/Input/InputController.tsx +14 -25
- package/src/form/combobox/SelectedOptions/selectedOptionsContext.tsx +14 -7
- package/src/form/combobox/types.ts +12 -20
- package/src/form/search/Search.tsx +3 -2
- package/src/form/textarea/Textarea.tsx +1 -0
- package/src/guide-panel/GuidePanel.tsx +59 -15
- package/src/guide-panel/Illustration.darkside.tsx +96 -0
- package/src/guide-panel/Illustration.tsx +2 -22
- package/src/guide-panel/index.ts +0 -1
- package/src/index.ts +1 -5
- package/src/layout/box/Box.darkside.tsx +19 -14
- package/src/layout/box/Box.tsx +4 -2
- package/src/layout/utilities/types.ts +20 -42
- package/src/modal/Modal.tsx +2 -2
- package/src/modal/ModalHeader.tsx +1 -1
- package/src/popover/Popover.tsx +2 -2
- package/src/provider/Provider.tsx +56 -13
- package/src/table/ExpandableRow.tsx +10 -3
- package/src/tag/Tag.tsx +32 -18
- package/src/timeline/Pin.tsx +16 -10
- package/src/timeline/Timeline.tsx +1 -0
- package/src/timeline/hooks/useTimelineRows.ts +25 -9
- package/src/timeline/period/ClickablePeriod.tsx +16 -10
- package/src/timeline/tests/useTimelineRows.test.ts +131 -0
- package/src/tooltip/Tooltip.tsx +7 -2
- package/src/util/i18n/i18n.context.test.tsx +29 -8
- package/src/util/i18n/i18n.context.ts +15 -14
- package/src/util/i18n/locales/en.ts +52 -56
- package/src/util/i18n/locales/index.ts +4 -0
- package/src/util/i18n/locales/nb.ts +56 -60
- package/src/util/i18n/locales/nn.ts +52 -56
- package/cjs/provider/i18n/LanguageProvider.d.ts +0 -26
- package/cjs/provider/i18n/LanguageProvider.js +0 -54
- package/cjs/provider/i18n/LanguageProvider.js.map +0 -1
- package/esm/provider/i18n/LanguageProvider.d.ts +0 -26
- package/esm/provider/i18n/LanguageProvider.js +0 -23
- package/esm/provider/i18n/LanguageProvider.js.map +0 -1
- package/src/provider/i18n/LanguageProvider.tsx +0 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../src/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAY4B;AAC5B,gDAAsB;AACtB,+CAAkE;AAClE,0DAAyD;AACzD,sCAAmC;AACnC,uCAAoC;AACpC,8CAAuC;AACvC,yCAAsC;AACtC,6EAA0E;AAC1E,6DAA0D;AAsE1D;;;;;;;;;;;;GAYG;AACU,QAAA,OAAO,GAAG,IAAA,kBAAU,EAC/B,CACE,EAgBC,EACD,GAAG,EACH,EAAE;QAlBF,EACE,QAAQ,EACR,SAA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ACP,CACM,CACR,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,kBAAe,eAAO,CAAC"}
|
|
@@ -4,6 +4,6 @@ type NestedKeyOf<ObjectType extends object> = {
|
|
|
4
4
|
[Key in keyof ObjectType & (string | number)]: ObjectType[Key] extends object ? `${Key}.${NestedKeyOf<ObjectType[Key]>}` : `${Key}`;
|
|
5
5
|
}[keyof ObjectType & (string | number)];
|
|
6
6
|
export type TFunction<T extends Component> = (keypath: NestedKeyOf<Translations[T]>, replacements?: Record<string, string | number>) => string;
|
|
7
|
-
export declare function useI18n<T extends Component>(componentName: T, ...
|
|
7
|
+
export declare function useI18n<T extends Component>(componentName: T, ...localTranslations: (ComponentTranslation<T> | undefined)[]): TFunction<T>;
|
|
8
8
|
export declare function useDateLocale(): Locale;
|
|
9
9
|
export {};
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useI18n = useI18n;
|
|
4
4
|
exports.useDateLocale = useDateLocale;
|
|
5
|
-
const
|
|
6
|
-
const LanguageProvider_1 = require("../../provider/i18n/LanguageProvider");
|
|
5
|
+
const Provider_1 = require("../../provider/Provider");
|
|
7
6
|
const get_1 = require("./get");
|
|
8
7
|
/**
|
|
9
8
|
* https://regex101.com/r/LYKWi3/1
|
|
10
9
|
*/
|
|
11
10
|
const REPLACE_REGEX = /{[^}]*}/g;
|
|
12
|
-
function useI18n(componentName, ...
|
|
13
|
-
const
|
|
14
|
-
const
|
|
11
|
+
function useI18n(componentName, ...localTranslations) {
|
|
12
|
+
const context = (0, Provider_1.useProvider)();
|
|
13
|
+
const contextTranslations = context.translations || [];
|
|
15
14
|
const i18nObjects = [
|
|
16
|
-
...
|
|
17
|
-
...(Array.isArray(
|
|
18
|
-
?
|
|
19
|
-
: [
|
|
15
|
+
...localTranslations,
|
|
16
|
+
...(Array.isArray(contextTranslations)
|
|
17
|
+
? contextTranslations.map((t) => t[componentName])
|
|
18
|
+
: [contextTranslations[componentName]]),
|
|
19
|
+
context.locale[componentName],
|
|
20
20
|
];
|
|
21
21
|
/**
|
|
22
22
|
* https://github.com/Shopify/polaris/blob/2115f9ba2f5bcbf2ad15745233501bff2db81ecf/polaris-react/src/utilities/i18n/I18n.ts#L24
|
|
@@ -38,11 +38,12 @@ function useI18n(componentName, ...local) {
|
|
|
38
38
|
return translate;
|
|
39
39
|
}
|
|
40
40
|
function useDateLocale() {
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const i18nObjects = Array.isArray(
|
|
44
|
-
?
|
|
45
|
-
: [
|
|
41
|
+
const context = (0, Provider_1.useProvider)();
|
|
42
|
+
const contextTranslations = context.translations || [];
|
|
43
|
+
const i18nObjects = Array.isArray(contextTranslations)
|
|
44
|
+
? contextTranslations.map((t) => t.global)
|
|
45
|
+
: [contextTranslations.global];
|
|
46
|
+
i18nObjects.push(context.locale.global);
|
|
46
47
|
for (const obj of i18nObjects) {
|
|
47
48
|
if (obj === null || obj === void 0 ? void 0 : obj.dateLocale) {
|
|
48
49
|
return obj.dateLocale;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.context.js","sourceRoot":"","sources":["../../../src/util/i18n/i18n.context.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"i18n.context.js","sourceRoot":"","sources":["../../../src/util/i18n/i18n.context.ts"],"names":[],"mappings":";;AA2BA,0BAuCC;AAED,sCAcC;AAjFD,sDAAsD;AACtD,+BAA4B;AAQ5B;;GAEG;AACH,MAAM,aAAa,GAAG,UAAU,CAAC;AAcjC,SAAgB,OAAO,CACrB,aAAgB,EAChB,GAAG,iBAA0D;IAE7D,MAAM,OAAO,GAAG,IAAA,sBAAW,GAAE,CAAC;IAC9B,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,IAAI,EAAE,CAAC;IACvD,MAAM,WAAW,GAAwC;QACvD,GAAG,iBAAiB;QACpB,GAAG,CAAC,KAAK,CAAC,OAAO,C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G,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;QAC1C,CAAC,CAAC,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACjC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAExC,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC9B,IAAI,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,UAAU,EAAE,CAAC;YACpB,OAAO,GAAG,CAAC,UAAoB,CAAC;QAClC,CAAC;IACH,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -4,6 +4,51 @@ declare const _default: {
|
|
|
4
4
|
showMore: string;
|
|
5
5
|
showLess: string;
|
|
6
6
|
readOnly: string;
|
|
7
|
+
close: string;
|
|
8
|
+
};
|
|
9
|
+
Alert: {
|
|
10
|
+
closeAlert: string;
|
|
11
|
+
closeMessage: string;
|
|
12
|
+
error: string;
|
|
13
|
+
info: string;
|
|
14
|
+
success: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
};
|
|
17
|
+
Chips: {
|
|
18
|
+
Removable: {
|
|
19
|
+
labelSuffix: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
Combobox: {
|
|
23
|
+
addOption: string;
|
|
24
|
+
loading: string;
|
|
25
|
+
maxSelected: string;
|
|
26
|
+
};
|
|
27
|
+
CopyButton: {
|
|
28
|
+
title: string;
|
|
29
|
+
activeText: string;
|
|
30
|
+
};
|
|
31
|
+
DatePicker: {
|
|
32
|
+
chooseDate: string;
|
|
33
|
+
chooseDates: string;
|
|
34
|
+
chooseDateRange: string;
|
|
35
|
+
chooseMonth: string;
|
|
36
|
+
week: string;
|
|
37
|
+
weekNumber: string;
|
|
38
|
+
selectWeekNumber: string;
|
|
39
|
+
month: string;
|
|
40
|
+
goToNextMonth: string;
|
|
41
|
+
goToPreviousMonth: string;
|
|
42
|
+
year: string;
|
|
43
|
+
goToNextYear: string;
|
|
44
|
+
goToPreviousYear: string;
|
|
45
|
+
openDatePicker: string;
|
|
46
|
+
openMonthPicker: string;
|
|
47
|
+
closeDatePicker: string;
|
|
48
|
+
closeMonthPicker: string;
|
|
49
|
+
};
|
|
50
|
+
ErrorSummary: {
|
|
51
|
+
heading: string;
|
|
7
52
|
};
|
|
8
53
|
FileUpload: {
|
|
9
54
|
dropzone: {
|
|
@@ -28,35 +73,18 @@ declare const _default: {
|
|
|
28
73
|
showAllSteps: string;
|
|
29
74
|
hideAllSteps: string;
|
|
30
75
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
closeMessage: string;
|
|
34
|
-
error: string;
|
|
35
|
-
info: string;
|
|
36
|
-
success: string;
|
|
37
|
-
warning: string;
|
|
76
|
+
FormSummary: {
|
|
77
|
+
editAnswer: string;
|
|
38
78
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
labelSuffix: string;
|
|
42
|
-
};
|
|
79
|
+
GuidePanel: {
|
|
80
|
+
illustrationLabel: string;
|
|
43
81
|
};
|
|
44
|
-
|
|
82
|
+
HelpText: {
|
|
45
83
|
title: string;
|
|
46
|
-
activeText: string;
|
|
47
|
-
};
|
|
48
|
-
ErrorSummary: {
|
|
49
|
-
heading: string;
|
|
50
|
-
};
|
|
51
|
-
FormSummary: {
|
|
52
|
-
editAnswer: string;
|
|
53
84
|
};
|
|
54
85
|
Loader: {
|
|
55
86
|
title: string;
|
|
56
87
|
};
|
|
57
|
-
Modal: {
|
|
58
|
-
close: string;
|
|
59
|
-
};
|
|
60
88
|
Pagination: {
|
|
61
89
|
previous: string;
|
|
62
90
|
next: string;
|
|
@@ -99,37 +127,5 @@ declare const _default: {
|
|
|
99
127
|
reset: string;
|
|
100
128
|
};
|
|
101
129
|
};
|
|
102
|
-
DatePicker: {
|
|
103
|
-
close: string;
|
|
104
|
-
chooseDate: string;
|
|
105
|
-
chooseDates: string;
|
|
106
|
-
chooseDateRange: string;
|
|
107
|
-
chooseMonth: string;
|
|
108
|
-
week: string;
|
|
109
|
-
weekNumber: string;
|
|
110
|
-
selectWeekNumber: string;
|
|
111
|
-
month: string;
|
|
112
|
-
goToNextMonth: string;
|
|
113
|
-
goToPreviousMonth: string;
|
|
114
|
-
year: string;
|
|
115
|
-
goToNextYear: string;
|
|
116
|
-
goToPreviousYear: string;
|
|
117
|
-
openDatePicker: string;
|
|
118
|
-
openMonthPicker: string;
|
|
119
|
-
closeDatePicker: string;
|
|
120
|
-
closeMonthPicker: string;
|
|
121
|
-
};
|
|
122
|
-
Combobox: {
|
|
123
|
-
addOption: string;
|
|
124
|
-
loading: string;
|
|
125
|
-
maxSelected: string;
|
|
126
|
-
clear: string;
|
|
127
|
-
};
|
|
128
|
-
GuidePanel: {
|
|
129
|
-
illustrationLabel: string;
|
|
130
|
-
};
|
|
131
|
-
HelpText: {
|
|
132
|
-
title: string;
|
|
133
|
-
};
|
|
134
130
|
};
|
|
135
131
|
export default _default;
|
|
@@ -7,6 +7,51 @@ exports.default = {
|
|
|
7
7
|
showMore: "Show more",
|
|
8
8
|
showLess: "Show less",
|
|
9
9
|
readOnly: "Read-only",
|
|
10
|
+
close: "Close",
|
|
11
|
+
},
|
|
12
|
+
Alert: {
|
|
13
|
+
closeAlert: "Close alert",
|
|
14
|
+
closeMessage: "Close message",
|
|
15
|
+
error: "Error",
|
|
16
|
+
info: "Information",
|
|
17
|
+
success: "Success",
|
|
18
|
+
warning: "Warning",
|
|
19
|
+
},
|
|
20
|
+
Chips: {
|
|
21
|
+
Removable: {
|
|
22
|
+
labelSuffix: "delete",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
Combobox: {
|
|
26
|
+
addOption: "Add",
|
|
27
|
+
loading: "Searching…",
|
|
28
|
+
maxSelected: "{selected} of max {limit} are selected.",
|
|
29
|
+
},
|
|
30
|
+
CopyButton: {
|
|
31
|
+
title: "Copy",
|
|
32
|
+
activeText: "Copied!",
|
|
33
|
+
},
|
|
34
|
+
DatePicker: {
|
|
35
|
+
chooseDate: "Choose date",
|
|
36
|
+
chooseDates: "Choose dates",
|
|
37
|
+
chooseDateRange: "Choose start and end date",
|
|
38
|
+
chooseMonth: "Choose month",
|
|
39
|
+
week: "Week",
|
|
40
|
+
weekNumber: "Week {week}",
|
|
41
|
+
selectWeekNumber: "Select week {week}",
|
|
42
|
+
month: "Month",
|
|
43
|
+
goToNextMonth: "Go to next month",
|
|
44
|
+
goToPreviousMonth: "Go to previous month",
|
|
45
|
+
year: "Year",
|
|
46
|
+
goToNextYear: "Go to next year",
|
|
47
|
+
goToPreviousYear: "Go to previous year",
|
|
48
|
+
openDatePicker: "Open date picker",
|
|
49
|
+
openMonthPicker: "Open month picker",
|
|
50
|
+
closeDatePicker: "Close date picker",
|
|
51
|
+
closeMonthPicker: "Close month picker",
|
|
52
|
+
},
|
|
53
|
+
ErrorSummary: {
|
|
54
|
+
heading: "You must correct the following errors before you can continue:",
|
|
10
55
|
},
|
|
11
56
|
FileUpload: {
|
|
12
57
|
dropzone: {
|
|
@@ -31,35 +76,18 @@ exports.default = {
|
|
|
31
76
|
showAllSteps: "Show all steps",
|
|
32
77
|
hideAllSteps: "Hide all steps",
|
|
33
78
|
},
|
|
34
|
-
Alert: {
|
|
35
|
-
closeAlert: "Close alert",
|
|
36
|
-
closeMessage: "Close message",
|
|
37
|
-
error: "Error",
|
|
38
|
-
info: "Information",
|
|
39
|
-
success: "Success",
|
|
40
|
-
warning: "Warning",
|
|
41
|
-
},
|
|
42
|
-
Chips: {
|
|
43
|
-
Removable: {
|
|
44
|
-
labelSuffix: "delete",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
CopyButton: {
|
|
48
|
-
title: "Copy",
|
|
49
|
-
activeText: "Copied!",
|
|
50
|
-
},
|
|
51
|
-
ErrorSummary: {
|
|
52
|
-
heading: "You must correct the following errors before you can continue:",
|
|
53
|
-
},
|
|
54
79
|
FormSummary: {
|
|
55
80
|
editAnswer: "Edit answer",
|
|
56
81
|
},
|
|
82
|
+
GuidePanel: {
|
|
83
|
+
illustrationLabel: "Illustration of advisor",
|
|
84
|
+
},
|
|
85
|
+
HelpText: {
|
|
86
|
+
title: "More information",
|
|
87
|
+
},
|
|
57
88
|
Loader: {
|
|
58
89
|
title: "Waiting…",
|
|
59
90
|
},
|
|
60
|
-
Modal: {
|
|
61
|
-
close: "Close",
|
|
62
|
-
},
|
|
63
91
|
Pagination: {
|
|
64
92
|
previous: "Previous",
|
|
65
93
|
next: "Next",
|
|
@@ -69,7 +97,7 @@ exports.default = {
|
|
|
69
97
|
progressUnknown: "Progress is unknown, estimated time is {seconds} seconds.",
|
|
70
98
|
},
|
|
71
99
|
Search: {
|
|
72
|
-
clear: "Clear",
|
|
100
|
+
clear: "Clear field",
|
|
73
101
|
search: "Search",
|
|
74
102
|
},
|
|
75
103
|
Textarea: {
|
|
@@ -102,37 +130,5 @@ exports.default = {
|
|
|
102
130
|
reset: "Reset zoom",
|
|
103
131
|
},
|
|
104
132
|
},
|
|
105
|
-
DatePicker: {
|
|
106
|
-
close: "Close",
|
|
107
|
-
chooseDate: "Choose date",
|
|
108
|
-
chooseDates: "Choose dates",
|
|
109
|
-
chooseDateRange: "Choose start and end date",
|
|
110
|
-
chooseMonth: "Choose month",
|
|
111
|
-
week: "Week",
|
|
112
|
-
weekNumber: "Week {week}",
|
|
113
|
-
selectWeekNumber: "Select week {week}",
|
|
114
|
-
month: "Month",
|
|
115
|
-
goToNextMonth: "Go to next month",
|
|
116
|
-
goToPreviousMonth: "Go to previous month",
|
|
117
|
-
year: "Year",
|
|
118
|
-
goToNextYear: "Go to next year",
|
|
119
|
-
goToPreviousYear: "Go to previous year",
|
|
120
|
-
openDatePicker: "Open date picker",
|
|
121
|
-
openMonthPicker: "Open month picker",
|
|
122
|
-
closeDatePicker: "Close date picker",
|
|
123
|
-
closeMonthPicker: "Close month picker",
|
|
124
|
-
},
|
|
125
|
-
Combobox: {
|
|
126
|
-
addOption: "Add",
|
|
127
|
-
loading: "Searching…",
|
|
128
|
-
maxSelected: "{selected} of max {limit} are selected.",
|
|
129
|
-
clear: "Clear",
|
|
130
|
-
},
|
|
131
|
-
GuidePanel: {
|
|
132
|
-
illustrationLabel: "Illustration of advisor",
|
|
133
|
-
},
|
|
134
|
-
HelpText: {
|
|
135
|
-
title: "More information",
|
|
136
|
-
},
|
|
137
133
|
};
|
|
138
134
|
//# sourceMappingURL=en.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../../src/util/i18n/locales/en.ts"],"names":[],"mappings":";;AAAA,4CAAuC;AAGvC,kBAAe;IACb,MAAM,EAAE;QACN,UAAU,EAAE,aAAI;QAChB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;
|
|
1
|
+
{"version":3,"file":"en.js","sourceRoot":"","sources":["../../../../src/util/i18n/locales/en.ts"],"names":[],"mappings":";;AAAA,4CAAuC;AAGvC,kBAAe;IACb,MAAM,EAAE;QACN,UAAU,EAAE,aAAI;QAChB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;QACrB,QAAQ,EAAE,WAAW;QACrB,KAAK,EAAE,OAAO;KACf;IAED,KAAK,EAAE;QACL,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,eAAe;QAC7B,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,aAAa;QACnB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;KACnB;IACD,KAAK,EAAE;QACL,SAAS,EAAE;YACT,WAAW,EAAE,QAAQ;SACtB;KACF;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,YAAY;QACrB,WAAW,EAAE,yCAAyC;KACvD;IACD,UAAU,EAAE;QACV,KAAK,EAAE,MAAM;QACb,UAAU,EAAE,SAAS;KACtB;IACD,UAAU,EAAE;QACV,UAAU,EAAE,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ACb;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,oBAAoB;QAC9B,eAAe,EACb,2DAA2D;KAC9D;IACD,MAAM,EAAE;QACN,KAAK,EAAE,aAAa;QACpB,MAAM,EAAE,QAAQ;KACjB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,+CAA+C;QAC1D,YAAY,EAAE,6BAA6B;QAC3C,SAAS,EAAE,yBAAyB;KACrC;IACD,QAAQ,EAAE;QACR,UAAU,EAAE,YAAY;QACxB,SAAS,EAAE,OAAO;QAClB,WAAW,EAAE,UAAU;QACvB,UAAU,EAAE,MAAM;QAClB,GAAG,EAAE;YACH,SAAS,EAAE,YAAY;YACvB,MAAM,EAAE,kBAAkB;SAC3B;QACD,MAAM,EAAE;YACN,OAAO,EAAE,SAAS;YAClB,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,gCAAgC;SACzC;QACD,GAAG,EAAE;YACH,GAAG,EAAE,aAAa;SACnB;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,gCAAgC;YACtC,KAAK,EAAE,YAAY;SACpB;KACF;CACqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.en = exports.nn = exports.nb = void 0;
|
|
8
|
+
var nb_1 = require("./nb");
|
|
9
|
+
Object.defineProperty(exports, "nb", { enumerable: true, get: function () { return __importDefault(nb_1).default; } });
|
|
10
|
+
var nn_1 = require("./nn");
|
|
11
|
+
Object.defineProperty(exports, "nn", { enumerable: true, get: function () { return __importDefault(nn_1).default; } });
|
|
12
|
+
var en_1 = require("./en");
|
|
13
|
+
Object.defineProperty(exports, "en", { enumerable: true, get: function () { return __importDefault(en_1).default; } });
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/util/i18n/locales/index.ts"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;;;AACb,2BAAqC;AAA5B,yGAAA,OAAO,OAAM;AACtB,2BAAqC;AAA5B,yGAAA,OAAO,OAAM;AACtB,2BAAqC;AAA5B,yGAAA,OAAO,OAAM"}
|
|
@@ -5,6 +5,54 @@ declare const _default: {
|
|
|
5
5
|
showMore: string;
|
|
6
6
|
showLess: string;
|
|
7
7
|
readOnly: string;
|
|
8
|
+
close: string;
|
|
9
|
+
};
|
|
10
|
+
Alert: {
|
|
11
|
+
closeAlert: string;
|
|
12
|
+
closeMessage: string;
|
|
13
|
+
error: string;
|
|
14
|
+
info: string;
|
|
15
|
+
success: string;
|
|
16
|
+
warning: string;
|
|
17
|
+
};
|
|
18
|
+
Chips: {
|
|
19
|
+
Removable: {
|
|
20
|
+
/** Will be appended to the accessible name for the button. */
|
|
21
|
+
labelSuffix: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
Combobox: {
|
|
25
|
+
/** The input value will be appended to the end of this text, e.g. `Legg til "input value"`. */
|
|
26
|
+
addOption: string;
|
|
27
|
+
/** Loader title */
|
|
28
|
+
loading: string;
|
|
29
|
+
maxSelected: string;
|
|
30
|
+
};
|
|
31
|
+
CopyButton: {
|
|
32
|
+
title: string;
|
|
33
|
+
activeText: string;
|
|
34
|
+
};
|
|
35
|
+
DatePicker: {
|
|
36
|
+
chooseDate: string;
|
|
37
|
+
chooseDates: string;
|
|
38
|
+
chooseDateRange: string;
|
|
39
|
+
chooseMonth: string;
|
|
40
|
+
week: string;
|
|
41
|
+
weekNumber: string;
|
|
42
|
+
selectWeekNumber: string;
|
|
43
|
+
month: string;
|
|
44
|
+
goToNextMonth: string;
|
|
45
|
+
goToPreviousMonth: string;
|
|
46
|
+
year: string;
|
|
47
|
+
goToNextYear: string;
|
|
48
|
+
goToPreviousYear: string;
|
|
49
|
+
openDatePicker: string;
|
|
50
|
+
openMonthPicker: string;
|
|
51
|
+
closeDatePicker: string;
|
|
52
|
+
closeMonthPicker: string;
|
|
53
|
+
};
|
|
54
|
+
ErrorSummary: {
|
|
55
|
+
heading: string;
|
|
8
56
|
};
|
|
9
57
|
FileUpload: {
|
|
10
58
|
dropzone: {
|
|
@@ -29,36 +77,18 @@ declare const _default: {
|
|
|
29
77
|
showAllSteps: string;
|
|
30
78
|
hideAllSteps: string;
|
|
31
79
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
closeMessage: string;
|
|
35
|
-
error: string;
|
|
36
|
-
info: string;
|
|
37
|
-
success: string;
|
|
38
|
-
warning: string;
|
|
80
|
+
FormSummary: {
|
|
81
|
+
editAnswer: string;
|
|
39
82
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/** Will be appended to the accessible name for the button. */
|
|
43
|
-
labelSuffix: string;
|
|
44
|
-
};
|
|
83
|
+
GuidePanel: {
|
|
84
|
+
illustrationLabel: string;
|
|
45
85
|
};
|
|
46
|
-
|
|
86
|
+
HelpText: {
|
|
47
87
|
title: string;
|
|
48
|
-
activeText: string;
|
|
49
|
-
};
|
|
50
|
-
ErrorSummary: {
|
|
51
|
-
heading: string;
|
|
52
|
-
};
|
|
53
|
-
FormSummary: {
|
|
54
|
-
editAnswer: string;
|
|
55
88
|
};
|
|
56
89
|
Loader: {
|
|
57
90
|
title: string;
|
|
58
91
|
};
|
|
59
|
-
Modal: {
|
|
60
|
-
close: string;
|
|
61
|
-
};
|
|
62
92
|
Pagination: {
|
|
63
93
|
previous: string;
|
|
64
94
|
next: string;
|
|
@@ -102,39 +132,5 @@ declare const _default: {
|
|
|
102
132
|
reset: string;
|
|
103
133
|
};
|
|
104
134
|
};
|
|
105
|
-
DatePicker: {
|
|
106
|
-
close: string;
|
|
107
|
-
chooseDate: string;
|
|
108
|
-
chooseDates: string;
|
|
109
|
-
chooseDateRange: string;
|
|
110
|
-
chooseMonth: string;
|
|
111
|
-
week: string;
|
|
112
|
-
weekNumber: string;
|
|
113
|
-
selectWeekNumber: string;
|
|
114
|
-
month: string;
|
|
115
|
-
goToNextMonth: string;
|
|
116
|
-
goToPreviousMonth: string;
|
|
117
|
-
year: string;
|
|
118
|
-
goToNextYear: string;
|
|
119
|
-
goToPreviousYear: string;
|
|
120
|
-
openDatePicker: string;
|
|
121
|
-
openMonthPicker: string;
|
|
122
|
-
closeDatePicker: string;
|
|
123
|
-
closeMonthPicker: string;
|
|
124
|
-
};
|
|
125
|
-
Combobox: {
|
|
126
|
-
/** The input value will be appended to the end of this text, e.g. `Legg til "input value"`. */
|
|
127
|
-
addOption: string;
|
|
128
|
-
/** Loader title */
|
|
129
|
-
loading: string;
|
|
130
|
-
maxSelected: string;
|
|
131
|
-
clear: string;
|
|
132
|
-
};
|
|
133
|
-
GuidePanel: {
|
|
134
|
-
illustrationLabel: string;
|
|
135
|
-
};
|
|
136
|
-
HelpText: {
|
|
137
|
-
title: string;
|
|
138
|
-
};
|
|
139
135
|
};
|
|
140
136
|
export default _default;
|