@sebgroup/green-core 1.16.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.
Files changed (69) hide show
  1. package/README.md +10 -10
  2. package/chunks/{chunk.YJHAKLGR.js → chunk.7ZCWP4FY.js} +1 -1
  3. package/chunks/{chunk.XI4H54TV.js → chunk.CHEU4C5J.js} +1 -1
  4. package/chunks/{chunk.D7H7CUS4.js → chunk.DBTRYFAB.js} +1 -1
  5. package/chunks/{chunk.522C22QY.js → chunk.DWSGVBRK.js} +3 -3
  6. package/chunks/{chunk.ZTE73BY2.js → chunk.H7YA5KO4.js} +1 -1
  7. package/chunks/{chunk.LUHCF4BJ.js → chunk.I2IU2N5F.js} +1 -1
  8. package/chunks/{chunk.7P5N6NZL.js → chunk.MMVYFXTU.js} +4 -4
  9. package/chunks/{chunk.MAD5DQMN.js → chunk.MVCYVB3S.js} +1 -1
  10. package/chunks/{chunk.WDZ2JTCP.js → chunk.Q6AEDXQF.js} +1 -1
  11. package/chunks/chunk.RSZ4ZUN3.js +0 -0
  12. package/chunks/{chunk.VYK7D6QO.js → chunk.URP77GWW.js} +1 -1
  13. package/chunks/{chunk.6UA66KQU.js → chunk.VDWYFSGX.js} +1 -1
  14. package/chunks/chunk.VOYMQ322.js +1 -1
  15. package/chunks/{chunk.3SEVAGLE.js → chunk.W7SFAX2D.js} +2 -2
  16. package/chunks/{chunk.NOYHINYP.js → chunk.WD3QGIEJ.js} +2 -2
  17. package/chunks/{chunk.2OOTOCUG.js → chunk.WEE5C637.js} +1 -1
  18. package/chunks/{chunk.274BU2AI.js → chunk.WIWIGJID.js} +2 -2
  19. package/chunks/{chunk.J2A6J77W.js → chunk.XMPBXAGB.js} +0 -1
  20. package/chunks/{chunk.QONSFT2N.js → chunk.XQ3SZZAO.js} +3472 -3444
  21. package/chunks/{chunk.KC32OWZE.js → chunk.XXIQLCV7.js} +1 -1
  22. package/chunks/{chunk.XHTJVQUJ.js → chunk.ZEJDA4NS.js} +1 -1
  23. package/chunks/{chunk.KV4SDMFS.js → chunk.ZKE3WNWY.js} +1 -1
  24. package/components/button/button.js +5 -4
  25. package/components/button/button.trans.styles.js +10 -0
  26. package/components/button/index.js +5 -4
  27. package/components/context-menu/context-menu.js +6 -5
  28. package/components/context-menu/context-menu.trans.styles.js +10 -0
  29. package/components/context-menu/index.js +7 -6
  30. package/components/datepicker/datepicker.js +9 -8
  31. package/components/datepicker/datepicker.trans.styles.js +10 -0
  32. package/components/datepicker/index.js +9 -8
  33. package/components/dropdown/dropdown.js +6 -5
  34. package/components/dropdown/dropdown.trans.styles.js +10 -0
  35. package/components/dropdown/index.js +7 -6
  36. package/components/grid/grid.js +3 -3
  37. package/components/grid/grid.style.css.js +1 -1
  38. package/components/grid/index.js +3 -3
  39. package/components/grouped-list/grouped-list.js +3 -2
  40. package/components/grouped-list/grouped-list.trans.styles.js +10 -0
  41. package/components/grouped-list/index.js +3 -2
  42. package/components/index.js +21 -20
  43. package/components/input/input.js +1 -1
  44. package/components/segmented-control/index.js +5 -4
  45. package/components/segmented-control/segment/index.js +4 -3
  46. package/components/segmented-control/segment/segment.js +4 -3
  47. package/components/segmented-control/segment/segment.trans.styles.js +10 -0
  48. package/components/segmented-control/segmented-control.js +5 -4
  49. package/components/segmented-control/segmented-control.trans.styles.js +10 -0
  50. package/components/theme/index.js +3 -2
  51. package/components/theme/theme.js +3 -2
  52. package/components/theme/theme.trans.styles.js +10 -0
  53. package/index.js +21 -20
  54. package/package.json +2 -1
  55. package/primitives/calendar/calendar.js +3 -2
  56. package/primitives/calendar/index.js +3 -2
  57. package/primitives/listbox/index.js +4 -3
  58. package/primitives/listbox/listbox.js +4 -3
  59. package/primitives/listbox/option.js +3 -2
  60. package/primitives/menu/index.js +4 -3
  61. package/primitives/menu/menu-heading.js +3 -2
  62. package/primitives/menu/menu-item.js +3 -2
  63. package/primitives/menu/menu.js +4 -3
  64. package/primitives/popover/index.js +3 -2
  65. package/primitives/popover/popover.js +3 -2
  66. package/primitives/ripple/index.js +2 -2
  67. package/primitives/ripple/ripple.js +2 -2
  68. package/transitional-styles.js +2 -1
  69. package/utils/transitional-styles/transitional-styles.d.ts +6 -0
package/README.md CHANGED
@@ -31,11 +31,11 @@ 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
- // Trtansitional styles applies the current 2016 design language to the components
35
- import { registerTransitionalStyles } from '@sebgroup/green-core/transitional-styles'
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
- import '@sebgroup/green-core/components/button'
38
+ import '@sebgroup/green-core/components/button/index.js'
39
39
 
40
40
  @customElement('my-app')
41
41
  export class MyApp extends LitElement {
@@ -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
- registerTransitionalStyles()
48
+ ButtonStyles.register()
49
49
  }
50
50
 
51
51
  render() {
@@ -79,11 +79,11 @@ import { NggCoreWrapperModule } from '@sebgroup/green-angular'
79
79
  In your component:
80
80
 
81
81
  ```ts
82
- import '@sebgroup/green-core/components/button'
82
+ import '@sebgroup/green-core/components/button/index.js'
83
83
 
84
84
  // Transitional styles
85
- import { registerTransitionalStyles } from '@sebgroup/green-core/transitional-styles'
86
- registerTransitionalStyles()
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.
@@ -106,11 +106,11 @@ Here is an example:
106
106
  import React from 'react'
107
107
  import { createComponent } from '@lit/react'
108
108
 
109
- import { GdsButton } from '@sebgroup/green-core/component/button'
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
- registerTransitionalStyles()
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,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.QONSFT2N.js";
3
+ } from "./chunk.XQ3SZZAO.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.2LQSDOD4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.QONSFT2N.js";
3
+ } from "./chunk.XQ3SZZAO.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.2LQSDOD4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.QONSFT2N.js";
3
+ } from "./chunk.XQ3SZZAO.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.2LQSDOD4.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  GdsSegment
3
- } from "./chunk.3SEVAGLE.js";
3
+ } from "./chunk.W7SFAX2D.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.7P5N6NZL.js";
6
+ } from "./chunk.MMVYFXTU.js";
7
7
  import {
8
8
  TransitionalStyles
9
- } from "./chunk.QONSFT2N.js";
9
+ } from "./chunk.XQ3SZZAO.js";
10
10
  import {
11
11
  GdsElement
12
12
  } from "./chunk.2LQSDOD4.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.YIQIH4RW.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.QONSFT2N.js";
6
+ } from "./chunk.XQ3SZZAO.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.2WO4NHJ2.js";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.DFYMYEGD.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.QONSFT2N.js";
7
+ } from "./chunk.XQ3SZZAO.js";
8
8
  import {
9
9
  GdsElement
10
10
  } 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 Fri, 26 Apr 2024 12:12:33 GMT
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 Fri, 26 Apr 2024 12:12:33 GMT
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 Fri, 26 Apr 2024 12:12:33 GMT
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 Fri, 26 Apr 2024 12:12:33 GMT
535
+ * Generated on Thu, 02 May 2024 14:18:02 GMT
536
536
  */
537
537
 
538
538
  :host {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.DFYMYEGD.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.QONSFT2N.js";
7
+ } from "./chunk.XQ3SZZAO.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.2LQSDOD4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.QONSFT2N.js";
3
+ } from "./chunk.XQ3SZZAO.js";
4
4
  import {
5
5
  watchMediaQuery
6
6
  } from "./chunk.WM7HBMMV.js";
File without changes
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk.2ND5EWHE.js";
5
5
  import {
6
6
  TransitionalStyles
7
- } from "./chunk.QONSFT2N.js";
7
+ } from "./chunk.XQ3SZZAO.js";
8
8
  import {
9
9
  GdsElement
10
10
  } from "./chunk.2LQSDOD4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransitionalStyles
3
- } from "./chunk.QONSFT2N.js";
3
+ } from "./chunk.XQ3SZZAO.js";
4
4
  import {
5
5
  GdsElement
6
6
  } from "./chunk.2LQSDOD4.js";
@@ -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 = "-482aa6";
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) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  tokens
3
- } from "./chunk.7P5N6NZL.js";
3
+ } from "./chunk.MMVYFXTU.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.QONSFT2N.js";
6
+ } from "./chunk.XQ3SZZAO.js";
7
7
  import {
8
8
  GdsElement
9
9
  } from "./chunk.2LQSDOD4.js";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk.YIQIH4RW.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.7P5N6NZL.js";
6
+ } from "./chunk.MMVYFXTU.js";
7
7
  import {
8
8
  TransitionalStyles
9
- } from "./chunk.QONSFT2N.js";
9
+ } from "./chunk.XQ3SZZAO.js";
10
10
  import {
11
11
  constrainSlots
12
12
  } from "./chunk.6NM7ENKA.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.YIQIH4RW.js";
4
4
  import {
5
5
  TransitionalStyles
6
- } from "./chunk.QONSFT2N.js";
6
+ } from "./chunk.XQ3SZZAO.js";
7
7
  import {
8
8
  observeLightDOM
9
9
  } from "./chunk.WM7HBMMV.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  grid_style_css_default
3
- } from "./chunk.J2A6J77W.js";
3
+ } from "./chunk.XMPBXAGB.js";
4
4
  import {
5
5
  tokens
6
- } from "./chunk.7P5N6NZL.js";
6
+ } from "./chunk.MMVYFXTU.js";
7
7
  import {
8
8
  watch
9
9
  } from "./chunk.2WO4NHJ2.js";
@@ -66,7 +66,6 @@ var style = css`
66
66
  }
67
67
 
68
68
  :host {
69
- --_c: var(--_columns-mobile);
70
69
  --_gap-column: var(--_gap-mobile);
71
70
  --_gap-row: var(--_row-gap-mobile);
72
71
  --_grid-padding: var(--_padding-mobile);