@norges-domstoler/dds-components 10.3.1 → 10.4.0

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.
@@ -0,0 +1,33 @@
1
+ var FormGeneratorSupportedFields;
2
+ (function (FormGeneratorSupportedFields) {
3
+ FormGeneratorSupportedFields["Button"] = "Button";
4
+ FormGeneratorSupportedFields["Card"] = "Card";
5
+ FormGeneratorSupportedFields["Checkbox"] = "Checkbox";
6
+ FormGeneratorSupportedFields["CheckboxGroup"] = "CheckboxGroup";
7
+ FormGeneratorSupportedFields["Datepicker"] = "Datepicker";
8
+ FormGeneratorSupportedFields["DescriptionList"] = "DescriptionList";
9
+ FormGeneratorSupportedFields["DescriptionListGroup"] = "DescriptionListGroup";
10
+ FormGeneratorSupportedFields["DescriptionListDesc"] = "DescriptionListDesc";
11
+ FormGeneratorSupportedFields["DescriptionListTerm"] = "DescriptionListTerm";
12
+ FormGeneratorSupportedFields["Divider"] = "Divider";
13
+ FormGeneratorSupportedFields["GlobalMessage"] = "GlobalMessage";
14
+ FormGeneratorSupportedFields["Heading"] = "Heading";
15
+ FormGeneratorSupportedFields["InputMessage"] = "InputMessage";
16
+ FormGeneratorSupportedFields["Label"] = "Label";
17
+ FormGeneratorSupportedFields["Link"] = "Link";
18
+ FormGeneratorSupportedFields["List"] = "List";
19
+ FormGeneratorSupportedFields["ListItem"] = "ListItem";
20
+ FormGeneratorSupportedFields["LocalMessage"] = "LocalMessage";
21
+ FormGeneratorSupportedFields["Paragraph"] = "Paragraph";
22
+ FormGeneratorSupportedFields["RadioButton"] = "RadioButton";
23
+ FormGeneratorSupportedFields["RadioButtonGroup"] = "RadioButtonGroup";
24
+ FormGeneratorSupportedFields["Select"] = "Select";
25
+ FormGeneratorSupportedFields["Spinner"] = "Spinner";
26
+ FormGeneratorSupportedFields["TextInput"] = "TextInput";
27
+ FormGeneratorSupportedFields["ToggleButton"] = "ToggleButton";
28
+ FormGeneratorSupportedFields["ToggleButtonGroup"] = "ToggleButtonGroup";
29
+ FormGeneratorSupportedFields["Typography"] = "Typography";
30
+ FormGeneratorSupportedFields["VisuallyHidden"] = "VisuallyHidden";
31
+ })(FormGeneratorSupportedFields || (FormGeneratorSupportedFields = {}));
32
+
33
+ export { FormGeneratorSupportedFields };
@@ -12,5 +12,5 @@ export declare const InputMessage: import("react").ForwardRefExoticComponent<Pic
12
12
  /** Formålet med meldingen. Påvirker styling. */
13
13
  messageType: InputMessageType;
14
14
  } & {
15
- htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined;
15
+ htmlProps?: import("react").HTMLAttributes<HTMLDivElement> | undefined; /** Meldingen som vises til brukeren. */
16
16
  } & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  export declare const CollapsibleRow: import("react").ForwardRefExoticComponent<{
2
- type?: import("../Table.types").TableRowType | undefined;
2
+ type?: import("..").TableRowType | undefined;
3
3
  mode?: import("../Table.types").RowMode | undefined;
4
4
  selected?: boolean | undefined;
5
5
  hoverable?: boolean | undefined;
@@ -39,7 +39,7 @@ export default _default;
39
39
  export declare const SingleDefiningColumn: (args: CollapsibleTableProps) => JSX.Element;
40
40
  export declare const MultipleDefiningColumns: (args: CollapsibleTableProps) => JSX.Element;
41
41
  export declare const PrioritizedDefiningColumns: (args: CollapsibleTableProps) => JSX.Element;
42
- export declare const withDividers: (args: CollapsibleTableProps) => JSX.Element;
42
+ export declare const WithDividers: (args: CollapsibleTableProps) => JSX.Element;
43
43
  export declare const Compact: (args: CollapsibleTableProps) => JSX.Element;
44
44
  export declare const StickyHeader: (args: CollapsibleTableProps) => JSX.Element;
45
45
  export declare const WithButtonAndIcons: (args: CollapsibleTableProps) => JSX.Element;
@@ -25,7 +25,7 @@ var StyledIcon = styled(Icon).withConfig({
25
25
  })(["position:absolute;color:", ";", " z-index:1;"], icon.color, function (_ref) {
26
26
  var size = _ref.size,
27
27
  iconSize = _ref.iconSize;
28
- return css(["left:", ";", ""], icon.sizes[size].left, iconSize === 'small' ? css(["top:", ";"], "calc(50% - ".concat(iconSizes.DdsIconsizeSmallNumberPx / 2, "px)")) : css(["top:", ";;"], "calc(50% - ".concat(iconSizes.DdsIconsizeMediumNumberPx / 2, "px)")));
28
+ return css(["left:", ";", ""], icon.sizes[size].left, iconSize === 'small' ? css(["top:", ";"], "calc(50% - ".concat(iconSizes.DdsIconsizeSmallNumberPx / 2, "px)")) : css(["top:", ";"], "calc(50% - ".concat(iconSizes.DdsIconsizeMediumNumberPx / 2, "px)")));
29
29
  });
30
30
  var StyledInput = styled(StatefulInput).withConfig({
31
31
  displayName: "TextInputstyles__StyledInput",
@@ -26,6 +26,8 @@ export declare const useFloatPosition: (arrowRef: HTMLElement | null, options?:
26
26
  refs: {
27
27
  reference: import("react").MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
28
28
  floating: import("react").MutableRefObject<HTMLElement | null>;
29
+ setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
30
+ setFloating: (node: HTMLElement | null) => void;
29
31
  };
30
32
  styles: {
31
33
  floating: {
package/dist/index.js CHANGED
@@ -215,4 +215,5 @@ export { StyledTextArea, TextArea } from './components/TextArea/TextArea.js';
215
215
  export { SplitButton } from './components/SplitButton/SplitButton.js';
216
216
  export { HStack, VStack } from './components/Stack/Stack.js';
217
217
  export { FormGenerator } from './components/FormGenerator/FormGenerator.js';
218
+ export { FormGeneratorSupportedFields } from './components/FormGenerator/FormGenerator.types.js';
218
219
  export { FileUploader } from './components/FileUploader/FileUploader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norges-domstoler/dds-components",
3
- "version": "10.3.1",
3
+ "version": "10.4.0",
4
4
  "description": "React components used in Elsa - domstolenes designsystem",
5
5
  "author": "Elsa team",
6
6
  "license": "MIT",
@@ -23,8 +23,9 @@
23
23
  "test": "jest",
24
24
  "test:watch": "jest --watch",
25
25
  "build": "rollup -c",
26
- "build:watch": "rollup -c -w",
27
- "storybook": "start-storybook -p 6006",
26
+ "dev": "concurrently 'npm:dev:*'",
27
+ "dev:rollup": "rollup -c -w",
28
+ "dev:storybook": "start-storybook -p 6006",
28
29
  "build-storybook": "build-storybook -o docs",
29
30
  "lint": "eslint --ext=jsx,ts,tsx src",
30
31
  "prettier": "prettier --write .",
@@ -51,6 +52,7 @@
51
52
  "@babel/preset-env": "^7.20.2",
52
53
  "@babel/preset-react": "^7.18.6",
53
54
  "@mdx-js/react": "^2.2.1",
55
+ "@norges-domstoler/dds-design-tokens": "^3.0.1",
54
56
  "@rollup/plugin-babel": "^6.0.3",
55
57
  "@rollup/plugin-commonjs": "^24.0.0",
56
58
  "@rollup/plugin-image": "^3.0.1",