@flodesk/grain 11.35.3 → 11.36.1
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/es/icons/icon-apple.js +17 -0
- package/es/icons/icon-ball.js +17 -0
- package/es/icons/icon-branching.js +17 -0
- package/es/icons/icon-car.js +17 -0
- package/es/icons/icon-dog.js +17 -0
- package/es/icons/icon-exit.js +17 -0
- package/es/icons/icon-flag.js +17 -0
- package/es/icons/icon-symbols.js +17 -0
- package/es/icons/index.js +9 -2
- package/es/types/components/arrange.d.ts +7 -7
- package/es/types/components/autocomplete.d.ts +1 -0
- package/es/types/components/autocomplete2.d.ts +1 -0
- package/es/types/components/badge.d.ts +3 -3
- package/es/types/components/box.d.ts +17 -2
- package/es/types/components/breakpoints-provider.d.ts +1 -1
- package/es/types/components/flex.d.ts +4 -10
- package/es/types/components/icon.d.ts +2 -2
- package/es/types/components/index.d.ts +1 -0
- package/es/types/components/modal.d.ts +1 -1
- package/es/types/components/nav.d.ts +16 -9
- package/es/types/components/pagination.d.ts +3 -3
- package/es/types/components/popover.d.ts +1 -0
- package/es/types/components/progress.d.ts +1 -0
- package/es/types/components/radio.d.ts +2 -11
- package/es/types/components/select.d.ts +3 -2
- package/es/types/components/slider.d.ts +1 -0
- package/es/types/components/spinner.d.ts +1 -0
- package/es/types/components/stack.d.ts +6 -2
- package/es/types/components/switch.d.ts +3 -2
- package/es/types/components/tab.d.ts +1 -1
- package/es/types/components/text-area.d.ts +21 -0
- package/es/types/components/text-button.d.ts +3 -7
- package/es/types/components/text-input.d.ts +1 -0
- package/es/types/components/text-toggle.d.ts +0 -1
- package/es/types/components/text.d.ts +22 -9
- package/es/types/components/textarea.d.ts +1 -0
- package/es/types/components/toast.d.ts +1 -0
- package/es/types/components/tooltip.d.ts +1 -0
- package/es/types/foundational/menu.d.ts +1 -1
- package/es/types/shared.d.ts +12 -9
- package/package.json +1 -1
- package/es/icons/icon-brush.js +0 -17
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconExit = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 28 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M15.5 7.5v1.51c.644-.102 1.239-.26 1.869-.429.41-.11.837-.223 1.302-.328 1.691-.381 3.503-.482 5.705.797 2.252 1.31 3.159 3.628 3.472 5.84.313 2.218.076 4.607-.21 6.5-.522 3.454-1.452 6.5-2.794 8.728-1.335 2.214-3.258 3.88-5.78 3.88-1.343 0-2.17-.502-2.739-.847l-.175-.106c-.457-.27-.956-.538-2.15-.538s-1.694.269-2.153.539l-.175.105c-.57.345-1.397.848-2.74.848-2.522 0-4.445-1.667-5.78-3.881C1.81 27.89.881 24.844.358 21.39c-.286-1.893-.523-4.282-.21-6.5.313-2.212 1.22-4.53 3.472-5.84a8 8 0 0 1 1.726-.762A7.47 7.47 0 0 1 4 4V1.5A1.5 1.5 0 0 1 5.5 0H8a7.49 7.49 0 0 1 6 3 7.49 7.49 0 0 1 6-3h1.5a1.5 1.5 0 0 1 0 3H20a4.5 4.5 0 0 0-4.5 4.5m-3 1v-1A4.5 4.5 0 0 0 8 3H7v1a4.5 4.5 0 0 0 4.5 4.5zm1.5 3.63c1.739 0 3.246-.403 4.404-.714.34-.09.65-.174.927-.236 1.22-.276 2.194-.317 3.538.464 1.116.65 1.756 1.886 2.008 3.666.251 1.776.07 3.817-.205 5.631-.49 3.242-1.334 5.863-2.398 7.628-1.071 1.778-2.187 2.43-3.21 2.43-.486 0-.662-.105-1.2-.425l-.19-.114c-.809-.476-1.829-.953-3.674-.953s-2.866.477-3.674.953l-.191.113c-.54.32-.717.426-1.202.426-1.023 0-2.14-.652-3.211-2.43-1.064-1.765-1.907-4.385-2.398-7.628-.274-1.814-.456-3.855-.205-5.63.252-1.781.892-3.018 2.009-3.667 1.343-.78 2.317-.74 3.54-.464.276.062.587.145.927.236 1.16.311 2.667.715 4.405.715",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconExit;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconBall = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 34 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M15.5 4.08a13.9 13.9 0 0 0-6.845 2.678c.853.74 1.548 1.736 2.076 2.793.944 1.887 1.553 4.307 1.722 6.949H15.5zm3 0V16.5h3.047c.169-2.642.779-5.062 1.722-6.95.529-1.056 1.223-2.052 2.076-2.792A13.9 13.9 0 0 0 18.5 4.079m-3 15.42h-3.047c-.169 2.642-.778 5.061-1.722 6.949-.528 1.056-1.223 2.053-2.076 2.793A13.9 13.9 0 0 0 15.5 31.92zm3 12.42V19.5h3.047c.169 2.642.779 5.061 1.722 6.949.529 1.056 1.223 2.053 2.076 2.793A13.9 13.9 0 0 1 18.5 31.92M3.08 16.5a13.94 13.94 0 0 1 3.346-7.676c.508.34 1.077.98 1.621 2.069.715 1.429 1.235 3.376 1.399 5.607zm3.346 10.676A13.94 13.94 0 0 1 3.079 19.5h6.367c-.164 2.23-.684 4.178-1.399 5.607-.544 1.089-1.113 1.729-1.621 2.069M30.92 19.5a13.94 13.94 0 0 1-3.347 7.676c-.508-.34-1.077-.98-1.621-2.069-.715-1.429-1.235-3.376-1.399-5.607zM27.574 8.824a13.94 13.94 0 0 1 3.347 7.676h-6.367c.164-2.23.684-4.178 1.399-5.607.544-1.089 1.113-1.729 1.621-2.069M0 18C0 8.611 7.611 1 17 1s17 7.611 17 17-7.611 17-17 17S0 27.389 0 18",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconBall;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconBranching = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 32 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M10.5 7.5a5.5 5.5 0 1 1 7 5.293V16.5h6A4.5 4.5 0 0 1 28 21v2.207a5.5 5.5 0 1 1-3 0V21a1.5 1.5 0 0 0-1.5-1.5h-15A1.5 1.5 0 0 0 7 21v2.207a5.5 5.5 0 1 1-3 0V21a4.5 4.5 0 0 1 4.5-4.5h6v-3.707a5.5 5.5 0 0 1-4-5.293M16 5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 26a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m21 0a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconBranching;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconCar = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 34 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M13 4a4.5 4.5 0 0 0-3.6 1.8l-4.69 6.253-.26-.214a1.5 1.5 0 0 0-.95-.339h-2a1.5 1.5 0 0 0 0 3h1.375L1.9 15.8a4.5 4.5 0 0 0-.9 2.7v12A1.5 1.5 0 0 0 2.5 32h4a1.5 1.5 0 0 0 1.307-.765L9.065 29h15.87l1.258 2.235A1.5 1.5 0 0 0 27.5 32h4a1.5 1.5 0 0 0 1.5-1.5v-12a4.5 4.5 0 0 0-.9-2.7l-.975-1.3H32.5a1.5 1.5 0 0 0 0-3h-2a1.5 1.5 0 0 0-.95.34l-.26.213L24.6 5.8A4.5 4.5 0 0 0 21 4zm13.965 9.954L22.2 7.6A1.5 1.5 0 0 0 21 7h-8a1.5 1.5 0 0 0-1.2.6l-4.765 6.354L9.12 15.66c.268.22.604.339.95.339h13.858a1.5 1.5 0 0 0 .95-.34zM5.233 16.356 4.3 17.6a1.5 1.5 0 0 0-.3.9V29h1.623l1.257-2.235 1.952-3.471A4.5 4.5 0 0 1 12.754 21h8.492a4.5 4.5 0 0 1 3.922 2.294l1.952 3.47L28.377 29H30V18.5a1.5 1.5 0 0 0-.3-.9l-.933-1.244-1.988 1.627A4.5 4.5 0 0 1 23.929 19H10.071a4.5 4.5 0 0 1-2.85-1.017zM23.248 26H10.752l.695-1.235A1.5 1.5 0 0 1 12.755 24h8.49a1.5 1.5 0 0 1 1.308.765z",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconCar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconDog = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 32 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M16 2c-3.329 0-5.137.569-6.43 1.226l-.015.008-.774-.516c-1.29-.86-3.265-1.13-4.702.235-1.347 1.28-2.866 3.34-3.521 5.635-.56 1.957-.698 4.297-.417 6.194.14.941.399 1.892.852 2.651.243.406.586.823 1.04 1.124.073 1.005.22 2.348.514 3.71.323 1.497.857 3.182 1.793 4.45 1.289 1.745 2.76 2.6 4.118 2.985 1.098.31 2.105.297 2.64.285a5.002 5.002 0 0 0 9.805 0c.534.012 1.54.025 2.637-.285 1.36-.386 2.83-1.24 4.119-2.986.936-1.267 1.47-2.952 1.793-4.449.294-1.361.44-2.704.514-3.71a3.5 3.5 0 0 0 1.04-1.124c.454-.76.713-1.71.853-2.65.28-1.898.142-4.238-.417-6.195-.655-2.295-2.174-4.355-3.521-5.635-1.437-1.365-3.412-1.095-4.702-.235l-.775.516-.016-.008C21.136 2.57 19.328 2 16 2m8.614 3.393c.3.4.6.838.889 1.298a16 16 0 0 1 1.314 2.55c.345.868.613 1.832.613 2.764 0 .166.111.61.436 1.267.282.569.64 1.13.944 1.527q.045-.21.081-.456c.22-1.478.108-3.387-.333-4.93-.471-1.65-1.632-3.268-2.703-4.285a.47.47 0 0 0-.344-.127c-.17 0-.398.06-.627.213zm-17.497-.18.268.18c-.3.4-.601.838-.889 1.298a16 16 0 0 0-1.314 2.55c-.345.868-.613 1.832-.613 2.764 0 .166-.112.61-.437 1.267a10 10 0 0 1-.942 1.526 8 8 0 0 1-.081-.455c-.22-1.478-.108-3.387.333-4.93.471-1.65 1.633-3.268 2.704-4.285a.47.47 0 0 1 .343-.127c.17 0 .398.06.628.213M16 31a2 2 0 0 1-1.982-1.732 8.6 8.6 0 0 0 1.63-1.156q.185-.165.352-.328.165.162.352.328c.428.381.979.807 1.63 1.156A2 2 0 0 1 16 31m-2.754-4.794c-1.272-.594-2.375-1.625-3.062-3.092a3.2 3.2 0 0 1-.296-.98c-.05-.44.004-1.056.45-1.602.502-.615 1.269-.972 2.12-1.188.88-.223 2.037-.344 3.544-.344s2.664.12 3.543.344c.851.216 1.618.573 2.12 1.189.444.546.498 1.162.447 1.601a3.2 3.2 0 0 1-.296.98c-.687 1.467-1.79 2.498-3.062 3.093.627.474 1.286.776 1.904.776l.317.003c.534.008 1.086.016 1.748-.17.733-.209 1.637-.683 2.523-1.882.554-.75.979-1.936 1.273-3.3.287-1.33.418-2.673.477-3.621.023-.375-.125-.826-.488-1.286a12.7 12.7 0 0 1-1.33-2.124c-.363-.732-.748-1.701-.748-2.598 0-.398-.125-.961-.4-1.655a13 13 0 0 0-1.07-2.068 15 15 0 0 0-1.257-1.73 7 7 0 0 0-.495-.526c-.089-.082-.14-.12-.157-.133l-.005-.004C20.246 5.485 18.916 5 16 5s-4.246.485-5.047.889l-.005.004a2 2 0 0 0-.156.133 7 7 0 0 0-.496.526 15 15 0 0 0-1.256 1.73c-.422.675-.8 1.39-1.07 2.068-.276.694-.4 1.258-.4 1.655 0 .897-.386 1.866-.748 2.598a12.7 12.7 0 0 1-1.33 2.124c-.363.46-.512.91-.488 1.286.058.948.19 2.292.476 3.621.295 1.364.72 2.55 1.274 3.3.886 1.2 1.79 1.673 2.523 1.881.661.187 1.214.18 1.747.171l.318-.003c.618 0 1.277-.303 1.905-.777m5.619-3.939c-1.33 2.061-4.4 2.062-5.73 0l.062-.015c.547-.14 1.433-.252 2.805-.252s2.257.113 2.804.252zM11 13a2.001 2.001 0 1 0 .001 4.002A2.001 2.001 0 0 0 11 13m10 0a2.001 2.001 0 1 0 .001 4.002A2.001 2.001 0 0 0 21 13",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconDog;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconExit = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 34 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M24.94 25.56a1.5 1.5 0 0 0 2.12 0l6.5-6.5a1.5 1.5 0 0 0 0-2.121l-6.499-6.5a1.5 1.5 0 0 0-2.121 2.122l3.939 3.939h-16.38a1.5 1.5 0 1 0 0 3h16.379l-3.939 3.939a1.5 1.5 0 0 0 0 2.121M3 8.5A1.5 1.5 0 0 1 4.5 7h12a1.5 1.5 0 0 0 0-3h-12A4.5 4.5 0 0 0 0 8.5v19A4.5 4.5 0 0 0 4.5 32h12a1.5 1.5 0 0 0 0-3h-12A1.5 1.5 0 0 1 3 27.5z",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconExit;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconFlag = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 28 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M1.5 1A1.5 1.5 0 0 1 3 2.5v1.705c1.138-.36 2.69-.642 4.75-.642 2.634 0 4.818.873 6.724 1.636l.084.033c1.98.793 3.678 1.456 5.693 1.456 2.175 0 3.546-.362 4.326-.674.392-.157.641-.304.775-.393q.1-.067.12-.087h.001a1.5 1.5 0 0 1 2.529 1.091v17.189a1.5 1.5 0 0 1-.44 1.06l-1.06-1.06c1.06 1.06 1.06 1.061 1.059 1.062l-.002.002-.003.003-.008.007-.016.016a3 3 0 0 1-.153.135q-.134.113-.363.267c-.306.204-.74.448-1.325.682-1.173.469-2.927.888-5.44.888-2.634 0-4.817-.873-6.723-1.636l-.084-.034c-1.98-.792-3.679-1.455-5.694-1.455-2.174 0-3.545.362-4.326.674a5 5 0 0 0-.424.19V33.5a1.5 1.5 0 0 1-3 0v-31A1.5 1.5 0 0 1 1.5 1M3 7.427v13.967c1.138-.36 2.69-.643 4.75-.643 2.634 0 4.818.874 6.724 1.636l.084.034c1.98.792 3.678 1.455 5.693 1.455 2.175 0 3.546-.361 4.326-.674q.25-.1.424-.19V9.045c-1.138.36-2.689.643-4.75.643-2.634 0-4.817-.874-6.723-1.636l-.084-.034c-1.98-.792-3.679-1.455-5.694-1.455-2.174 0-3.545.361-4.326.674a5 5 0 0 0-.424.19m22.442-1.864.005-.004-.003.002",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconFlag;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
+
|
|
6
|
+
const IconSymbols = props => ___EmotionJSX("svg", _extends({
|
|
7
|
+
viewBox: "0 0 32 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
+
}, props), ___EmotionJSX("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M0 3.5A1.5 1.5 0 0 1 1.5 2h12a1.5 1.5 0 0 1 0 3h-12A1.5 1.5 0 0 1 0 3.5m0 4A1.5 1.5 0 0 1 1.5 6h12a1.5 1.5 0 0 1 0 3H9v6.5a1.5 1.5 0 0 1-3 0V9H1.5A1.5 1.5 0 0 1 0 7.5m25.646-5.233a1.5 1.5 0 0 1 1.38-.171l2.596.973A3.66 3.66 0 0 1 32 6.5a1.5 1.5 0 0 1-3 0 .66.66 0 0 0-.431-.622L28 5.665V13c0 1.394-.9 2.43-1.877 3.04-.997.623-2.282.96-3.623.96-1.34 0-2.626-.337-3.623-.96C17.9 15.43 17 14.394 17 13s.9-2.43 1.877-3.04C19.874 9.337 21.159 9 22.5 9a7.4 7.4 0 0 1 2.5.42V3.5a1.5 1.5 0 0 1 .646-1.233m-.703 10.6C25 12.95 25 12.99 25 13V13c0 .008 0 .049-.057.132a1.4 1.4 0 0 1-.41.364c-.45.281-1.165.504-2.033.504s-1.583-.223-2.033-.504a1.4 1.4 0 0 1-.41-.364C20 13.05 20 13.008 20 13s0-.049.057-.132c.062-.093.188-.225.41-.364.45-.281 1.165-.504 2.033-.504s1.583.223 2.033.504c.222.139.348.271.41.364M23 22a3 3 0 1 1-6 0 3 3 0 0 1 6 0m9 9a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-.44-9.44a1.5 1.5 0 0 0-2.12-2.12l-12 12a1.5 1.5 0 0 0 2.12 2.12zM4 22.536c0-.295.24-.535.535-.535h1.91a.555.555 0 0 1 .361.976l-1.259 1.08-1.35-1.106A.54.54 0 0 1 4 22.535m4.759 2.719-.853.73 2.193 1.795 1.34-1.34a1.5 1.5 0 0 1 2.122 2.122l-1.128 1.128 2.017 1.65a1.5 1.5 0 0 1-1.9 2.322l-2.25-1.84-.86.861A4.5 4.5 0 0 1 6.256 34H3.555a3.555 3.555 0 0 1-2.314-6.254l1.993-1.708-.937-.766A3.535 3.535 0 0 1 4.535 19h1.91a3.555 3.555 0 0 1 2.314 6.254m-5.565 4.77 2.398-2.056 2.375 1.943-.649.65a1.5 1.5 0 0 1-1.06.439H3.554a.555.555 0 0 1-.361-.976",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
export default IconSymbols;
|
package/es/icons/index.js
CHANGED
|
@@ -84,7 +84,14 @@ export { default as IconContentAlignCenter } from './icon-content-align-center';
|
|
|
84
84
|
export { default as IconContentAlignBottom } from './icon-content-align-bottom';
|
|
85
85
|
export { default as IconColumnOne } from './icon-column-one';
|
|
86
86
|
export { default as IconColumnTwo } from './icon-column-two';
|
|
87
|
-
export { default as IconBrush } from './icon-brush';
|
|
88
87
|
export { default as IconBolt } from './icon-bolt';
|
|
89
88
|
export { default as IconBoltFilled } from './icon-bolt-filled';
|
|
90
|
-
export { default as IconSquare } from './icon-square';
|
|
89
|
+
export { default as IconSquare } from './icon-square';
|
|
90
|
+
export { default as IconBranching } from './icon-branching';
|
|
91
|
+
export { default as IconExit } from './icon-exit';
|
|
92
|
+
export { default as IconDog } from './icon-dog';
|
|
93
|
+
export { default as IconApple } from './icon-apple';
|
|
94
|
+
export { default as IconBall } from './icon-ball';
|
|
95
|
+
export { default as IconCar } from './icon-car';
|
|
96
|
+
export { default as IconSymbols } from './icon-symbols';
|
|
97
|
+
export { default as IconFlag } from './icon-flag';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { FC
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import { BoxProps } from './box';
|
|
3
|
-
import { DimensionPropType, AlignmentType,
|
|
3
|
+
import { DimensionPropType, AlignmentType, DirectionType } from '../shared';
|
|
4
4
|
|
|
5
|
-
export interface ArrangeProps extends BoxProps
|
|
5
|
+
export interface ArrangeProps extends BoxProps {
|
|
6
6
|
gap?: DimensionPropType;
|
|
7
7
|
columnGap?: DimensionPropType;
|
|
8
8
|
rowGap?: DimensionPropType;
|
|
9
9
|
alignItems?: AlignmentType;
|
|
10
10
|
justifyItems?: AlignmentType;
|
|
11
|
-
justifyContent?:
|
|
12
|
-
alignContent?:
|
|
13
|
-
columns?: string |
|
|
14
|
-
rows?: string |
|
|
11
|
+
justifyContent?: AlignmentType;
|
|
12
|
+
alignContent?: AlignmentType;
|
|
13
|
+
columns?: number | string | object;
|
|
14
|
+
rows?: number | string | object;
|
|
15
15
|
autoFlow?: DirectionType;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -12,6 +12,7 @@ export interface AutocompleteOption {
|
|
|
12
12
|
|
|
13
13
|
export interface AutocompleteProps
|
|
14
14
|
extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
15
|
+
children?: React.ReactNode;
|
|
15
16
|
options: AutocompleteOption[];
|
|
16
17
|
value?: string;
|
|
17
18
|
onChange: (_selectedOption: AutocompleteOption) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { FC
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import { ColorPropType } from '../shared';
|
|
3
3
|
|
|
4
|
-
export interface BadgeProps
|
|
4
|
+
export interface BadgeProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
|
+
variant?: 'neutral' | 'danger' | 'warning' | 'success';
|
|
6
7
|
color?: ColorPropType;
|
|
7
8
|
backgroundColor?: ColorPropType;
|
|
8
9
|
borderColor?: ColorPropType;
|
|
9
|
-
variant?: 'neutral' | 'danger' | 'warning' | 'success';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export const Badge: FC<BadgeProps>;
|
|
@@ -7,6 +7,9 @@ import {
|
|
|
7
7
|
OverflowPropType,
|
|
8
8
|
BorderWidthType,
|
|
9
9
|
SideType,
|
|
10
|
+
TransitionPropType,
|
|
11
|
+
CursorPropType,
|
|
12
|
+
AlignSelfPropType,
|
|
10
13
|
} from '../shared';
|
|
11
14
|
import { ShadowTokens } from '../tokens';
|
|
12
15
|
|
|
@@ -15,6 +18,7 @@ export interface BoxProps
|
|
|
15
18
|
RefAttributes<HTMLDivElement>,
|
|
16
19
|
Partial<HTMLDivElement>,
|
|
17
20
|
DOMAttributes<HTMLDivElement> {
|
|
21
|
+
children?: React.ReactNode;
|
|
18
22
|
color?: ColorPropType;
|
|
19
23
|
colorHover?: ColorPropType;
|
|
20
24
|
backgroundColor?: ColorPropType;
|
|
@@ -30,8 +34,8 @@ export interface BoxProps
|
|
|
30
34
|
minHeight?: DimensionPropType;
|
|
31
35
|
maxHeight?: DimensionPropType;
|
|
32
36
|
radius?: RadiusPropType;
|
|
33
|
-
shadow?: keyof ShadowTokens;
|
|
34
|
-
shadowHover?: keyof ShadowTokens;
|
|
37
|
+
shadow?: keyof ShadowTokens | string;
|
|
38
|
+
shadowHover?: keyof ShadowTokens | string;
|
|
35
39
|
padding?: DimensionPropType;
|
|
36
40
|
paddingTop?: DimensionPropType;
|
|
37
41
|
paddingBottom?: DimensionPropType;
|
|
@@ -54,6 +58,17 @@ export interface BoxProps
|
|
|
54
58
|
overflow?: OverflowPropType;
|
|
55
59
|
overflowX?: OverflowPropType;
|
|
56
60
|
overflowY?: OverflowPropType;
|
|
61
|
+
transition?: TransitionPropType;
|
|
62
|
+
transitionHover?: TransitionPropType;
|
|
63
|
+
cursor?: CursorPropType;
|
|
64
|
+
opacity?: string;
|
|
65
|
+
opacityHover?: string;
|
|
66
|
+
order?: string | number | object;
|
|
67
|
+
alignSelf?: AlignSelfPropType;
|
|
68
|
+
flex?: string | object;
|
|
69
|
+
aspectRatio?: string;
|
|
70
|
+
zIndex?: number | string;
|
|
71
|
+
tag?: string;
|
|
57
72
|
}
|
|
58
73
|
|
|
59
74
|
export const Box: FC<BoxProps>;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
import { BoxProps } from './box';
|
|
3
|
-
import {
|
|
4
|
-
DirectionType,
|
|
5
|
-
FlexWrapType,
|
|
6
|
-
ContentPositionType,
|
|
7
|
-
AlignmentType,
|
|
8
|
-
DimensionPropType,
|
|
9
|
-
} from '../shared';
|
|
3
|
+
import { DimensionPropType, DirectionType, FlexWrapType, AlignmentType } from '../shared';
|
|
10
4
|
|
|
11
5
|
export interface FlexProps extends BoxProps {
|
|
12
6
|
direction?: DirectionType;
|
|
13
7
|
wrap?: FlexWrapType;
|
|
14
|
-
justifyContent?:
|
|
8
|
+
justifyContent?: AlignmentType;
|
|
15
9
|
alignItems?: AlignmentType;
|
|
16
|
-
alignContent?:
|
|
10
|
+
alignContent?: AlignmentType;
|
|
17
11
|
gap?: DimensionPropType;
|
|
18
12
|
columnGap?: DimensionPropType;
|
|
19
13
|
rowGap?: DimensionPropType;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import { ColorPropType } from '../shared';
|
|
2
|
+
import { ColorPropType, IconSizePropType } from '../shared';
|
|
3
3
|
|
|
4
4
|
export interface IconProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
icon?: React.ReactNode;
|
|
6
6
|
hasEvenBoundary?: boolean;
|
|
7
|
-
size?:
|
|
7
|
+
size?: IconSizePropType;
|
|
8
8
|
color?: ColorPropType;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -2,8 +2,8 @@ import type { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } fro
|
|
|
2
2
|
import { DimensionPropType, RadiusPropType } from '../shared';
|
|
3
3
|
|
|
4
4
|
export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
isOpen: boolean;
|
|
6
5
|
children?: React.ReactNode;
|
|
6
|
+
isOpen: boolean;
|
|
7
7
|
onClose?: () => void;
|
|
8
8
|
hasCloseButton?: boolean;
|
|
9
9
|
title?: React.ReactNode;
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import type { FC
|
|
2
|
-
import { DirectionType } from '../shared';
|
|
3
|
-
import { BoxProps } from './box';
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import { TextSizePropType, DirectionType } from '../shared';
|
|
4
3
|
|
|
5
|
-
export interface
|
|
6
|
-
|
|
4
|
+
export interface NavItemProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
isActive?: boolean;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export interface
|
|
10
|
-
isActive?: boolean;
|
|
11
|
-
href?: string;
|
|
12
|
-
icon?: React.ReactNode;
|
|
9
|
+
export interface NavProps {
|
|
13
10
|
children?: React.ReactNode;
|
|
11
|
+
direction?: DirectionType;
|
|
12
|
+
size?: TextSizePropType;
|
|
13
|
+
justifyContent?:
|
|
14
|
+
| 'start'
|
|
15
|
+
| 'end'
|
|
16
|
+
| 'center'
|
|
17
|
+
| 'stretch'
|
|
18
|
+
| 'space-around'
|
|
19
|
+
| 'space-between'
|
|
20
|
+
| 'space-evenly';
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
export const Nav: FC<NavProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { FC
|
|
1
|
+
import type { FC } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface PaginationProps
|
|
3
|
+
export interface PaginationProps {
|
|
4
4
|
amount: number;
|
|
5
5
|
selected: number;
|
|
6
|
-
onChange: (
|
|
6
|
+
onChange: (page: number) => void;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export const Pagination: FC<PaginationProps>;
|
|
@@ -3,6 +3,7 @@ import { DimensionPropType } from '../shared';
|
|
|
3
3
|
import { MenuPlacement } from '../foundational/menu';
|
|
4
4
|
|
|
5
5
|
export interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
padding?: DimensionPropType;
|
|
7
8
|
width?: DimensionPropType;
|
|
8
9
|
placement?: MenuPlacement;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FC, InputHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
id: string;
|
|
5
6
|
isDisabled?: boolean;
|
|
6
7
|
isChecked?: boolean;
|
|
@@ -10,14 +11,4 @@ export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
10
11
|
onChange?: (_e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
export
|
|
14
|
-
onChange?: (_e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
15
|
-
isDisabled?: boolean;
|
|
16
|
-
isChecked?: boolean;
|
|
17
|
-
name?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const Radio: FC<RadioProps> & {
|
|
21
|
-
Label: FC<LabelHTMLAttributes<HTMLLabelElement> & { children: React.ReactNode }>;
|
|
22
|
-
Box: FC<RadioBoxProps>;
|
|
23
|
-
};
|
|
14
|
+
export const Radio: FC<RadioProps>;
|
|
@@ -3,15 +3,16 @@ import { ColorPropType } from '../shared';
|
|
|
3
3
|
|
|
4
4
|
export interface SelectOption {
|
|
5
5
|
value: string;
|
|
6
|
-
|
|
6
|
+
content?: React.ReactNode | string;
|
|
7
7
|
isDisabled?: boolean;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'onChange'> {
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
id?: string;
|
|
12
13
|
value?: string;
|
|
13
14
|
defaultValue?: string;
|
|
14
|
-
onChange?: (
|
|
15
|
+
onChange?: (option: SelectOption) => void;
|
|
15
16
|
options: SelectOption[];
|
|
16
17
|
placeholder?: string;
|
|
17
18
|
label?: React.ReactNode;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { FC, HTMLAttributes } from 'react';
|
|
2
2
|
import { BoxProps } from './box';
|
|
3
|
-
import { DimensionPropType, AlignmentType } from '../shared';
|
|
3
|
+
import { DimensionPropType, AlignmentType, DirectionType, FlexWrapType } from '../shared';
|
|
4
4
|
|
|
5
|
-
export interface StackProps extends BoxProps
|
|
5
|
+
export interface StackProps extends BoxProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
gap?: DimensionPropType;
|
|
8
|
+
direction?: DirectionType;
|
|
9
|
+
wrap?: FlexWrapType;
|
|
7
10
|
alignItems?: AlignmentType;
|
|
11
|
+
justifyContent?: AlignmentType;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
14
|
export const Stack: FC<StackProps>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { FC, InputHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
id: string;
|
|
5
6
|
isChecked?: boolean;
|
|
7
|
+
onChange?: (_event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
6
8
|
isDisabled?: boolean;
|
|
7
|
-
|
|
8
|
-
label?: React.ReactNode;
|
|
9
|
+
label?: string;
|
|
9
10
|
hint?: React.ReactNode;
|
|
10
11
|
}
|
|
11
12
|
|
|
@@ -7,7 +7,7 @@ export interface TabGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
hasFullWidth?: boolean;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
export interface TabProps extends HTMLAttributes<
|
|
10
|
+
export interface TabProps extends HTMLAttributes<HTMLDivElement> {
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
isActive?: boolean;
|
|
13
13
|
onClick?: () => void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FC, TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { ColorPropType } from '../shared';
|
|
3
|
+
|
|
4
|
+
export interface TextareaProps
|
|
5
|
+
extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'> {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onChange?: (_event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
label?: React.ReactNode;
|
|
12
|
+
hint?: React.ReactNode;
|
|
13
|
+
hasError?: boolean;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
isReadOnly?: boolean;
|
|
17
|
+
backgroundColor?: ColorPropType;
|
|
18
|
+
rows?: number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const Textarea: FC<TextareaProps>;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import type { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface TextButtonProps
|
|
4
|
-
extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>,
|
|
5
|
-
Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
|
|
3
|
+
export interface TextButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
6
4
|
children?: React.ReactNode;
|
|
7
|
-
|
|
8
|
-
iconPosition?: 'left' | 'right';
|
|
9
|
-
variant?: 'neutral' | 'danger';
|
|
5
|
+
variant?: 'neutral' | 'accent' | 'danger';
|
|
10
6
|
isDisabled?: boolean;
|
|
11
|
-
trimSide?: 'left' | 'right';
|
|
12
7
|
type?: 'button' | 'submit' | 'reset';
|
|
13
8
|
tag?: 'button' | 'a' | 'span';
|
|
9
|
+
onClick?: (_event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>) => void;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
12
|
export const TextButton: FC<TextButtonProps>;
|
|
@@ -18,6 +18,7 @@ export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
18
18
|
isReadOnly?: boolean;
|
|
19
19
|
backgroundColor?: ColorPropType;
|
|
20
20
|
onClear?: () => void;
|
|
21
|
+
children?: React.ReactNode;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export const TextInput: React.ForwardRefExoticComponent<
|
|
@@ -7,7 +7,6 @@ export interface TextToggleGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
7
7
|
export interface TextToggleProps extends HTMLAttributes<HTMLButtonElement> {
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
isActive?: boolean;
|
|
10
|
-
isDisabled?: boolean;
|
|
11
10
|
}
|
|
12
11
|
|
|
13
12
|
export const TextToggleGroup: FC<TextToggleGroupProps>;
|
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
import type { FC, HTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
ColorPropType,
|
|
4
|
+
TextSizePropType,
|
|
5
|
+
TextTransformType,
|
|
6
|
+
TextDisplayType,
|
|
7
|
+
TextAlignType,
|
|
8
|
+
TextWeightPropType,
|
|
9
|
+
} from '../shared';
|
|
10
|
+
import { textTag } from '../../types';
|
|
3
11
|
|
|
4
|
-
export interface TextProps extends HTMLAttributes<
|
|
12
|
+
export interface TextProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
13
|
children?: React.ReactNode;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
weight?: string;
|
|
14
|
+
size?: TextSizePropType;
|
|
15
|
+
weight?: TextWeightPropType;
|
|
9
16
|
color?: ColorPropType;
|
|
10
|
-
|
|
11
|
-
display?:
|
|
12
|
-
|
|
17
|
+
tag?: typeof textTag;
|
|
18
|
+
display?: TextDisplayType;
|
|
19
|
+
hasEllipsis?: boolean;
|
|
20
|
+
ellipsisLines?: number;
|
|
21
|
+
align?: TextAlignType;
|
|
22
|
+
letterSpacing?: string;
|
|
23
|
+
textTransform?: TextTransformType;
|
|
24
|
+
variant?: 'caps';
|
|
13
25
|
trimTop?: boolean;
|
|
14
|
-
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
export const Text: FC<TextProps>;
|
|
@@ -8,6 +8,7 @@ export interface TooltipProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
8
8
|
zIndex?: number;
|
|
9
9
|
placementMethod?: 'static' | 'dynamic';
|
|
10
10
|
offset?: 'xs' | 's';
|
|
11
|
+
children?: React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export interface TooltipContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -51,7 +51,7 @@ export const MenuGroupTitle: FC<MenuGroupTitleProps>;
|
|
|
51
51
|
export const MenuItemDivider: FC;
|
|
52
52
|
|
|
53
53
|
export function useMenuPosition(config: MenuPositionConfig): {
|
|
54
|
-
refs:
|
|
54
|
+
refs: React.RefObject<HTMLElement>[];
|
|
55
55
|
reference: (node: HTMLElement | null) => void;
|
|
56
56
|
floating: (node: HTMLElement | null) => void;
|
|
57
57
|
floatingStyles: React.CSSProperties;
|
package/es/types/shared.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
SpaceTokens,
|
|
3
|
+
TextTokens,
|
|
4
|
+
ColorTokens,
|
|
5
|
+
RadiusTokens,
|
|
6
|
+
TransitionTokens,
|
|
7
|
+
IconTokens,
|
|
8
|
+
WeightTokens,
|
|
9
|
+
} from './tokens';
|
|
2
10
|
import {
|
|
3
11
|
overflows,
|
|
4
12
|
axisAlignments,
|
|
@@ -17,8 +25,10 @@ import {
|
|
|
17
25
|
export type OverflowPropType = (typeof overflows)[number];
|
|
18
26
|
export type DimensionPropType = number | string | object | keyof SpaceTokens;
|
|
19
27
|
export type TextSizePropType = number | string | object | keyof TextTokens;
|
|
28
|
+
export type TextWeightPropType = keyof WeightTokens | string;
|
|
20
29
|
export type ColorPropType = string | keyof ColorTokens;
|
|
21
30
|
export type RadiusPropType = number | string | keyof RadiusTokens;
|
|
31
|
+
export type TransitionPropType = string | keyof TransitionTokens;
|
|
22
32
|
export type AlignmentType = (typeof axisAlignments)[number];
|
|
23
33
|
export type DistributionType = (typeof distributions)[number];
|
|
24
34
|
export type ContentPositionType = AlignmentType | DistributionType;
|
|
@@ -31,11 +41,4 @@ export type BorderWidthType = (typeof borderWidths)[number];
|
|
|
31
41
|
export type TextTransformType = (typeof textTransforms)[number];
|
|
32
42
|
export type TextDisplayType = (typeof textDisplays)[number];
|
|
33
43
|
export type TextAlignType = (typeof textAlignments)[number];
|
|
34
|
-
|
|
35
|
-
export interface TextTokens {
|
|
36
|
-
s: string;
|
|
37
|
-
m: string;
|
|
38
|
-
l: string;
|
|
39
|
-
xl: string;
|
|
40
|
-
xxl: string;
|
|
41
|
-
}
|
|
44
|
+
export type IconSizePropType = number | string | keyof IconTokens;
|
package/package.json
CHANGED
package/es/icons/icon-brush.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
5
|
-
|
|
6
|
-
const IconBrush = props => ___EmotionJSX("svg", _extends({
|
|
7
|
-
viewBox: "0 0 28 36",
|
|
8
|
-
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
-
}, props), ___EmotionJSX("path", {
|
|
11
|
-
fillRule: "evenodd",
|
|
12
|
-
clipRule: "evenodd",
|
|
13
|
-
d: "M4.5 3C3.67157 3 3 3.67157 3 4.5V16H25V4.5C25 3.67157 24.3284 3 23.5 3H22V12.5C22 13.3284 21.3284 14 20.5 14C19.6716 14 19 13.3284 19 12.5V3H16V8.5C16 9.32843 15.3284 10 14.5 10C13.6716 10 13 9.32843 13 8.5V3H4.5ZM25 19H3V22H7.5C9.98528 22 12 24.0147 12 26.5V30.5V33H16V30.5V26.5C16 24.0147 18.0147 22 20.5 22H25V19ZM0 4.5C0 2.01472 2.01472 0 4.5 0H14.5H20.5H23.5C25.9853 0 28 2.01472 28 4.5V17.5V23.5C28 24.3284 27.3284 25 26.5 25H20.5C19.6716 25 19 25.6716 19 26.5V30.5V34.5C19 35.3284 18.3284 36 17.5 36H10.5C9.67157 36 9 35.3284 9 34.5V30.5V26.5C9 25.6716 8.32843 25 7.5 25H1.5C0.671573 25 0 24.3284 0 23.5V17.5V4.5Z",
|
|
14
|
-
fill: "currentColor"
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
export default IconBrush;
|