@ikas/core 1.0.24 → 1.0.25
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/dist/core.css +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +1 -1
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -1
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +1 -1
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +3 -3
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +2 -2
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.cjs +1 -5
- package/dist/index124.js +110 -2961
- package/dist/index125.cjs +6 -1
- package/dist/index125.js +14 -2
- package/dist/index126.cjs +6 -1
- package/dist/index126.js +13 -5
- package/dist/index127.cjs +6 -1
- package/dist/index127.js +14 -111
- package/dist/index128.cjs +5 -6
- package/dist/index128.js +2962 -14
- package/dist/index129.cjs +1 -6
- package/dist/index129.js +2 -13
- package/dist/index130.cjs +1 -6
- package/dist/index130.js +5 -14
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +1 -1
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +1 -1
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +4 -4
- package/dist/index140.cjs +6 -1
- package/dist/index140.js +27 -8
- package/dist/index141.cjs +6 -1
- package/dist/index141.js +15 -7
- package/dist/index142.cjs +2 -2
- package/dist/index142.js +4 -21
- package/dist/index143.cjs +2 -2
- package/dist/index143.js +7 -9
- package/dist/index144.cjs +2 -2
- package/dist/index144.js +2 -4
- package/dist/index145.cjs +2 -2
- package/dist/index145.js +2 -7
- package/dist/index146.cjs +2 -2
- package/dist/index146.js +6 -2
- package/dist/index147.cjs +2 -2
- package/dist/index147.js +34 -2
- package/dist/index148.cjs +2 -2
- package/dist/index148.js +11 -5
- package/dist/index149.cjs +2 -2
- package/dist/index149.js +7 -34
- package/dist/index150.cjs +1 -6
- package/dist/index150.js +2 -16
- package/dist/index151.cjs +1 -6
- package/dist/index151.js +8 -13
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +6 -3
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +2 -2
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +1 -1
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +1 -1
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +2 -2
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +1 -1
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +2 -2
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +2 -2
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +1 -1
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -4
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +2 -2
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +1 -1
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +14 -26
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +2 -2
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +7 -27
- package/dist/index198.cjs +2 -1
- package/dist/index198.js +324 -29
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +47 -113
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +23 -56
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +2 -60
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +25 -14
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +31 -14
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +116 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +59 -7
- package/dist/index206.cjs +1 -2
- package/dist/index206.js +56 -323
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +15 -48
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +17 -5
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +12 -8
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +6 -2
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +8 -17
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +8 -12
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +2 -4
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +4 -5
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +5 -9
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +1 -1
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +2 -2
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +16 -26
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -16
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +3 -42
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +28 -13
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +7 -13
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +4 -60
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +6 -9
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +10 -14
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -3
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +14 -7
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +4 -4
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +7 -5
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +3 -15
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +5 -5
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +26 -3
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +16 -29
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +42 -7
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +13 -4
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +13 -7
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +60 -10
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +3 -39
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +6 -2
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +7 -3
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +38 -5
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +2 -7
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +1 -1
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +5 -26
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +4 -9
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +17 -5
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +4 -5
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +4 -5
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +3 -5
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +3 -9
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +14 -4
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +9 -7
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +3 -5
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +9 -5
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +6 -5
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +5 -12
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +6 -9
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +6 -4
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +8 -18
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +5 -4
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +4 -5
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +9 -3
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +13 -3
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +5 -15
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +5 -9
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +17 -3
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +12 -10
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +12 -6
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +4 -6
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +5 -6
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +5 -6
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +13 -8
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +4 -5
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +27 -4
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +9 -13
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +6 -5
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +5 -5
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +5 -17
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +5 -12
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +9 -12
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +5 -4
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +7 -5
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +5 -5
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +6 -4
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +3 -6
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +9 -8
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +5 -29
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +3 -2
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -16
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +4 -4
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +17 -9
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +9 -6
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +5 -4
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +5 -5
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +8 -4
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +5 -17
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +13 -7
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +3 -6
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +6 -5
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +3 -7
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +9 -13
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +6 -12
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +9 -14
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +11 -5
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +13 -14
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +12 -3
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +13 -6
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +6 -3
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +29 -9
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +8 -5
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +4 -9
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +15 -10
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +1 -1
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +7 -11
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +6 -7
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +10 -37
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +5 -42
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +4 -33
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +5 -26
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +5 -7
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +3 -7
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +4 -9
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +7 -5
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +5 -4
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +11 -4
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +37 -5
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +42 -5
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +33 -5
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +26 -3
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +7 -7
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +17 -2
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +6 -8
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +13 -4
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +3 -10
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +3 -7
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +8 -4
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +3 -5
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +10 -6
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +6 -6
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +4 -4
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +7 -4
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +7 -4
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +7 -4
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +3 -14
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +4 -18
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +4 -6
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +4 -14
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +14 -3
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +4 -4
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +4 -3
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +10 -8
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +6 -15
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +6 -6
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +5 -8
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +8 -4
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +4 -4
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +3 -4
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +6 -10
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +8 -7
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +8 -6
- package/dist/index388.cjs +1 -1
- package/dist/index388.js +15 -8
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +3 -16
- package/dist/index390.cjs +1 -1
- package/dist/index390.js +3 -6
- package/dist/index391.cjs +1 -1
- package/dist/index391.js +5 -7
- package/dist/index392.cjs +1 -1
- package/dist/index392.js +7 -3
- package/dist/index393.cjs +1 -1
- package/dist/index393.js +4 -3
- package/dist/index394.cjs +1 -1
- package/dist/index394.js +16 -3
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +3 -3
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +1 -1
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +1 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +1 -1
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -1
- package/package.json +1 -1
package/dist/index153.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as r } from "./
|
|
2
|
-
import { __require as t } from "./
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index139.js";
|
|
2
|
+
import { __require as t } from "./index200.js";
|
|
3
3
|
var e = t();
|
|
4
4
|
const i = /* @__PURE__ */ r(e);
|
|
5
5
|
export {
|
package/dist/index154.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),f=require("./index153.cjs"),b=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),f=require("./index153.cjs"),b=require("./index249.cjs"),v=require("./index155.cjs");var g=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},m=(function(){function n(t,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(t,o,r){return o&&n(t.prototype,o),r&&n(t,r),t}})();function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=(function(n){y(t,n);function t(){var o,r,e,i;w(this,t);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return i=(r=(e=c(this,(o=t.__proto__||Object.getPrototypeOf(t)).call.apply(o,[this].concat(u))),e),e.handleChange=function(s){var h=b.calculateChange(s,e.props.hsl,e.props.direction,e.props.a,e.container);h&&typeof e.props.onChange=="function"&&e.props.onChange(h,s)},e.handleMouseDown=function(s){e.handleChange(s),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleChange),window.removeEventListener("mouseup",e.handleMouseUp)},r),c(e,i)}return m(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,e=this.props.rgb,i=f.default({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
|
|
2
2
|
rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:e.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
|
|
3
3
|
rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:e.a*100+"%"}},overwrite:g({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return a.createElement("div",{style:i.alpha},a.createElement("div",{style:i.checkboard},a.createElement(v.Checkboard,{renderers:this.props.renderers})),a.createElement("div",{style:i.gradient}),a.createElement("div",{style:i.container,ref:function(u){return r.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.createElement("div",{style:i.pointer},this.props.pointer?a.createElement(this.props.pointer,this.props):a.createElement("div",{style:i.slider}))))}}]),t})(a.PureComponent||a.Component);exports.Alpha=d;exports.default=d;
|
package/dist/index154.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import i, { PureComponent as d, Component as f } from "react";
|
|
2
2
|
import b from "./index153.js";
|
|
3
|
-
import { calculateChange as v } from "./
|
|
3
|
+
import { calculateChange as v } from "./index249.js";
|
|
4
4
|
import { Checkboard as g } from "./index155.js";
|
|
5
5
|
var m = Object.assign || function(n) {
|
|
6
6
|
for (var t = 1; t < arguments.length; t++) {
|
package/dist/index155.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react"),g=require("./index153.cjs"),h=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react"),g=require("./index153.cjs"),h=require("./index250.cjs");var i=Object.assign||function(d){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(d[t]=r[t])}return d},o=function(e){var r=e.white,t=e.grey,l=e.size,u=e.renderers,c=e.borderRadius,b=e.boxShadow,a=e.children,s=g.default({default:{grid:{borderRadius:c,boxShadow:b,absolute:"0px 0px 0px 0px",background:"url("+h.get(r,t,l,u.canvas)+") center left"}}});return n.isValidElement(a)?n.cloneElement(a,i({},a.props,{style:i({},a.props.style,s.grid)})):n.createElement("div",{style:s.grid})};o.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};exports.Checkboard=o;exports.default=o;
|
package/dist/index155.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n, { isValidElement as u } from "react";
|
|
2
2
|
import b from "./index153.js";
|
|
3
|
-
import { get as g } from "./
|
|
3
|
+
import { get as g } from "./index250.js";
|
|
4
4
|
var s = Object.assign || function(o) {
|
|
5
5
|
for (var r = 1; r < arguments.length; r++) {
|
|
6
6
|
var e = arguments[r];
|
package/dist/index157.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),d=require("./index153.cjs"),v=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),d=require("./index153.cjs"),v=require("./index251.cjs");var b=(function(){function t(e,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,o,r){return o&&t(e.prototype,o),r&&t(e,r),e}})();function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=(function(t){m(e,t);function e(){var o,r,n,u;g(this,e);for(var a=arguments.length,l=Array(a),f=0;f<a;f++)l[f]=arguments[f];return u=(r=(n=p(this,(o=e.__proto__||Object.getPrototypeOf(e)).call.apply(o,[this].concat(l))),n),n.handleChange=function(h){var s=v.calculateChange(h,n.props.direction,n.props.hsl,n.container);s&&typeof n.props.onChange=="function"&&n.props.onChange(s,h)},n.handleMouseDown=function(h){n.handleChange(h),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},r),p(n,u)}return b(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,n=this.props.direction,u=n===void 0?"horizontal":n,a=d.default({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:u==="vertical"});return i.createElement("div",{style:a.hue},i.createElement("div",{className:"hue-"+u,style:a.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.createElement("style",null,`
|
|
2
2
|
.hue-horizontal {
|
|
3
3
|
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
4
4
|
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
package/dist/index157.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f, { PureComponent as c, Component as d } from "react";
|
|
2
2
|
import v from "./index153.js";
|
|
3
|
-
import { calculateChange as m } from "./
|
|
3
|
+
import { calculateChange as m } from "./index251.js";
|
|
4
4
|
var b = /* @__PURE__ */ (function() {
|
|
5
5
|
function t(e, o) {
|
|
6
6
|
for (var r = 0; r < o.length; r++) {
|
package/dist/index159.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),f=require("./index153.cjs"),b=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),f=require("./index153.cjs"),b=require("./index252.cjs"),v=require("./index253.cjs");var g=(function(){function r(t,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,e){return o&&r(t.prototype,o),e&&r(t,e),t}})();function w(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function m(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var l=(function(r){y(t,r);function t(o){w(this,t);var e=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.handleChange=function(n){typeof e.props.onChange=="function"&&e.throttle(e.props.onChange,v.calculateChange(n,e.props.hsl,e.container),n)},e.handleMouseDown=function(n){e.handleChange(n);var a=e.getContainerRenderWindow();a.addEventListener("mousemove",e.handleChange),a.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.throttle=b(function(n,a,s){n(a,s)},50),e}return g(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,n=window;!n.document.contains(e)&&n.parent!==n;)n=n.parent;return n}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.style||{},a=n.color,s=n.white,c=n.black,h=n.pointer,p=n.circle,u=f.default({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
2
2
|
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:s,black:c,pointer:h,circle:p}},{custom:!!this.props.style});return i.createElement("div",{style:u.color,ref:function(d){return e.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.createElement("style",null,`
|
|
3
3
|
.saturation-white {
|
|
4
4
|
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
package/dist/index159.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i, { PureComponent as d, Component as f } from "react";
|
|
2
2
|
import b from "./index153.js";
|
|
3
|
-
import m from "./
|
|
4
|
-
import { calculateChange as v } from "./
|
|
3
|
+
import m from "./index252.js";
|
|
4
|
+
import { calculateChange as v } from "./index253.js";
|
|
5
5
|
var g = /* @__PURE__ */ (function() {
|
|
6
6
|
function r(t, o) {
|
|
7
7
|
for (var e = 0; e < o.length; e++) {
|
package/dist/index161.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),x=require("./index153.cjs"),E=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),x=require("./index153.cjs"),E=require("./index254.cjs"),O=require("./index155.cjs");var f=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},q=13,w=function(e){var n=e.color,r=e.style,a=e.onClick,i=a===void 0?function(){}:a,c=e.onHover,l=e.title,b=l===void 0?n:l,y=e.children,p=e.focus,u=e.focusStyle,S=u===void 0?{}:u,C=n==="transparent",s=x.default({default:{swatch:f({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,p?S:{})}}),g=function(t){return i(n,t)},k=function(t){return t.keyCode===q&&i(n,t)},m=function(t){return c(n,t)},d={};return c&&(d.onMouseOver=m),v.createElement("div",f({style:s.swatch,onClick:g,title:b,tabIndex:0,onKeyDown:k},d),y,C&&v.createElement(O.Checkboard,{borderRadius:s.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const H=E.handleFocus(w);exports.Swatch=w;exports.default=H;
|
package/dist/index161.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f from "react";
|
|
2
2
|
import g from "./index153.js";
|
|
3
|
-
import { handleFocus as x } from "./
|
|
3
|
+
import { handleFocus as x } from "./index254.js";
|
|
4
4
|
import { Checkboard as E } from "./index155.js";
|
|
5
5
|
var v = Object.assign || function(r) {
|
|
6
6
|
for (var e = 1; e < arguments.length; e++) {
|
package/dist/index163.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./
|
|
1
|
+
"use strict";const e=require("./index139.cjs"),r=require("./index195.cjs");var s=r.__require();const o=e.getDefaultExportFromCjs(s);module.exports=o;
|
package/dist/index163.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getDefaultExportFromCjs as r } from "./
|
|
2
|
-
import { __require as o } from "./
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index139.js";
|
|
2
|
+
import { __require as o } from "./index195.js";
|
|
3
3
|
var p = /* @__PURE__ */ o();
|
|
4
4
|
const s = /* @__PURE__ */ r(p);
|
|
5
5
|
export {
|
package/dist/index164.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./
|
|
1
|
+
"use strict";const t=require("./index208.cjs"),c=require("./index209.cjs");var i=c(function(e,r,s){t(e,r,s)});module.exports=i;
|
package/dist/index164.js
CHANGED
package/dist/index165.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index97.cjs"),c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index97.cjs"),c=require("./index210.cjs");var f=function(r){var o=["r","g","b","a","h","s","l","v"],i=0,t=0;return c(o,function(e){if(r[e]&&(i+=1,isNaN(r[e])||(t+=1),e==="s"||e==="l")){var s=/^\d+%$/;s.test(r[e])&&(t+=1)}}),i===t?r:!1},v=function(r,o){var i=r.hex?a(r.hex):a(r),t=i.toHsl(),e=i.toHsv(),s=i.toRgb(),l=i.toHex();t.s===0&&(t.h=o||0,e.h=o||0);var g=l==="000000"&&s.a===0;return{hsl:t,hex:g?"transparent":"#"+l,rgb:s,hsv:e,oldHue:r.h||o||t.h,source:r.source}},u=function(r){if(r==="transparent")return!0;var o=String(r).charAt(0)==="#"?1:0;return r.length!==4+o&&r.length<7+o&&a(r).isValid()},h=function(r){if(!r)return"#fff";var o=v(r);if(o.hex==="transparent")return"rgba(0,0,0,0.4)";var i=(o.rgb.r*299+o.rgb.g*587+o.rgb.b*114)/1e3;return i>=128?"#000":"#fff"},C=function(r,o){var i=r.replace("°","");return a(o+" ("+i+")")._ok};exports.getContrastingColor=h;exports.isValidHex=u;exports.isvalidColorString=C;exports.simpleCheckForValidColor=f;exports.toState=v;
|
package/dist/index165.js
CHANGED
package/dist/index167.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./
|
|
1
|
+
"use strict";const s=require("./index211.cjs"),t=require("./index212.cjs"),u=require("./index213.cjs"),n=require("./index214.cjs");function i(r,e){var a=n(r)?s:u;return a(r,t(e))}module.exports=i;
|
package/dist/index167.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import t from "./
|
|
2
|
-
import o from "./
|
|
3
|
-
import p from "./
|
|
4
|
-
import e from "./
|
|
1
|
+
import t from "./index211.js";
|
|
2
|
+
import o from "./index212.js";
|
|
3
|
+
import p from "./index213.js";
|
|
4
|
+
import e from "./index214.js";
|
|
5
5
|
function n(r, a) {
|
|
6
6
|
var m = e(r) ? t : p;
|
|
7
7
|
return m(r, o(a));
|
package/dist/index170.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),u=require("./index153.cjs"),f=require("./index165.cjs"),h=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),u=require("./index153.cjs"),f=require("./index165.cjs"),h=require("./index215.cjs");require("./index154.cjs");require("./index155.cjs");const o=require("./index156.cjs");require("./index157.cjs");require("./index158.cjs");require("./index159.cjs");require("./index161.cjs");const g=require("./index216.cjs");var b=(function(){function n(l,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,r,t){return r&&n(l.prototype,r),t&&n(l,t),l}})();function c(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function d(n,l){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:n}function v(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(n,l):n.__proto__=l)}var a=(function(n){v(l,n);function l(r){c(this,l);var t=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return t.toggleViews=function(){t.state.view==="hex"?t.setState({view:"rgb"}):t.state.view==="rgb"?t.setState({view:"hsl"}):t.state.view==="hsl"&&(t.props.hsl.a===1?t.setState({view:"hex"}):t.setState({view:"rgb"}))},t.handleChange=function(e,s){e.hex?f.isValidHex(e.hex)&&t.props.onChange({hex:e.hex,source:"hex"},s):e.r||e.g||e.b?t.props.onChange({r:e.r||t.props.rgb.r,g:e.g||t.props.rgb.g,b:e.b||t.props.rgb.b,source:"rgb"},s):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),t.props.onChange({h:t.props.hsl.h,s:t.props.hsl.s,l:t.props.hsl.l,a:Math.round(e.a*100)/100,source:"rgb"},s)):(e.h||e.s||e.l)&&(typeof e.s=="string"&&e.s.includes("%")&&(e.s=e.s.replace("%","")),typeof e.l=="string"&&e.l.includes("%")&&(e.l=e.l.replace("%","")),e.s==1?e.s=.01:e.l==1&&(e.l=.01),t.props.onChange({h:e.h||t.props.hsl.h,s:Number(h(e.s)?t.props.hsl.s:e.s),l:Number(h(e.l)?t.props.hsl.l:e.l),source:"hsl"},s))},t.showHighlight=function(e){e.currentTarget.style.background="#eee"},t.hideHighlight=function(e){e.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?t.state={view:"rgb"}:t.state={view:r.view},t}return b(l,[{key:"render",value:function(){var t=this,e=u.default({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),s=void 0;return this.state.view==="hex"?s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.createElement("div",{style:e.alpha},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),i.createElement("div",{style:e.alpha},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.createElement("div",{style:e.wrap,className:"flexbox-fix"},s,i.createElement("div",{style:e.toggle},i.createElement("div",{style:e.icon,onClick:this.toggleViews,ref:function(p){return t.icon=p}},i.createElement(g,{style:e.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return t.hsl.a!==1&&e.view==="hex"?{view:"rgb"}:null}}]),l})(i.Component);a.defaultProps={view:"hex"};exports.ChromeFields=a;exports.default=a;
|
package/dist/index170.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i from "react";
|
|
2
2
|
import p from "./index153.js";
|
|
3
3
|
import { isValidHex as f } from "./index165.js";
|
|
4
|
-
import h from "./
|
|
4
|
+
import h from "./index215.js";
|
|
5
5
|
import "./index154.js";
|
|
6
6
|
import "./index155.js";
|
|
7
7
|
import { EditableInput as s } from "./index156.js";
|
|
@@ -9,7 +9,7 @@ import "./index157.js";
|
|
|
9
9
|
import "./index158.js";
|
|
10
10
|
import "./index159.js";
|
|
11
11
|
import "./index161.js";
|
|
12
|
-
import u from "./
|
|
12
|
+
import u from "./index216.js";
|
|
13
13
|
var g = /* @__PURE__ */ (function() {
|
|
14
14
|
function n(l, r) {
|
|
15
15
|
for (var t = 0; t < r.length; t++) {
|
package/dist/index191.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("react"),v=require("mobx-react-lite"),S=require("@ikas/ui"),p=require("./index5.cjs"),T=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("react"),v=require("mobx-react-lite"),S=require("@ikas/ui"),p=require("./index5.cjs"),T=require("./index143.cjs"),b=5;function L(o){return o.length>b?`${o.slice(0,b)}...`:o}function j(o){var f;const{filterRow:u,model:i,onChange:d}=o,[r,g]=c.useState(""),s=u.filterValue.value||[],h=c.useMemo(()=>{switch(i.locale){case"tr":return"tr-TR";case"en":return"en-US";case"de":return"de-DE";default:return"tr-TR"}},[i.locale]),a=c.useMemo(()=>i.filters.find(e=>{var t;return e.key===((t=u.filterValue)==null?void 0:t.key)}),[i.filters,(f=u.filterValue)==null?void 0:f.key]),x=c.useMemo(()=>{var m;const e=((m=a==null?void 0:a.options)==null?void 0:m.map(n=>({label:n.label,value:n.value})))??[],t=s.filter(n=>!e.some(w=>w.value===n)).map(n=>({label:L(n),value:n}));return[...e,...t]},[a==null?void 0:a.options,s]),y=e=>{e.key!=="Enter"||!r||(e.preventDefault(),e.stopPropagation(),r.trim()!==""&&!s.find(t=>r===t)&&d([...s,r]),g(""))};return l.jsxs("div",{className:"relative",style:{maxWidth:330,minWidth:330},onKeyDownCapture:y,children:[l.jsx(S.Select,{mode:"tags",maxTagCount:"responsive",value:s,showSearch:!0,searchValue:r,onSearch:g,onChange:e=>{const t=e;t.length<=s.length&&d(t)},options:x,tagClosable:!0,filterOption:(e,t)=>t?String(t.label??"").toLocaleLowerCase(h).includes(e.toLocaleLowerCase(h)):!1,style:{width:"100%"},placeholder:p.coreTranslations.common.actions.enterValue}),!!r.length&&l.jsxs("div",{className:"pointer-events-none absolute right-9 top-1/2 -translate-y-1/2 flex items-center gap-1.5 bg-white",children:[l.jsx(T.default,{className:"h-4 w-4 text-gray-blue-5"}),l.jsx("span",{className:"text-sm leading-5 text-gray-blue-9",children:p.coreTranslations.common.actions.enter})]})]})}const C=v.observer(j);exports.FilterStringInput=C;
|
package/dist/index191.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useState as x, useMemo as m } from "react";
|
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import { Select as S } from "@ikas/ui";
|
|
5
5
|
import { coreTranslations as w } from "./index5.js";
|
|
6
|
-
import T from "./
|
|
6
|
+
import T from "./index143.js";
|
|
7
7
|
const y = 5;
|
|
8
8
|
function L(l) {
|
|
9
9
|
return l.length > y ? `${l.slice(0, y)}...` : l;
|
package/dist/index195.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index196.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index196.cjs"),t=require("./index197.cjs"),u=require("./index198.cjs"),s=require("./index199.cjs");var r;function _(){if(r)return e.__module.exports;if(r=1,process.env.NODE_ENV!=="production"){var o=t.__require(),i=!0;e.__module.exports=u.__require()(o.isElement,i)}else e.__module.exports=s.__require()();return e.__module.exports}exports.__require=_;
|
package/dist/index195.js
CHANGED
|
@@ -1,29 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { __require as
|
|
3
|
-
import { __require as
|
|
4
|
-
import { __require as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var f = x(), _ = r(f), l = A(), s = r(l), m = N(), n = r(m), d = H(), i = r(d), p = L(), q = r(p), c = M(), h = r(c);
|
|
15
|
-
function r(a) {
|
|
16
|
-
return a && a.__esModule ? a : { default: a };
|
|
17
|
-
}
|
|
18
|
-
e.hover = i.default, e.handleHover = i.default, e.handleActive = q.default, e.loop = h.default;
|
|
19
|
-
var S = e.ReactCSS = function(g) {
|
|
20
|
-
for (var u = arguments.length, o = Array(u > 1 ? u - 1 : 0), t = 1; t < u; t++)
|
|
21
|
-
o[t - 1] = arguments[t];
|
|
22
|
-
var C = (0, _.default)(o), R = (0, s.default)(g, C);
|
|
23
|
-
return (0, n.default)(R);
|
|
24
|
-
};
|
|
25
|
-
return e.default = S, e;
|
|
1
|
+
import { __module as r } from "./index196.js";
|
|
2
|
+
import { __require as s } from "./index197.js";
|
|
3
|
+
import { __require as t } from "./index198.js";
|
|
4
|
+
import { __require as p } from "./index199.js";
|
|
5
|
+
var e;
|
|
6
|
+
function q() {
|
|
7
|
+
if (e) return r.exports;
|
|
8
|
+
if (e = 1, process.env.NODE_ENV !== "production") {
|
|
9
|
+
var o = s(), i = !0;
|
|
10
|
+
r.exports = /* @__PURE__ */ t()(o.isElement, i);
|
|
11
|
+
} else
|
|
12
|
+
r.exports = /* @__PURE__ */ p()();
|
|
13
|
+
return r.exports;
|
|
26
14
|
}
|
|
27
15
|
export {
|
|
28
|
-
|
|
16
|
+
q as __require
|
|
29
17
|
};
|
package/dist/index196.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
package/dist/index196.js
CHANGED
package/dist/index197.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index228.cjs"),t=require("./index229.cjs"),o=require("./index230.cjs");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u;
|
package/dist/index197.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function A() {
|
|
8
|
-
if (i) return t;
|
|
9
|
-
i = 1, Object.defineProperty(t, "__esModule", {
|
|
10
|
-
value: !0
|
|
11
|
-
}), t.flattenNames = void 0;
|
|
12
|
-
var s = q, m = u(s), l = N, o = u(l), _ = O, p = u(_), d = P, v = u(d);
|
|
13
|
-
function u(e) {
|
|
14
|
-
return e && e.__esModule ? e : { default: e };
|
|
15
|
-
}
|
|
16
|
-
var $ = t.flattenNames = function e() {
|
|
17
|
-
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], a = [];
|
|
18
|
-
return (0, v.default)(c, function(r) {
|
|
19
|
-
Array.isArray(r) ? e(r).map(function(n) {
|
|
20
|
-
return a.push(n);
|
|
21
|
-
}) : (0, p.default)(r) ? (0, o.default)(r, function(n, f) {
|
|
22
|
-
n === !0 && a.push(f), a.push(f + "-" + n);
|
|
23
|
-
}) : (0, m.default)(r) && a.push(r);
|
|
24
|
-
}), a;
|
|
25
|
-
};
|
|
26
|
-
return t.default = $, t;
|
|
1
|
+
import { __module as e } from "./index228.js";
|
|
2
|
+
import { __require as o } from "./index229.js";
|
|
3
|
+
import { __require as t } from "./index230.js";
|
|
4
|
+
var r;
|
|
5
|
+
function p() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
|
|
27
7
|
}
|
|
28
8
|
export {
|
|
29
|
-
|
|
9
|
+
p as __require
|
|
30
10
|
};
|
package/dist/index198.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./index197.cjs"),N=require("./index231.cjs"),ee=require("./index232.cjs"),re=require("./index233.cjs"),ne=require("./index234.cjs");var A,C;function te(){if(C)return A;C=1;var k=F.__require(),W=N.__require(),h=ee.__require(),I=re.__require(),q=ne.__require(),T=function(){};process.env.NODE_ENV!=="production"&&(T=function(x){var S="Warning: "+x;typeof console<"u"&&console.error(S);try{throw new Error(S)}catch{}});function E(){return null}return A=function(x,S){var P=typeof Symbol=="function"&&Symbol.iterator,D="@@iterator";function M(e){var r=e&&(P&&e[P]||e[D]);if(typeof r=="function")return r}var _="<<anonymous>>",w={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:U(),arrayOf:$,element:B(),elementType:J(),instanceOf:z,node:H(),objectOf:X,oneOf:L,oneOfType:G,shape:K,exact:Q};function Y(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function d(e,r){this.message=e,this.data=r&&typeof r=="object"?r:{},this.stack=""}d.prototype=Error.prototype;function v(e){if(process.env.NODE_ENV!=="production")var r={},u=0;function i(f,t,a,o,s,c,y){if(o=o||_,c=c||a,y!==h){if(S){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var b=o+":"+a;!r[b]&&u<3&&(T("You are manually calling a React.PropTypes validation function for the `"+c+"` prop on `"+o+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[b]=!0,u++)}}return t[a]==null?f?t[a]===null?new d("The "+s+" `"+c+"` is marked as required "+("in `"+o+"`, but its value is `null`.")):new d("The "+s+" `"+c+"` is marked as required in "+("`"+o+"`, but its value is `undefined`.")):null:e(t,a,o,s,c)}var n=i.bind(null,!1);return n.isRequired=i.bind(null,!0),n}function p(e){function r(u,i,n,f,t,a){var o=u[i],s=g(o);if(s!==e){var c=O(o);return new d("Invalid "+f+" `"+t+"` of type "+("`"+c+"` supplied to `"+n+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return v(r)}function U(){return v(E)}function $(e){function r(u,i,n,f,t){if(typeof e!="function")return new d("Property `"+t+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=u[i];if(!Array.isArray(a)){var o=g(a);return new d("Invalid "+f+" `"+t+"` of type "+("`"+o+"` supplied to `"+n+"`, expected an array."))}for(var s=0;s<a.length;s++){var c=e(a,s,n,f,t+"["+s+"]",h);if(c instanceof Error)return c}return null}return v(r)}function B(){function e(r,u,i,n,f){var t=r[u];if(!x(t)){var a=g(t);return new d("Invalid "+n+" `"+f+"` of type "+("`"+a+"` supplied to `"+i+"`, expected a single ReactElement."))}return null}return v(e)}function J(){function e(r,u,i,n,f){var t=r[u];if(!k.isValidElementType(t)){var a=g(t);return new d("Invalid "+n+" `"+f+"` of type "+("`"+a+"` supplied to `"+i+"`, expected a single ReactElement type."))}return null}return v(e)}function z(e){function r(u,i,n,f,t){if(!(u[i]instanceof e)){var a=e.name||_,o=V(u[i]);return new d("Invalid "+f+" `"+t+"` of type "+("`"+o+"` supplied to `"+n+"`, expected ")+("instance of `"+a+"`."))}return null}return v(r)}function L(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&(arguments.length>1?T("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):T("Invalid argument supplied to oneOf, expected an array.")),E;function r(u,i,n,f,t){for(var a=u[i],o=0;o<e.length;o++)if(Y(a,e[o]))return null;var s=JSON.stringify(e,function(y,l){var b=O(l);return b==="symbol"?String(l):l});return new d("Invalid "+f+" `"+t+"` of value `"+String(a)+"` "+("supplied to `"+n+"`, expected one of "+s+"."))}return v(r)}function X(e){function r(u,i,n,f,t){if(typeof e!="function")return new d("Property `"+t+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=u[i],o=g(a);if(o!=="object")return new d("Invalid "+f+" `"+t+"` of type "+("`"+o+"` supplied to `"+n+"`, expected an object."));for(var s in a)if(I(a,s)){var c=e(a,s,n,f,t+"."+s,h);if(c instanceof Error)return c}return null}return v(r)}function G(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&T("Invalid argument supplied to oneOfType, expected an instance of array."),E;for(var r=0;r<e.length;r++){var u=e[r];if(typeof u!="function")return T("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+m(u)+" at index "+r+"."),E}function i(n,f,t,a,o){for(var s=[],c=0;c<e.length;c++){var y=e[c],l=y(n,f,t,a,o,h);if(l==null)return null;l.data&&I(l.data,"expectedType")&&s.push(l.data.expectedType)}var b=s.length>0?", expected one of type ["+s.join(", ")+"]":"";return new d("Invalid "+a+" `"+o+"` supplied to "+("`"+t+"`"+b+"."))}return v(i)}function H(){function e(r,u,i,n,f){return j(r[u])?null:new d("Invalid "+n+" `"+f+"` supplied to "+("`"+i+"`, expected a ReactNode."))}return v(e)}function R(e,r,u,i,n){return new d((e||"React class")+": "+r+" type `"+u+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}function K(e){function r(u,i,n,f,t){var a=u[i],o=g(a);if(o!=="object")return new d("Invalid "+f+" `"+t+"` of type `"+o+"` "+("supplied to `"+n+"`, expected `object`."));for(var s in e){var c=e[s];if(typeof c!="function")return R(n,f,t,s,O(c));var y=c(a,s,n,f,t+"."+s,h);if(y)return y}return null}return v(r)}function Q(e){function r(u,i,n,f,t){var a=u[i],o=g(a);if(o!=="object")return new d("Invalid "+f+" `"+t+"` of type `"+o+"` "+("supplied to `"+n+"`, expected `object`."));var s=W({},u[i],e);for(var c in s){var y=e[c];if(I(e,c)&&typeof y!="function")return R(n,f,t,c,O(y));if(!y)return new d("Invalid "+f+" `"+t+"` key `"+c+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(u[i],null," ")+`
|
|
2
|
+
Valid keys: `+JSON.stringify(Object.keys(e),null," "));var l=y(a,c,n,f,t+"."+c,h);if(l)return l}return null}return v(r)}function j(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(j);if(e===null||x(e))return!0;var r=M(e);if(r){var u=r.call(e),i;if(r!==e.entries){for(;!(i=u.next()).done;)if(!j(i.value))return!1}else for(;!(i=u.next()).done;){var n=i.value;if(n&&!j(n[1]))return!1}}else return!1;return!0;default:return!1}}function Z(e,r){return e==="symbol"?!0:r?r["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&r instanceof Symbol:!1}function g(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":Z(r,e)?"symbol":r}function O(e){if(typeof e>"u"||e===null)return""+e;var r=g(e);if(r==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}function m(e){var r=O(e);switch(r){case"array":case"object":return"an "+r;case"boolean":case"date":case"regexp":return"a "+r;default:return r}}function V(e){return!e.constructor||!e.constructor.name?_:e.constructor.name}return w.checkPropTypes=q,w.resetWarningCache=q.resetWarningCache,w.PropTypes=w,w},A}exports.__require=te;
|