@norges-domstoler/dds-components 0.0.0-dev-20250904073534 → 0.0.0-dev-20250904080240
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3162,8 +3162,8 @@ declare const GlobalMessage: {
|
|
|
3162
3162
|
displayName: string;
|
|
3163
3163
|
};
|
|
3164
3164
|
|
|
3165
|
-
type InlineButtonProps = ComponentPropsWithRef<'button'>;
|
|
3166
|
-
declare const InlineButton: ({ className, ...rest }: InlineButtonProps) => react_jsx_runtime.JSX.Element;
|
|
3165
|
+
type InlineButtonProps = Pick<BaseTypographyProps, 'color'> & Omit<ComponentPropsWithRef<'button'>, 'color'>;
|
|
3166
|
+
declare const InlineButton: ({ className, color, ...rest }: InlineButtonProps) => react_jsx_runtime.JSX.Element;
|
|
3167
3167
|
|
|
3168
3168
|
interface InlineEditContextType {
|
|
3169
3169
|
onChange: (e: ChangeEvent<EditElement>) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -3162,8 +3162,8 @@ declare const GlobalMessage: {
|
|
|
3162
3162
|
displayName: string;
|
|
3163
3163
|
};
|
|
3164
3164
|
|
|
3165
|
-
type InlineButtonProps = ComponentPropsWithRef<'button'>;
|
|
3166
|
-
declare const InlineButton: ({ className, ...rest }: InlineButtonProps) => react_jsx_runtime.JSX.Element;
|
|
3165
|
+
type InlineButtonProps = Pick<BaseTypographyProps, 'color'> & Omit<ComponentPropsWithRef<'button'>, 'color'>;
|
|
3166
|
+
declare const InlineButton: ({ className, color, ...rest }: InlineButtonProps) => react_jsx_runtime.JSX.Element;
|
|
3167
3167
|
|
|
3168
3168
|
interface InlineEditContextType {
|
|
3169
3169
|
onChange: (e: ChangeEvent<EditElement>) => void;
|
package/dist/index.js
CHANGED
|
@@ -6740,9 +6740,7 @@ function DateInput({
|
|
|
6740
6740
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6741
6741
|
Box,
|
|
6742
6742
|
{
|
|
6743
|
-
...fieldProps,
|
|
6744
6743
|
style,
|
|
6745
|
-
ref: internalRef,
|
|
6746
6744
|
width: getInputWidth(width, "fit-content"),
|
|
6747
6745
|
className: cn(
|
|
6748
6746
|
Input_default.input,
|
|
@@ -6762,7 +6760,15 @@ function DateInput({
|
|
|
6762
6760
|
),
|
|
6763
6761
|
children: [
|
|
6764
6762
|
button,
|
|
6765
|
-
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6763
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6764
|
+
"div",
|
|
6765
|
+
{
|
|
6766
|
+
...fieldProps,
|
|
6767
|
+
ref: internalRef,
|
|
6768
|
+
className: DateInput_default["date-segment-container"],
|
|
6769
|
+
children
|
|
6770
|
+
}
|
|
6771
|
+
),
|
|
6766
6772
|
suffixEl
|
|
6767
6773
|
]
|
|
6768
6774
|
}
|
|
@@ -8890,14 +8896,19 @@ var InlineButton_default = {
|
|
|
8890
8896
|
|
|
8891
8897
|
// src/components/InlineButton/InlineButton.tsx
|
|
8892
8898
|
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
8893
|
-
var InlineButton = ({
|
|
8899
|
+
var InlineButton = ({
|
|
8900
|
+
className,
|
|
8901
|
+
color,
|
|
8902
|
+
...rest
|
|
8903
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
8894
8904
|
StylelessButton,
|
|
8895
8905
|
{
|
|
8896
8906
|
className: cn(
|
|
8897
8907
|
className,
|
|
8898
8908
|
focus_default.focusable,
|
|
8899
8909
|
typographyStyles_default.a,
|
|
8900
|
-
InlineButton_default.button
|
|
8910
|
+
InlineButton_default.button,
|
|
8911
|
+
getColorCn(color)
|
|
8901
8912
|
),
|
|
8902
8913
|
...rest
|
|
8903
8914
|
}
|