@proprioo/salatim 26.3.0 → 28.0.0
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 +9 -0
- package/lib/index.js +120 -128
- package/lib/index.js.map +1 -1
- package/lib/ui/src/icons/CloseBox.js +2 -2
- package/lib/ui/src/icons/CloseBox.js.map +1 -1
- package/lib/ui/src/logo/Logo.js +6 -2
- package/lib/ui/src/logo/Logo.js.map +1 -1
- package/lib/ui/src/tag/Tag.js +1 -1
- package/lib/ui/src/tag/Tag.js.map +1 -1
- package/lib/ui/src/tag/Tag.stories.js +15 -31
- package/lib/ui/src/tag/Tag.stories.js.map +1 -1
- package/lib/ui/src/tag/Tag.styles.d.ts +1 -1
- package/lib/ui/src/tag/Tag.styles.js +9 -17
- package/lib/ui/src/tag/Tag.styles.js.map +1 -1
- package/lib/ui/src/tag/Tag.test.js +3 -1
- package/lib/ui/src/tag/Tag.test.js.map +1 -1
- package/lib/ui/src/tag/TagColors.d.ts +8 -14
- package/lib/ui/src/tag/TagColors.js +34 -39
- package/lib/ui/src/tag/TagColors.js.map +1 -1
- package/lib/ui/src/tag/interfaces.d.ts +5 -6
- package/lib/ui/src/tag/interfaces.js +4 -5
- package/lib/ui/src/tag/interfaces.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const CloseBox = () => (react_1.default.createElement("svg", { viewBox: "0 0
|
|
8
|
-
react_1.default.createElement("path", {
|
|
7
|
+
const CloseBox = () => (react_1.default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
8
|
+
react_1.default.createElement("path", { d: "M10 0c5.53 0 10 4.47 10 10s-4.47 10-10 10S0 15.53 0 10 4.47 0 10 0zm3.59 5L10 8.59 6.41 5 5 6.41 8.59 10 5 13.59 6.41 15 10 11.41 13.59 15 15 13.59 11.41 10 15 6.41 13.59 5z", fill: "currentColor" })));
|
|
9
9
|
exports.default = CloseBox;
|
|
10
10
|
//# sourceMappingURL=CloseBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseBox.js","sourceRoot":"","sources":["../../../../packages/ui/src/icons/CloseBox.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CACrB,
|
|
1
|
+
{"version":3,"file":"CloseBox.js","sourceRoot":"","sources":["../../../../packages/ui/src/icons/CloseBox.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CACrB,uCACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;IAElC,wCACE,CAAC,EAAC,+KAA+K,EACjL,IAAI,EAAC,cAAc,GACnB,CACE,CACP,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
package/lib/ui/src/logo/Logo.js
CHANGED
|
@@ -4,7 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const Logo = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 178
|
|
8
|
-
react_1.default.createElement("
|
|
7
|
+
const Logo = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 178 41" },
|
|
8
|
+
react_1.default.createElement("clipPath", null,
|
|
9
|
+
react_1.default.createElement("path", { d: "m0 0h178v40.7981h-178z" })),
|
|
10
|
+
react_1.default.createElement("g", { clipRule: "evenodd", fill: "currentColor", fillRule: "evenodd" },
|
|
11
|
+
react_1.default.createElement("path", { d: "m146.119.0617841-.782-.0617841-.68.0205947c-.034 0-.068.0062418-.098.0118529-.025.0045811-.048.0087418-.067.0087418-.535.0411894-1.071.0823786-1.606.1647576-2.636.473678-4.902 1.668173-6.693 3.624663-2.657 2.88326-3.707 6.30199-3.151 10.17379.37 2.6773 1.647 5.1281 3.645 6.9404 2.904 2.6979 6.364 3.7482 10.297 3.151 2.616-.3707 5.005-1.6476 6.797-3.5835 2.903-3.0892 3.933-6.7756 3.109-10.91517-.576-2.78028-1.997-5.0663-4.201-6.85803-1.874-1.54461-4.16-2.471369-6.57-2.6773159zm5.087 12.1920159c-.062 3.357-2.842 6.0961-6.219 6.0755h-.124c-3.439-.0824-6.158-2.9245-6.075-6.3432.082-3.4393 2.924-6.1578 6.343-6.07542 3.439.08238 6.158 2.92445 6.075 6.34312zm-147.53501-10.97951c-1.10696.00129-2.21393.00258-3.320892.00258v23.31323h6.301982v-5.8695h.24713c.72158 0 1.44087.0023 2.15939.0046h.00004.00003.00004.00004.00004.00003c1.43468.0045 2.86638.0091 4.30708-.0046 1.3799 0 2.7597-.206 4.0572-.6385 2.4714-.8237 4.1601-2.4507 4.881-4.9839.5766-2.0183.5766-4.13951.0205-6.15779-.6178-2.22423-1.9976-3.78942-4.1189-4.71618-1.4416-.61785-3.0068-.92677-4.572-.92677-3.3209-.03089-6.64181-.02703-9.96271-.02317zm3.16644 12.21521h-.18535v-7.00217h.18535 5.80767c.5767 0 1.1533.10297 1.7094.30892 1.2563.47368 1.8947 1.40044 2.0389 2.7185.0823.70025-.0206 1.44165-.309 2.10065-.4324.9474-1.1944 1.4622-2.183 1.7094-.4119.1029-.8444.1647-1.2769.1647-1.2898.0137-2.5705.0092-3.85423.0046-.643-.0023-1.28678-.0046-1.93284-.0046zm159.36157-13.4895c.268.0205947.536.0411894.783.0617841 2.615.2265419 5.066 1.2974659 7.002 3.0686059 2.08 1.87412 3.398 4.22192 3.831 6.98161.597 3.7482-.33 7.1052-2.822 9.9884-1.73 2.0595-4.119 3.4393-6.775 3.9336-4.058.762-7.621-.2883-10.689-3.048-.068-.0541-.127-.1172-.188-.1832v-.0002-.0001-.0001l-.001-.0002v-.0006c-.032-.0341-.065-.069-.099-.1039.72-1.0298 1.297-2.1419 1.73-3.2952.432-1.1739.72-2.389.864-3.6041.557 1.7918 1.648 3.1304 3.337 3.9336 1.627.8032 3.522.8238 5.148.0824 3.131-1.3592 4.573-5.0251 3.193-8.15549-.865-1.95649-2.657-3.33634-4.778-3.64526-3.213-.49427-6.24 1.60639-6.961 4.57205-.268-2.51258-1.174-4.90156-2.636-6.96103.206-.20595.411-.4119.638-.59725 1.874-1.58579 4.098-2.594931 6.487-2.903852.353-.039133.723-.0596764 1.077-.0792918l.056-.0030868c.019 0 .037-.0041582.057-.0087377v-.0000055c.025-.0056107.053-.0118515.087-.0118515zm-118.5223 24.5695-4.4073-7.8878c.0069-.0069.0138-.0114.0183-.0145.0035-.0023.0057-.0038.0055-.0046-.0003-.0015-.0068-.0015-.0238-.0015l.1236-.0824c1.7917-1.1327 2.9244-2.7185 3.3981-4.7779.3089-1.4417.3089-2.94507-.0206-4.3867-.5148-2.49196-1.9565-4.26311-4.3249-5.25165-1.524-.63844-3.1509-.88557-4.7779-.88557-2.8558-.01373-5.7116-.00916-8.5674-.00458-1.4279.00229-2.8558.00458-4.2837.00458h-.1854v23.25142h6.2608v-6.3844c0-.1647.0412-.2265.2266-.2265h6.5697c.1235-.0206.2471.0618.2883.1648 1.1533 2.1006 2.286 4.2013 3.4187 6.3225.0412.1236.1442.1854.2472.1648h5.8283zm-16.5993-11.3683h-.1442l-.0206-.2059v-6.28142c0-.16476.0412-.22654.2266-.22654h5.9312c.6179 0 1.2357.10297 1.8124.32951 1.1533.45308 1.7299 1.31806 1.8741 2.51255.0824.59725.0206 1.2151-.1648 1.7917-.3295 1.0298-1.1121 1.6476-2.1418 1.8948-.4325.1235-.9062.1853-1.3593.1853-1.3325.0137-2.6741.0092-4.0127.0046h-.0002c-.6682-.0023-1.3356-.0046-2.0007-.0046zm68.7039-11.92433h.2267 12.789c1.73.0206 3.398.26774 5.005.96795 2.286 1.00915 3.645 2.78029 4.139 5.21046.33 1.48282.33 3.00682-.02 4.48962-.474 1.9771-1.607 3.5011-3.296 4.6132l-.226.1442 4.428 7.9084h-6.014c-.123.0206-.226-.0618-.268-.1648l-.002-.0049c-1.132-2.099-2.264-4.1981-3.396-6.3177-.041-.1029-.144-.1647-.267-.1647h-6.591c-.165 0-.206.0412-.206.2059v6.4256h-6.2605zm6.2817 11.92433h.185c.659 0 1.318.0023 1.977.0046 1.318.0046 2.636.0091 3.954-.0046.474 0 .948-.0618 1.401-.1853.947-.2266 1.668-.7415 2.08-1.6476.268-.6385.35-1.3387.247-2.0389-.124-1.07092-.597-1.89471-1.586-2.38898-.659-.30892-1.38-.47368-2.1-.45309h-5.952c-.165 0-.206.04119-.206.22654v6.28143zm-32.8694-.7208c0-6.83745-5.5194-12.377426-12.3568-12.3980207-6.7757-.0205947-12.2951 5.4164107-12.398 12.1920207v.1648c0 6.8374 5.5194 12.3774 12.3568 12.398 6.8374 0 12.398-5.5194 12.398-12.3568zm-12.4186 6.3432c-3.4805-.0206-6.302-2.8627-6.2814-6.3638v-.0618c.0206-3.48049 2.8833-6.28137 6.3638-6.26078 3.4805 0 6.302 2.86267 6.2814 6.40498-.0206 3.4805-2.8627 6.302-6.3638 6.2814zm20.986-.103v5.8489h-6.2608v-23.29263h.1853 12.7482c1.6475 0 3.2539.24714 4.7779.88558 2.3684 1.00914 3.8101 2.80088 4.3455 5.31343.3913 1.75055.3707 3.58352-.0824 5.33402-.659 2.5743-2.2654 4.2837-4.7573 5.1899-1.0916.4119-2.2654.6384-3.4188.659-1.6063.0412-3.1921.0412-4.7985.0412h-2.5332zm0-8.73217v3.29517c0 .1853.0412.2265.2265.2265 1.8947 0 3.7895 0 5.6842-.0206.4736 0 .9267-.0618 1.3798-.1647 1.1327-.2884 1.9771-.9474 2.3272-2.1007.2471-.8238.2471-1.68875 0-2.51254s-.8238-1.48282-1.6064-1.81233c-.6178-.26773-1.2974-.4119-1.9771-.4119h-5.8077c-.1853 0-.2059.06179-.2059.22654-.0206 1.09152-.0206 2.18304-.0206 3.27456zm49.036-8.71156h-6.261v23.29263h6.261z" }),
|
|
12
|
+
react_1.default.createElement("path", { d: "m14.5399 32.7662h1.2768c-.0617-.4531-.1853-.8444-.3707-1.1739-.2059-.3502-.453-.6385-.762-.8856-.3089-.2472-.659-.4325-1.0503-.5561-.3913-.1235-.8032-.1853-1.2563-.1853-.7208 0-1.3592.1647-1.9359.5148-.55603.3501-1.00912.8444-1.33863 1.4829-.32952.6384-.49428 1.421-.49428 2.3066 0 .8855.16476 1.6681.49428 2.3066.32951.6384.762 1.1327 1.33863 1.4828.5561.3501 1.2151.5149 1.9359.5149.4531 0 .8856-.0618 1.2769-.206s.7414-.3295 1.0503-.5766c.2884-.2472.5561-.5355.7414-.8856.1854-.3501.3296-.7208.3913-1.1327h-1.2768c-.0618.2677-.1442.4943-.2884.7002-.1441.2059-.2883.3707-.4942.5149-.206.1441-.4119.2471-.6591.3295-.2471.0618-.4942.103-.762.103-.4942 0-.9061-.1236-1.2974-.3708-.3913-.2471-.6797-.5972-.9062-1.0709-.22654-.4737-.32952-1.0503-.32952-1.7299 0-.6797.10298-1.2563.32952-1.73.2265-.4737.5355-.8238.9062-1.0709.3913-.2471.8238-.3707 1.2974-.3707.2678 0 .5149.0206.762.103.2472.0823.4531.1853.6591.3295.2059.1441.3707.3295.4942.5354.1236.206.2266.4531.2678.7209zm-13.48957 5.5811c.30892.1442.67962.2266 1.07092.2266.35011 0 .63844-.0618.90617-.1648.24714-.103.45308-.2471.61784-.3913.14416-.1648.26773-.3089.35011-.4737h.04119v.865h1.19449v-4.1807c0-.4531-.06178-.8238-.22654-1.1121-.16476-.2884-.3707-.4943-.61784-.6591-.24714-.1647-.51487-.2677-.80319-.3295-.28833-.0618-.55606-.0824-.8032-.0824-.39129 0-.762.0618-1.09151.1648-.32952.103-.63844.2883-.906171.5149-.267732.2265-.453084.5354-.597247.9267l1.153308.2677c.10297-.2059.26773-.4118.49427-.5972.22654-.1853.55606-.2677.96795-.2677s.70022.1029.90617.2883c.20594.1853.30892.4737.30892.8238v.0206c0 .1647-.06179.2677-.16476.3295s-.28833.1236-.51487.1442c-.13458.0122-.29824.0317-.48666.0542-.12874.0153-.26903.032-.41951.0487-.30892.0412-.59724.0824-.88557.1648-.28832.0824-.556054.1853-.782596.3089s-.411894.2883-.556057.5355c-.1441629.2471-.205947.5354-.205947.8855 0 .4119.0823788.7621.288326 1.0504.185352.2677.453083.4942.762004.6384zm2.20363-.9679c-.22654.1441-.53546.2059-.86497.2059-.35011 0-.61785-.103-.84439-.2471-.22654-.1442-.32951-.3707-.32951-.6797 0-.2265.04119-.4118.16475-.5354.12357-.1442.28833-.2472.47368-.3089.18536-.0618.4119-.1236.63844-.1442.08794 0 .19091-.015.30889-.0322l.06181-.009c.14417-.0206.28833-.0412.45309-.0618.06498-.0162.12677-.0293.18535-.0416.08993-.019.17231-.0364.24714-.0613.12356-.0412.20594-.0824.24713-.1236v.8032c0 .2471-.06178.4737-.18535.7002s-.30892.4119-.55606.5355zm15.24004 1.1945c-.3913 0-.762-.0824-1.0709-.2266s-.5766-.3707-.762-.6384c-.1853-.2883-.2883-.6385-.2883-1.0504 0-.3501.0618-.6384.2059-.8855.1442-.2472.3295-.4119.5561-.5355.2265-.1236.4943-.2265.7826-.3089s.5766-.1236.8856-.1648c.1504-.0167.2907-.0334.4195-.0487.1884-.0225.352-.042.4866-.0542.2266-.0206.4119-.0824.5149-.1442s.1648-.1648.1648-.3295v-.0206c0-.3501-.103-.6385-.309-.8238-.2059-.1854-.4942-.2883-.8855-.2883s-.7414.0824-.968.2677c-.2471.1854-.3913.3913-.4943.5972l-1.1533-.2677c.1442-.3913.3296-.7002.5973-.9267.2677-.2266.5766-.4119.9061-.5149.3296-.103.7003-.1648 1.0916-.1648.2471 0 .5148.0206.8032.0824.2883.0618.556.1648.8032.3295.2471.1648.453.3707.5972.6591.1442.2883.2471.659.2471 1.1121v4.1807h-1.1945v-.865h-.0411c-.0824.1648-.206.3089-.3502.4737-.1647.1442-.3707.2883-.6178.3913-.2883.103-.5766.1648-.9268.1648zm.2678-.9886c.3295 0 .6384-.0618.865-.2059.2471-.1236.4324-.309.556-.5355s.1854-.4531.1854-.7002v-.8032c-.0412.0412-.1236.0824-.2472.1236-.0748.0249-.1572.0423-.2471.0613-.0586.0123-.1204.0254-.1854.0416-.1647.0206-.3089.0412-.453.0618l-.0619.009c-.1179.0172-.2209.0322-.3089.0322-.2471.0206-.453.0824-.659.1442-.1853.0617-.3501.1647-.4737.3089-.1235.1236-.1647.3089-.1647.5354 0 .309.103.5355.3295.6797.2265.1441.5149.2471.865.2471zm7.4964-3.7276 1.1122-.1854c-.1236-.4943-.3707-.8856-.7826-1.1739-.3913-.2883-.9268-.4325-1.6064-.4325-.4737 0-.8856.0618-1.2563.2266-.3707.1647-.659.3707-.865.659-.2059.2677-.3089.5973-.3089.968 0 .453.1442.8237.4119 1.1121.2677.2883.7208.5148 1.2975.6384l1.0709.2265c.2883.0824.5148.1854.659.309.1648.1235.2266.2883.2266.4942 0 .2472-.1236.4531-.3708.6179-.2471.1647-.5766.2471-.9679.2471-.3501 0-.659-.0618-.8856-.2265-.2265-.1648-.3707-.3913-.4531-.7002l-1.1944.1853c.1029.5355.3707.968.8237 1.2769.4531.3089 1.0298.4531 1.73.4531.4943 0 .9473-.0824 1.3386-.2472.3914-.1853.6797-.4119.9062-.7002.2266-.2883.3295-.6384.3295-1.0091 0-.4531-.1441-.8032-.4325-1.0916-.2883-.2883-.7208-.4942-1.2974-.6178l-.9886-.2265c-.3501-.0824-.5972-.1854-.762-.309-.1441-.1441-.2265-.3089-.2265-.5148 0-.2472.1236-.4325.3501-.5973.2265-.1441.5149-.2265.865-.2265.2677 0 .4531.0412.6384.1236.1854.0823.3089.1853.4119.3089.103.1441.1854.2677.2265.4119zm3.8307 4.7162c-.3913 0-.762-.0824-1.071-.2266-.3089-.1442-.5766-.3707-.762-.6384-.1853-.2883-.2883-.6385-.2883-1.0504 0-.3501.0618-.6384.206-.8855.1441-.2472.3295-.4119.556-.5355.2266-.1236.4943-.2265.7826-.3089s.5767-.1236.8856-.1648c.1505-.0167.2908-.0334.4195-.0487.1884-.0225.3521-.042.4867-.0542.2265-.0206.4119-.0824.5148-.1442.103-.0618.1648-.1648.1648-.3295v-.0206c0-.3501-.103-.6385-.3089-.8238-.206-.1854-.4943-.2883-.9062-.2883s-.7414.0824-.968.2677c-.2265.1854-.3913.3913-.4942.5972l-1.1533-.2677c.1441-.3913.3295-.7002.5972-.9267.2677-.2266.5767-.4119.9062-.5149s.7002-.1648 1.0915-.1648c.2471 0 .5149.0206.8032.0824s.5561.1648.8032.3295c.2471.1648.4531.3707.5972.6591.1442.2883.2266.659.2266 1.1121v4.1807h-1.1945v-.865h-.0412c-.0824.1648-.206.3089-.3501.4737-.1648.1442-.3707.2883-.6179.3913-.2471.103-.5354.1648-.8855.1648zm.2677-.9886c.3295 0 .6384-.0618.865-.2059.2471-.1236.4325-.309.556-.5355.1236-.2265.1854-.4531.1854-.7002v-.8032c-.0412.0412-.1236.0824-.2471.1236-.0749.0249-.1573.0423-.2472.0613-.0586.0123-.1204.0254-.1853.0416-.1648.0206-.309.0412-.4531.0618l-.0618.009c-.118.0172-.221.0322-.3089.0322-.2266.0206-.4531.0824-.6385.1442-.1853.0617-.3501.1647-.4736.3089-.1236.1236-.1854.3089-.1854.5354 0 .309.103.5355.3295.6797.2266.1647.5149.2471.865.2471zm6.7551.8444 2.286-6.302h-1.3181l-1.5858 4.8398h-.0618l-1.5858-4.8398h-1.318l2.2654 6.302zm5.2928.1236c-.5972 0-1.1121-.1442-1.5446-.4119-.4325-.2678-.7826-.6385-1.0297-1.1327-.2472-.4943-.3707-1.0504-.3707-1.7094s.1235-1.2151.3707-1.7094c.2471-.4942.5766-.8649 1.0297-1.1327.4325-.2677.9474-.4119 1.5446-.4119.5973 0 1.1121.1442 1.5446.4119.4325.2678.7826.6385 1.0297 1.1327.2472.4943.3708 1.0504.3708 1.7094s-.1236 1.2151-.3708 1.7094c-.2471.4942-.5766.8649-1.0297 1.1327-.4531.2677-.9473.4119-1.5446.4119zm0-1.0298c.3913 0 .7002-.103.9474-.3089.2471-.2059.4325-.4737.556-.8032.1236-.3295.1854-.7002.1854-1.1121s-.0618-.762-.1854-1.1121c-.1235-.3501-.3089-.5973-.556-.8032-.2472-.206-.5767-.3089-.9474-.3089s-.7002.1029-.9473.3089c-.2472.2059-.4325.4737-.5561.8032s-.1854.7002-.1854 1.1121.0618.7826.1854 1.1121.3089.5973.5561.8032c.2471.2059.556.3089.9473.3089zm7.2906.6179c.4324.2677.9473.4119 1.5652.4119.4942 0 .9267-.0824 1.318-.2266.3707-.1853.6796-.4325.8856-.762.2059-.3295.3501-.6796.3913-1.0915h-1.1945c-.0412.2265-.1442.4119-.2677.5766-.1236.1648-.2884.2884-.4737.3708-.206.0823-.4119.1235-.6385.1235-.3501 0-.659-.0824-.9061-.2677-.2678-.1854-.4531-.4531-.5973-.7826-.1441-.3501-.2059-.7414-.2059-1.1945s.0618-.8444.2059-1.1739c.1442-.3295.3501-.5766.5973-.762.2677-.1854.556-.2677.9061-.2677.3913 0 .7003.1235.9268.3295.2471.2059.3913.4737.4531.762h1.1945c-.0412-.4325-.1854-.8032-.4119-1.1121-.2266-.3089-.5355-.5561-.9062-.7414-.3707-.1854-.8032-.2678-1.2768-.2678-.5973 0-1.1122.1236-1.5447.4119-.4324.2884-.762.6591-1.0091 1.1533-.2471.4943-.3707 1.071-.3707 1.6888s.1236 1.1739.3501 1.6682c.2266.4942.5767.8855 1.0092 1.1533zm7.5376.4119c-.5973 0-1.1121-.1442-1.5446-.4119-.4325-.2678-.7826-.6385-1.0297-1.1327-.2472-.4943-.3707-1.0504-.3707-1.7094s.1235-1.2151.3707-1.7094c.2471-.4942.5766-.8649 1.0297-1.1327.4325-.2677.9473-.4119 1.5446-.4119.5972 0 1.1121.1442 1.5446.4119.4325.2678.7826.6385 1.0297 1.1327.2472.4943.3707 1.0504.3707 1.7094s-.1235 1.2151-.3707 1.7094c-.2471.4942-.5766.8649-1.0297 1.1327-.4531.2677-.968.4119-1.5446.4119zm0-1.0298c.3913 0 .7002-.103.9473-.3089.2472-.2059.4325-.4737.5561-.8032s.1854-.7002.1854-1.1121-.0618-.762-.1854-1.1121-.3089-.5973-.5561-.8032c-.2471-.206-.5766-.3089-.9473-.3089s-.7002.1029-.9474.3089c-.2471.2059-.4325.4737-.556.8032-.1236.3295-.1854.7002-.1854 1.1121s.0618.7826.1854 1.1121c.1235.3295.3089.5973.556.8032.2472.2059.5561.3089.9474.3089zm3.707-5.3958v6.302l1.2357.0206v-3.8718c0-.2678.0618-.5149.1853-.7414.1236-.2266.2678-.3913.4737-.5149.1854-.1236.4119-.1853.6385-.1853.3295 0 .6178.1029.8237.3089.206.2059.309.4736.309.8238v4.1807h1.215v-4.016c0-.3913.103-.7002.3296-.9473.2265-.2472.5354-.3707.9267-.3707.3089 0 .5973.1029.8238.2883.2266.1853.3501.4943.3501.9267v4.0984h1.2357v-4.2219c0-.7208-.1648-1.2769-.5355-1.627s-.8237-.5355-1.4004-.5355c-.4531 0-.8444.103-1.1739.309-.3295.2059-.5767.4736-.7208.8031h-.0618c-.1442-.3295-.3501-.5972-.6384-.8031-.2678-.1854-.6385-.2884-1.0504-.2884s-.7826.103-1.0709.2884c-.2883.1853-.5149.453-.6384.8031h-.0824v-1.0297zm9.6178 8.6498v-8.6498h1.1945v1.0092h.1029c.0618-.1236.1648-.2884.3089-.4531.1236-.1648.309-.3295.5561-.4531.2265-.1236.5561-.1854.9474-.1854.5148 0 .9679.1236 1.3592.3913.3913.2678.7208.6179.9474 1.1121.2265.4943.3501 1.071.3501 1.7506s-.103 1.2563-.3295 1.7505c-.2266.4943-.5355.865-.9268 1.1122-.3913.2471-.8444.3913-1.3592.3913-.3913 0-.7003-.0618-.9268-.1854-.2266-.1236-.4325-.2883-.5767-.4531-.1441-.1647-.2471-.3295-.3089-.4531h-.0824v3.3158zm1.1945-5.4988c0 .4325.0617.8238.1853 1.1533s.3089.5972.5561.7826c.2471.1854.5354.2883.8855.2883s.6797-.1029.9268-.2883.4325-.4531.5561-.8032c.1235-.3295.1853-.7208.1853-1.1327s-.0618-.7826-.1853-1.1121c-.1236-.3295-.309-.5973-.5561-.7826-.2471-.1854-.5561-.2883-.9268-.2883s-.659.0823-.9061.2677c-.2472.1853-.4325.4325-.5561.762-.103.3295-.1647.7208-.1647 1.1533zm6.096 3.0686c.3089.1442.6796.2266 1.0709.2266.3501 0 .659-.0618.9473-.1648.2472-.103.4531-.2471.6179-.3913.1441-.1648.2677-.3089.3501-.4737h.0412v.865h1.1945v-4.1807c0-.4531-.0618-.8238-.2266-1.1121-.1647-.2884-.3707-.4943-.6178-.6591-.2472-.1647-.5149-.2677-.8032-.3295s-.5561-.0824-.8032-.0824c-.3913 0-.7414.0618-1.0915.1648-.3295.103-.6385.2883-.9062.5149-.2677.2265-.4531.5354-.5972.9267l1.1533.2677c.1029-.2059.2677-.4118.4942-.5972.2266-.1853.5767-.2677.968-.2677s.6796.0824.8856.2883c.2059.1853.3089.4737.3089.8238v.0206c0 .1647-.0618.2677-.1648.3295-.1029.0618-.2883.1236-.5148.1442-.1596.0133-.345.0351-.5561.0601-.1158.0137-.2394.0282-.3707.0428-.3089.0412-.5972.103-.8856.1648-.2883.0824-.556.1853-.7826.3089-.2265.1236-.4119.2883-.556.5355-.1442.2471-.206.5354-.206.8855 0 .4119.103.7826.2883 1.0504.1854.2677.4531.4942.7621.6384zm2.2036-.9679c-.2471.1441-.5355.2059-.865.2059-.3501 0-.6384-.103-.865-.2471-.2265-.1442-.3295-.3707-.3295-.6797 0-.2265.0618-.4118.1854-.5354.1235-.1442.2677-.2472.4736-.3089.1854-.0618.4119-.1236.6385-.1442.0879 0 .1909-.015.3089-.0322l.0618-.009c.1442-.0206.2883-.0412.4531-.0618.065-.0162.1267-.0293.1853-.0416.0899-.019.1723-.0364.2472-.0613.1235-.0412.2059-.0824.2471-.1236v.8032c0 .2471-.0618.4737-.1854.7002-.1235.2265-.3089.4119-.556.5355zm4.2631-2.6979v3.7276h-1.2357v-6.2814h1.1739v1.0297h.0824c.1441-.3295.3707-.5972.6796-.8031.3089-.206.7002-.309 1.1739-.309.4325 0 .8032.0824 1.1327.2678.3295.1853.5767.453.7414.8032.1854.3501.2678.7826.2678 1.2974v3.9954h-1.2357v-3.8512c0-.4531-.1236-.8032-.3501-1.0709-.2266-.2472-.5561-.3913-.9886-.3913-.2883 0-.5354.0617-.762.1853-.2265.1236-.3913.3089-.5149.5355-.1235.2265-.1647.5354-.1647.865zm5.1281 6.0548c.1441.0206.3089.0412.4943.0412.3501.0206.6384 0 .8855-.1236.2472-.1235.4737-.2677.6591-.5148.1853-.2472.3295-.5149.453-.8444l2.595-7.1258h-1.3181l-1.5858 4.881h-.0618l-1.5858-4.881h-1.318l2.3066 6.3638-.1442.4119c-.1029.2677-.2059.4736-.3501.5972-.1441.103-.2883.1854-.4737.1854-.1853 0-.3707-.0206-.5972-.0824l-.2883 1.0091c.0618.0206.1853.0618.3295.0824z" }))));
|
|
9
13
|
exports.default = Logo;
|
|
10
14
|
//# sourceMappingURL=Logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../../packages/ui/src/logo/Logo.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CACjB,uCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,YAAY;IAC1D,
|
|
1
|
+
{"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../../packages/ui/src/logo/Logo.tsx"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAE1B,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC,CACjB,uCAAK,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,YAAY;IAC1D;QACE,wCAAM,CAAC,EAAC,wBAAwB,GAAG,CAC1B;IACX,qCAAG,QAAQ,EAAC,SAAS,EAAC,IAAI,EAAC,cAAc,EAAC,QAAQ,EAAC,SAAS;QAC1D,wCAAM,CAAC,EAAC,k1JAAk1J,GAAG;QAC71J,wCAAM,CAAC,EAAC,2hXAA2hX,GAAG,CACpiX,CACA,CACP,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
package/lib/ui/src/tag/Tag.js
CHANGED
|
@@ -37,7 +37,7 @@ const Tag = ({ labels, appearance, color, icon, isOutlined, dataTest, numberOfTa
|
|
|
37
37
|
tagsToDisplay.map((tag, index) => (react_1.default.createElement(Tag_styles_1.BasicTag, Object.assign({}, { appearance, color, isOutlined }, { isOutlined: isOutlined, icon: !!icon, close: !!onClose, "data-test": dataTest, key: index }),
|
|
38
38
|
icon && (react_1.default.createElement(Tag_styles_1.IconWrapper, { color: color, "data-test": "tag-icon" }, icon)),
|
|
39
39
|
tag,
|
|
40
|
-
onClose && (react_1.default.createElement(Tag_styles_1.TagCloser, { onClick: onClose, "data-test": "tag-closer" },
|
|
40
|
+
onClose && (react_1.default.createElement(Tag_styles_1.TagCloser, { onClick: onClose, "data-test": "tag-closer", "aria-label": "Supprimer" },
|
|
41
41
|
react_1.default.createElement(CloseBox_1.default, null)))))),
|
|
42
42
|
Boolean(tagsToHide.length) && (react_1.default.createElement(Tag_styles_1.TagList, { "data-test": "list-tag" },
|
|
43
43
|
react_1.default.createElement(Tag_styles_1.BasicTag, Object.assign({}, { appearance, color, isOutlined }, { icon: !!icon, "data-test": dataTest }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/Tag.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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,CAAC;AAEF,GAAG,CAAC,YAAY,GAAG;IACjB,UAAU,EAAE,0BAAa,CAAC,QAAQ;IAClC,KAAK,EAAE,2BAAc,CAAC,MAAM;IAC5B,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;CACtB,CAAC;AAEF,kBAAe,GAAG,CAAC"}
|
|
@@ -30,11 +30,17 @@ const react_1 = __importStar(require("react"));
|
|
|
30
30
|
const addon_actions_1 = require("@storybook/addon-actions");
|
|
31
31
|
const addon_knobs_1 = require("@storybook/addon-knobs");
|
|
32
32
|
const react_2 = require("@storybook/react");
|
|
33
|
-
const utils_1 = require("../../../utils");
|
|
34
33
|
const icons_1 = __importDefault(require("../icons"));
|
|
35
34
|
const interfaces_1 = require("./interfaces");
|
|
36
35
|
const Tag_1 = __importDefault(require("./Tag"));
|
|
37
36
|
const { EmoticonCool } = icons_1.default;
|
|
37
|
+
const wrapperStyle = {
|
|
38
|
+
minHeight: '100px',
|
|
39
|
+
display: 'flex',
|
|
40
|
+
alignItems: 'flex-end',
|
|
41
|
+
padding: '1em',
|
|
42
|
+
background: 'transparent'
|
|
43
|
+
};
|
|
38
44
|
const knobs = () => ({
|
|
39
45
|
appearance: (0, addon_knobs_1.select)('Appearance', interfaces_1.TagAppearance, interfaces_1.TagAppearance.CUSTOMER),
|
|
40
46
|
color: (0, addon_knobs_1.select)('Color', interfaces_1.TagColorsTypes, interfaces_1.TagColorsTypes.ORANGE),
|
|
@@ -46,47 +52,25 @@ const knobs = () => ({
|
|
|
46
52
|
numberOfTags: (0, addon_knobs_1.number)('Number of tags to display', 4)
|
|
47
53
|
});
|
|
48
54
|
(0, react_2.storiesOf)('Tag', module)
|
|
55
|
+
.add('Overview', () => {
|
|
56
|
+
return (react_1.default.createElement(react_1.Fragment, null, Object.values(interfaces_1.TagAppearance).map((appearance, appearanceIndex) => (react_1.default.createElement("div", { key: appearanceIndex },
|
|
57
|
+
react_1.default.createElement("h2", null, appearance),
|
|
58
|
+
Object.values(interfaces_1.TagColorsTypes).map((color, colorIndex) => (react_1.default.createElement(Tag_1.default, Object.assign({}, { color, appearance }, { labels: [color.toLocaleLowerCase()], key: colorIndex, onClose: () => { } })))))))));
|
|
59
|
+
})
|
|
49
60
|
.add('Basic', () => {
|
|
50
61
|
const props = Object.assign({}, knobs());
|
|
51
|
-
const style = {
|
|
52
|
-
minHeight: props.labels.length > 1 ? '100px' : 0,
|
|
53
|
-
display: 'flex',
|
|
54
|
-
alignItems: 'flex-end',
|
|
55
|
-
padding: '1em',
|
|
56
|
-
background: props.color === interfaces_1.TagColorsTypes.WHITE
|
|
57
|
-
? utils_1.colors.orange.base
|
|
58
|
-
: 'transparent'
|
|
59
|
-
};
|
|
60
62
|
return (react_1.default.createElement(react_1.Fragment, null,
|
|
61
|
-
react_1.default.createElement("div", { style:
|
|
63
|
+
react_1.default.createElement("div", { style: wrapperStyle },
|
|
62
64
|
react_1.default.createElement(Tag_1.default, Object.assign({}, props)))));
|
|
63
65
|
})
|
|
64
66
|
.add('With icon', () => {
|
|
65
67
|
const props = Object.assign(Object.assign({}, knobs()), { icon: react_1.default.createElement(EmoticonCool, null) });
|
|
66
|
-
|
|
67
|
-
minHeight: props.labels.length > 1 ? '100px' : 0,
|
|
68
|
-
display: 'flex',
|
|
69
|
-
alignItems: 'flex-end',
|
|
70
|
-
padding: '1em',
|
|
71
|
-
background: props.color === interfaces_1.TagColorsTypes.WHITE
|
|
72
|
-
? utils_1.colors.orange.base
|
|
73
|
-
: 'transparent'
|
|
74
|
-
};
|
|
75
|
-
return (react_1.default.createElement("div", { style: style },
|
|
68
|
+
return (react_1.default.createElement("div", { style: wrapperStyle },
|
|
76
69
|
react_1.default.createElement(Tag_1.default, Object.assign({}, props))));
|
|
77
70
|
})
|
|
78
71
|
.add('With close action', () => {
|
|
79
72
|
const props = Object.assign(Object.assign({}, knobs()), { onClose: (0, addon_actions_1.action)('onClose') });
|
|
80
|
-
|
|
81
|
-
minHeight: props.labels.length > 1 ? '100px' : 0,
|
|
82
|
-
display: 'flex',
|
|
83
|
-
alignItems: 'flex-end',
|
|
84
|
-
padding: '1em',
|
|
85
|
-
background: props.color === interfaces_1.TagColorsTypes.WHITE
|
|
86
|
-
? utils_1.colors.orange.base
|
|
87
|
-
: 'transparent'
|
|
88
|
-
};
|
|
89
|
-
return (react_1.default.createElement("div", { style: style },
|
|
73
|
+
return (react_1.default.createElement("div", { style: wrapperStyle },
|
|
90
74
|
react_1.default.createElement(Tag_1.default, Object.assign({}, props))));
|
|
91
75
|
});
|
|
92
76
|
//# sourceMappingURL=Tag.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.stories.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/Tag.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,4DAAkD;AAClD,wDAAiE;AACjE,4CAA6C;AAE7C,
|
|
1
|
+
{"version":3,"file":"Tag.stories.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/Tag.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,4DAAkD;AAClD,wDAAiE;AACjE,4CAA6C;AAE7C,qDAA6B;AAC7B,6CAA6D;AAC7D,gDAAwB;AAExB,MAAM,EAAE,YAAY,EAAE,GAAG,eAAK,CAAC;AAE/B,MAAM,YAAY,GAAG;IACnB,SAAS,EAAE,OAAO;IAClB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,UAAU;IACtB,OAAO,EAAE,KAAK;IACd,UAAU,EAAE,aAAa;CAC1B,CAAC;AAEF,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC;IACnB,UAAU,EAAE,IAAA,oBAAM,EAAC,YAAY,EAAE,0BAAa,EAAE,0BAAa,CAAC,QAAQ,CAAC;IACvE,KAAK,EAAE,IAAA,oBAAM,EAAC,OAAO,EAAE,2BAAc,EAAE,2BAAc,CAAC,MAAM,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EAAE,GAAG,EAAE;IACrB,MAAM,KAAK,mCACN,KAAK,EAAE,KACV,IAAI,EAAE,8BAAC,YAAY,OAAG,GACvB,CAAC;IAEF,OAAO,CACL,uCAAK,KAAK,EAAE,YAAY;QACtB,8BAAC,aAAG,oBAAK,KAAK,EAAI,CACd,CACP,CAAC;AACJ,CAAC,CAAC;KACD,GAAG,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC7B,MAAM,KAAK,mCACN,KAAK,EAAE,KACV,OAAO,EAAE,IAAA,sBAAM,EAAC,SAAS,CAAC,GAC3B,CAAC;IAEF,OAAO,CACL,uCAAK,KAAK,EAAE,YAAY;QACtB,8BAAC,aAAG,oBAAK,KAAK,EAAI,CACd,CACP,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface TagBaseProps {
|
|
|
6
6
|
export declare const TagBase: import("styled-components").FlattenSimpleInterpolation;
|
|
7
7
|
export declare const TAG_BUSINESS_BASE: import("styled-components").FlattenSimpleInterpolation;
|
|
8
8
|
export declare const BasicTag: import("styled-components").StyledComponent<"span", any, Pick<TagProps, "appearance" | "color" | "isOutlined"> & TagBaseProps, never>;
|
|
9
|
-
export declare const TagCloser: import("styled-components").StyledComponent<"
|
|
9
|
+
export declare const TagCloser: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
10
10
|
export declare const TagElement: import("styled-components").StyledComponent<"li", any, {}, never>;
|
|
11
11
|
export declare const List: import("styled-components").StyledComponent<"ul", any, Pick<TagProps, "appearance" | "color" | "isOutlined">, never>;
|
|
12
12
|
export declare const TagList: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -45,9 +45,8 @@ exports.TagBase = (0, styled_components_1.css) `
|
|
|
45
45
|
`;
|
|
46
46
|
exports.TAG_BUSINESS_BASE = (0, styled_components_1.css) `
|
|
47
47
|
font-size: ${utils_1.fonts.smallest};
|
|
48
|
-
border-radius: ${(0, utils_1.convertPxToRem)(
|
|
49
|
-
padding: ${(0, utils_1.convertPxToRem)(4)};
|
|
50
|
-
text-transform: uppercase;
|
|
48
|
+
border-radius: ${(0, utils_1.convertPxToRem)(6)};
|
|
49
|
+
padding: ${(0, utils_1.convertPxToRem)(4)} ${(0, utils_1.convertPxToRem)(8)};
|
|
51
50
|
font-weight: bold;
|
|
52
51
|
`;
|
|
53
52
|
const getTagMainStyle = (color, appearance, isOutlined) => {
|
|
@@ -91,23 +90,16 @@ exports.BasicTag = styled_components_1.default.span `
|
|
|
91
90
|
padding-right: ${(0, utils_1.convertPxToRem)(8)};
|
|
92
91
|
`}
|
|
93
92
|
`;
|
|
94
|
-
exports.TagCloser = styled_components_1.default.
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
exports.TagCloser = styled_components_1.default.button `
|
|
94
|
+
${utils_1.resetCssButton};
|
|
95
|
+
width: ${(0, utils_1.convertPxToRem)(12)};
|
|
96
|
+
height: ${(0, utils_1.convertPxToRem)(12)};
|
|
97
97
|
margin-left: ${(0, utils_1.convertPxToRem)(8)};
|
|
98
98
|
cursor: pointer;
|
|
99
99
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
&:active {
|
|
105
|
-
opacity: 0.6;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&:active,
|
|
109
|
-
&:focus {
|
|
110
|
-
outline: unset;
|
|
100
|
+
> svg {
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
111
103
|
}
|
|
112
104
|
`;
|
|
113
105
|
exports.TagElement = styled_components_1.default.li `
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.styles.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/Tag.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAAgD;AAEhD,
|
|
1
|
+
{"version":3,"file":"Tag.styles.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/Tag.styles.ts"],"names":[],"mappings":";;;;;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AC,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,EAAE,CACtC,KAAK,IAAI,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,CAAC;CAC1D,CAAC;AAEW,QAAA,OAAO,GAAG,2BAAM,CAAC,GAAG,CAAA;;;;YAIrB,YAAI;;;;IAIZ,gBAAQ;mBACO,IAAA,sBAAc,EAAC,CAAC,CAAC;;;IAGhC,gBAAQ;kBACM,IAAA,sBAAc,EAAC,CAAC,CAAC;;CAElC,CAAC;AAEW,QAAA,WAAW,GAAG,2BAAM,CAAC,IAAI,CAAA;WAC3B,IAAA,sBAAc,EAAC,EAAE,CAAC;YACjB,IAAA,sBAAc,EAAC,EAAE,CAAC;kBACZ,IAAA,sBAAc,EAAC,CAAC,CAAC;;;;;;;;;;CAUlC,CAAC"}
|
|
@@ -48,8 +48,10 @@ const defaultProps = {
|
|
|
48
48
|
describe('Tag component', () => {
|
|
49
49
|
it('should render tag with cross', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
50
50
|
(0, react_2.render)(react_1.default.createElement(Tag_1.default, Object.assign({}, defaultProps, { onClose: mockOnClose })));
|
|
51
|
+
const deleteButton = react_2.screen.getByRole('button', { name: 'Supprimer' });
|
|
51
52
|
expect(react_2.screen.getByTestId('tag-closer')).toBeInTheDocument();
|
|
52
|
-
|
|
53
|
+
expect(deleteButton).toBeInTheDocument();
|
|
54
|
+
yield user_event_1.default.click(deleteButton);
|
|
53
55
|
expect(mockOnClose).toHaveBeenCalled();
|
|
54
56
|
}));
|
|
55
57
|
it('should render basic tag', () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.test.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/Tag.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,kDAAwD;AACxD,6EAAoD;AAEpD,6CAAwD;AACxD,gDAAwB;AAExB,MAAM,W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|
9
9
|
color: string;
|
|
10
10
|
background: string;
|
|
11
11
|
colorOutlined: string;
|
|
12
12
|
backgroundOutlined: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
GREY: {
|
|
15
15
|
color: string;
|
|
16
16
|
background: string;
|
|
17
17
|
colorOutlined: string;
|
|
18
18
|
backgroundOutlined: string;
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
GREY_LIGHT: {
|
|
21
21
|
color: string;
|
|
22
22
|
background: string;
|
|
23
23
|
colorOutlined: string;
|
|
24
24
|
backgroundOutlined: string;
|
|
25
25
|
};
|
|
26
|
-
|
|
27
|
-
color: string;
|
|
28
|
-
background: string;
|
|
29
|
-
colorOutlined: string;
|
|
30
|
-
backgroundOutlined: string;
|
|
31
|
-
};
|
|
32
|
-
GREEN_LIGHTER: {
|
|
26
|
+
GREEN: {
|
|
33
27
|
color: string;
|
|
34
28
|
background: string;
|
|
35
29
|
colorOutlined: string;
|
|
36
30
|
backgroundOutlined: string;
|
|
37
31
|
};
|
|
38
|
-
|
|
32
|
+
GREEN_LIGHT: {
|
|
39
33
|
color: string;
|
|
40
34
|
background: string;
|
|
41
35
|
colorOutlined: string;
|
|
@@ -53,7 +47,7 @@ export declare const TagColors: {
|
|
|
53
47
|
colorOutlined: string;
|
|
54
48
|
backgroundOutlined: string;
|
|
55
49
|
};
|
|
56
|
-
|
|
50
|
+
ORANGE_LIGHTER: {
|
|
57
51
|
color: string;
|
|
58
52
|
background: string;
|
|
59
53
|
colorOutlined: string;
|
|
@@ -65,13 +59,13 @@ export declare const TagColors: {
|
|
|
65
59
|
colorOutlined: string;
|
|
66
60
|
backgroundOutlined: string;
|
|
67
61
|
};
|
|
68
|
-
|
|
62
|
+
RED_LIGHT: {
|
|
69
63
|
color: string;
|
|
70
64
|
background: string;
|
|
71
65
|
colorOutlined: string;
|
|
72
66
|
backgroundOutlined: string;
|
|
73
67
|
};
|
|
74
|
-
|
|
68
|
+
TERRACOTA: {
|
|
75
69
|
color: string;
|
|
76
70
|
background: string;
|
|
77
71
|
colorOutlined: string;
|
|
@@ -2,84 +2,79 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TagColors = void 0;
|
|
4
4
|
const utils_1 = require("../../../utils");
|
|
5
|
+
const interfaces_1 = require("./interfaces");
|
|
5
6
|
exports.TagColors = {
|
|
6
|
-
BLUE: {
|
|
7
|
-
color: utils_1.colors.
|
|
7
|
+
[interfaces_1.TagColorsTypes.BLUE]: {
|
|
8
|
+
color: utils_1.colors.dark.base,
|
|
8
9
|
background: utils_1.colors.blue.base,
|
|
10
|
+
colorOutlined: utils_1.colors.dark.base,
|
|
11
|
+
backgroundOutlined: utils_1.colors.blue.base40
|
|
12
|
+
},
|
|
13
|
+
[interfaces_1.TagColorsTypes.BLUE_LIGHT]: {
|
|
14
|
+
color: utils_1.colors.green.base,
|
|
15
|
+
background: utils_1.colors.blue.base40,
|
|
9
16
|
colorOutlined: utils_1.colors.green.base,
|
|
10
17
|
backgroundOutlined: utils_1.colors.blue.base40
|
|
11
18
|
},
|
|
12
|
-
|
|
19
|
+
[interfaces_1.TagColorsTypes.GREY]: {
|
|
13
20
|
color: 'white',
|
|
14
|
-
background: utils_1.colors.dark.
|
|
21
|
+
background: utils_1.colors.dark.base80,
|
|
15
22
|
colorOutlined: utils_1.colors.dark.base,
|
|
16
23
|
backgroundOutlined: utils_1.colors.dark.base40
|
|
17
24
|
},
|
|
18
|
-
|
|
19
|
-
color:
|
|
20
|
-
background: utils_1.colors.dark.
|
|
25
|
+
[interfaces_1.TagColorsTypes.GREY_LIGHT]: {
|
|
26
|
+
color: utils_1.colors.dark.base,
|
|
27
|
+
background: utils_1.colors.dark.base10,
|
|
21
28
|
colorOutlined: utils_1.colors.dark.base,
|
|
22
29
|
backgroundOutlined: utils_1.colors.dark.base40
|
|
23
30
|
},
|
|
24
|
-
GREEN: {
|
|
25
|
-
color:
|
|
26
|
-
background: utils_1.colors.green.base,
|
|
27
|
-
colorOutlined: utils_1.colors.green.base,
|
|
28
|
-
backgroundOutlined: utils_1.colors.green.base20
|
|
29
|
-
},
|
|
30
|
-
GREEN_LIGHT: {
|
|
31
|
-
color: utils_1.colors.dark.base,
|
|
31
|
+
[interfaces_1.TagColorsTypes.GREEN]: {
|
|
32
|
+
color: utils_1.colors.green.base,
|
|
32
33
|
background: utils_1.colors.greenLight.base40,
|
|
33
|
-
colorOutlined: utils_1.colors.
|
|
34
|
-
backgroundOutlined: utils_1.colors.
|
|
34
|
+
colorOutlined: utils_1.colors.green.base40,
|
|
35
|
+
backgroundOutlined: utils_1.colors.green.base20
|
|
35
36
|
},
|
|
36
|
-
|
|
37
|
-
color: utils_1.colors.
|
|
37
|
+
[interfaces_1.TagColorsTypes.GREEN_LIGHT]: {
|
|
38
|
+
color: utils_1.colors.green.base,
|
|
38
39
|
background: utils_1.colors.greenLight.base20,
|
|
39
40
|
colorOutlined: utils_1.colors.dark.base,
|
|
40
41
|
backgroundOutlined: utils_1.colors.greenLight.base20
|
|
41
42
|
},
|
|
42
|
-
|
|
43
|
-
color: utils_1.colors.dark.base60,
|
|
44
|
-
background: utils_1.colors.grey.base20,
|
|
45
|
-
colorOutlined: utils_1.colors.dark.base60,
|
|
46
|
-
backgroundOutlined: utils_1.colors.grey.base20
|
|
47
|
-
},
|
|
48
|
-
ORANGE: {
|
|
43
|
+
[interfaces_1.TagColorsTypes.ORANGE]: {
|
|
49
44
|
color: 'white',
|
|
50
45
|
background: utils_1.colors.orange.base,
|
|
51
46
|
colorOutlined: utils_1.colors.orange.base,
|
|
52
47
|
backgroundOutlined: utils_1.colors.orange.base20
|
|
53
48
|
},
|
|
54
|
-
ORANGE_LIGHT: {
|
|
49
|
+
[interfaces_1.TagColorsTypes.ORANGE_LIGHT]: {
|
|
55
50
|
color: utils_1.colors.dark.base,
|
|
56
51
|
background: utils_1.colors.orange.base40,
|
|
57
52
|
colorOutlined: utils_1.colors.dark.base,
|
|
58
53
|
backgroundOutlined: utils_1.colors.orange.base40
|
|
59
54
|
},
|
|
60
|
-
|
|
61
|
-
color: utils_1.colors.
|
|
62
|
-
background: utils_1.colors.
|
|
55
|
+
[interfaces_1.TagColorsTypes.ORANGE_LIGHTER]: {
|
|
56
|
+
color: utils_1.colors.green.base,
|
|
57
|
+
background: utils_1.colors.orange.base10,
|
|
63
58
|
colorOutlined: utils_1.colors.dark.base,
|
|
64
|
-
backgroundOutlined: utils_1.colors.
|
|
59
|
+
backgroundOutlined: utils_1.colors.orange.base40
|
|
65
60
|
},
|
|
66
|
-
RED: {
|
|
61
|
+
[interfaces_1.TagColorsTypes.RED]: {
|
|
67
62
|
color: 'white',
|
|
68
63
|
background: utils_1.colors.red.base,
|
|
69
64
|
colorOutlined: utils_1.colors.red.base,
|
|
70
65
|
backgroundOutlined: utils_1.colors.red.base20
|
|
71
66
|
},
|
|
72
|
-
|
|
67
|
+
[interfaces_1.TagColorsTypes.RED_LIGHT]: {
|
|
68
|
+
color: utils_1.colors.red.base,
|
|
69
|
+
background: utils_1.colors.red.base10,
|
|
70
|
+
colorOutlined: utils_1.colors.red.base,
|
|
71
|
+
backgroundOutlined: utils_1.colors.red.base20
|
|
72
|
+
},
|
|
73
|
+
[interfaces_1.TagColorsTypes.TERRACOTA]: {
|
|
73
74
|
color: utils_1.colors.dark.base,
|
|
74
75
|
background: utils_1.colors.terracota.base,
|
|
75
76
|
colorOutlined: utils_1.colors.terracota.base,
|
|
76
77
|
backgroundOutlined: utils_1.colors.terracota.base20
|
|
77
|
-
},
|
|
78
|
-
WHITE: {
|
|
79
|
-
color: utils_1.colors.green.base,
|
|
80
|
-
background: 'white',
|
|
81
|
-
colorOutlined: utils_1.colors.green.base,
|
|
82
|
-
backgroundOutlined: 'white'
|
|
83
78
|
}
|
|
84
79
|
};
|
|
85
80
|
//# sourceMappingURL=TagColors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagColors.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/TagColors.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TagColors.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/TagColors.ts"],"names":[],"mappings":";;;AAEA,0CAAwC;AACxC,6CAA8C;AAEjC,QAAA,SAAS,GAAG;IACvB,CAAC,2BAAc,CAAC,IAAI,CAAC,EAAE;QACrB,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QACvB,UAAU,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QAC5B,aAAa,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QAC/B,kBAAkB,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;KACvC;IACD,CAAC,2BAAc,CAAC,UAAU,CAAC,EAAE;QAC3B,KAAK,EAAE,cAAM,CAAC,KAAK,CAAC,IAAI;QACxB,UAAU,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;QAC9B,aAAa,EAAE,cAAM,CAAC,KAAK,CAAC,IAAI;QAChC,kBAAkB,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;KACvC;IACD,CAAC,2BAAc,CAAC,IAAI,CAAC,EAAE;QACrB,KAAK,EAAE,OAAO;QACd,UAAU,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;QAC9B,aAAa,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QAC/B,kBAAkB,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;KACvC;IACD,CAAC,2BAAc,CAAC,UAAU,CAAC,EAAE;QAC3B,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QACvB,UAAU,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;QAC9B,aAAa,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QAC/B,kBAAkB,EAAE,cAAM,CAAC,IAAI,CAAC,MAAM;KACvC;IACD,CAAC,2BAAc,CAAC,KAAK,CAAC,EAAE;QACtB,KAAK,EAAE,cAAM,CAAC,KAAK,CAAC,IAAI;QACxB,U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E,cAAM,CAAC,GAAG,CAAC,IAAI;QAC9B,kBAAkB,EAAE,cAAM,CAAC,GAAG,CAAC,MAAM;KACtC;IACD,CAAC,2BAAc,CAAC,SAAS,CAAC,EAAE;QAC1B,KAAK,EAAE,cAAM,CAAC,GAAG,CAAC,IAAI;QACtB,UAAU,EAAE,cAAM,CAAC,GAAG,CAAC,MAAM;QAC7B,aAAa,EAAE,cAAM,CAAC,GAAG,CAAC,IAAI;QAC9B,kBAAkB,EAAE,cAAM,CAAC,GAAG,CAAC,MAAM;KACtC;IACD,CAAC,2BAAc,CAAC,SAAS,CAAC,EAAE;QAC1B,KAAK,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI;QACvB,UAAU,EAAE,cAAM,CAAC,SAAS,CAAC,IAAI;QACjC,aAAa,EAAE,cAAM,CAAC,SAAS,CAAC,IAAI;QACpC,kBAAkB,EAAE,cAAM,CAAC,SAAS,CAAC,MAAM;KAC5C;CACF,CAAC"}
|
|
@@ -15,16 +15,15 @@ export declare enum TagAppearance {
|
|
|
15
15
|
}
|
|
16
16
|
export declare enum TagColorsTypes {
|
|
17
17
|
BLUE = "BLUE",
|
|
18
|
-
|
|
19
|
-
DARK_GREY = "DARK_GREY",
|
|
18
|
+
BLUE_LIGHT = "BLUE_LIGHT",
|
|
20
19
|
GREEN = "GREEN",
|
|
21
20
|
GREEN_LIGHT = "GREEN_LIGHT",
|
|
22
|
-
GREEN_LIGHTER = "GREEN_LIGHTER",
|
|
23
21
|
GREY = "GREY",
|
|
24
|
-
|
|
22
|
+
GREY_LIGHT = "GREY_LIGHT",
|
|
25
23
|
ORANGE = "ORANGE",
|
|
26
24
|
ORANGE_LIGHT = "ORANGE_LIGHT",
|
|
25
|
+
ORANGE_LIGHTER = "ORANGE_LIGHTER",
|
|
27
26
|
RED = "RED",
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
RED_LIGHT = "RED_LIGHT",
|
|
28
|
+
TERRACOTA = "TERRACOTA"
|
|
30
29
|
}
|
|
@@ -9,17 +9,16 @@ var TagAppearance;
|
|
|
9
9
|
var TagColorsTypes;
|
|
10
10
|
(function (TagColorsTypes) {
|
|
11
11
|
TagColorsTypes["BLUE"] = "BLUE";
|
|
12
|
-
TagColorsTypes["
|
|
13
|
-
TagColorsTypes["DARK_GREY"] = "DARK_GREY";
|
|
12
|
+
TagColorsTypes["BLUE_LIGHT"] = "BLUE_LIGHT";
|
|
14
13
|
TagColorsTypes["GREEN"] = "GREEN";
|
|
15
14
|
TagColorsTypes["GREEN_LIGHT"] = "GREEN_LIGHT";
|
|
16
|
-
TagColorsTypes["GREEN_LIGHTER"] = "GREEN_LIGHTER";
|
|
17
15
|
TagColorsTypes["GREY"] = "GREY";
|
|
18
|
-
TagColorsTypes["
|
|
16
|
+
TagColorsTypes["GREY_LIGHT"] = "GREY_LIGHT";
|
|
19
17
|
TagColorsTypes["ORANGE"] = "ORANGE";
|
|
20
18
|
TagColorsTypes["ORANGE_LIGHT"] = "ORANGE_LIGHT";
|
|
19
|
+
TagColorsTypes["ORANGE_LIGHTER"] = "ORANGE_LIGHTER";
|
|
21
20
|
TagColorsTypes["RED"] = "RED";
|
|
21
|
+
TagColorsTypes["RED_LIGHT"] = "RED_LIGHT";
|
|
22
22
|
TagColorsTypes["TERRACOTA"] = "TERRACOTA";
|
|
23
|
-
TagColorsTypes["WHITE"] = "WHITE";
|
|
24
23
|
})(TagColorsTypes = exports.TagColorsTypes || (exports.TagColorsTypes = {}));
|
|
25
24
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/interfaces.
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../packages/ui/src/tag/interfaces.tsx"],"names":[],"mappings":";;;AAaA,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,sCAAqB,CAAA;AACvB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,IAAY,cAaX;AAbD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,2CAAyB,CAAA;IACzB,iCAAe,CAAA;IACf,6CAA2B,CAAA;IAC3B,+BAAa,CAAA;IACb,2CAAyB,CAAA;IACzB,mCAAiB,CAAA;IACjB,+CAA6B,CAAA;IAC7B,mDAAiC,CAAA;IACjC,6BAAW,CAAA;IACX,yCAAuB,CAAA;IACvB,yCAAuB,CAAA;AACzB,CAAC,EAbW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAazB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proprioo/salatim",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "28.0.0",
|
|
4
4
|
"description": "Proprioo component library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@commitlint/cli": "^17.1.2",
|
|
42
42
|
"@commitlint/config-conventional": "^17.1.0",
|
|
43
43
|
"@popperjs/core": "^2.11.6",
|
|
44
|
-
"@proprioo/hokkaido": "^4.
|
|
44
|
+
"@proprioo/hokkaido": "^4.62.0",
|
|
45
45
|
"@rollup/plugin-commonjs": "22.0.2",
|
|
46
46
|
"@rollup/plugin-json": "^4.1.0",
|
|
47
47
|
"@rollup/plugin-node-resolve": "^14.1.0",
|