@norges-domstoler/dds-components 0.0.0-dev-20250904074636 → 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 +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- 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
|
@@ -8896,14 +8896,19 @@ var InlineButton_default = {
|
|
|
8896
8896
|
|
|
8897
8897
|
// src/components/InlineButton/InlineButton.tsx
|
|
8898
8898
|
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
8899
|
-
var InlineButton = ({
|
|
8899
|
+
var InlineButton = ({
|
|
8900
|
+
className,
|
|
8901
|
+
color,
|
|
8902
|
+
...rest
|
|
8903
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
8900
8904
|
StylelessButton,
|
|
8901
8905
|
{
|
|
8902
8906
|
className: cn(
|
|
8903
8907
|
className,
|
|
8904
8908
|
focus_default.focusable,
|
|
8905
8909
|
typographyStyles_default.a,
|
|
8906
|
-
InlineButton_default.button
|
|
8910
|
+
InlineButton_default.button,
|
|
8911
|
+
getColorCn(color)
|
|
8907
8912
|
),
|
|
8908
8913
|
...rest
|
|
8909
8914
|
}
|