@sebgroup/green-core 1.17.0 → 1.18.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.
- package/README.md +7 -7
- package/chunks/{chunk.YJHAKLGR.js → chunk.7ZCWP4FY.js} +1 -1
- package/chunks/{chunk.XI4H54TV.js → chunk.CHEU4C5J.js} +1 -1
- package/chunks/{chunk.D7H7CUS4.js → chunk.DBTRYFAB.js} +1 -1
- package/chunks/{chunk.XD5R3ZU3.js → chunk.DWSGVBRK.js} +3 -3
- package/chunks/{chunk.ZTE73BY2.js → chunk.H7YA5KO4.js} +1 -1
- package/chunks/{chunk.LUHCF4BJ.js → chunk.I2IU2N5F.js} +1 -1
- package/chunks/{chunk.EUQ5DOQM.js → chunk.MMVYFXTU.js} +4 -4
- package/chunks/{chunk.MAD5DQMN.js → chunk.MVCYVB3S.js} +1 -1
- package/chunks/{chunk.WDZ2JTCP.js → chunk.Q6AEDXQF.js} +1 -1
- package/chunks/chunk.RSZ4ZUN3.js +0 -0
- package/chunks/{chunk.VYK7D6QO.js → chunk.URP77GWW.js} +1 -1
- package/chunks/{chunk.6UA66KQU.js → chunk.VDWYFSGX.js} +1 -1
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/{chunk.U4DPJ4QU.js → chunk.W7SFAX2D.js} +2 -2
- package/chunks/{chunk.ZYQWZMVY.js → chunk.WD3QGIEJ.js} +2 -2
- package/chunks/{chunk.2OOTOCUG.js → chunk.WEE5C637.js} +1 -1
- package/chunks/{chunk.63RKNI5K.js → chunk.WIWIGJID.js} +1 -1
- package/chunks/{chunk.QONSFT2N.js → chunk.XQ3SZZAO.js} +3472 -3444
- package/chunks/{chunk.KC32OWZE.js → chunk.XXIQLCV7.js} +1 -1
- package/chunks/{chunk.XHTJVQUJ.js → chunk.ZEJDA4NS.js} +1 -1
- package/chunks/{chunk.AQGTMWG4.js → chunk.ZKE3WNWY.js} +1 -1
- package/components/button/button.js +5 -4
- package/components/button/button.trans.styles.js +10 -0
- package/components/button/index.js +5 -4
- package/components/context-menu/context-menu.js +6 -5
- package/components/context-menu/context-menu.trans.styles.js +10 -0
- package/components/context-menu/index.js +7 -6
- package/components/datepicker/datepicker.js +9 -8
- package/components/datepicker/datepicker.trans.styles.js +10 -0
- package/components/datepicker/index.js +9 -8
- package/components/dropdown/dropdown.js +6 -5
- package/components/dropdown/dropdown.trans.styles.js +10 -0
- package/components/dropdown/index.js +7 -6
- package/components/grid/grid.js +2 -2
- package/components/grid/index.js +2 -2
- package/components/grouped-list/grouped-list.js +3 -2
- package/components/grouped-list/grouped-list.trans.styles.js +10 -0
- package/components/grouped-list/index.js +3 -2
- package/components/index.js +20 -19
- package/components/input/input.js +1 -1
- package/components/segmented-control/index.js +5 -4
- package/components/segmented-control/segment/index.js +4 -3
- package/components/segmented-control/segment/segment.js +4 -3
- package/components/segmented-control/segment/segment.trans.styles.js +10 -0
- package/components/segmented-control/segmented-control.js +5 -4
- package/components/segmented-control/segmented-control.trans.styles.js +10 -0
- package/components/theme/index.js +3 -2
- package/components/theme/theme.js +3 -2
- package/components/theme/theme.trans.styles.js +10 -0
- package/index.js +20 -19
- package/package.json +2 -1
- package/primitives/calendar/calendar.js +3 -2
- package/primitives/calendar/index.js +3 -2
- package/primitives/listbox/index.js +4 -3
- package/primitives/listbox/listbox.js +4 -3
- package/primitives/listbox/option.js +3 -2
- package/primitives/menu/index.js +4 -3
- package/primitives/menu/menu-heading.js +3 -2
- package/primitives/menu/menu-item.js +3 -2
- package/primitives/menu/menu.js +4 -3
- package/primitives/popover/index.js +3 -2
- package/primitives/popover/popover.js +3 -2
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/transitional-styles.js +2 -1
- package/utils/transitional-styles/transitional-styles.d.ts +6 -0
package/README.md
CHANGED
|
@@ -31,8 +31,8 @@ import { css, customElement, LitElement } from 'lit'
|
|
|
31
31
|
// This custom `html` template literal tag from Green Core extends the default `lit-html` tag to handle element version scoping.
|
|
32
32
|
import { html } from '@sebgroup/green-core/scoping'
|
|
33
33
|
|
|
34
|
-
//
|
|
35
|
-
import
|
|
34
|
+
// Transitional styles applies the current 2016 design language to the components
|
|
35
|
+
import * as ButtonStyles from '@sebgroup/green-core/components/button/button.trans.styles.js'
|
|
36
36
|
|
|
37
37
|
// Import the components that you need
|
|
38
38
|
import '@sebgroup/green-core/components/button/index.js'
|
|
@@ -45,7 +45,7 @@ export class MyApp extends LitElement {
|
|
|
45
45
|
super.connectedCallback()
|
|
46
46
|
|
|
47
47
|
// Register transitional styles to get SEB's current visual design
|
|
48
|
-
|
|
48
|
+
ButtonStyles.register()
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
render() {
|
|
@@ -82,8 +82,8 @@ In your component:
|
|
|
82
82
|
import '@sebgroup/green-core/components/button/index.js'
|
|
83
83
|
|
|
84
84
|
// Transitional styles
|
|
85
|
-
import
|
|
86
|
-
|
|
85
|
+
import * as ButtonStyles from '@sebgroup/green-core/components/button/button.trans.styles.js'
|
|
86
|
+
ButtonStyles.register()
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
Use the webcomponent in your template with the `*nggCoreElement` directive.
|
|
@@ -108,9 +108,9 @@ import { createComponent } from '@lit/react'
|
|
|
108
108
|
|
|
109
109
|
import { GdsButton } from '@sebgroup/green-core/component/button/index.js'
|
|
110
110
|
import { getScopedTagName } from '@sebgroup/green-core/scoping'
|
|
111
|
-
import { registerTransitionalStyles } from '@sebgroup/green-core/transitional-styles'
|
|
112
111
|
|
|
113
|
-
|
|
112
|
+
import * as ButtonStyles from '@sebgroup/green-core/components/button/button.trans.styles.js'
|
|
113
|
+
ButtonStyles.register()
|
|
114
114
|
|
|
115
115
|
export const Button = createComponent({
|
|
116
116
|
tagName: getScopedTagName('gds-button'),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.W7SFAX2D.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.MMVYFXTU.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.XQ3SZZAO.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.2LQSDOD4.js";
|
|
@@ -4,7 +4,7 @@ import { unsafeCSS } from "lit";
|
|
|
4
4
|
// dist/libs/tokens/internal/pallet.css
|
|
5
5
|
var pallet_default = `/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on Thu, 02 May 2024
|
|
7
|
+
* Generated on Thu, 02 May 2024 14:18:02 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
:host {
|
|
@@ -165,7 +165,7 @@ var pallet_default = `/**
|
|
|
165
165
|
// dist/libs/tokens/internal/theme/light.css
|
|
166
166
|
var light_default = `/**
|
|
167
167
|
* Do not edit directly
|
|
168
|
-
* Generated on Thu, 02 May 2024
|
|
168
|
+
* Generated on Thu, 02 May 2024 14:18:02 GMT
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
171
|
:host {
|
|
@@ -286,7 +286,7 @@ var light_default = `/**
|
|
|
286
286
|
// dist/libs/tokens/internal/size.css
|
|
287
287
|
var size_default = `/**
|
|
288
288
|
* Do not edit directly
|
|
289
|
-
* Generated on Thu, 02 May 2024
|
|
289
|
+
* Generated on Thu, 02 May 2024 14:18:02 GMT
|
|
290
290
|
*/
|
|
291
291
|
|
|
292
292
|
:host {
|
|
@@ -532,7 +532,7 @@ var size_default = `/**
|
|
|
532
532
|
// dist/libs/tokens/internal/motion.css
|
|
533
533
|
var motion_default = `/**
|
|
534
534
|
* Do not edit directly
|
|
535
|
-
* Generated on Thu, 02 May 2024
|
|
535
|
+
* Generated on Thu, 02 May 2024 14:18:02 GMT
|
|
536
536
|
*/
|
|
537
537
|
|
|
538
538
|
:host {
|
|
File without changes
|
package/chunks/chunk.VOYMQ322.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// libs/core/src/utils/helpers/custom-element-scoping.ts
|
|
2
2
|
import { html as litHtml } from "lit";
|
|
3
3
|
import { customElement } from "lit/decorators.js";
|
|
4
|
-
var VER_SUFFIX = "-
|
|
4
|
+
var VER_SUFFIX = "-7b50f8";
|
|
5
5
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
6
6
|
var gdsCustomElement = (tagName) => {
|
|
7
7
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.YIQIH4RW.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.MMVYFXTU.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.XQ3SZZAO.js";
|
|
10
10
|
import {
|
|
11
11
|
constrainSlots
|
|
12
12
|
} from "./chunk.6NM7ENKA.js";
|