@appquality/unguess-design-system 3.1.50 → 3.1.52
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 +26 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +81 -28
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/buttons/utils.d.ts +36 -36
- package/build/stories/color-swatch/_types.d.ts +14 -0
- package/build/stories/color-swatch/index.d.ts +3 -0
- package/build/stories/color-swatch/index.stories.d.ts +4 -0
- package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
- package/build/stories/editor/index.stories.d.ts +1 -0
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
# v3.1.52 (Wed Nov 08 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- 🔀 chore(color-swatch): update import statement for ColorSwatch component [#275](https://github.com/AppQuality/unguess-design-system/pull/275) ([@marcbon](https://github.com/marcbon))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v3.1.51 (Wed Nov 08 2023)
|
|
14
|
+
|
|
15
|
+
#### 🐛 Bug Fix
|
|
16
|
+
|
|
17
|
+
- Color swatch [#274](https://github.com/AppQuality/unguess-design-system/pull/274) ([@iDome89](https://github.com/iDome89) [@marcbon](https://github.com/marcbon))
|
|
18
|
+
- Color swatch [#273](https://github.com/AppQuality/unguess-design-system/pull/273) ([@iDome89](https://github.com/iDome89) [@marcbon](https://github.com/marcbon))
|
|
19
|
+
|
|
20
|
+
#### Authors: 2
|
|
21
|
+
|
|
22
|
+
- [@iDome89](https://github.com/iDome89)
|
|
23
|
+
- Marco Bonomo ([@marcbon](https://github.com/marcbon))
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
1
27
|
# v3.1.50 (Mon Oct 09 2023)
|
|
2
28
|
|
|
3
29
|
#### 🐛 Bug Fix
|
package/build/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./stories/charts/sunburst";
|
|
|
22
22
|
export * from "./stories/charts/waffle";
|
|
23
23
|
export * from "./stories/charts/sentiment";
|
|
24
24
|
export * from "./stories/close";
|
|
25
|
+
export * from "./stories/color-swatch";
|
|
25
26
|
export * from "./stories/drawers";
|
|
26
27
|
export * as DropdownField from "./stories/dropdowns/field";
|
|
27
28
|
export * from "./stories/dropdowns/item";
|
package/build/index.js
CHANGED
|
@@ -24,6 +24,8 @@ var pie = require('@nivo/pie');
|
|
|
24
24
|
var sunburst = require('@nivo/sunburst');
|
|
25
25
|
var waffle = require('@nivo/waffle');
|
|
26
26
|
var line = require('@nivo/line');
|
|
27
|
+
var containerUtilities = require('@zendeskgarden/container-utilities');
|
|
28
|
+
var reactColorpickers = require('@zendeskgarden/react-colorpickers');
|
|
27
29
|
var reactModals = require('@zendeskgarden/react-modals');
|
|
28
30
|
var reactDropdowns = require('@zendeskgarden/react-dropdowns');
|
|
29
31
|
var reactForms = require('@zendeskgarden/react-forms');
|
|
@@ -819,9 +821,9 @@ Tag.Close = StyledClose;
|
|
|
819
821
|
Tag.SecondaryText = StyledSpan;
|
|
820
822
|
|
|
821
823
|
var _path$x;
|
|
822
|
-
function _extends$
|
|
824
|
+
function _extends$J() { _extends$J = 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$J.apply(this, arguments); }
|
|
823
825
|
var SvgUgSquare = function SvgUgSquare(props) {
|
|
824
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
826
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$J({
|
|
825
827
|
width: 24,
|
|
826
828
|
height: 24,
|
|
827
829
|
viewBox: "0 0 24 24",
|
|
@@ -834,9 +836,9 @@ var SvgUgSquare = function SvgUgSquare(props) {
|
|
|
834
836
|
};
|
|
835
837
|
|
|
836
838
|
var _path$w;
|
|
837
|
-
function _extends$
|
|
839
|
+
function _extends$I() { _extends$I = 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$I.apply(this, arguments); }
|
|
838
840
|
var SvgUgCircle = function SvgUgCircle(props) {
|
|
839
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
841
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$I({
|
|
840
842
|
width: 24,
|
|
841
843
|
height: 24,
|
|
842
844
|
viewBox: "0 0 24 24",
|
|
@@ -849,9 +851,9 @@ var SvgUgCircle = function SvgUgCircle(props) {
|
|
|
849
851
|
};
|
|
850
852
|
|
|
851
853
|
var _path$v;
|
|
852
|
-
function _extends$
|
|
854
|
+
function _extends$H() { _extends$H = 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$H.apply(this, arguments); }
|
|
853
855
|
var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
854
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
856
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$H({
|
|
855
857
|
width: 24,
|
|
856
858
|
height: 24,
|
|
857
859
|
viewBox: "0 0 24 24",
|
|
@@ -864,9 +866,9 @@ var SvgUgTriangle = function SvgUgTriangle(props) {
|
|
|
864
866
|
};
|
|
865
867
|
|
|
866
868
|
var _rect$4, _path$u, _path2$b, _path3$4;
|
|
867
|
-
function _extends$
|
|
869
|
+
function _extends$G() { _extends$G = 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$G.apply(this, arguments); }
|
|
868
870
|
var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
869
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
871
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$G({
|
|
870
872
|
width: 24,
|
|
871
873
|
height: 24,
|
|
872
874
|
viewBox: "0 0 24 24",
|
|
@@ -890,9 +892,9 @@ var SvgCampaignCompleted = function SvgCampaignCompleted(props) {
|
|
|
890
892
|
};
|
|
891
893
|
|
|
892
894
|
var _rect$3, _path$t, _path2$a;
|
|
893
|
-
function _extends$
|
|
895
|
+
function _extends$F() { _extends$F = 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$F.apply(this, arguments); }
|
|
894
896
|
var SvgCampaignLocked = function SvgCampaignLocked(props) {
|
|
895
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
897
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$F({
|
|
896
898
|
width: 24,
|
|
897
899
|
height: 24,
|
|
898
900
|
viewBox: "0 0 24 24",
|
|
@@ -917,9 +919,9 @@ var SvgCampaignLocked = function SvgCampaignLocked(props) {
|
|
|
917
919
|
};
|
|
918
920
|
|
|
919
921
|
var _rect$2, _path$s, _path2$9;
|
|
920
|
-
function _extends$
|
|
922
|
+
function _extends$E() { _extends$E = 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$E.apply(this, arguments); }
|
|
921
923
|
var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
922
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
924
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$E({
|
|
923
925
|
width: 24,
|
|
924
926
|
height: 24,
|
|
925
927
|
viewBox: "0 0 24 24",
|
|
@@ -946,9 +948,9 @@ var SvgCampaignIncoming = function SvgCampaignIncoming(props) {
|
|
|
946
948
|
};
|
|
947
949
|
|
|
948
950
|
var _rect$1, _path$r, _path2$8, _path3$3, _path4$1, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1;
|
|
949
|
-
function _extends$
|
|
951
|
+
function _extends$D() { _extends$D = 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$D.apply(this, arguments); }
|
|
950
952
|
var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
951
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
953
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$D({
|
|
952
954
|
width: 24,
|
|
953
955
|
height: 24,
|
|
954
956
|
viewBox: "0 0 24 24",
|
|
@@ -993,9 +995,9 @@ var SvgCampaignProgress = function SvgCampaignProgress(props) {
|
|
|
993
995
|
};
|
|
994
996
|
|
|
995
997
|
var _g$b, _path$q, _path2$7, _path3$2, _path4, _path5, _path6, _path7, _path8, _path9, _path10, _path11;
|
|
996
|
-
function _extends$
|
|
998
|
+
function _extends$C() { _extends$C = 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$C.apply(this, arguments); }
|
|
997
999
|
var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
998
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1000
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$C({
|
|
999
1001
|
width: 24,
|
|
1000
1002
|
height: 24,
|
|
1001
1003
|
viewBox: "0 0 24 24",
|
|
@@ -1065,9 +1067,9 @@ var SvgCampaignExperiential = function SvgCampaignExperiential(props) {
|
|
|
1065
1067
|
};
|
|
1066
1068
|
|
|
1067
1069
|
var _g$a, _path$p;
|
|
1068
|
-
function _extends$
|
|
1070
|
+
function _extends$B() { _extends$B = 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$B.apply(this, arguments); }
|
|
1069
1071
|
var SvgCampaignFunctional = function SvgCampaignFunctional(props) {
|
|
1070
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1072
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$B({
|
|
1071
1073
|
width: 24,
|
|
1072
1074
|
height: 24,
|
|
1073
1075
|
viewBox: "0 0 24 24",
|
|
@@ -1942,9 +1944,9 @@ const WaffleChart = ({ height, width, data, total, tooltip, }) => {
|
|
|
1942
1944
|
};
|
|
1943
1945
|
|
|
1944
1946
|
var _g$9, _defs$4;
|
|
1945
|
-
function _extends$
|
|
1947
|
+
function _extends$A() { _extends$A = 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$A.apply(this, arguments); }
|
|
1946
1948
|
var SvgSentiment1 = function SvgSentiment1(props) {
|
|
1947
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1949
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$A({
|
|
1948
1950
|
width: 27,
|
|
1949
1951
|
height: 26,
|
|
1950
1952
|
viewBox: "0 0 27 26",
|
|
@@ -1968,9 +1970,9 @@ var SvgSentiment1 = function SvgSentiment1(props) {
|
|
|
1968
1970
|
};
|
|
1969
1971
|
|
|
1970
1972
|
var _g$8, _defs$3;
|
|
1971
|
-
function _extends$
|
|
1973
|
+
function _extends$z() { _extends$z = 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$z.apply(this, arguments); }
|
|
1972
1974
|
var SvgSentiment2 = function SvgSentiment2(props) {
|
|
1973
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
1975
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
|
|
1974
1976
|
width: 27,
|
|
1975
1977
|
height: 26,
|
|
1976
1978
|
viewBox: "0 0 27 26",
|
|
@@ -1994,9 +1996,9 @@ var SvgSentiment2 = function SvgSentiment2(props) {
|
|
|
1994
1996
|
};
|
|
1995
1997
|
|
|
1996
1998
|
var _g$7, _defs$2;
|
|
1997
|
-
function _extends$
|
|
1999
|
+
function _extends$y() { _extends$y = 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$y.apply(this, arguments); }
|
|
1998
2000
|
var SvgSentiment3 = function SvgSentiment3(props) {
|
|
1999
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2001
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
2000
2002
|
width: 27,
|
|
2001
2003
|
height: 26,
|
|
2002
2004
|
viewBox: "0 0 27 26",
|
|
@@ -2026,9 +2028,9 @@ var SvgSentiment3 = function SvgSentiment3(props) {
|
|
|
2026
2028
|
};
|
|
2027
2029
|
|
|
2028
2030
|
var _g$6, _defs$1;
|
|
2029
|
-
function _extends$
|
|
2031
|
+
function _extends$x() { _extends$x = 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$x.apply(this, arguments); }
|
|
2030
2032
|
var SvgSentiment4 = function SvgSentiment4(props) {
|
|
2031
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2033
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
2032
2034
|
width: 27,
|
|
2033
2035
|
height: 26,
|
|
2034
2036
|
viewBox: "0 0 27 26",
|
|
@@ -2058,9 +2060,9 @@ var SvgSentiment4 = function SvgSentiment4(props) {
|
|
|
2058
2060
|
};
|
|
2059
2061
|
|
|
2060
2062
|
var _g$5, _defs;
|
|
2061
|
-
function _extends$
|
|
2063
|
+
function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
|
|
2062
2064
|
var SvgSentiment5 = function SvgSentiment5(props) {
|
|
2063
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2065
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
2064
2066
|
width: 26,
|
|
2065
2067
|
height: 26,
|
|
2066
2068
|
viewBox: "0 0 26 26",
|
|
@@ -2301,6 +2303,56 @@ const UgClose$1 = styled__default["default"](reactNotifications.Close) `
|
|
|
2301
2303
|
*/
|
|
2302
2304
|
const Close = (props) => jsxRuntime.jsx(UgClose$1, Object.assign({}, props));
|
|
2303
2305
|
|
|
2306
|
+
var _circle;
|
|
2307
|
+
function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
|
|
2308
|
+
var SvgCircleFullFill = function SvgCircleFullFill(props) {
|
|
2309
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
2310
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2311
|
+
width: 16,
|
|
2312
|
+
height: 16,
|
|
2313
|
+
focusable: "false",
|
|
2314
|
+
viewBox: "0 0 16 16"
|
|
2315
|
+
}, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
2316
|
+
cx: 8,
|
|
2317
|
+
cy: 8,
|
|
2318
|
+
r: 8,
|
|
2319
|
+
fill: "currentColor"
|
|
2320
|
+
})));
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2323
|
+
const Trigger$1 = styled.styled.div `
|
|
2324
|
+
display: flex;
|
|
2325
|
+
align-items: center;
|
|
2326
|
+
justify-content: flex-start;
|
|
2327
|
+
cursor: pointer;
|
|
2328
|
+
`;
|
|
2329
|
+
const ColorSwatchTrigger = React__default["default"].forwardRef((props, ref) => {
|
|
2330
|
+
var _a;
|
|
2331
|
+
return (jsxRuntime.jsx(Trigger$1, Object.assign({ ref: ref }, props, { style: Object.assign(Object.assign({}, props.style), { color: props.color }) }, { children: (_a = props.children) !== null && _a !== void 0 ? _a : jsxRuntime.jsx(SvgCircleFullFill, {}) })));
|
|
2332
|
+
});
|
|
2333
|
+
const ColorSwatch = ({ colors, rowSize, children, onSelect, }) => {
|
|
2334
|
+
const matrix = containerUtilities.convertToMatrix(colors, rowSize !== null && rowSize !== void 0 ? rowSize : 7);
|
|
2335
|
+
const [color, setColor] = React.useState(matrix[0][0].value);
|
|
2336
|
+
const [rowIndex, setRowIndex] = React.useState(0);
|
|
2337
|
+
const [colIndex, setColIndex] = React.useState(0);
|
|
2338
|
+
const [selectedRowIndex, setSelectedRowIndex] = React.useState(0);
|
|
2339
|
+
const [selectedColIndex, setSelectedColIndex] = React.useState(0);
|
|
2340
|
+
const handleChange = (rowIdx, colIdx) => {
|
|
2341
|
+
setRowIndex(rowIdx);
|
|
2342
|
+
setColIndex(colIdx);
|
|
2343
|
+
};
|
|
2344
|
+
const handleSelect = (rowIdx, colIdx) => {
|
|
2345
|
+
setSelectedRowIndex(rowIdx);
|
|
2346
|
+
setSelectedColIndex(colIdx);
|
|
2347
|
+
setColor(matrix[rowIdx][colIdx].value);
|
|
2348
|
+
};
|
|
2349
|
+
return (jsxRuntime.jsx(reactColorpickers.ColorSwatchDialog, Object.assign({ colors: matrix, onChange: handleChange, onSelect: (rowIdx, colIdx) => {
|
|
2350
|
+
handleSelect(rowIdx, colIdx);
|
|
2351
|
+
if (onSelect)
|
|
2352
|
+
onSelect(color);
|
|
2353
|
+
}, rowIndex: rowIndex, colIndex: colIndex, selectedRowIndex: selectedRowIndex, selectedColIndex: selectedColIndex }, { children: jsxRuntime.jsx(ColorSwatchTrigger, Object.assign({ color: color }, { children: children })) })));
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2304
2356
|
const UgDrawer = styled__default["default"](reactModals.DrawerModal) `
|
|
2305
2357
|
@media (max-width: ${({ theme }) => theme.breakpoints.sm}) {
|
|
2306
2358
|
width: 100%;
|
|
@@ -5766,6 +5818,7 @@ exports.Chrome = Chrome;
|
|
|
5766
5818
|
exports.Close = Close;
|
|
5767
5819
|
exports.Code = Code;
|
|
5768
5820
|
exports.Col = Col;
|
|
5821
|
+
exports.ColorSwatch = ColorSwatch;
|
|
5769
5822
|
exports.ContainerCard = ContainerCard;
|
|
5770
5823
|
exports.Content = Content$1;
|
|
5771
5824
|
exports.CounterMultiselect = CounterMultiselect;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonArgs } from "./_types";
|
|
2
3
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
3
4
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
@@ -8,18 +8,18 @@ export declare const variants: readonly [{}, {
|
|
|
8
8
|
readonly disabled: true;
|
|
9
9
|
}];
|
|
10
10
|
export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
11
|
-
alignItems?: "
|
|
12
|
-
alignItemsXs?: "
|
|
13
|
-
alignItemsSm?: "
|
|
14
|
-
alignItemsMd?: "
|
|
15
|
-
alignItemsLg?: "
|
|
16
|
-
alignItemsXl?: "
|
|
17
|
-
justifyContent?: "
|
|
18
|
-
justifyContentXs?: "
|
|
19
|
-
justifyContentSm?: "
|
|
20
|
-
justifyContentMd?: "
|
|
21
|
-
justifyContentLg?: "
|
|
22
|
-
justifyContentXl?: "
|
|
11
|
+
alignItems?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
12
|
+
alignItemsXs?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
13
|
+
alignItemsSm?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
14
|
+
alignItemsMd?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
15
|
+
alignItemsLg?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
16
|
+
alignItemsXl?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
17
|
+
justifyContent?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
18
|
+
justifyContentXs?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
19
|
+
justifyContentSm?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
20
|
+
justifyContentMd?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
21
|
+
justifyContentLg?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
22
|
+
justifyContentXl?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
23
23
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
24
24
|
wrapXs?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
25
25
|
wrapSm?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -33,7 +33,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
33
33
|
accessKey?: string | undefined;
|
|
34
34
|
autoFocus?: boolean | undefined;
|
|
35
35
|
className?: string | undefined;
|
|
36
|
-
contentEditable?: (boolean | "true" | "false") |
|
|
36
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
37
37
|
contextMenu?: string | undefined;
|
|
38
38
|
dir?: string | undefined;
|
|
39
39
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
73
73
|
results?: number | undefined;
|
|
74
74
|
security?: string | undefined;
|
|
75
75
|
unselectable?: "on" | "off" | undefined;
|
|
76
|
-
inputMode?: "
|
|
76
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
77
77
|
is?: string | undefined;
|
|
78
78
|
"aria-activedescendant"?: string | undefined;
|
|
79
79
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -84,7 +84,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
84
84
|
"aria-colindex"?: number | undefined;
|
|
85
85
|
"aria-colspan"?: number | undefined;
|
|
86
86
|
"aria-controls"?: string | undefined;
|
|
87
|
-
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" |
|
|
87
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
88
88
|
"aria-describedby"?: string | undefined;
|
|
89
89
|
"aria-details"?: string | undefined;
|
|
90
90
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -93,7 +93,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
93
93
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
94
94
|
"aria-flowto"?: string | undefined;
|
|
95
95
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
96
|
-
"aria-haspopup"?: boolean | "
|
|
96
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
97
97
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
98
98
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
99
99
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -299,18 +299,18 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
299
299
|
md?: string | number | boolean | undefined;
|
|
300
300
|
lg?: string | number | boolean | undefined;
|
|
301
301
|
xl?: string | number | boolean | undefined;
|
|
302
|
-
alignSelf?: "
|
|
303
|
-
alignSelfXs?: "
|
|
304
|
-
alignSelfSm?: "
|
|
305
|
-
alignSelfMd?: "
|
|
306
|
-
alignSelfLg?: "
|
|
307
|
-
alignSelfXl?: "
|
|
308
|
-
textAlign?: "
|
|
309
|
-
textAlignXs?: "
|
|
310
|
-
textAlignSm?: "
|
|
311
|
-
textAlignMd?: "
|
|
312
|
-
textAlignLg?: "
|
|
313
|
-
textAlignXl?: "
|
|
302
|
+
alignSelf?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
303
|
+
alignSelfXs?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
304
|
+
alignSelfSm?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
305
|
+
alignSelfMd?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
306
|
+
alignSelfLg?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
307
|
+
alignSelfXl?: "center" | "auto" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
308
|
+
textAlign?: "center" | "start" | "end" | "justify" | undefined;
|
|
309
|
+
textAlignXs?: "center" | "start" | "end" | "justify" | undefined;
|
|
310
|
+
textAlignSm?: "center" | "start" | "end" | "justify" | undefined;
|
|
311
|
+
textAlignMd?: "center" | "start" | "end" | "justify" | undefined;
|
|
312
|
+
textAlignLg?: "center" | "start" | "end" | "justify" | undefined;
|
|
313
|
+
textAlignXl?: "center" | "start" | "end" | "justify" | undefined;
|
|
314
314
|
offset?: string | number | undefined;
|
|
315
315
|
offsetXs?: string | number | undefined;
|
|
316
316
|
offsetSm?: string | number | undefined;
|
|
@@ -330,7 +330,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
330
330
|
accessKey?: string | undefined;
|
|
331
331
|
autoFocus?: boolean | undefined;
|
|
332
332
|
className?: string | undefined;
|
|
333
|
-
contentEditable?: (boolean | "true" | "false") |
|
|
333
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
334
334
|
contextMenu?: string | undefined;
|
|
335
335
|
dir?: string | undefined;
|
|
336
336
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -370,7 +370,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
370
370
|
results?: number | undefined;
|
|
371
371
|
security?: string | undefined;
|
|
372
372
|
unselectable?: "on" | "off" | undefined;
|
|
373
|
-
inputMode?: "
|
|
373
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
374
374
|
is?: string | undefined;
|
|
375
375
|
"aria-activedescendant"?: string | undefined;
|
|
376
376
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -381,7 +381,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
381
381
|
"aria-colindex"?: number | undefined;
|
|
382
382
|
"aria-colspan"?: number | undefined;
|
|
383
383
|
"aria-controls"?: string | undefined;
|
|
384
|
-
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" |
|
|
384
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
385
385
|
"aria-describedby"?: string | undefined;
|
|
386
386
|
"aria-details"?: string | undefined;
|
|
387
387
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -390,7 +390,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
390
390
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
391
391
|
"aria-flowto"?: string | undefined;
|
|
392
392
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
393
|
-
"aria-haspopup"?: boolean | "
|
|
393
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
394
394
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
395
395
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
396
396
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -600,7 +600,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
600
600
|
accessKey?: string | undefined;
|
|
601
601
|
autoFocus?: boolean | undefined;
|
|
602
602
|
className?: string | undefined;
|
|
603
|
-
contentEditable?: (boolean | "true" | "false") |
|
|
603
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
|
|
604
604
|
contextMenu?: string | undefined;
|
|
605
605
|
dir?: string | undefined;
|
|
606
606
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -640,7 +640,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
640
640
|
results?: number | undefined;
|
|
641
641
|
security?: string | undefined;
|
|
642
642
|
unselectable?: "on" | "off" | undefined;
|
|
643
|
-
inputMode?: "
|
|
643
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
644
644
|
is?: string | undefined;
|
|
645
645
|
"aria-activedescendant"?: string | undefined;
|
|
646
646
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -651,7 +651,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
651
651
|
"aria-colindex"?: number | undefined;
|
|
652
652
|
"aria-colspan"?: number | undefined;
|
|
653
653
|
"aria-controls"?: string | undefined;
|
|
654
|
-
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" |
|
|
654
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
655
655
|
"aria-describedby"?: string | undefined;
|
|
656
656
|
"aria-details"?: string | undefined;
|
|
657
657
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
@@ -660,7 +660,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
660
660
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
661
661
|
"aria-flowto"?: string | undefined;
|
|
662
662
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
663
|
-
"aria-haspopup"?: boolean | "
|
|
663
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
664
664
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
665
665
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
666
666
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ColorSwatchProps {
|
|
3
|
+
colors: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
rowSize?: number;
|
|
8
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
9
|
+
onSelect?: (color: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ColorSwatchTriggerProps {
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ColorSwatchProps } from "./_types";
|
|
2
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ColorSwatchProps>;
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ColorSwatchProps>;
|
|
4
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appquality/unguess-design-system",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.52",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@zendeskgarden/react-breadcrumbs": "^8.49.0",
|
|
51
51
|
"@zendeskgarden/react-buttons": "^8.48.2",
|
|
52
52
|
"@zendeskgarden/react-chrome": "^8.49.0",
|
|
53
|
+
"@zendeskgarden/react-colorpickers": "^8.73.2",
|
|
53
54
|
"@zendeskgarden/react-grid": "^8.49.0",
|
|
54
55
|
"@zendeskgarden/react-loaders": "^8.49.0",
|
|
55
56
|
"@zendeskgarden/react-modals": "^8.49.0",
|