@instructure/ui-range-input 8.9.2-snapshot.7 → 8.10.1-snapshot.8

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
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
+ # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-range-input
9
+
6
10
  ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-range-input
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-range-input",
3
- "version": "8.9.2-snapshot.7+1a56581cd",
3
+ "version": "8.10.1-snapshot.8+21f46f4e3",
4
4
  "description": "A styled HTML range input",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,26 +25,26 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.9.2-snapshot.7+1a56581cd",
29
- "@instructure/emotion": "8.9.2-snapshot.7+1a56581cd",
30
- "@instructure/shared-types": "8.9.2-snapshot.7+1a56581cd",
31
- "@instructure/ui-color-utils": "8.9.2-snapshot.7+1a56581cd",
32
- "@instructure/ui-dom-utils": "8.9.2-snapshot.7+1a56581cd",
33
- "@instructure/ui-form-field": "8.9.2-snapshot.7+1a56581cd",
34
- "@instructure/ui-i18n": "8.9.2-snapshot.7+1a56581cd",
35
- "@instructure/ui-prop-types": "8.9.2-snapshot.7+1a56581cd",
36
- "@instructure/ui-react-utils": "8.9.2-snapshot.7+1a56581cd",
37
- "@instructure/ui-testable": "8.9.2-snapshot.7+1a56581cd",
38
- "@instructure/ui-utils": "8.9.2-snapshot.7+1a56581cd",
39
- "@instructure/ui-view": "8.9.2-snapshot.7+1a56581cd",
40
- "@instructure/uid": "8.9.2-snapshot.7+1a56581cd",
28
+ "@instructure/console": "8.10.1-snapshot.8+21f46f4e3",
29
+ "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
30
+ "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
31
+ "@instructure/ui-color-utils": "8.10.1-snapshot.8+21f46f4e3",
32
+ "@instructure/ui-dom-utils": "8.10.1-snapshot.8+21f46f4e3",
33
+ "@instructure/ui-form-field": "8.10.1-snapshot.8+21f46f4e3",
34
+ "@instructure/ui-i18n": "8.10.1-snapshot.8+21f46f4e3",
35
+ "@instructure/ui-prop-types": "8.10.1-snapshot.8+21f46f4e3",
36
+ "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
37
+ "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
38
+ "@instructure/ui-utils": "8.10.1-snapshot.8+21f46f4e3",
39
+ "@instructure/ui-view": "8.10.1-snapshot.8+21f46f4e3",
40
+ "@instructure/uid": "8.10.1-snapshot.8+21f46f4e3",
41
41
  "prop-types": "^15"
42
42
  },
43
43
  "devDependencies": {
44
- "@instructure/ui-babel-preset": "8.9.2-snapshot.7+1a56581cd",
45
- "@instructure/ui-test-locator": "8.9.2-snapshot.7+1a56581cd",
46
- "@instructure/ui-test-utils": "8.9.2-snapshot.7+1a56581cd",
47
- "@instructure/ui-themes": "8.9.2-snapshot.7+1a56581cd"
44
+ "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
45
+ "@instructure/ui-test-locator": "8.10.1-snapshot.8+21f46f4e3",
46
+ "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
47
+ "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=16.8 <=17"
@@ -53,5 +53,5 @@
53
53
  "access": "public"
54
54
  },
55
55
  "sideEffects": false,
56
- "gitHead": "1a56581cde6bd3b4f9fe5cd11ae420bd1222fe15"
56
+ "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
57
57
  }
@@ -26,9 +26,9 @@ import PropTypes from 'prop-types'
26
26
  import { controllable } from '@instructure/ui-prop-types'
27
27
  import { FormPropTypes } from '@instructure/ui-form-field'
28
28
 
29
- import type { PropValidators } from '@instructure/shared-types'
29
+ import type { PropValidators, RangeInputTheme } from '@instructure/shared-types'
30
30
  import type { FormMessage } from '@instructure/ui-form-field'
31
- import type { WithStyleProps } from '@instructure/emotion'
31
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
32
32
 
33
33
  type RangeInputOwnProps = {
34
34
  min: number
@@ -53,7 +53,12 @@ type PropKeys = keyof RangeInputOwnProps
53
53
 
54
54
  type AllowedPropKeys = Readonly<Array<PropKeys>>
55
55
 
56
- type RangeInputProps = RangeInputOwnProps & WithStyleProps
56
+ type RangeInputProps = RangeInputOwnProps &
57
+ WithStyleProps<RangeInputTheme, RangeInputStyle>
58
+
59
+ type RangeInputStyle = ComponentStyle<
60
+ 'rangeInput' | 'rangeInputInput' | 'rangeInputInputValue'
61
+ >
57
62
 
58
63
  const propTypes: PropValidators<PropKeys> = {
59
64
  min: PropTypes.number.isRequired,
@@ -111,5 +116,5 @@ const allowedProps: AllowedPropKeys = [
111
116
  'readOnly'
112
117
  ]
113
118
 
114
- export type { RangeInputProps }
119
+ export type { RangeInputProps, RangeInputStyle }
115
120
  export { propTypes, allowedProps }
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { RangeInputTheme } from '@instructure/shared-types'
26
- import { RangeInputProps } from './props'
25
+ import type { RangeInputTheme } from '@instructure/shared-types'
26
+ import type { RangeInputProps, RangeInputStyle } from './props'
27
27
 
28
28
  /**
29
29
  * ---
@@ -38,7 +38,7 @@ import { RangeInputProps } from './props'
38
38
  const generateStyle = (
39
39
  componentTheme: RangeInputTheme,
40
40
  props: RangeInputProps
41
- ) => {
41
+ ): RangeInputStyle => {
42
42
  const { size } = props
43
43
  const valueSizeVariants = {
44
44
  small: {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import type { PropValidators } from '@instructure/shared-types';
2
+ import type { PropValidators, RangeInputTheme } from '@instructure/shared-types';
3
3
  import type { FormMessage } from '@instructure/ui-form-field';
4
- import type { WithStyleProps } from '@instructure/emotion';
4
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
5
5
  declare type RangeInputOwnProps = {
6
6
  min: number;
7
7
  max: number;
@@ -22,9 +22,10 @@ declare type RangeInputOwnProps = {
22
22
  };
23
23
  declare type PropKeys = keyof RangeInputOwnProps;
24
24
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
25
- declare type RangeInputProps = RangeInputOwnProps & WithStyleProps;
25
+ declare type RangeInputProps = RangeInputOwnProps & WithStyleProps<RangeInputTheme, RangeInputStyle>;
26
+ declare type RangeInputStyle = ComponentStyle<'rangeInput' | 'rangeInputInput' | 'rangeInputInputValue'>;
26
27
  declare const propTypes: PropValidators<PropKeys>;
27
28
  declare const allowedProps: AllowedPropKeys;
28
- export type { RangeInputProps };
29
+ export type { RangeInputProps, RangeInputStyle };
29
30
  export { propTypes, allowedProps };
30
31
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/RangeInput/props.ts"],"names":[],"mappings":";AA4BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,aAAK,kBAAkB,GAAG;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,E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@ -1,5 +1,5 @@
1
- import { RangeInputTheme } from '@instructure/shared-types';
2
- import { RangeInputProps } from './props';
1
+ import type { RangeInputTheme } from '@instructure/shared-types';
2
+ import type { RangeInputProps, RangeInputStyle } from './props';
3
3
  /**
4
4
  * ---
5
5
  * private: true
@@ -10,120 +10,6 @@ import { RangeInputProps } from './props';
10
10
  * @param {Object} state the state of the component, the style is applied to
11
11
  * @return {Object} The final style object, which will be used in the component
12
12
  */
13
- declare const generateStyle: (componentTheme: RangeInputTheme, props: RangeInputProps) => {
14
- rangeInput: {
15
- label: string;
16
- display: string;
17
- justifyContent: string;
18
- alignItems: string;
19
- minWidth: string | 0;
20
- };
21
- rangeInputInput: {
22
- label: string;
23
- all: string;
24
- flex: string;
25
- boxSizing: string;
26
- appearance: string;
27
- width: string;
28
- outline: string;
29
- margin: number;
30
- '&::-webkit-slider-thumb': {
31
- marginTop: string;
32
- appearance: string;
33
- borderRadius: string;
34
- cursor: string;
35
- transition: string;
36
- width: string | 0;
37
- height: string | 0;
38
- background: string;
39
- boxShadow: string;
40
- '&:hover': {
41
- background: string;
42
- };
43
- };
44
- '&::-moz-range-thumb': {
45
- appearance: string;
46
- borderRadius: string;
47
- cursor: string;
48
- transition: string;
49
- width: string | 0;
50
- height: string | 0;
51
- background: string;
52
- boxShadow: string;
53
- '&:hover': {
54
- background: string;
55
- };
56
- };
57
- '&:focus, &:active': {
58
- outline: string;
59
- '&::-webkit-slider-thumb': {
60
- boxShadow: string;
61
- };
62
- '&::-moz-range-thumb': {
63
- boxShadow: string;
64
- };
65
- };
66
- '&::-moz-focus-inner, &::-moz-focus-outer': {
67
- border: number;
68
- outline: string;
69
- };
70
- '&::-webkit-slider-runnable-track': {
71
- borderRadius: string;
72
- borderColor: string;
73
- color: string;
74
- cursor: string;
75
- background: string;
76
- height: string;
77
- };
78
- '&::-moz-range-track': {
79
- borderRadius: string;
80
- borderColor: string;
81
- color: string;
82
- cursor: string;
83
- background: string;
84
- height: string;
85
- };
86
- '[dir="rtl"] &': {
87
- direction: string;
88
- };
89
- };
90
- rangeInputInputValue: {
91
- fontSize: string | 0;
92
- padding: string | 0;
93
- lineHeight: string;
94
- label: string;
95
- all: string;
96
- boxSizing: string;
97
- display: string;
98
- color: string;
99
- fontFamily: string;
100
- fontWeight: number;
101
- textAlign: string;
102
- } | {
103
- fontSize: string | 0;
104
- padding: string | 0;
105
- lineHeight: string;
106
- label: string;
107
- all: string;
108
- boxSizing: string;
109
- display: string;
110
- color: string;
111
- fontFamily: string;
112
- fontWeight: number;
113
- textAlign: string;
114
- } | {
115
- fontSize: string | 0;
116
- padding: string | 0;
117
- lineHeight: string;
118
- label: string;
119
- all: string;
120
- boxSizing: string;
121
- display: string;
122
- color: string;
123
- fontFamily: string;
124
- fontWeight: number;
125
- textAlign: string;
126
- };
127
- };
13
+ declare const generateStyle: (componentTheme: RangeInputTheme, props: RangeInputProps) => RangeInputStyle;
128
14
  export default generateStyle;
129
15
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/RangeInput/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,eAAe,SACxB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FvB,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/RangeInput/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE/D;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,eAAe,SACxB,eAAe,KACrB,eA8FF,CAAA;AAED,eAAe,aAAa,CAAA"}