@norges-domstoler/dds-components 23.2.1 ā 23.2.2
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/LICENSE +21 -0
- package/README.md +50 -50
- package/dist/index.css +12 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +21 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +96 -96
- package/dist/IBMPlexSans-Italic-5TWWGFM4.woff2 +0 -0
- package/dist/IBMPlexSans-Italic-HH2T6U4G.woff +0 -0
- package/dist/IBMPlexSans-Light-6JVLZATI.woff2 +0 -0
- package/dist/IBMPlexSans-Light-DJGXOPZM.woff +0 -0
- package/dist/IBMPlexSans-LightItalic-DGDYT5M4.woff +0 -0
- package/dist/IBMPlexSans-LightItalic-HGYKQIYJ.woff2 +0 -0
- package/dist/IBMPlexSans-Medium-F6RY5FT3.woff +0 -0
- package/dist/IBMPlexSans-Medium-GPYSN6WY.woff2 +0 -0
- package/dist/IBMPlexSans-MediumItalic-HYTLJOHM.woff +0 -0
- package/dist/IBMPlexSans-MediumItalic-NOK4NVHM.woff2 +0 -0
- package/dist/IBMPlexSans-Regular-7XP7CCD2.woff2 +0 -0
- package/dist/IBMPlexSans-Regular-7YEDMBFF.woff +0 -0
- package/dist/IBMPlexSans-SemiBold-6YAECOM6.woff +0 -0
- package/dist/IBMPlexSans-SemiBold-G57W7BEN.woff2 +0 -0
- package/dist/IBMPlexSans-SemiBoldItalic-4CLIFUGS.woff2 +0 -0
- package/dist/IBMPlexSans-SemiBoldItalic-IK6VH5Y5.woff +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Norges domstoler
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# @norges-domstoler/dds-components
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/@norges-domstoler/dds-components) 
|
|
4
|
-
|
|
5
|
-
React UI komponenter til bruk i domstolenes tjenester.
|
|
6
|
-
|
|
7
|
-
Sjekk ut [Elsa - domstolenes designsystem](https://design.domstol.no/) og [Elsa Storybook](https://domstolene.github.io/designsystem) for dokumentasjon og demoer.
|
|
8
|
-
|
|
9
|
-
## š¦ Installasjon
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
pnpm add @norges-domstoler/dds-components
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Importer styling av komponentene i CSS:
|
|
16
|
-
|
|
17
|
-
```css
|
|
18
|
-
@import '@norges-domstoler/dds-components/index.css';
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## šØ Bruk
|
|
22
|
-
|
|
23
|
-
Wrapp applikasjonen din i `<DdsProvider>`.
|
|
24
|
-
|
|
25
|
-
```jsx
|
|
26
|
-
import React from 'react';
|
|
27
|
-
import ReactDOM from 'react-dom/client';
|
|
28
|
-
import {
|
|
29
|
-
Button,
|
|
30
|
-
TextInput,
|
|
31
|
-
DdsProvider,
|
|
32
|
-
} from '@norges-domstoler/dds-components';
|
|
33
|
-
|
|
34
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
35
|
-
root.render(
|
|
36
|
-
<React>
|
|
37
|
-
<DdsProvider language="nb">
|
|
38
|
-
<TextInput label="Input" />
|
|
39
|
-
<Button>Primary</Button>
|
|
40
|
-
<Button purpose="secondary" size="small">
|
|
41
|
-
Secondary
|
|
42
|
-
</Button>
|
|
43
|
-
</DdsProvider>
|
|
44
|
-
</React>,
|
|
45
|
-
);
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## š Komponenter
|
|
49
|
-
|
|
50
|
-
Sjekk [Komponenter](https://design.domstol.no/987b33f71/p/438035-komponenter) for oversikt over alle komponenter, og [Nyheter](https://design.domstol.no/987b33f71/p/66ec5c-nyheter) for status pƄ nye komponenter.
|
|
1
|
+
# @norges-domstoler/dds-components
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@norges-domstoler/dds-components) 
|
|
4
|
+
|
|
5
|
+
React UI komponenter til bruk i domstolenes tjenester.
|
|
6
|
+
|
|
7
|
+
Sjekk ut [Elsa - domstolenes designsystem](https://design.domstol.no/) og [Elsa Storybook](https://domstolene.github.io/designsystem) for dokumentasjon og demoer.
|
|
8
|
+
|
|
9
|
+
## š¦ Installasjon
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm add @norges-domstoler/dds-components
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Importer styling av komponentene i CSS:
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import '@norges-domstoler/dds-components/index.css';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## šØ Bruk
|
|
22
|
+
|
|
23
|
+
Wrapp applikasjonen din i `<DdsProvider>`.
|
|
24
|
+
|
|
25
|
+
```jsx
|
|
26
|
+
import React from 'react';
|
|
27
|
+
import ReactDOM from 'react-dom/client';
|
|
28
|
+
import {
|
|
29
|
+
Button,
|
|
30
|
+
TextInput,
|
|
31
|
+
DdsProvider,
|
|
32
|
+
} from '@norges-domstoler/dds-components';
|
|
33
|
+
|
|
34
|
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
35
|
+
root.render(
|
|
36
|
+
<React>
|
|
37
|
+
<DdsProvider language="nb">
|
|
38
|
+
<TextInput label="Input" />
|
|
39
|
+
<Button>Primary</Button>
|
|
40
|
+
<Button purpose="secondary" size="small">
|
|
41
|
+
Secondary
|
|
42
|
+
</Button>
|
|
43
|
+
</DdsProvider>
|
|
44
|
+
</React>,
|
|
45
|
+
);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## š Komponenter
|
|
49
|
+
|
|
50
|
+
Sjekk [Komponenter](https://design.domstol.no/987b33f71/p/438035-komponenter) for oversikt over alle komponenter, og [Nyheter](https://design.domstol.no/987b33f71/p/66ec5c-nyheter) for status pƄ nye komponenter.
|
package/dist/index.css
CHANGED
|
@@ -2693,10 +2693,19 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
|
|
2695
2695
|
/* src/components/date-inputs/common/DateInput.module.css */
|
|
2696
|
+
.DateInput_date-group {
|
|
2697
|
+
pointer-events: none;
|
|
2698
|
+
label,
|
|
2699
|
+
.DateInput_input-group {
|
|
2700
|
+
pointer-events: auto;
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2696
2703
|
.DateInput_date-segment-container {
|
|
2697
2704
|
display: flex;
|
|
2698
2705
|
flex-direction: row;
|
|
2699
2706
|
font-family: var(--dds-font-family-monospace);
|
|
2707
|
+
-webkit-user-select: none;
|
|
2708
|
+
user-select: none;
|
|
2700
2709
|
}
|
|
2701
2710
|
.DateInput_segment {
|
|
2702
2711
|
font-variant-numeric: tabular-nums;
|
|
@@ -3365,13 +3374,13 @@ input[data-indeterminate=true] ~ .SelectionControl_selection-control:after {
|
|
|
3365
3374
|
background: var(--dds-color-text-body);
|
|
3366
3375
|
mask-size: 100%;
|
|
3367
3376
|
mask-repeat: no-repeat;
|
|
3368
|
-
mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%
|
|
3377
|
+
mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<circle cx="12" cy="12" r="6" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
3369
3378
|
}
|
|
3370
3379
|
ul > li:before {
|
|
3371
|
-
mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%
|
|
3380
|
+
mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<rect x="4" y="10" width="15.65" height="3.9125" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
3372
3381
|
}
|
|
3373
3382
|
ul > li > ul > li:before {
|
|
3374
|
-
mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%
|
|
3383
|
+
mask-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M12 16.6154C16.4183 16.6154 20 12.7581 20 8H4C4 12.7581 7.58172 16.6154 12 16.6154Z" fill="%230B0D0E"/>%0A</svg>%0A');
|
|
3375
3384
|
}
|
|
3376
3385
|
}
|
|
3377
3386
|
}
|