@norges-domstoler/dds-components 0.0.0-dev-20250904074636 → 0.0.0-dev-20250904100931
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 +9 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
@@ -6520,6 +6520,7 @@ var InlineIconButton = ({
|
|
|
6520
6520
|
{
|
|
6521
6521
|
className: cn(className, InlineIconButton_default.button, focusable),
|
|
6522
6522
|
...rest,
|
|
6523
|
+
type: "button",
|
|
6523
6524
|
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon, { icon, iconSize: size2, color })
|
|
6524
6525
|
}
|
|
6525
6526
|
);
|
|
@@ -6614,6 +6615,7 @@ var ClearButton = ({
|
|
|
6614
6615
|
{
|
|
6615
6616
|
className: cn(className, absolute && utilStyles_default["center-absolute-y"]),
|
|
6616
6617
|
icon: CloseSmallIcon,
|
|
6618
|
+
type: "button",
|
|
6617
6619
|
...rest
|
|
6618
6620
|
}
|
|
6619
6621
|
);
|
|
@@ -8896,14 +8898,19 @@ var InlineButton_default = {
|
|
|
8896
8898
|
|
|
8897
8899
|
// src/components/InlineButton/InlineButton.tsx
|
|
8898
8900
|
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
8899
|
-
var InlineButton = ({
|
|
8901
|
+
var InlineButton = ({
|
|
8902
|
+
className,
|
|
8903
|
+
color,
|
|
8904
|
+
...rest
|
|
8905
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
8900
8906
|
StylelessButton,
|
|
8901
8907
|
{
|
|
8902
8908
|
className: cn(
|
|
8903
8909
|
className,
|
|
8904
8910
|
focus_default.focusable,
|
|
8905
8911
|
typographyStyles_default.a,
|
|
8906
|
-
InlineButton_default.button
|
|
8912
|
+
InlineButton_default.button,
|
|
8913
|
+
getColorCn(color)
|
|
8907
8914
|
),
|
|
8908
8915
|
...rest
|
|
8909
8916
|
}
|