@norges-domstoler/dds-components 0.0.0-dev-20231215140604 → 0.0.0-dev-20231219153718
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/dist/index.d.mts +10 -13
- package/dist/index.d.ts +10 -13
- package/dist/index.js +327 -321
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +328 -321
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1250,7 +1250,6 @@ declare const InputContainer: styled_components.IStyledComponent<"web", {
|
|
|
1250
1250
|
id?: string | undefined;
|
|
1251
1251
|
lang?: string | undefined;
|
|
1252
1252
|
nonce?: string | undefined;
|
|
1253
|
-
placeholder?: string | undefined;
|
|
1254
1253
|
slot?: string | undefined;
|
|
1255
1254
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1256
1255
|
style?: react.CSSProperties | undefined;
|
|
@@ -1522,7 +1521,6 @@ declare const InputAffixContainer: styled_components.IStyledComponent<"web", {
|
|
|
1522
1521
|
id?: string | undefined;
|
|
1523
1522
|
lang?: string | undefined;
|
|
1524
1523
|
nonce?: string | undefined;
|
|
1525
|
-
placeholder?: string | undefined;
|
|
1526
1524
|
slot?: string | undefined;
|
|
1527
1525
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1528
1526
|
style?: react.CSSProperties | undefined;
|
|
@@ -1795,7 +1793,6 @@ declare const TextOverflowEllipsisWrapper: styled_components.IStyledComponent<"w
|
|
|
1795
1793
|
id?: string | undefined;
|
|
1796
1794
|
lang?: string | undefined;
|
|
1797
1795
|
nonce?: string | undefined;
|
|
1798
|
-
placeholder?: string | undefined;
|
|
1799
1796
|
slot?: string | undefined;
|
|
1800
1797
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1801
1798
|
style?: react.CSSProperties | undefined;
|
|
@@ -2067,7 +2064,6 @@ declare const TextOverflowEllipsisInner: styled_components.IStyledComponent<"web
|
|
|
2067
2064
|
id?: string | undefined;
|
|
2068
2065
|
lang?: string | undefined;
|
|
2069
2066
|
nonce?: string | undefined;
|
|
2070
|
-
placeholder?: string | undefined;
|
|
2071
2067
|
slot?: string | undefined;
|
|
2072
2068
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
2073
2069
|
style?: react.CSSProperties | undefined;
|
|
@@ -3511,7 +3507,6 @@ declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
|
|
|
3511
3507
|
id?: string | undefined;
|
|
3512
3508
|
lang?: string | undefined;
|
|
3513
3509
|
nonce?: string | undefined;
|
|
3514
|
-
placeholder?: string | undefined;
|
|
3515
3510
|
slot?: string | undefined;
|
|
3516
3511
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
3517
3512
|
style?: react.CSSProperties | undefined;
|
|
@@ -4098,9 +4093,8 @@ interface SelectOption<TValue = unknown> {
|
|
|
4098
4093
|
label: string | number;
|
|
4099
4094
|
value: TValue;
|
|
4100
4095
|
}
|
|
4101
|
-
|
|
4102
|
-
type
|
|
4103
|
-
type SelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean, TValue = unknown> = {
|
|
4096
|
+
type WrappedReactSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = WithRequiredIf<Option extends SelectOption ? false : true, Props<Option, IsMulti, Group>, 'getOptionLabel' | 'getOptionValue'>;
|
|
4097
|
+
type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
4104
4098
|
/**Ledetekst for nedtrekkslisten. */
|
|
4105
4099
|
label?: string;
|
|
4106
4100
|
/**Størrelsen på komponenten. */
|
|
@@ -4119,11 +4113,14 @@ type SelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean,
|
|
|
4119
4113
|
className?: string;
|
|
4120
4114
|
/** Inline styling. */
|
|
4121
4115
|
style?: react__default.CSSProperties;
|
|
4122
|
-
customOptionElement?: (props: OptionProps<
|
|
4123
|
-
customSingleValueElement?: (props: SingleValueProps<
|
|
4124
|
-
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<
|
|
4125
|
-
type ForwardRefType<
|
|
4126
|
-
declare
|
|
4116
|
+
customOptionElement?: (props: OptionProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
4117
|
+
customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
4118
|
+
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
4119
|
+
type ForwardRefType<Option, IsMulti extends boolean> = react__default.ForwardedRef<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
4120
|
+
declare function SelectInner<Option = unknown, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>, ref: ForwardRefType<Option, IsMulti>): react_jsx_runtime.JSX.Element;
|
|
4121
|
+
declare const Select: typeof SelectInner;
|
|
4122
|
+
|
|
4123
|
+
declare const createSelectOptions: <TValue extends string | number>(...args: TValue[]) => SelectOption<TValue>[];
|
|
4127
4124
|
|
|
4128
4125
|
type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
|
|
4129
4126
|
type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|
package/dist/index.d.ts
CHANGED
|
@@ -1250,7 +1250,6 @@ declare const InputContainer: styled_components.IStyledComponent<"web", {
|
|
|
1250
1250
|
id?: string | undefined;
|
|
1251
1251
|
lang?: string | undefined;
|
|
1252
1252
|
nonce?: string | undefined;
|
|
1253
|
-
placeholder?: string | undefined;
|
|
1254
1253
|
slot?: string | undefined;
|
|
1255
1254
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1256
1255
|
style?: react.CSSProperties | undefined;
|
|
@@ -1522,7 +1521,6 @@ declare const InputAffixContainer: styled_components.IStyledComponent<"web", {
|
|
|
1522
1521
|
id?: string | undefined;
|
|
1523
1522
|
lang?: string | undefined;
|
|
1524
1523
|
nonce?: string | undefined;
|
|
1525
|
-
placeholder?: string | undefined;
|
|
1526
1524
|
slot?: string | undefined;
|
|
1527
1525
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1528
1526
|
style?: react.CSSProperties | undefined;
|
|
@@ -1795,7 +1793,6 @@ declare const TextOverflowEllipsisWrapper: styled_components.IStyledComponent<"w
|
|
|
1795
1793
|
id?: string | undefined;
|
|
1796
1794
|
lang?: string | undefined;
|
|
1797
1795
|
nonce?: string | undefined;
|
|
1798
|
-
placeholder?: string | undefined;
|
|
1799
1796
|
slot?: string | undefined;
|
|
1800
1797
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1801
1798
|
style?: react.CSSProperties | undefined;
|
|
@@ -2067,7 +2064,6 @@ declare const TextOverflowEllipsisInner: styled_components.IStyledComponent<"web
|
|
|
2067
2064
|
id?: string | undefined;
|
|
2068
2065
|
lang?: string | undefined;
|
|
2069
2066
|
nonce?: string | undefined;
|
|
2070
|
-
placeholder?: string | undefined;
|
|
2071
2067
|
slot?: string | undefined;
|
|
2072
2068
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
2073
2069
|
style?: react.CSSProperties | undefined;
|
|
@@ -3511,7 +3507,6 @@ declare const OverflowMenuList: styled_components.IStyledComponent<"web", {
|
|
|
3511
3507
|
id?: string | undefined;
|
|
3512
3508
|
lang?: string | undefined;
|
|
3513
3509
|
nonce?: string | undefined;
|
|
3514
|
-
placeholder?: string | undefined;
|
|
3515
3510
|
slot?: string | undefined;
|
|
3516
3511
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
3517
3512
|
style?: react.CSSProperties | undefined;
|
|
@@ -4098,9 +4093,8 @@ interface SelectOption<TValue = unknown> {
|
|
|
4098
4093
|
label: string | number;
|
|
4099
4094
|
value: TValue;
|
|
4100
4095
|
}
|
|
4101
|
-
|
|
4102
|
-
type
|
|
4103
|
-
type SelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean, TValue = unknown> = {
|
|
4096
|
+
type WrappedReactSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = WithRequiredIf<Option extends SelectOption ? false : true, Props<Option, IsMulti, Group>, 'getOptionLabel' | 'getOptionValue'>;
|
|
4097
|
+
type SelectProps<Option = unknown, IsMulti extends boolean = false> = {
|
|
4104
4098
|
/**Ledetekst for nedtrekkslisten. */
|
|
4105
4099
|
label?: string;
|
|
4106
4100
|
/**Størrelsen på komponenten. */
|
|
@@ -4119,11 +4113,14 @@ type SelectProps<TOption extends SelectOption<TValue>, IsMulti extends boolean,
|
|
|
4119
4113
|
className?: string;
|
|
4120
4114
|
/** Inline styling. */
|
|
4121
4115
|
style?: react__default.CSSProperties;
|
|
4122
|
-
customOptionElement?: (props: OptionProps<
|
|
4123
|
-
customSingleValueElement?: (props: SingleValueProps<
|
|
4124
|
-
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<
|
|
4125
|
-
type ForwardRefType<
|
|
4126
|
-
declare
|
|
4116
|
+
customOptionElement?: (props: OptionProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
4117
|
+
customSingleValueElement?: (props: SingleValueProps<Option, IsMulti, GroupBase<Option>>) => JSX.Element;
|
|
4118
|
+
} & Pick<HTMLAttributes<HTMLInputElement>, 'aria-required'> & WrappedReactSelectProps<Option, IsMulti, GroupBase<Option>>;
|
|
4119
|
+
type ForwardRefType<Option, IsMulti extends boolean> = react__default.ForwardedRef<SelectInstance<Option, IsMulti, GroupBase<Option>>>;
|
|
4120
|
+
declare function SelectInner<Option = unknown, IsMulti extends boolean = false>(props: SelectProps<Option, IsMulti>, ref: ForwardRefType<Option, IsMulti>): react_jsx_runtime.JSX.Element;
|
|
4121
|
+
declare const Select: typeof SelectInner;
|
|
4122
|
+
|
|
4123
|
+
declare const createSelectOptions: <TValue extends string | number>(...args: TValue[]) => SelectOption<TValue>[];
|
|
4127
4124
|
|
|
4128
4125
|
type GlobalMessagePurpose = 'info' | 'warning' | 'danger';
|
|
4129
4126
|
type GlobalMessageProps = BaseComponentPropsWithChildren<HTMLDivElement, {
|