@instructure/ui-utils
Advanced tools
Comparing version 10.6.1-snapshot-1 to 10.6.1-snapshot-11
@@ -6,3 +6,3 @@ # Change Log | ||
## [10.6.1-snapshot-1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1-snapshot-1) (2024-11-19) | ||
## [10.6.1-snapshot-11](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1-snapshot-11) (2024-11-22) | ||
@@ -9,0 +9,0 @@ **Note:** Version bump only for package @instructure/ui-utils |
@@ -26,2 +26,9 @@ /* | ||
const baseThemeProps = ['borders', 'breakpoints', 'colors', 'forms', 'media', 'shadows', 'spacing', 'stacking', 'transitions', 'typography']; | ||
/** | ||
* Checks if the given param is an object with all the keys needed for an | ||
* Instructure theme. | ||
* @param theme Anything. This function will throw an error if it's not a theme | ||
* object. | ||
*/ | ||
const isBaseTheme = theme => { | ||
@@ -28,0 +35,0 @@ if (Array.isArray(theme) || typeof theme === 'function') { |
@@ -32,2 +32,9 @@ "use strict"; | ||
const baseThemeProps = ['borders', 'breakpoints', 'colors', 'forms', 'media', 'shadows', 'spacing', 'stacking', 'transitions', 'typography']; | ||
/** | ||
* Checks if the given param is an object with all the keys needed for an | ||
* Instructure theme. | ||
* @param theme Anything. This function will throw an error if it's not a theme | ||
* object. | ||
*/ | ||
const isBaseTheme = theme => { | ||
@@ -34,0 +41,0 @@ if (Array.isArray(theme) || typeof theme === 'function') { |
{ | ||
"name": "@instructure/ui-utils", | ||
"version": "10.6.1-snapshot-1", | ||
"version": "10.6.1-snapshot-11", | ||
"description": "A collection of utilities for UI components", | ||
@@ -25,3 +25,3 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"devDependencies": { | ||
"@instructure/ui-babel-preset": "10.6.1-snapshot-1", | ||
"@instructure/ui-babel-preset": "10.6.1-snapshot-11", | ||
"@testing-library/jest-dom": "^6.4.6", | ||
@@ -34,5 +34,5 @@ "@testing-library/react": "^16.0.1", | ||
"@babel/runtime": "^7.25.6", | ||
"@instructure/console": "10.6.1-snapshot-1", | ||
"@instructure/shared-types": "10.6.1-snapshot-1", | ||
"@instructure/ui-dom-utils": "10.6.1-snapshot-1", | ||
"@instructure/console": "10.6.1-snapshot-11", | ||
"@instructure/shared-types": "10.6.1-snapshot-11", | ||
"@instructure/ui-dom-utils": "10.6.1-snapshot-11", | ||
"@types/ua-parser-js": "^0.7.39", | ||
@@ -39,0 +39,0 @@ "fast-deep-equal": "^3.1.3", |
@@ -42,2 +42,8 @@ /* | ||
/** | ||
* Checks if the given param is an object with all the keys needed for an | ||
* Instructure theme. | ||
* @param theme Anything. This function will throw an error if it's not a theme | ||
* object. | ||
*/ | ||
const isBaseTheme = (theme: any): theme is BaseTheme => { | ||
@@ -44,0 +50,0 @@ if (Array.isArray(theme) || typeof theme === 'function') { |
import type { BaseTheme } from '@instructure/shared-types'; | ||
/** | ||
* Checks if the given param is an object with all the keys needed for an | ||
* Instructure theme. | ||
* @param theme Anything. This function will throw an error if it's not a theme | ||
* object. | ||
*/ | ||
declare const isBaseTheme: (theme: any) => theme is BaseTheme; | ||
@@ -3,0 +9,0 @@ export default isBaseTheme; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
400347
6456
7
28
1
304
+ Added@instructure/console@10.6.1-snapshot-11(transitive)
+ Added@instructure/shared-types@10.6.1-snapshot-11(transitive)
+ Added@instructure/ui-dom-utils@10.6.1-snapshot-11(transitive)
- Removed@instructure/console@10.6.1-snapshot-1(transitive)
- Removed@instructure/shared-types@10.6.1-snapshot-1(transitive)
- Removed@instructure/ui-dom-utils@10.6.1-snapshot-1(transitive)