@ulu/frontend 0.1.0-beta.16 → 0.1.0-beta.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 0.1.0-beta.17
4
+
5
+ - js/ui/programmatic-modal.js
6
+ - Add "classes" option to createAndOpen, to match legacy module's API
7
+
3
8
  ## Version 0.1.0-beta.16
4
9
 
5
10
  - js/ui/programmatic-modal.js
@@ -44,12 +44,17 @@ export class ProgrammaticModalManager {
44
44
  });
45
45
  }
46
46
  createAndOpen(config, afterCreate) {
47
- const { noClickTrigger, removeOnClose, element } = config;
47
+ const { noClickTrigger, removeOnClose, element, classes } = config;
48
48
  const content = getElement(element);
49
49
  if (!content.id) {
50
50
  content.id = newId();
51
51
  }
52
52
 
53
+ // Added to match original jquery module api
54
+ if (classes) {
55
+ content.classList.add(...classes);
56
+ }
57
+
53
58
  let trigger;
54
59
  if (!noClickTrigger) {
55
60
  trigger = this.cachedTrigger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulu/frontend",
3
- "version": "0.1.0-beta.16",
3
+ "version": "0.1.0-beta.17",
4
4
  "description": "Modular Sass Theming Library",
5
5
  "browser": "js/index.js",
6
6
  "main": "index.js",