@ks-digital/designsystem-react 0.0.1-alpha.1 → 0.0.1-alpha.10
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/README.md +2 -5
- package/dist/README.md +46 -0
- package/dist/components/Alert/Alert.d.ts +2 -0
- package/dist/components/Avatar/Avatar.d.ts +2 -0
- package/dist/components/Badge/Badge.d.ts +2 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Card/Card.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +2 -0
- package/dist/components/Chip/Chip.d.ts +2 -0
- package/dist/components/Details/Details.d.ts +2 -0
- package/dist/components/Dialog/Dialog.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/ErrorSummary/ErrorSummary.d.ts +2 -0
- package/dist/components/Field/Field.d.ts +2 -0
- package/dist/components/Fieldset/Fieldset.d.ts +2 -0
- package/dist/components/Heading/Heading.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +2 -0
- package/dist/components/Label/Label.d.ts +2 -0
- package/dist/components/Link/Link.d.ts +2 -0
- package/dist/components/List/List.d.ts +2 -0
- package/dist/components/Loaders/index.d.ts +2 -0
- package/dist/components/Loaders/skeleton/Skeleton.d.ts +2 -0
- package/dist/components/Loaders/spinner/Spinner.d.ts +2 -0
- package/dist/components/MultiSuggestion/MultiSuggestion.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +2 -0
- package/dist/components/Paragraph/Paragraph.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +2 -0
- package/dist/components/Radio/Radio.d.ts +2 -0
- package/dist/components/Search/Search.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +2 -0
- package/dist/components/SkipLink/SkipLink.d.ts +2 -0
- package/dist/components/Suggestion/Suggestion.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +2 -0
- package/dist/components/Table/Table.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +2 -0
- package/dist/components/Tag/Tag.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +2 -0
- package/dist/components/Textfield/Textfield.d.ts +2 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/ValidationMessage/ValidationMessage.d.ts +2 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +63 -0
- package/dist/package.json +42 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -17,10 +17,7 @@ pnpm add @ks-digital/designsystem-react @ks-digital/designsystem-themes
|
|
|
17
17
|
Add the Inter font to your `index.html`. This API supports the same parameters as the Google Fonts API, allowing you to customize the font weights as needed:
|
|
18
18
|
|
|
19
19
|
```html
|
|
20
|
-
<link
|
|
21
|
-
href="https://static.fiks.ks.no/googlefonts/googleapis/css2?family=Inter&display=swap"
|
|
22
|
-
rel="stylesheet"
|
|
23
|
-
/>
|
|
20
|
+
<link href="https://static.fiks.ks.no/googlefonts/googleapis/css2?family=Inter&display=swap" rel="stylesheet" />
|
|
24
21
|
```
|
|
25
22
|
|
|
26
23
|
### 2. Import Base Styles and Themes
|
|
@@ -46,4 +43,4 @@ function MyComponent() {
|
|
|
46
43
|
|
|
47
44
|
## Example
|
|
48
45
|
|
|
49
|
-
A complete example setup is available in the `react-demo
|
|
46
|
+
A complete example setup is available in the `react-demo` located under the `apps` folder.
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# KS Digital Designsystem for React
|
|
2
|
+
|
|
3
|
+
This library provides React components for KS Digital, designed to align closely with the components from [Designsystemet.no](https://www.designsystemet.no/komponenter).
|
|
4
|
+
|
|
5
|
+
## Installation (WIP)
|
|
6
|
+
|
|
7
|
+
Install the required packages using your preferred package manager:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @ks-digital/designsystem-react @ks-digital/designsystem-themes
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Setup
|
|
14
|
+
|
|
15
|
+
### 1. Include the Inter Font
|
|
16
|
+
|
|
17
|
+
Add the Inter font to your `index.html`. This API supports the same parameters as the Google Fonts API, allowing you to customize the font weights as needed:
|
|
18
|
+
|
|
19
|
+
```html
|
|
20
|
+
<link href="https://static.fiks.ks.no/googlefonts/googleapis/css2?family=Inter&display=swap" rel="stylesheet" />
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 2. Import Base Styles and Themes
|
|
24
|
+
|
|
25
|
+
Import the base styles and the theme you want to use in your application:
|
|
26
|
+
|
|
27
|
+
```javascript
|
|
28
|
+
import '@ks-digital/designsystem-themes/base.css'
|
|
29
|
+
import '@ks-digital/designsystem-themes/ledsagerbevis.css'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 3. Use Components
|
|
33
|
+
|
|
34
|
+
Import and use the components you need. You can explore the available components at [Designsystemet.no](https://www.designsystemet.no/komponenter):
|
|
35
|
+
|
|
36
|
+
```javascript
|
|
37
|
+
import { Button } from '@ks-digital/designsystem-react'
|
|
38
|
+
|
|
39
|
+
function MyComponent() {
|
|
40
|
+
return <Button data-size="lg">My Button</Button>
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Example
|
|
45
|
+
|
|
46
|
+
A complete example setup is available in the `react-demo` located under the `apps` folder.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Chip, ChipButton, ChipButtonProps, ChipCheckbox, ChipCheckboxProps, ChipRadio, ChipRadioProps, ChipRemovable, ChipRemovableProps } from '@digdir/designsystemet-react';
|
|
2
|
+
export { Chip, ChipButton, ChipButtonProps, ChipCheckbox, ChipCheckboxProps, ChipRadio, ChipRadioProps, ChipRemovable, ChipRemovableProps, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EXPERIMENTAL_MultiSuggestion, EXPERIMENTAL_MultiSuggestionInput, EXPERIMENTAL_MultiSuggestionList, EXPERIMENTAL_MultiSuggestionOption, EXPERIMENTAL_MultiSuggestionChips, EXPERIMENTAL_MultiSuggestionEmpty, EXPERIMENTAL_MultiSuggestionClear, MultiSuggestionProps, MultiSuggestionInputProps, MultiSuggestionListProps, MultiSuggestionOptionProps, MultiSuggestionChipsProps, MultiSuggestionEmptyProps, MultiSuggestionClearProps } from '@digdir/designsystemet-react';
|
|
2
|
+
export { EXPERIMENTAL_MultiSuggestion, EXPERIMENTAL_MultiSuggestionInput, EXPERIMENTAL_MultiSuggestionList, EXPERIMENTAL_MultiSuggestionOption, EXPERIMENTAL_MultiSuggestionChips, EXPERIMENTAL_MultiSuggestionEmpty, EXPERIMENTAL_MultiSuggestionClear, MultiSuggestionProps, MultiSuggestionInputProps, MultiSuggestionListProps, MultiSuggestionOptionProps, MultiSuggestionChipsProps, MultiSuggestionEmptyProps, MultiSuggestionClearProps, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionOption, EXPERIMENTAL_SuggestionClear, SuggestionProps, SuggestionListProps, SuggestionInputProps, SuggestionEmptyProps, SuggestionOptionProps, SuggestionClearProps } from '@digdir/designsystemet-react';
|
|
2
|
+
export { EXPERIMENTAL_Suggestion, EXPERIMENTAL_SuggestionList, EXPERIMENTAL_SuggestionInput, EXPERIMENTAL_SuggestionEmpty, EXPERIMENTAL_SuggestionOption, EXPERIMENTAL_SuggestionClear, SuggestionProps, SuggestionListProps, SuggestionInputProps, SuggestionEmptyProps, SuggestionOptionProps, SuggestionClearProps, };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@digdir/designsystemet-react");Object.defineProperty(exports,"Alert",{enumerable:!0,get:()=>e.Alert});Object.defineProperty(exports,"Avatar",{enumerable:!0,get:()=>e.Avatar});Object.defineProperty(exports,"Badge",{enumerable:!0,get:()=>e.Badge});Object.defineProperty(exports,"Breadcrumbs",{enumerable:!0,get:()=>e.Breadcrumbs});Object.defineProperty(exports,"Button",{enumerable:!0,get:()=>e.Button});Object.defineProperty(exports,"Card",{enumerable:!0,get:()=>e.Card});Object.defineProperty(exports,"Checkbox",{enumerable:!0,get:()=>e.Checkbox});Object.defineProperty(exports,"Chip",{enumerable:!0,get:()=>e.Chip});Object.defineProperty(exports,"ChipButton",{enumerable:!0,get:()=>e.ChipButton});Object.defineProperty(exports,"ChipCheckbox",{enumerable:!0,get:()=>e.ChipCheckbox});Object.defineProperty(exports,"ChipRadio",{enumerable:!0,get:()=>e.ChipRadio});Object.defineProperty(exports,"ChipRemovable",{enumerable:!0,get:()=>e.ChipRemovable});Object.defineProperty(exports,"Details",{enumerable:!0,get:()=>e.Details});Object.defineProperty(exports,"DetailsContent",{enumerable:!0,get:()=>e.DetailsContent});Object.defineProperty(exports,"DetailsSummary",{enumerable:!0,get:()=>e.DetailsSummary});Object.defineProperty(exports,"Dialog",{enumerable:!0,get:()=>e.Dialog});Object.defineProperty(exports,"Divider",{enumerable:!0,get:()=>e.Divider});Object.defineProperty(exports,"Dropdown",{enumerable:!0,get:()=>e.Dropdown});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestion",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestion});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestionChips",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestionChips});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestionClear",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestionClear});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestionEmpty",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestionEmpty});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestionInput",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestionInput});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestionList",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestionList});Object.defineProperty(exports,"EXPERIMENTAL_MultiSuggestionOption",{enumerable:!0,get:()=>e.EXPERIMENTAL_MultiSuggestionOption});Object.defineProperty(exports,"EXPERIMENTAL_Suggestion",{enumerable:!0,get:()=>e.EXPERIMENTAL_Suggestion});Object.defineProperty(exports,"EXPERIMENTAL_SuggestionClear",{enumerable:!0,get:()=>e.EXPERIMENTAL_SuggestionClear});Object.defineProperty(exports,"EXPERIMENTAL_SuggestionEmpty",{enumerable:!0,get:()=>e.EXPERIMENTAL_SuggestionEmpty});Object.defineProperty(exports,"EXPERIMENTAL_SuggestionInput",{enumerable:!0,get:()=>e.EXPERIMENTAL_SuggestionInput});Object.defineProperty(exports,"EXPERIMENTAL_SuggestionList",{enumerable:!0,get:()=>e.EXPERIMENTAL_SuggestionList});Object.defineProperty(exports,"EXPERIMENTAL_SuggestionOption",{enumerable:!0,get:()=>e.EXPERIMENTAL_SuggestionOption});Object.defineProperty(exports,"ErrorSummary",{enumerable:!0,get:()=>e.ErrorSummary});Object.defineProperty(exports,"Field",{enumerable:!0,get:()=>e.Field});Object.defineProperty(exports,"Fieldset",{enumerable:!0,get:()=>e.Fieldset});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>e.Heading});Object.defineProperty(exports,"Input",{enumerable:!0,get:()=>e.Input});Object.defineProperty(exports,"Label",{enumerable:!0,get:()=>e.Label});Object.defineProperty(exports,"Link",{enumerable:!0,get:()=>e.Link});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>e.List});Object.defineProperty(exports,"ListItem",{enumerable:!0,get:()=>e.ListItem});Object.defineProperty(exports,"ListOrdered",{enumerable:!0,get:()=>e.ListOrdered});Object.defineProperty(exports,"ListUnordered",{enumerable:!0,get:()=>e.ListUnordered});Object.defineProperty(exports,"Pagination",{enumerable:!0,get:()=>e.Pagination});Object.defineProperty(exports,"Paragraph",{enumerable:!0,get:()=>e.Paragraph});Object.defineProperty(exports,"Popover",{enumerable:!0,get:()=>e.Popover});Object.defineProperty(exports,"Radio",{enumerable:!0,get:()=>e.Radio});Object.defineProperty(exports,"Search",{enumerable:!0,get:()=>e.Search});Object.defineProperty(exports,"Select",{enumerable:!0,get:()=>e.Select});Object.defineProperty(exports,"Skeleton",{enumerable:!0,get:()=>e.Skeleton});Object.defineProperty(exports,"SkipLink",{enumerable:!0,get:()=>e.SkipLink});Object.defineProperty(exports,"Spinner",{enumerable:!0,get:()=>e.Spinner});Object.defineProperty(exports,"Switch",{enumerable:!0,get:()=>e.Switch});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>e.Table});Object.defineProperty(exports,"Tabs",{enumerable:!0,get:()=>e.Tabs});Object.defineProperty(exports,"Tag",{enumerable:!0,get:()=>e.Tag});Object.defineProperty(exports,"Textarea",{enumerable:!0,get:()=>e.Textarea});Object.defineProperty(exports,"Textfield",{enumerable:!0,get:()=>e.Textfield});Object.defineProperty(exports,"ToggleGroup",{enumerable:!0,get:()=>e.ToggleGroup});Object.defineProperty(exports,"Tooltip",{enumerable:!0,get:()=>e.Tooltip});Object.defineProperty(exports,"ValidationMessage",{enumerable:!0,get:()=>e.ValidationMessage});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export * from './components/Alert/Alert';
|
|
2
|
+
export * from './components/Avatar/Avatar';
|
|
3
|
+
export * from './components/Badge/Badge';
|
|
4
|
+
export * from './components/Breadcrumbs/Breadcrumbs';
|
|
5
|
+
export * from './components/Button/Button';
|
|
6
|
+
export * from './components/Card/Card';
|
|
7
|
+
export * from './components/Checkbox/Checkbox';
|
|
8
|
+
export * from './components/Chip/Chip';
|
|
9
|
+
export * from './components/Details/Details';
|
|
10
|
+
export * from './components/Dialog/Dialog';
|
|
11
|
+
export * from './components/Divider/Divider';
|
|
12
|
+
export * from './components/Dropdown/Dropdown';
|
|
13
|
+
export * from './components/ErrorSummary/ErrorSummary';
|
|
14
|
+
export * from './components/Field/Field';
|
|
15
|
+
export * from './components/Fieldset/Fieldset';
|
|
16
|
+
export * from './components/Heading/Heading';
|
|
17
|
+
export * from './components/Input/Input';
|
|
18
|
+
export * from './components/Label/Label';
|
|
19
|
+
export * from './components/Link/Link';
|
|
20
|
+
export * from './components/List/List';
|
|
21
|
+
export * from './components/Loaders';
|
|
22
|
+
export * from './components/MultiSuggestion/MultiSuggestion';
|
|
23
|
+
export * from './components/Pagination/Pagination';
|
|
24
|
+
export * from './components/Paragraph/Paragraph';
|
|
25
|
+
export * from './components/Popover/Popover';
|
|
26
|
+
export * from './components/Radio/Radio';
|
|
27
|
+
export * from './components/Search/Search';
|
|
28
|
+
export * from './components/Select/Select';
|
|
29
|
+
export * from './components/SkipLink/SkipLink';
|
|
30
|
+
export * from './components/Suggestion/Suggestion';
|
|
31
|
+
export * from './components/Switch/Switch';
|
|
32
|
+
export * from './components/Table/Table';
|
|
33
|
+
export * from './components/Tabs/Tabs';
|
|
34
|
+
export * from './components/Tag/Tag';
|
|
35
|
+
export * from './components/Textarea/Textarea';
|
|
36
|
+
export * from './components/Textfield/Textfield';
|
|
37
|
+
export * from './components/ToggleGroup/ToggleGroup';
|
|
38
|
+
export * from './components/Tooltip/Tooltip';
|
|
39
|
+
export * from './components/ValidationMessage/ValidationMessage';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Alert as e, Avatar as E, Badge as o, Breadcrumbs as g, Button as n, Card as a, Checkbox as u, Chip as s, ChipButton as r, ChipCheckbox as l, ChipRadio as L, ChipRemovable as p, Details as M, DetailsContent as S, DetailsSummary as T, Dialog as I, Divider as d, Dropdown as P, EXPERIMENTAL_MultiSuggestion as R, EXPERIMENTAL_MultiSuggestionChips as A, EXPERIMENTAL_MultiSuggestionClear as N, EXPERIMENTAL_MultiSuggestionEmpty as X, EXPERIMENTAL_MultiSuggestionInput as _, EXPERIMENTAL_MultiSuggestionList as C, EXPERIMENTAL_MultiSuggestionOption as h, EXPERIMENTAL_Suggestion as m, EXPERIMENTAL_SuggestionClear as b, EXPERIMENTAL_SuggestionEmpty as c, EXPERIMENTAL_SuggestionInput as k, EXPERIMENTAL_SuggestionList as D, EXPERIMENTAL_SuggestionOption as x, ErrorSummary as v, Field as y, Fieldset as B, Heading as O, Input as f, Label as w, Link as F, List as G, ListItem as H, ListOrdered as U, ListUnordered as V, Pagination as j, Paragraph as q, Popover as z, Radio as J, Search as K, Select as Q, Skeleton as W, SkipLink as Y, Spinner as Z, Switch as $, Table as ii, Tabs as ti, Tag as ei, Textarea as Ei, Textfield as oi, ToggleGroup as gi, Tooltip as ni, ValidationMessage as ai } from "@digdir/designsystemet-react";
|
|
2
|
+
export {
|
|
3
|
+
e as Alert,
|
|
4
|
+
E as Avatar,
|
|
5
|
+
o as Badge,
|
|
6
|
+
g as Breadcrumbs,
|
|
7
|
+
n as Button,
|
|
8
|
+
a as Card,
|
|
9
|
+
u as Checkbox,
|
|
10
|
+
s as Chip,
|
|
11
|
+
r as ChipButton,
|
|
12
|
+
l as ChipCheckbox,
|
|
13
|
+
L as ChipRadio,
|
|
14
|
+
p as ChipRemovable,
|
|
15
|
+
M as Details,
|
|
16
|
+
S as DetailsContent,
|
|
17
|
+
T as DetailsSummary,
|
|
18
|
+
I as Dialog,
|
|
19
|
+
d as Divider,
|
|
20
|
+
P as Dropdown,
|
|
21
|
+
R as EXPERIMENTAL_MultiSuggestion,
|
|
22
|
+
A as EXPERIMENTAL_MultiSuggestionChips,
|
|
23
|
+
N as EXPERIMENTAL_MultiSuggestionClear,
|
|
24
|
+
X as EXPERIMENTAL_MultiSuggestionEmpty,
|
|
25
|
+
_ as EXPERIMENTAL_MultiSuggestionInput,
|
|
26
|
+
C as EXPERIMENTAL_MultiSuggestionList,
|
|
27
|
+
h as EXPERIMENTAL_MultiSuggestionOption,
|
|
28
|
+
m as EXPERIMENTAL_Suggestion,
|
|
29
|
+
b as EXPERIMENTAL_SuggestionClear,
|
|
30
|
+
c as EXPERIMENTAL_SuggestionEmpty,
|
|
31
|
+
k as EXPERIMENTAL_SuggestionInput,
|
|
32
|
+
D as EXPERIMENTAL_SuggestionList,
|
|
33
|
+
x as EXPERIMENTAL_SuggestionOption,
|
|
34
|
+
v as ErrorSummary,
|
|
35
|
+
y as Field,
|
|
36
|
+
B as Fieldset,
|
|
37
|
+
O as Heading,
|
|
38
|
+
f as Input,
|
|
39
|
+
w as Label,
|
|
40
|
+
F as Link,
|
|
41
|
+
G as List,
|
|
42
|
+
H as ListItem,
|
|
43
|
+
U as ListOrdered,
|
|
44
|
+
V as ListUnordered,
|
|
45
|
+
j as Pagination,
|
|
46
|
+
q as Paragraph,
|
|
47
|
+
z as Popover,
|
|
48
|
+
J as Radio,
|
|
49
|
+
K as Search,
|
|
50
|
+
Q as Select,
|
|
51
|
+
W as Skeleton,
|
|
52
|
+
Y as SkipLink,
|
|
53
|
+
Z as Spinner,
|
|
54
|
+
$ as Switch,
|
|
55
|
+
ii as Table,
|
|
56
|
+
ti as Tabs,
|
|
57
|
+
ei as Tag,
|
|
58
|
+
Ei as Textarea,
|
|
59
|
+
oi as Textfield,
|
|
60
|
+
gi as ToggleGroup,
|
|
61
|
+
ni as Tooltip,
|
|
62
|
+
ai as ValidationMessage
|
|
63
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ks-digital/designsystem-react",
|
|
3
|
+
"repository": {
|
|
4
|
+
"type": "git",
|
|
5
|
+
"url": "https://github.com/ks-no/designsystem.git",
|
|
6
|
+
"directory": "packages/react"
|
|
7
|
+
},
|
|
8
|
+
"version": "0.0.1-alpha.10",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"private": false,
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "./dist/index.js",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js",
|
|
21
|
+
"require": "./dist/index.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"./dist"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@digdir/designsystemet-react": "1.0.5",
|
|
29
|
+
"@navikt/aksel-icons": "^7.21.1"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"eslint-plugin-jsx-a11y": "6.10.1",
|
|
33
|
+
"eslint-plugin-react": "7.35.0",
|
|
34
|
+
"eslint-plugin-react-hooks": "5.0.0",
|
|
35
|
+
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
36
|
+
"@testing-library/react": "16.1.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": ">=18.3.1",
|
|
40
|
+
"react-dom": ">=18.3.1"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "https://github.com/ks-no/designsystem.git",
|
|
6
6
|
"directory": "packages/react"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.0.1-alpha.
|
|
8
|
+
"version": "0.0.1-alpha.10",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"private": false,
|
|
11
11
|
"publishConfig": {
|
|
@@ -25,10 +25,16 @@
|
|
|
25
25
|
"./dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@digdir/designsystemet-css": "1.0.5",
|
|
29
28
|
"@digdir/designsystemet-react": "1.0.5",
|
|
30
29
|
"@navikt/aksel-icons": "^7.21.1"
|
|
31
30
|
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"eslint-plugin-jsx-a11y": "6.10.1",
|
|
33
|
+
"eslint-plugin-react": "7.35.0",
|
|
34
|
+
"eslint-plugin-react-hooks": "5.0.0",
|
|
35
|
+
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
36
|
+
"@testing-library/react": "16.1.0"
|
|
37
|
+
},
|
|
32
38
|
"peerDependencies": {
|
|
33
39
|
"react": ">=18.3.1",
|
|
34
40
|
"react-dom": ">=18.3.1"
|