@wistia/vhs 2.27.0 → 2.28.0-beta.65bbf099.213cdc5

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.
@@ -25,6 +25,10 @@ export type ActionModalProps = ComponentPropsWithoutRef<'div'> & {
25
25
  * A prop that determines whether the modal will span the entirety of the screen vertically
26
26
  */
27
27
  fullHeight?: boolean;
28
+ /**
29
+ * Allows user to override default icon color
30
+ */
31
+ closeIconColorOverride?: string;
28
32
  /**
29
33
  * Optional illustration to display alongside the modal
30
34
  */
@@ -74,7 +78,7 @@ export type ActionModalProps = ComponentPropsWithoutRef<'div'> & {
74
78
  width?: string;
75
79
  };
76
80
  export declare const ActionModal: {
77
- ({ alignHorizontal, alignVertical, buttons, children, className, fullHeight, illustration, illustrationBackgroundColor, initialShownState, isDismissible, onBeforeHide, onHide, onShow, render, title, toggle, width, ...otherProps }: ActionModalProps): import("react/jsx-runtime").JSX.Element;
81
+ ({ alignHorizontal, alignVertical, buttons, children, className, fullHeight, closeIconColorOverride, illustration, illustrationBackgroundColor, initialShownState, isDismissible, onBeforeHide, onHide, onShow, render, title, toggle, width, ...otherProps }: ActionModalProps): import("react/jsx-runtime").JSX.Element;
78
82
  displayName: string;
79
83
  };
80
84
  //# sourceMappingURL=ActionModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionModal/ActionModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAW/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AA4FpE,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC/D;;OAEG;IACH,eAAe,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACzD;;OAEG;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvD;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;;;OAIG;IAEH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,qBAAqB,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,KAAK,SAAS,CAAC;IAC3D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,CACP,IAAI,EAAE,MAAM,OAAO,EACnB,eAAe,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC,GAAG,SAAS,KACpE,SAAS,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW;2OAmBrB,gBAAgB;;CAyFlB,CAAC"}
1
+ {"version":3,"file":"ActionModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ActionModal/ActionModal.tsx"],"names":[],"mappings":"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;;OAEG;IACH,MAAM,CAAC,EAAE,CACP,IAAI,EAAE,MAAM,OAAO,EACnB,eAAe,CAAC,EAAE,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC,GAAG,SAAS,KACpE,SAAS,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW;mQAoBrB,gBAAgB;;CA8FlB,CAAC"}
@@ -3,7 +3,17 @@ export type ProgressBarContainerProps = {
3
3
  'aria-valuemax': any;
4
4
  'aria-valuemin': any;
5
5
  };
6
+ export type ProgressBarMeterProps = {
7
+ /**
8
+ * Allows user to override default progress bar meter background colors
9
+ */
10
+ meterBgColorOverride?: string | undefined;
11
+ };
6
12
  export type ProgressBarLevelProps = {
13
+ /**
14
+ * Allows user to override default progress bar meter background colors
15
+ */
16
+ meterBgColorOverride?: string | undefined;
7
17
  /**
8
18
  * Allows user to override default colors
9
19
  */
@@ -13,6 +23,12 @@ export type ProgressBarLevelProps = {
13
23
  */
14
24
  progress: number;
15
25
  };
26
+ export type ProgressBarLabelProps = {
27
+ /**
28
+ * Allows user to override default progress bar label colors
29
+ */
30
+ labelColorOverride?: string | undefined;
31
+ };
16
32
  export type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
17
33
  /**
18
34
  * Whether the progress bar has a label
@@ -22,13 +38,21 @@ export type ProgressBarProps = ComponentPropsWithoutRef<'div'> & {
22
38
  * Current numeric level of the progress (0 -> 1)
23
39
  */
24
40
  progress?: number;
41
+ /**
42
+ * Allows user to override default progress bar label colors
43
+ */
44
+ labelColorOverride?: string;
45
+ /**
46
+ * Allows user to override default progress bar meter background colors
47
+ */
48
+ meterBgColorOverride?: string;
25
49
  /**
26
50
  * Allows user to override default colors
27
51
  */
28
52
  colorOverride?: string;
29
53
  };
30
54
  export declare const ProgressBar: {
31
- ({ hasLabel, progress, colorOverride, ...otherProps }: ProgressBarProps): JSX.Element;
55
+ ({ hasLabel, progress, colorOverride, labelColorOverride, meterBgColorOverride, ...otherProps }: ProgressBarProps): JSX.Element;
32
56
  displayName: string;
33
57
  };
34
58
  //# sourceMappingURL=ProgressBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,yBAAyB,GAAG;IAEtC,eAAe,EAAE,GAAG,CAAC;IAErB,eAAe,EAAE,GAAG,CAAC;CACtB,CAAC;AAcF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAoBF,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW;2DAKrB,gBAAgB,GAAG,WAAW;;CAwBhC,CAAC"}
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAKtD,MAAM,MAAM,yBAAyB,GAAG;IAEtC,eAAe,EAAE,GAAG,CAAC;IAErB,eAAe,EAAE,GAAG,CAAC;CACtB,CAAC;AAMF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3C,CAAC;AAUF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAUF,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAYF,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW;qGAOrB,gBAAgB,GAAG,WAAW;;CA6BhC,CAAC"}
@@ -4,9 +4,13 @@ export type ModalCloseButtonProps = {
4
4
  * Callback invoked when the button is clicked
5
5
  */
6
6
  onClick?: (event: MouseEvent) => void;
7
+ /**
8
+ * Allows user to override default icon color
9
+ */
10
+ closeIconColorOverride?: string | undefined;
7
11
  };
8
12
  export declare const ModalCloseButton: {
9
- ({ onClick }: ModalCloseButtonProps): JSX.Element;
13
+ ({ onClick, closeIconColorOverride, }: ModalCloseButtonProps): JSX.Element;
10
14
  displayName: string;
11
15
  };
12
16
  //# sourceMappingURL=ModalCloseButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ModalCloseButton.d.ts","sourceRoot":"","sources":["../../../../../src/private/components/ModalCloseButton/ModalCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIxC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,gBAAgB;kBAAiB,qBAAqB,GAAG,WAAW;;CAahF,CAAC"}
1
+ {"version":3,"file":"ModalCloseButton.d.ts","sourceRoot":"","sources":["../../../../../src/private/components/ModalCloseButton/ModalCloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAIxC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,gBAAgB;2CAG1B,qBAAqB,GAAG,WAAW;;CAcrC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@wistia/vhs",
3
- "version": "2.27.0",
3
+ "version": "2.28.0-beta.65bbf099.213cdc5",
4
+ "packageManager": "yarn@4.0.0",
4
5
  "description": "Visual Hype System",
5
6
  "main": "dist/index.cjs.js",
6
7
  "module": "dist/index.esm.js",
@@ -51,12 +52,12 @@
51
52
  },
52
53
  "dependencies": {
53
54
  "@radix-ui/react-dropdown-menu": "^2.0.6",
54
- "@types/escape-html": "^1.0.3",
55
+ "@types/escape-html": "^1.0.4",
55
56
  "@types/react": "18.2.21",
56
- "@types/react-dom": "^18.2.14",
57
- "@types/react-transition-group": "^4.4.8",
58
- "@types/styled-components": "^5.1.29",
59
- "@types/uuid": "^9.0.6",
57
+ "@types/react-dom": "^18.2.15",
58
+ "@types/react-transition-group": "^4.4.9",
59
+ "@types/styled-components": "^5.1.30",
60
+ "@types/uuid": "^9.0.7",
60
61
  "@wistia/type-guards": "^0.0.8",
61
62
  "@wistia/vhs-design-tokens": "^1.4.2",
62
63
  "date-fns": "^2.30.0",
@@ -72,44 +73,44 @@
72
73
  "slate": "^0.100.0",
73
74
  "slate-history": "^0.100.0",
74
75
  "slate-hyperscript": "^0.100.0",
75
- "slate-react": "^0.100.0",
76
+ "slate-react": "^0.101.0",
76
77
  "throttle-debounce": "^5.0.0",
77
- "type-fest": "4.5.0",
78
+ "type-fest": "^4.7.1",
78
79
  "uuid": "^9.0.1"
79
80
  },
80
81
  "devDependencies": {
81
82
  "@jest/globals": "^29.7.0",
82
- "@storybook/addon-a11y": "^7.5.1",
83
- "@storybook/addon-controls": "^7.5.1",
84
- "@storybook/addon-docs": "^7.5.1",
85
- "@storybook/addon-links": "^7.5.1",
86
- "@storybook/addon-mdx-gfm": "^7.5.1",
87
- "@storybook/blocks": "^7.5.1",
88
- "@storybook/manager-api": "^7.5.1",
89
- "@storybook/react": "^7.5.1",
90
- "@storybook/react-vite": "^7.5.1",
91
- "@storybook/theming": "^7.5.1",
83
+ "@storybook/addon-a11y": "^7.5.3",
84
+ "@storybook/addon-controls": "^7.5.3",
85
+ "@storybook/addon-docs": "^7.5.3",
86
+ "@storybook/addon-links": "^7.5.3",
87
+ "@storybook/addon-mdx-gfm": "^7.5.3",
88
+ "@storybook/blocks": "^7.5.3",
89
+ "@storybook/manager-api": "^7.5.3",
90
+ "@storybook/react": "^7.5.3",
91
+ "@storybook/react-vite": "^7.5.3",
92
+ "@storybook/theming": "^7.5.3",
92
93
  "@testing-library/dom": "^9.3.3",
93
94
  "@testing-library/jest-dom": "^6.1.4",
94
- "@testing-library/react": "^14.0.0",
95
+ "@testing-library/react": "^14.1.0",
95
96
  "@testing-library/user-event": "^14.5.1",
96
- "@types/jest": "^29.5.6",
97
- "@types/jest-axe": "^3.5.7",
98
- "@types/lodash.template": "^4.5.2",
99
- "@types/node": "^20.8.7",
100
- "@wistia/eslint-config": "^0.23.2",
97
+ "@types/jest": "^29.5.8",
98
+ "@types/jest-axe": "^3.5.8",
99
+ "@types/lodash.template": "^4.5.3",
100
+ "@types/node": "^20.9.0",
101
+ "@wistia/eslint-config": "^0.24.0",
101
102
  "browserslist": "^4.22.1",
102
103
  "bundlewatch": "^0.3.3",
103
- "chromatic": "^7.4.0",
104
+ "chromatic": "^8.0.0",
104
105
  "concurrently": "^8.2.2",
105
106
  "cross-env": "^7.0.3",
106
107
  "depcheck": "^1.4.7",
107
108
  "esbuild": "^0.19.5",
108
109
  "esbuild-jest": "^0.5.0",
109
- "esbuild-plugin-browserslist": "^0.9.1",
110
+ "esbuild-plugin-browserslist": "^0.10.0",
110
111
  "esbuild-visualizer": "^0.4.1",
111
- "eslint": "^8.51.0",
112
- "globby": "^13.2.2",
112
+ "eslint": "^8.53.0",
113
+ "globby": "^14.0.0",
113
114
  "jest": "^29.7.0",
114
115
  "jest-axe": "^8.0.0",
115
116
  "jest-canvas-mock": "^2.5.2",
@@ -124,11 +125,11 @@
124
125
  "react": "^18.2.0",
125
126
  "react-dom": "^18.2.0",
126
127
  "shx": "^0.3.4",
127
- "storybook": "^7.5.1",
128
+ "storybook": "^7.5.3",
128
129
  "styled-components": "^5.3.11",
129
130
  "stylelint": "^15.11.0",
130
- "tsx": "^3.14.0",
131
- "typescript": "5.2.2",
131
+ "tsx": "^4.1.2",
132
+ "typescript": "^5.2.2",
132
133
  "vite": "^4.5.0",
133
134
  "yup": "^1.3.2"
134
135
  },
@@ -141,6 +142,5 @@
141
142
  "bugs": {
142
143
  "url": "https://github.com/wistia/vhs/issues"
143
144
  },
144
- "homepage": "https://github.com/wistia/vhs#readme",
145
- "packageManager": "yarn@3.6.4"
145
+ "homepage": "https://github.com/wistia/vhs#readme"
146
146
  }