@instructure/ui-color-picker 11.7.3-snapshot-4 → 11.7.3-snapshot-7

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/es/ColorMixer/v2/styles.js +0 -3
  3. package/lib/ColorMixer/v2/styles.js +0 -3
  4. package/package.json +24 -24
  5. package/src/ColorContrast/v2/props.ts +6 -5
  6. package/src/ColorIndicator/v2/props.ts +6 -5
  7. package/src/ColorMixer/v2/ColorPalette/props.ts +3 -5
  8. package/src/ColorMixer/v2/RGBAInput/props.ts +3 -5
  9. package/src/ColorMixer/v2/Slider/props.ts +3 -5
  10. package/src/ColorMixer/v2/styles.ts +0 -3
  11. package/src/ColorPicker/v2/props.ts +6 -5
  12. package/src/ColorPreset/v2/props.ts +6 -5
  13. package/tsconfig.build.tsbuildinfo +1 -1
  14. package/types/ColorContrast/v2/props.d.ts +3 -2
  15. package/types/ColorContrast/v2/props.d.ts.map +1 -1
  16. package/types/ColorIndicator/v2/props.d.ts +3 -2
  17. package/types/ColorIndicator/v2/props.d.ts.map +1 -1
  18. package/types/ColorMixer/v2/ColorPalette/props.d.ts +3 -2
  19. package/types/ColorMixer/v2/ColorPalette/props.d.ts.map +1 -1
  20. package/types/ColorMixer/v2/RGBAInput/props.d.ts +3 -2
  21. package/types/ColorMixer/v2/RGBAInput/props.d.ts.map +1 -1
  22. package/types/ColorMixer/v2/Slider/props.d.ts +3 -2
  23. package/types/ColorMixer/v2/Slider/props.d.ts.map +1 -1
  24. package/types/ColorMixer/v2/styles.d.ts +0 -3
  25. package/types/ColorMixer/v2/styles.d.ts.map +1 -1
  26. package/types/ColorPicker/v2/index.d.ts +11 -1
  27. package/types/ColorPicker/v2/index.d.ts.map +1 -1
  28. package/types/ColorPicker/v2/props.d.ts +3 -2
  29. package/types/ColorPicker/v2/props.d.ts.map +1 -1
  30. package/types/ColorPreset/v2/index.d.ts.map +1 -1
  31. package/types/ColorPreset/v2/props.d.ts +3 -2
  32. package/types/ColorPreset/v2/props.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [11.7.3-snapshot-4](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-4) (2026-04-28)
6
+ ## [11.7.3-snapshot-7](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-7) (2026-04-29)
7
7
 
8
8
 
9
9
  ### Features
@@ -27,9 +27,6 @@
27
27
  * private: true
28
28
  * ---
29
29
  * Generates the style object from the theme and provided additional information
30
- * @param {Object} componentTheme The theme variable object.
31
- * @param {Object} props the props of the component, the style is applied to
32
- * @param {Object} state the state of the component, the style is applied to
33
30
  * @return {Object} The final style object, which will be used in the component
34
31
  */
35
32
  const generateStyle = () => {
@@ -33,9 +33,6 @@ exports.default = void 0;
33
33
  * private: true
34
34
  * ---
35
35
  * Generates the style object from the theme and provided additional information
36
- * @param {Object} componentTheme The theme variable object.
37
- * @param {Object} props the props of the component, the style is applied to
38
- * @param {Object} state the state of the component, the style is applied to
39
36
  * @return {Object} The final style object, which will be used in the component
40
37
  */
41
38
  const generateStyle = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-color-picker",
3
- "version": "11.7.3-snapshot-4",
3
+ "version": "11.7.3-snapshot-7",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,35 +15,35 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
- "@instructure/console": "11.7.3-snapshot-4",
19
- "@instructure/emotion": "11.7.3-snapshot-4",
20
- "@instructure/shared-types": "11.7.3-snapshot-4",
21
- "@instructure/ui-a11y-content": "11.7.3-snapshot-4",
22
- "@instructure/ui-buttons": "11.7.3-snapshot-4",
23
- "@instructure/ui-color-utils": "11.7.3-snapshot-4",
24
- "@instructure/ui-dom-utils": "11.7.3-snapshot-4",
25
- "@instructure/ui-form-field": "11.7.3-snapshot-4",
26
- "@instructure/ui-heading": "11.7.3-snapshot-4",
27
- "@instructure/ui-icons": "11.7.3-snapshot-4",
28
- "@instructure/ui-pill": "11.7.3-snapshot-4",
29
- "@instructure/ui-drilldown": "11.7.3-snapshot-4",
30
- "@instructure/ui-react-utils": "11.7.3-snapshot-4",
31
- "@instructure/ui-popover": "11.7.3-snapshot-4",
32
- "@instructure/ui-text-input": "11.7.3-snapshot-4",
33
- "@instructure/ui-themes": "11.7.3-snapshot-4",
34
- "@instructure/ui-text": "11.7.3-snapshot-4",
35
- "@instructure/ui-tooltip": "11.7.3-snapshot-4",
36
- "@instructure/ui-utils": "11.7.3-snapshot-4",
37
- "@instructure/ui-view": "11.7.3-snapshot-4"
18
+ "@instructure/console": "11.7.3-snapshot-7",
19
+ "@instructure/emotion": "11.7.3-snapshot-7",
20
+ "@instructure/shared-types": "11.7.3-snapshot-7",
21
+ "@instructure/ui-a11y-content": "11.7.3-snapshot-7",
22
+ "@instructure/ui-buttons": "11.7.3-snapshot-7",
23
+ "@instructure/ui-color-utils": "11.7.3-snapshot-7",
24
+ "@instructure/ui-drilldown": "11.7.3-snapshot-7",
25
+ "@instructure/ui-form-field": "11.7.3-snapshot-7",
26
+ "@instructure/ui-icons": "11.7.3-snapshot-7",
27
+ "@instructure/ui-dom-utils": "11.7.3-snapshot-7",
28
+ "@instructure/ui-pill": "11.7.3-snapshot-7",
29
+ "@instructure/ui-heading": "11.7.3-snapshot-7",
30
+ "@instructure/ui-text": "11.7.3-snapshot-7",
31
+ "@instructure/ui-popover": "11.7.3-snapshot-7",
32
+ "@instructure/ui-react-utils": "11.7.3-snapshot-7",
33
+ "@instructure/ui-text-input": "11.7.3-snapshot-7",
34
+ "@instructure/ui-themes": "11.7.3-snapshot-7",
35
+ "@instructure/ui-tooltip": "11.7.3-snapshot-7",
36
+ "@instructure/ui-view": "11.7.3-snapshot-7",
37
+ "@instructure/ui-utils": "11.7.3-snapshot-7"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@testing-library/jest-dom": "^6.6.3",
41
41
  "@testing-library/react": "15.0.7",
42
42
  "@testing-library/user-event": "^14.6.1",
43
43
  "vitest": "^3.2.2",
44
- "@instructure/ui-babel-preset": "11.7.3-snapshot-4",
45
- "@instructure/ui-axe-check": "11.7.3-snapshot-4",
46
- "@instructure/ui-scripts": "11.7.3-snapshot-4"
44
+ "@instructure/ui-axe-check": "11.7.3-snapshot-7",
45
+ "@instructure/ui-babel-preset": "11.7.3-snapshot-7",
46
+ "@instructure/ui-scripts": "11.7.3-snapshot-7"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=18 <=19"
@@ -24,10 +24,8 @@
24
24
 
25
25
  import React from 'react'
26
26
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
27
- import type {
28
- OtherHTMLAttributes,
29
- ColorContrastTheme
30
- } from '@instructure/shared-types'
27
+ import type { NewComponentTypes } from '@instructure/ui-themes'
28
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
31
29
 
32
30
  type HeadingLevel<U extends keyof React.JSX.IntrinsicElements> = U
33
31
 
@@ -134,7 +132,10 @@ type PropKeys = keyof ColorContrastOwnProps
134
132
  type AllowedPropKeys = Readonly<Array<PropKeys>>
135
133
 
136
134
  type ColorContrastProps = ColorContrastOwnProps &
137
- WithStyleProps<ColorContrastTheme, ColorContrastStyle> &
135
+ WithStyleProps<
136
+ ReturnType<NewComponentTypes['ColorContrast']>,
137
+ ColorContrastStyle
138
+ > &
138
139
  OtherHTMLAttributes<ColorContrastOwnProps>
139
140
 
140
141
  type ColorContrastStyle = ComponentStyle<
@@ -23,10 +23,8 @@
23
23
  */
24
24
 
25
25
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
26
- import type {
27
- OtherHTMLAttributes,
28
- ColorIndicatorTheme
29
- } from '@instructure/shared-types'
26
+ import type { NewComponentTypes } from '@instructure/ui-themes'
27
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
30
28
 
31
29
  type ColorIndicatorOwnProps = {
32
30
  /**
@@ -48,7 +46,10 @@ type PropKeys = keyof ColorIndicatorOwnProps
48
46
  type AllowedPropKeys = Readonly<Array<PropKeys>>
49
47
 
50
48
  type ColorIndicatorProps = ColorIndicatorOwnProps &
51
- WithStyleProps<ColorIndicatorTheme, ColorIndicatorStyle> &
49
+ WithStyleProps<
50
+ ReturnType<NewComponentTypes['ColorIndicator']>,
51
+ ColorIndicatorStyle
52
+ > &
52
53
  OtherHTMLAttributes<ColorIndicatorOwnProps>
53
54
 
54
55
  type ColorIndicatorStyle = ComponentStyle<'colorIndicator'>
@@ -23,11 +23,9 @@
23
23
  */
24
24
 
25
25
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
26
+ import type { NewComponentTypes } from '@instructure/ui-themes'
26
27
 
27
- import type {
28
- OtherHTMLAttributes,
29
- ColorMixerPaletteTheme
30
- } from '@instructure/shared-types'
28
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
31
29
  import type { HSVType } from '@instructure/ui-color-utils'
32
30
  import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
33
31
 
@@ -52,7 +50,7 @@ type PropKeys = keyof ColorPaletteOwnProps
52
50
  type AllowedPropKeys = Readonly<Array<PropKeys>>
53
51
 
54
52
  type ColorPaletteProps = ColorPaletteOwnProps &
55
- WithStyleProps<ColorMixerPaletteTheme, ColorPaletteStyle> &
53
+ WithStyleProps<ReturnType<NewComponentTypes['Palette']>, ColorPaletteStyle> &
56
54
  OtherHTMLAttributes<ColorPaletteOwnProps> &
57
55
  WithDeterministicIdProps
58
56
 
@@ -23,11 +23,9 @@
23
23
  */
24
24
 
25
25
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
26
+ import type { NewComponentTypes } from '@instructure/ui-themes'
26
27
 
27
- import type {
28
- OtherHTMLAttributes,
29
- ColorMixerRGBAInputTheme
30
- } from '@instructure/shared-types'
28
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
31
29
  import type { RGBAType } from '@instructure/ui-color-utils'
32
30
 
33
31
  type RGBAInputOwnProps = {
@@ -53,7 +51,7 @@ type PropKeys = keyof RGBAInputOwnProps
53
51
  type AllowedPropKeys = Readonly<Array<PropKeys>>
54
52
 
55
53
  type RGBAInputProps = RGBAInputOwnProps &
56
- WithStyleProps<ColorMixerRGBAInputTheme, RGBAInputStyle> &
54
+ WithStyleProps<ReturnType<NewComponentTypes['RgbaInput']>, RGBAInputStyle> &
57
55
  OtherHTMLAttributes<RGBAInputOwnProps>
58
56
 
59
57
  type RGBAInputStyle = ComponentStyle<
@@ -23,10 +23,8 @@
23
23
  */
24
24
 
25
25
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
26
- import type {
27
- OtherHTMLAttributes,
28
- ColorMixerSliderTheme
29
- } from '@instructure/shared-types'
26
+ import type { NewComponentTypes } from '@instructure/ui-themes'
27
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
30
28
 
31
29
  type SliderOwnProps = {
32
30
  isColorSlider?: boolean
@@ -46,7 +44,7 @@ type PropKeys = keyof SliderOwnProps
46
44
  type AllowedPropKeys = Readonly<Array<PropKeys>>
47
45
 
48
46
  type SliderProps = SliderOwnProps &
49
- WithStyleProps<ColorMixerSliderTheme, SliderStyle> &
47
+ WithStyleProps<ReturnType<NewComponentTypes['Slider']>, SliderStyle> &
50
48
  OtherHTMLAttributes<SliderOwnProps>
51
49
 
52
50
  type SliderStyleProps = {
@@ -29,9 +29,6 @@ import type { ColorMixerStyle } from './props'
29
29
  * private: true
30
30
  * ---
31
31
  * Generates the style object from the theme and provided additional information
32
- * @param {Object} componentTheme The theme variable object.
33
- * @param {Object} props the props of the component, the style is applied to
34
- * @param {Object} state the state of the component, the style is applied to
35
32
  * @return {Object} The final style object, which will be used in the component
36
33
  */
37
34
  const generateStyle = (): ColorMixerStyle => {
@@ -29,10 +29,8 @@ import type {
29
29
  ComponentStyle,
30
30
  Spacing
31
31
  } from '@instructure/emotion'
32
- import type {
33
- ColorPickerTheme,
34
- OtherHTMLAttributes
35
- } from '@instructure/shared-types'
32
+ import type { NewComponentTypes } from '@instructure/ui-themes'
33
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
36
34
  type ContrastStrength = 'min' | 'mid' | 'max'
37
35
 
38
36
  type ColorPickerOwnProps = {
@@ -253,7 +251,10 @@ type PropKeys = keyof ColorPickerOwnProps
253
251
  type AllowedPropKeys = Readonly<Array<PropKeys>>
254
252
 
255
253
  type ColorPickerProps = ColorPickerOwnProps &
256
- WithStyleProps<ColorPickerTheme, ColorPickerStyle> &
254
+ WithStyleProps<
255
+ ReturnType<NewComponentTypes['ColorPicker']>,
256
+ ColorPickerStyle
257
+ > &
257
258
  OtherHTMLAttributes<ColorPickerOwnProps>
258
259
 
259
260
  type ColorPickerStyle = ComponentStyle<
@@ -23,10 +23,8 @@
23
23
  */
24
24
 
25
25
  import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
26
- import type {
27
- OtherHTMLAttributes,
28
- ColorPresetTheme
29
- } from '@instructure/shared-types'
26
+ import type { NewComponentTypes } from '@instructure/ui-themes'
27
+ import type { OtherHTMLAttributes } from '@instructure/shared-types'
30
28
  import type { RGBAType } from '@instructure/ui-color-utils'
31
29
 
32
30
  type ContrastStrength = 'min' | 'mid' | 'max'
@@ -125,7 +123,10 @@ type PropKeys = keyof ColorPresetOwnProps
125
123
  type AllowedPropKeys = Readonly<Array<PropKeys>>
126
124
 
127
125
  type ColorPresetProps = ColorPresetOwnProps &
128
- WithStyleProps<ColorPresetTheme, ColorPresetStyle> &
126
+ WithStyleProps<
127
+ ReturnType<NewComponentTypes['ColorPreset']>,
128
+ ColorPresetStyle
129
+ > &
129
130
  OtherHTMLAttributes<ColorPresetOwnProps>
130
131
 
131
132
  type ColorPresetStyle = ComponentStyle<