umwd-components 0.1.11 → 0.1.12

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.
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  function _extends() {
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  var React = require('react');
@@ -4,7 +4,7 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
-
7
+
8
8
  'use strict';
9
9
 
10
10
  var React$1 = require('react');
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  var Xmark = require('../Xmark/Xmark.js');
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  require('../../styles.css.js');
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  var React = require('react');
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  var Requirements = require('./components/Requirements/Requirements.js');
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  'use strict';
8
8
 
9
9
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  function _extends() {
8
8
  _extends = Object.assign ? Object.assign.bind() : function (target) {
9
9
  for (var i = 1; i < arguments.length; i++) {
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  function styleInject(css, ref) {
8
8
  if ( ref === void 0 ) ref = {};
9
9
  var insertAt = ref.insertAt;
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import React from 'react';
8
8
 
9
9
  // Ported from Alexander Haniotis' code here: https://codepen.io/haniotis/pen/KwvYLO
@@ -4,7 +4,7 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
-
7
+
8
8
  import { useState } from 'react';
9
9
  import Link from 'next/link';
10
10
  import { AppBar, Container, Toolbar, Box, Typography, Button, Dialog, List, ListItem, ListItemText, Divider } from '@mui/material';
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import { extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
8
8
  import React from 'react';
9
9
  import { TextField } from '@mui/material';
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import { Xmark } from '../Xmark/Xmark.js';
8
8
  import { Checkmark } from '../Checkmark/Checkmark.js';
9
9
  import React, { useState, useEffect } from 'react';
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import '../../styles.css.js';
8
8
  import { Requirement } from '../Requirement/Requirement.js';
9
9
  import React, { useCallback, useEffect } from 'react';
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
 
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import React from 'react';
8
8
 
9
9
  const Xmark = () => {
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  export { Requirements } from './components/Requirements/Requirements.js';
8
8
  export { NoteTextField } from './components/NoteTextField/NoteTextField.js';
9
9
  export { default as Button } from './components/Button.js';
@@ -3,7 +3,7 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
-
6
+
7
7
  import styleInject from '../node_modules/style-inject/dist/style-inject.es.js';
8
8
 
9
9
  var css_248z = ".requirement{align-items:center;display:flex;height:35px}.requirement p{font-family:sans-serif;font-size:14px;font-weight:700;margin-left:10px}.invalid{color:red}.valid{color:#7ac142}.checkmark{stroke-width:5;stroke:#fff;stroke-miterlimit:10;animation:fill .4s ease-in-out .4s forwards,scale .3s ease-in-out .9s both;border-radius:50%;box-shadow:inset 0 0 0 #7ac142;display:block;height:15px;width:15px}.checkmark__circle{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#7ac142;fill:none;animation:stroke .6s cubic-bezier(.65,0,.45,1) forwards}.checkmark__check{stroke-dasharray:48;stroke-dashoffset:48;animation:stroke .2s cubic-bezier(.65,0,.45,1) .5s forwards;transform-origin:50% 50%}@keyframes stroke{to{stroke-dashoffset:0}}@keyframes scale{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes fill{to{box-shadow:inset 0 0 0 30px #7ac142}}";
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "umwd-components",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "UMWD Component library",
5
- "main": "dist/index.js",
6
- "module": "dist/index.es.js",
5
+ "main": "dist/cjs/src/index.js",
6
+ "module": "dist/esm/src/index.js",
7
7
  "scripts": {
8
8
  "storybook": "storybook dev -p 6006",
9
9
  "build-storybook": "storybook build",
@@ -75,6 +75,7 @@
75
75
  "react-dom": "^18.2.0"
76
76
  },
77
77
  "dependencies": {
78
+ "react": "^18.2.0",
78
79
  "react-dnd": "^16.0.1",
79
80
  "react-dnd-html5-backend": "^16.0.1"
80
81
  }
package/rollup.config.mjs CHANGED
@@ -14,11 +14,10 @@ const outputOptions = {
14
14
  * @copyright Jelle Paulus
15
15
  * @license MIT
16
16
  */
17
- `,
17
+ `,
18
18
  };
19
19
 
20
-
21
- const config = [
20
+ export default [
22
21
  {
23
22
  input: "./src/index.js",
24
23
  output: [
@@ -30,7 +29,8 @@ const config = [
30
29
  },
31
30
  {
32
31
  dir: "dist/esm",
33
- format: "esm",
32
+ format: "es",
33
+ exports: "named",
34
34
  ...outputOptions,
35
35
  preserveModules: true,
36
36
  },
@@ -53,6 +53,4 @@ const config = [
53
53
  }), */
54
54
  ],
55
55
  },
56
- ];
57
-
58
- export default config;
56
+ ];