@oslokommune/punkt-elements 12.18.2 → 12.18.4
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/package.json +2 -2
- package/src/components/calendar/calendar.ts +1 -1
- package/src/components/card/card.ts +3 -3
- package/src/components/datepicker/datepicker.ts +4 -4
- package/src/components/helptext/helptext.ts +1 -1
- package/src/components/input-wrapper/input-wrapper.ts +3 -3
- package/src/components/tag/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-elements",
|
|
3
|
-
"version": "12.18.
|
|
3
|
+
"version": "12.18.4",
|
|
4
4
|
"description": "Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo",
|
|
5
5
|
"homepage": "https://punkt.oslo.kommune.no",
|
|
6
6
|
"author": "Team Designsystem, Oslo Origo",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
58
58
|
},
|
|
59
59
|
"license": "MIT",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "ddbf35298d77e5dbfb3907db574283ffdf898117"
|
|
61
61
|
}
|
|
@@ -7,7 +7,7 @@ import { PktElement } from '@/base-elements/element'
|
|
|
7
7
|
import { TZDate } from '@date-fns/tz'
|
|
8
8
|
import converters from '../../helpers/converters'
|
|
9
9
|
import specs from 'componentSpecs/calendar.json'
|
|
10
|
-
import '
|
|
10
|
+
import '@/components/icon'
|
|
11
11
|
|
|
12
12
|
type DatesInRange = {
|
|
13
13
|
[key: string]: boolean
|
|
@@ -2,13 +2,13 @@ import { classMap } from 'lit/directives/class-map.js'
|
|
|
2
2
|
import { ifDefined } from 'lit/directives/if-defined.js'
|
|
3
3
|
import { customElement, property } from 'lit/decorators.js'
|
|
4
4
|
import { html, nothing } from 'lit'
|
|
5
|
-
import { IPktTag } from '
|
|
5
|
+
import { IPktTag } from '@/components/tag'
|
|
6
6
|
import { PktElement } from '@/base-elements/element'
|
|
7
7
|
import { PktSlotController } from '@/controllers/pkt-slot-controller'
|
|
8
8
|
import { ref, createRef, Ref } from 'lit/directives/ref.js'
|
|
9
9
|
import specs from 'componentSpecs/card.json'
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
10
|
+
import '@/components/icon'
|
|
11
|
+
import '@/components/tag'
|
|
12
12
|
|
|
13
13
|
export type TCardSkin = 'outlined' | 'gray' | 'beige' | 'green' | 'blue'
|
|
14
14
|
export type TDirection = 'portrait' | 'landscape'
|
|
@@ -9,10 +9,10 @@ import { Ref, createRef, ref } from 'lit/directives/ref.js'
|
|
|
9
9
|
import { repeat } from 'lit/directives/repeat.js'
|
|
10
10
|
import converters from '@/helpers/converters'
|
|
11
11
|
import specs from 'componentSpecs/datepicker.json'
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
12
|
+
import '@/components/calendar'
|
|
13
|
+
import '@/components/icon'
|
|
14
|
+
import '@/components/input-wrapper'
|
|
15
|
+
import '@/components/tag'
|
|
16
16
|
|
|
17
17
|
const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
18
18
|
@customElement('pkt-datepicker')
|
|
@@ -5,7 +5,7 @@ import { classMap } from 'lit/directives/class-map.js'
|
|
|
5
5
|
import { customElement, property, state } from 'lit/decorators.js'
|
|
6
6
|
import { uuidish } from '@/utils/stringutils'
|
|
7
7
|
import specs from 'componentSpecs/input-wrapper.json'
|
|
8
|
-
import '
|
|
8
|
+
import '@/components/icon'
|
|
9
9
|
|
|
10
10
|
@customElement('pkt-helptext')
|
|
11
11
|
export class PktHelptext extends PktElement {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PktElement } from '@/base-elements/element'
|
|
2
|
-
import { PktSlotController } from '
|
|
2
|
+
import { PktSlotController } from '@/controllers/pkt-slot-controller'
|
|
3
3
|
import { ref, Ref, createRef } from 'lit/directives/ref.js'
|
|
4
4
|
import { html, nothing } from 'lit'
|
|
5
5
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js'
|
|
@@ -7,8 +7,8 @@ import { classMap } from 'lit/directives/class-map.js'
|
|
|
7
7
|
import { customElement, property } from 'lit/decorators.js'
|
|
8
8
|
import { uuidish } from '@/utils/stringutils'
|
|
9
9
|
import specs from 'componentSpecs/input-wrapper.json'
|
|
10
|
-
import '
|
|
11
|
-
import '
|
|
10
|
+
import '@/components/helptext'
|
|
11
|
+
import '@/components/icon'
|
|
12
12
|
|
|
13
13
|
@customElement('pkt-input-wrapper')
|
|
14
14
|
export class PktInputWrapper extends PktElement {
|