@atlaskit/range 5.1.4 → 6.0.2
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 +21 -0
- package/dist/cjs/range.js +9 -16
- package/dist/cjs/styled.js +102 -60
- package/dist/cjs/theme.js +32 -29
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/range.js +2 -6
- package/dist/es2019/styled.js +111 -234
- package/dist/es2019/theme.js +29 -24
- package/dist/es2019/version.json +1 -1
- package/dist/esm/range.js +9 -15
- package/dist/esm/styled.js +100 -62
- package/dist/esm/theme.js +29 -26
- package/dist/esm/version.json +1 -1
- package/dist/types/range.d.ts +1 -6
- package/dist/types/styled.d.ts +3 -7
- package/dist/types/theme.d.ts +28 -50
- package/package.json +6 -5
package/dist/esm/styled.js
CHANGED
|
@@ -1,82 +1,120 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
import
|
|
4
|
-
var _excluded = ["valuePercent", "
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
var _excluded = ["valuePercent", "style"];
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _activeHover, _disabled, _css;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* eslint-disable no-mixed-operators */
|
|
11
|
-
import { forwardRef, useMemo } from 'react';
|
|
12
|
-
import { css, jsx } from '@emotion/core';
|
|
13
|
-
import { N50A, N60A } from '@atlaskit/theme/colors';
|
|
14
|
-
import { fontFamily } from '@atlaskit/theme/constants';
|
|
15
|
-
var sliderThumbSize = 16;
|
|
16
|
-
var sliderThumbBorderThickness = 2;
|
|
17
|
-
var sliderLineThickness = 4;
|
|
18
|
-
var transitionDuration = '0.2s';
|
|
19
|
-
var sliderBorderRadius = sliderLineThickness / 2;
|
|
20
|
-
export var overallHeight = 40;
|
|
21
|
-
|
|
22
|
-
var getBackgroundGradient = function getBackgroundGradient(_ref) {
|
|
23
|
-
var lower = _ref.lower,
|
|
24
|
-
upper = _ref.upper;
|
|
25
|
-
return "\n background: linear-gradient(".concat(lower, ", ").concat(lower, ") 0 / var(--range-inline-width) 100%\n no-repeat ").concat(upper, ";\n [dir='rtl'] & {\n background-position: right;\n }\n ");
|
|
26
|
-
};
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
9
|
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
var sliderThumbStyle = function sliderThumbStyle(_ref2) {
|
|
31
|
-
var thumb = _ref2.thumb;
|
|
32
|
-
return "\n background: ".concat(thumb.default.background, ";\n border: ").concat(sliderThumbBorderThickness, "px solid transparent;\n border-radius: 50%;\n height: ").concat(sliderThumbSize, "px;\n width: ").concat(sliderThumbSize, "px;\n box-sizing: border-box;\n transition: border-color ").concat(transitionDuration, " ease-in-out;\n box-shadow: ").concat(elevationStyle, "\n ");
|
|
33
|
-
}; // Track styles
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
var sliderTrackStyle = "\n border-radius: ".concat(sliderBorderRadius, "px;\n border: 0;\n cursor: pointer;\n height: ").concat(sliderLineThickness, "px;\n width: 100%;\n transition: background-color ").concat(transitionDuration, " ease-in-out;\n"); // Range input styles
|
|
37
|
-
|
|
38
|
-
var chromeRangeInputStyle = function chromeRangeInputStyle(tokens) {
|
|
39
|
-
return "\n &::-webkit-slider-thumb {\n -webkit-appearance: none;\n margin-top: -".concat((sliderThumbSize - sliderLineThickness) / 2, "px;\n ").concat(sliderThumbStyle(tokens), ";\n }\n\n &:focus::-webkit-slider-thumb {\n border-color: ").concat(tokens.thumb.focus.border, ";\n }\n\n &:disabled::-webkit-slider-thumb {\n cursor: not-allowed;\n box-shadow: ").concat(tokens.thumb.disabled.boxShadow, ";\n }\n\n &::-webkit-slider-runnable-track {\n ").concat(sliderTrackStyle, ";\n ").concat(getBackgroundGradient(tokens.track.default), ";\n }\n\n &:focus::-webkit-slider-runnable-track {\n ").concat(getBackgroundGradient(tokens.track.default), ";\n }\n\n &:active::-webkit-slider-runnable-track,\n &:hover::-webkit-slider-runnable-track {\n ").concat(getBackgroundGradient(tokens.track.hover), ";\n }\n\n &:disabled::-webkit-slider-runnable-track {\n ").concat(getBackgroundGradient(tokens.track.disabled), "\n cursor: not-allowed;\n }\n ");
|
|
40
|
-
};
|
|
10
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
41
11
|
|
|
42
|
-
|
|
43
|
-
|
|
12
|
+
/** @jsx jsx */
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
import { css, jsx } from '@emotion/core';
|
|
15
|
+
import * as theme from './theme';
|
|
16
|
+
var VAR_THUMB_BORDER_COLOR = '--thumb-border';
|
|
17
|
+
var VAR_THUMB_SHADOW = '--thumb-shadow';
|
|
18
|
+
var VAR_TRACK_BACKGROUND_COLOR = '--track-bg';
|
|
19
|
+
var VAR_TRACK_FOREGROUND_COLOR = '--track-fg';
|
|
20
|
+
var VAR_TRACK_FOREGROUND_WIDTH = '--track-fg-width';
|
|
21
|
+
var sliderThumbStyles = {
|
|
22
|
+
boxSizing: 'border-box',
|
|
23
|
+
width: theme.thumb.size,
|
|
24
|
+
height: theme.thumb.size,
|
|
25
|
+
background: theme.thumb.background,
|
|
26
|
+
border: "".concat(theme.thumb.borderWidth, "px solid var(").concat(VAR_THUMB_BORDER_COLOR, ")"),
|
|
27
|
+
borderRadius: '50%',
|
|
28
|
+
boxShadow: "var(".concat(VAR_THUMB_SHADOW, ")"),
|
|
29
|
+
cursor: 'pointer',
|
|
30
|
+
// Different implicit behavior across browsers -> making it explicit
|
|
31
|
+
transition: "border-color ".concat(theme.transitionDuration, " ease-in-out")
|
|
44
32
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
33
|
+
var sliderTrackStyles = {
|
|
34
|
+
borderRadius: theme.track.borderRadius,
|
|
35
|
+
border: 0,
|
|
36
|
+
cursor: 'pointer',
|
|
37
|
+
height: theme.track.height,
|
|
38
|
+
width: '100%',
|
|
39
|
+
transition: "background-color ".concat(theme.transitionDuration, " ease-in-out")
|
|
48
40
|
}; // Styles are split per browser as they are implemented differently
|
|
49
41
|
// Cannot consolidate as Chrome & Firefox don't recognise styles if they are grouped
|
|
50
42
|
// with CSS selectors they don't recognise, e.g. &::-ms-thumb
|
|
51
43
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
44
|
+
var browserStyles = {
|
|
45
|
+
webkit: css({
|
|
46
|
+
WebkitAppearance: 'none',
|
|
47
|
+
// Hides the slider so that custom slider can be made
|
|
48
|
+
'::-webkit-slider-thumb': _objectSpread(_objectSpread({}, sliderThumbStyles), {}, {
|
|
49
|
+
marginTop: -(theme.thumb.size - theme.track.height) / 2,
|
|
50
|
+
WebkitAppearance: 'none'
|
|
51
|
+
}),
|
|
52
|
+
'::-webkit-slider-runnable-track': _objectSpread(_objectSpread({}, sliderTrackStyles), {}, {
|
|
53
|
+
/**
|
|
54
|
+
* Webkit does not have separate properties for the background/foreground like firefox.
|
|
55
|
+
* Instead we use background layering:
|
|
56
|
+
* - The gray background is a simple background color.
|
|
57
|
+
* - The blue foreground is a 'gradient' (to create a color block) that is sized to the progress.
|
|
58
|
+
*
|
|
59
|
+
* Individual properties have been used over the `background` shorthand for readability.
|
|
60
|
+
*/
|
|
61
|
+
backgroundColor: "var(".concat(VAR_TRACK_BACKGROUND_COLOR, ")"),
|
|
62
|
+
backgroundImage: "linear-gradient(var(".concat(VAR_TRACK_FOREGROUND_COLOR, "), var(").concat(VAR_TRACK_FOREGROUND_COLOR, "))"),
|
|
63
|
+
backgroundRepeat: 'no-repeat',
|
|
64
|
+
backgroundSize: "var(".concat(VAR_TRACK_FOREGROUND_WIDTH, ") 100%"),
|
|
65
|
+
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
66
|
+
'[dir="rtl"] &': {
|
|
67
|
+
backgroundPosition: 'right'
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
':disabled': {
|
|
71
|
+
'::-webkit-slider-thumb, ::-webkit-slider-runnable-track': {
|
|
72
|
+
cursor: 'not-allowed'
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
firefox: css({
|
|
77
|
+
'::-moz-range-thumb': sliderThumbStyles,
|
|
78
|
+
'::-moz-focus-outer': {
|
|
79
|
+
border: 0
|
|
80
|
+
},
|
|
81
|
+
'::-moz-range-progress': _objectSpread(_objectSpread({}, sliderTrackStyles), {}, {
|
|
82
|
+
background: "var(".concat(VAR_TRACK_FOREGROUND_COLOR, ")")
|
|
83
|
+
}),
|
|
84
|
+
'::-moz-range-track': _objectSpread(_objectSpread({}, sliderTrackStyles), {}, {
|
|
85
|
+
background: "var(".concat(VAR_TRACK_BACKGROUND_COLOR, ")")
|
|
86
|
+
}),
|
|
87
|
+
':disabled': {
|
|
88
|
+
'::-moz-range-thumb, ::-moz-range-progress, ::-moz-range-track': {
|
|
89
|
+
cursor: 'not-allowed'
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
})
|
|
55
93
|
};
|
|
94
|
+
var baseStyles = css({
|
|
95
|
+
width: '100%',
|
|
96
|
+
// Has a fixed width by default
|
|
97
|
+
height: theme.input.height,
|
|
98
|
+
// Otherwise thumb will collide with previous box element
|
|
99
|
+
background: 'transparent',
|
|
100
|
+
// Otherwise white
|
|
101
|
+
':focus': {
|
|
102
|
+
outline: 'none'
|
|
103
|
+
},
|
|
104
|
+
':disabled': {
|
|
105
|
+
cursor: 'not-allowed'
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
var themeStyles = css((_css = {}, _defineProperty(_css, VAR_THUMB_BORDER_COLOR, theme.thumb.borderColor.default), _defineProperty(_css, VAR_THUMB_SHADOW, theme.thumb.boxShadow.default), _defineProperty(_css, VAR_TRACK_BACKGROUND_COLOR, theme.track.background.default), _defineProperty(_css, VAR_TRACK_FOREGROUND_COLOR, theme.track.foreground.default), _defineProperty(_css, ':active, :hover', (_activeHover = {}, _defineProperty(_activeHover, VAR_TRACK_BACKGROUND_COLOR, theme.track.background.hovered), _defineProperty(_activeHover, VAR_TRACK_FOREGROUND_COLOR, theme.track.foreground.hovered), _activeHover)), _defineProperty(_css, ':focus', _defineProperty({}, VAR_THUMB_BORDER_COLOR, theme.thumb.borderColor.focused)), _defineProperty(_css, ':disabled', (_disabled = {}, _defineProperty(_disabled, VAR_THUMB_SHADOW, theme.thumb.boxShadow.disabled), _defineProperty(_disabled, VAR_TRACK_BACKGROUND_COLOR, theme.track.background.disabled), _defineProperty(_disabled, VAR_TRACK_FOREGROUND_COLOR, theme.track.foreground.disabled), _disabled)), _css));
|
|
56
109
|
export var Input = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
57
110
|
var valuePercent = props.valuePercent,
|
|
58
|
-
thumb = props.thumb,
|
|
59
|
-
track = props.track,
|
|
60
111
|
style = props.style,
|
|
61
|
-
strippedProps = _objectWithoutProperties(props, _excluded);
|
|
62
|
-
// We are memoizing the creation of this string
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var styles = useMemo(function () {
|
|
66
|
-
return rangeInputStyle({
|
|
67
|
-
track: track,
|
|
68
|
-
thumb: thumb
|
|
69
|
-
});
|
|
70
|
-
}, [thumb, track]); // We are creating a css variable to control the "progress" portion of the range input
|
|
71
|
-
// This avoids us needing to create a new css class for each new percentage value
|
|
112
|
+
strippedProps = _objectWithoutProperties(props, _excluded);
|
|
72
113
|
|
|
73
114
|
return jsx("input", _extends({}, strippedProps, {
|
|
74
|
-
style: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
ref: ref // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
|
|
78
|
-
,
|
|
79
|
-
css: styles
|
|
115
|
+
style: _defineProperty({}, VAR_TRACK_FOREGROUND_WIDTH, "".concat(valuePercent, "%")),
|
|
116
|
+
ref: ref,
|
|
117
|
+
css: [baseStyles, browserStyles.webkit, browserStyles.firefox, themeStyles]
|
|
80
118
|
}));
|
|
81
119
|
});
|
|
82
120
|
Input.displayName = 'InputRange';
|
package/dist/esm/theme.js
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import * as colors from '@atlaskit/theme/colors';
|
|
2
|
-
|
|
2
|
+
export var transitionDuration = '0.2s';
|
|
3
|
+
export var input = {
|
|
4
|
+
height: 40
|
|
5
|
+
};
|
|
3
6
|
export var thumb = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
size: 16,
|
|
8
|
+
borderWidth: 2,
|
|
9
|
+
background: "var(--ds-surface-raised, ".concat(colors.N0, ")"),
|
|
10
|
+
borderColor: {
|
|
11
|
+
default: 'transparent',
|
|
12
|
+
focused: "var(--ds-border-focused, ".concat(colors.B200, ")")
|
|
9
13
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
boxShadow: {
|
|
15
|
+
default: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A), ")"),
|
|
16
|
+
disabled: "var(--ds-shadow-raised, ".concat("0 0 1px ".concat(colors.N60A), ")")
|
|
13
17
|
}
|
|
14
18
|
};
|
|
15
19
|
export var track = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
height: 4,
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* borderRadius >= height / 2 to create a pill shape.
|
|
24
|
+
* Using '50%' creates an ellipse.
|
|
25
|
+
*/
|
|
26
|
+
borderRadius: 2,
|
|
27
|
+
background: {
|
|
28
|
+
default: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
29
|
+
hovered: "var(--ds-background-neutral-hovered, ".concat(colors.N40, ")"),
|
|
30
|
+
disabled: "var(--ds-background-disabled, ".concat(colors.N30, ")")
|
|
19
31
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
hover: {
|
|
25
|
-
lower: "var(--ds-background-brand-bold-hovered, ".concat(colors.B300, ")"),
|
|
26
|
-
upper: "var(--ds-background-neutral-hovered, ".concat(colors.N40, ")")
|
|
32
|
+
foreground: {
|
|
33
|
+
default: "var(--ds-background-brand-bold, ".concat(colors.B400, ")"),
|
|
34
|
+
hovered: "var(--ds-background-brand-bold-hovered, ".concat(colors.B300, ")"),
|
|
35
|
+
disabled: "var(--ds-text-disabled, ".concat(colors.N50, ")")
|
|
27
36
|
}
|
|
28
|
-
};
|
|
29
|
-
export var Theme = createTheme(function () {
|
|
30
|
-
return {
|
|
31
|
-
thumb: thumb,
|
|
32
|
-
track: track
|
|
33
|
-
};
|
|
34
|
-
});
|
|
37
|
+
};
|
package/dist/esm/version.json
CHANGED
package/dist/types/range.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ThemeProp } from '@atlaskit/theme/components';
|
|
3
2
|
export declare type OwnProps = {
|
|
4
3
|
/** Sets the default value if range is not set. */
|
|
5
4
|
defaultValue?: number;
|
|
@@ -15,14 +14,10 @@ export declare type OwnProps = {
|
|
|
15
14
|
step?: number;
|
|
16
15
|
/** A `testId` prop is provided for specific elements. This is a unique string that appears as a data attribute `data-testid` in the rendered code and serves as a hook for automated tests. */
|
|
17
16
|
testId?: string;
|
|
18
|
-
/** The theme object to be passed down. See
|
|
19
|
-
[@atlaskit/theme](https://atlaskit.atlassian.com/packages/design-system/theme) for more details on theming.
|
|
20
|
-
*/
|
|
21
|
-
theme?: ThemeProp<any, any>;
|
|
22
17
|
/** Sets the value of the range. */
|
|
23
18
|
value?: number;
|
|
24
19
|
};
|
|
25
20
|
declare type Combine<First, Second> = Omit<First, keyof Second> & Second;
|
|
26
21
|
export declare type RangeProps = Combine<Omit<React.InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'required' | 'checked'>, OwnProps>;
|
|
27
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<React.InputHTMLAttributes<HTMLInputElement>, "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "crossOrigin" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "
|
|
22
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<React.InputHTMLAttributes<HTMLInputElement>, "color" | "height" | "width" | "hidden" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "crossOrigin" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "size" | "src" | "step" | "type" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, "color" | "height" | "width" | "hidden" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "crossOrigin" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "maxLength" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "size" | "src" | "type" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css"> & OwnProps & React.RefAttributes<HTMLInputElement>>;
|
|
28
23
|
export default _default;
|
package/dist/types/styled.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
/// <reference types="react" />
|
|
3
|
-
|
|
4
|
-
export declare const overallHeight = 40;
|
|
5
|
-
interface CustomInputProps extends ThemeTokens {
|
|
3
|
+
declare type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
6
4
|
ref: React.Ref<HTMLInputElement>;
|
|
7
5
|
valuePercent: string;
|
|
8
|
-
}
|
|
9
|
-
declare
|
|
10
|
-
export declare const rangeInputStyle: (tokens: ThemeTokens) => import("@emotion/core").SerializedStyles;
|
|
11
|
-
export declare const Input: import("react").ForwardRefExoticComponent<Pick<InputProps, "thumb" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "type" | "value" | "width" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "valuePercent" | "track"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
6
|
+
};
|
|
7
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Pick<InputProps, "color" | "height" | "width" | "hidden" | "accept" | "alt" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "name" | "pattern" | "placeholder" | "readOnly" | "required" | "size" | "src" | "step" | "type" | "value" | "onChange" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "valuePercent"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
8
|
export {};
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,57 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
export interface ThemeTokensTrack {
|
|
7
|
-
lower: string;
|
|
8
|
-
upper: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ThemeTokens {
|
|
11
|
-
thumb: {
|
|
12
|
-
default: ThemeTokensThumb;
|
|
13
|
-
disabled: {
|
|
14
|
-
boxShadow: string;
|
|
15
|
-
};
|
|
16
|
-
focus: ThemeTokensThumb;
|
|
17
|
-
};
|
|
18
|
-
track: {
|
|
19
|
-
default: ThemeTokensTrack;
|
|
20
|
-
disabled: ThemeTokensTrack;
|
|
21
|
-
hover: ThemeTokensTrack;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
1
|
+
export declare const transitionDuration = "0.2s";
|
|
2
|
+
export declare const input: {
|
|
3
|
+
height: number;
|
|
4
|
+
};
|
|
24
5
|
export declare const thumb: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
6
|
+
size: number;
|
|
7
|
+
borderWidth: number;
|
|
8
|
+
background: "var(--ds-surface-raised)";
|
|
9
|
+
borderColor: {
|
|
10
|
+
default: string;
|
|
11
|
+
focused: "var(--ds-border-focused)";
|
|
30
12
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
13
|
+
boxShadow: {
|
|
14
|
+
default: "var(--ds-shadow-overlay)";
|
|
15
|
+
disabled: "var(--ds-shadow-raised)";
|
|
34
16
|
};
|
|
35
17
|
};
|
|
36
18
|
export declare const track: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
height: number;
|
|
20
|
+
/**
|
|
21
|
+
* borderRadius >= height / 2 to create a pill shape.
|
|
22
|
+
* Using '50%' creates an ellipse.
|
|
23
|
+
*/
|
|
24
|
+
borderRadius: number;
|
|
25
|
+
background: {
|
|
26
|
+
default: "var(--ds-background-neutral)";
|
|
27
|
+
hovered: "var(--ds-background-neutral-hovered)";
|
|
28
|
+
disabled: "var(--ds-background-disabled)";
|
|
29
|
+
};
|
|
30
|
+
foreground: {
|
|
31
|
+
default: "var(--ds-background-brand-bold)";
|
|
32
|
+
hovered: "var(--ds-background-brand-bold-hovered)";
|
|
33
|
+
disabled: "var(--ds-text-disabled)";
|
|
40
34
|
};
|
|
41
|
-
disabled: {
|
|
42
|
-
lower: "var(--ds-text-disabled)";
|
|
43
|
-
upper: "var(--ds-background-disabled)";
|
|
44
|
-
};
|
|
45
|
-
hover: {
|
|
46
|
-
lower: "var(--ds-background-brand-bold-hovered)";
|
|
47
|
-
upper: "var(--ds-background-neutral-hovered)";
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export declare const Theme: {
|
|
51
|
-
Consumer: import("react").ComponentType<any>;
|
|
52
|
-
Provider: import("react").ComponentType<{
|
|
53
|
-
children?: import("react").ReactNode;
|
|
54
|
-
value?: import("@atlaskit/theme/components").ThemeProp<ThemeTokens, any> | undefined;
|
|
55
|
-
}>;
|
|
56
|
-
useTheme: (props: any) => ThemeTokens;
|
|
57
35
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/range",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "A range lets users choose an approximate value on a slider.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/theme": "^12.1.0",
|
|
28
|
-
"@atlaskit/tokens": "^0.
|
|
28
|
+
"@atlaskit/tokens": "^0.8.0",
|
|
29
29
|
"@babel/runtime": "^7.0.0",
|
|
30
30
|
"@emotion/core": "^10.0.9"
|
|
31
31
|
},
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"react": "^16.8.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@atlaskit/button": "^16.
|
|
36
|
+
"@atlaskit/button": "^16.2.0",
|
|
37
37
|
"@atlaskit/checkbox": "^12.0.0",
|
|
38
38
|
"@atlaskit/docs": "*",
|
|
39
|
-
"@atlaskit/form": "^8.
|
|
39
|
+
"@atlaskit/form": "^8.5.0",
|
|
40
40
|
"@atlaskit/section-message": "^6.0.0",
|
|
41
41
|
"@atlaskit/ssr": "*",
|
|
42
42
|
"@atlaskit/tooltip": "^17.5.0",
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"theming": "tokens",
|
|
67
67
|
"deprecation": "no-deprecated-imports",
|
|
68
68
|
"styling": [
|
|
69
|
-
"emotion"
|
|
69
|
+
"emotion",
|
|
70
|
+
"static"
|
|
70
71
|
]
|
|
71
72
|
}
|
|
72
73
|
},
|