dry-ux 1.71.0 → 1.73.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.
@@ -0,0 +1,7 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const PositiveAmount: any;
5
+ export declare const NegativeAmount: any;
6
+ export declare const NoDecimalPlaces: any;
7
+ export declare const DifferentCurrency: any;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DifferentCurrency = exports.NoDecimalPlaces = exports.NegativeAmount = exports.PositiveAmount = void 0;
4
+ const React = require("react");
5
+ const Money_1 = require("./Money");
6
+ exports.default = {
7
+ title: "UI Utils/Money",
8
+ component: Money_1.Money,
9
+ };
10
+ const Template = args => React.createElement(Money_1.Money, Object.assign({}, args));
11
+ exports.PositiveAmount = Template.bind({});
12
+ exports.PositiveAmount.args = {
13
+ amount: 1234.56,
14
+ decimal_places: true,
15
+ currency: "$",
16
+ };
17
+ exports.NegativeAmount = Template.bind({});
18
+ exports.NegativeAmount.args = {
19
+ amount: -1234.56,
20
+ decimal_places: true,
21
+ currency: "$",
22
+ };
23
+ exports.NoDecimalPlaces = Template.bind({});
24
+ exports.NoDecimalPlaces.args = {
25
+ amount: 1234,
26
+ decimal_places: false,
27
+ currency: "$",
28
+ };
29
+ exports.DifferentCurrency = Template.bind({});
30
+ exports.DifferentCurrency.args = {
31
+ amount: 1234.56,
32
+ decimal_places: true,
33
+ currency: "€",
34
+ };
@@ -0,0 +1,4 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const Default: any;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Default = void 0;
4
+ const React = require("react");
5
+ const RenderWhenVisible_1 = require("./RenderWhenVisible");
6
+ exports.default = {
7
+ title: "UI Utils/RenderWhenVisible",
8
+ component: RenderWhenVisible_1.RenderWhenVisible,
9
+ };
10
+ const Template = args => (React.createElement(RenderWhenVisible_1.RenderWhenVisible, { minHeight: args.minHeight },
11
+ React.createElement("div", { style: { height: 200, backgroundColor: "lightblue" } }, "Content to render when visible")));
12
+ exports.Default = Template.bind({});
13
+ exports.Default.args = {
14
+ minHeight: 100,
15
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.MemoExoticComponent<() => React.JSX.Element>;
5
+ };
6
+ export default _default;
7
+ export declare const Default: () => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Default = void 0;
4
+ const React = require("react");
5
+ const Spinner_1 = require("./Spinner");
6
+ exports.default = {
7
+ title: "UI Utils/Spinner",
8
+ component: Spinner_1.Spinner,
9
+ };
10
+ const Default = () => React.createElement(Spinner_1.Spinner, null);
11
+ exports.Default = Default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dry-ux",
3
- "version": "1.71.0",
3
+ "version": "1.73.0",
4
4
  "description": "",
5
5
  "main": "dist/index",
6
6
  "scripts": {
@@ -9,10 +9,12 @@
9
9
  "watch": "rimraf dist/ && tsc --watch",
10
10
  "format": "prettier --write \"src/**/*.ts\" \"src/**/*.tsx\"",
11
11
  "update:version": "npm version minor --no-git-tag-version",
12
- "prepub:npm": "npm run format && npm run build && npm run update:version",
12
+ "prepub:npm": "npm run format && npm run build && npm run update:version && npm run docs",
13
13
  "publish:npm": "npm run prepub:npm && npm publish",
14
14
  "pack": "npm run build && npm pack --pack-destination pack/",
15
- "docs": "typedoc --options typedoc.json && cd test && npm run build:test && cp -r proddist ../htmldocs/demo"
15
+ "docs": "typedoc --options typedoc.json && cd test && npm run build:test && cp -r proddist ../htmldocs/demo",
16
+ "storybook": "storybook dev -p 6006",
17
+ "build-storybook": "storybook build"
16
18
  },
17
19
  "repository": {
18
20
  "type": "git",
@@ -25,14 +27,23 @@
25
27
  "author": "Naved Rangwala",
26
28
  "license": "ISC",
27
29
  "devDependencies": {
30
+ "@chromatic-com/storybook": "^3.2.6",
31
+ "@storybook/addon-essentials": "^8.6.11",
32
+ "@storybook/addon-interactions": "^8.6.11",
33
+ "@storybook/addon-onboarding": "^8.6.11",
34
+ "@storybook/addon-webpack5-compiler-swc": "^3.0.0",
35
+ "@storybook/blocks": "^8.6.11",
36
+ "@storybook/react": "^8.6.11",
37
+ "@storybook/react-webpack5": "^8.6.11",
38
+ "@storybook/test": "^8.6.11",
28
39
  "@types/react": "^17.0.0",
29
40
  "@types/react-bootstrap": "^0.32.25",
30
41
  "copyfiles": "^2.4.1",
31
- "jsdoc": "^4.0.4",
32
42
  "prettier": "^2.2.1",
33
43
  "react": "^16.8.2",
34
44
  "react-dom": "^16.8.2",
35
45
  "rimraf": "^3.0.2",
46
+ "storybook": "^8.6.11",
36
47
  "typedoc": "^0.27.9",
37
48
  "typedoc-plugin-markdown": "^4.4.2",
38
49
  "typescript": "*"