@activecollab/components 1.0.22 → 1.0.23

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.
Files changed (37) hide show
  1. package/dist/cjs/components/Bubble/Styles.js +2 -2
  2. package/dist/cjs/components/Bubble/Styles.js.map +1 -1
  3. package/dist/cjs/components/Button/Button.js +1 -0
  4. package/dist/cjs/components/Button/Button.js.map +1 -1
  5. package/dist/cjs/components/Button/Styles.js +3 -1
  6. package/dist/cjs/components/Button/Styles.js.map +1 -1
  7. package/dist/cjs/components/Links/Link.js +1 -0
  8. package/dist/cjs/components/Links/Link.js.map +1 -1
  9. package/dist/cjs/components/Links/Styles.js +3 -1
  10. package/dist/cjs/components/Links/Styles.js.map +1 -1
  11. package/dist/cjs/components/Pressed/Styles.js +2 -2
  12. package/dist/cjs/components/Pressed/Styles.js.map +1 -1
  13. package/dist/esm/components/Bubble/Styles.d.ts.map +1 -1
  14. package/dist/esm/components/Bubble/Styles.js +2 -2
  15. package/dist/esm/components/Bubble/Styles.js.map +1 -1
  16. package/dist/esm/components/Button/Button.d.ts +1 -1
  17. package/dist/esm/components/Button/Button.d.ts.map +1 -1
  18. package/dist/esm/components/Button/Button.js +1 -0
  19. package/dist/esm/components/Button/Button.js.map +1 -1
  20. package/dist/esm/components/Button/Styles.d.ts.map +1 -1
  21. package/dist/esm/components/Button/Styles.js +3 -1
  22. package/dist/esm/components/Button/Styles.js.map +1 -1
  23. package/dist/esm/components/Links/Link.d.ts +1 -1
  24. package/dist/esm/components/Links/Link.d.ts.map +1 -1
  25. package/dist/esm/components/Links/Link.js +1 -0
  26. package/dist/esm/components/Links/Link.js.map +1 -1
  27. package/dist/esm/components/Links/Styles.d.ts.map +1 -1
  28. package/dist/esm/components/Links/Styles.js +3 -1
  29. package/dist/esm/components/Links/Styles.js.map +1 -1
  30. package/dist/esm/components/Pressed/Styles.d.ts.map +1 -1
  31. package/dist/esm/components/Pressed/Styles.js +2 -2
  32. package/dist/esm/components/Pressed/Styles.js.map +1 -1
  33. package/dist/index.js +12 -6
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.min.js +1 -1
  36. package/dist/index.min.js.map +1 -1
  37. package/package.json +1 -1
@@ -4,9 +4,9 @@ export var StyledPressed = styled(Button).withConfig({
4
4
  displayName: "Styles__StyledPressed",
5
5
  componentId: "sc-1wqfsg5-0"
6
6
  })(["", ""], function (props) {
7
- return props.active && css(["", " ", " ", " ", " ", " ", ""], {
7
+ return props.active && css(["", " ", " ", " ", " ", " ", " ", ""], {
8
8
  "pointerEvents": "none"
9
- }, (props.variant === "primary" || props.variant === "contained") && css(["background-color:var(--color-primary-800);"]), (props.variant === "secondary" || props.variant === "outlined") && css(["border-color:var(--color-primary);color:var(--color-primary);"]), props.variant === "dark transparent" && css(["background-color:var(--only-black);"]), (props.variant === "tertiary" || props.variant === "text colored") && css(["background-color:var(--color-primary-200);"]), (props.variant === "option" || props.variant === "text gray") && css(["color:var(--color-primary);", ""], props.children instanceof Array && css(["background-color:var(--color-theme-300);"])));
9
+ }, (props.variant === "primary" || props.variant === "contained") && css(["background-color:var(--color-primary-800);"]), (props.variant === "secondary" || props.variant === "outlined") && css(["border-color:var(--color-primary);color:var(--color-primary);"]), props.variant === "dark transparent" && css(["background-color:var(--only-black);"]), props.variant === "circle raised" && css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary-hover);"]), (props.variant === "tertiary" || props.variant === "text colored") && css(["background-color:var(--color-primary-200);"]), (props.variant === "option" || props.variant === "text gray") && css(["color:var(--color-primary);", ""], props.children instanceof Array && css(["background-color:var(--color-theme-300);"])));
10
10
  });
11
11
  StyledPressed.displayName = "StyledPressed";
12
12
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/Pressed/Styles.ts"],"names":["styled","css","Button","StyledPressed","props","active","variant","children","Array","displayName"],"mappings":"AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,mBAA5B;AAEA,SAASC,MAAT,QAAuB,kBAAvB;AAGA,OAAO,IAAMC,aAAa,GAAGH,MAAM,CAACE,MAAD,CAAT;AAAA;AAAA;AAAA,aACtB,UAACE,KAAD;AAAA,SACAA,KAAK,CAACC,MAAN,IACAJ,GADA,oCAEM;AAAA;AAAA,GAFN,EAII,CAACG,KAAK,CAACE,OAAN,KAAkB,SAAlB,IAA+BF,KAAK,CAACE,OAAN,KAAkB,WAAlD,KACFL,GADE,gDAJJ,EASI,CAACG,KAAK,CAACE,OAAN,KAAkB,WAAlB,IAAiCF,KAAK,CAACE,OAAN,KAAkB,UAApD,KACFL,GADE,mEATJ,EAeIG,KAAK,CAACE,OAAN,KAAkB,kBAAlB,IACFL,GADE,yCAfJ,EAoBE,CAACG,KAAK,CAACE,OAAN,KAAkB,UAAlB,IAAgCF,KAAK,CAACE,OAAN,KAAkB,cAAnD,KACAL,GADA,gDApBF,EAyBE,CAACG,KAAK,CAACE,OAAN,KAAkB,QAAlB,IAA8BF,KAAK,CAACE,OAAN,KAAkB,WAAjD,KACAL,GADA,sCAGIG,KAAK,CAACG,QAAN,YAA0BC,KAA1B,IACFP,GADE,8CAHJ,CAzBF,CADA;AAAA,CADsB,CAAnB;AAsCPE,aAAa,CAACM,WAAd,GAA4B,eAA5B","sourcesContent":["import styled, { css } from \"styled-components\";\nimport { IPressedProps } from \"./Pressed\";\nimport { Button } from \"../Button/Button\";\nimport tw from \"twin.macro\";\n\nexport const StyledPressed = styled(Button)<IPressedProps>`\n ${(props) =>\n props.active &&\n css`\n ${tw`tw-pointer-events-none`}\n\n ${(props.variant === \"primary\" || props.variant === \"contained\") &&\n css`\n background-color: var(--color-primary-800);\n `}\n\n ${(props.variant === \"secondary\" || props.variant === \"outlined\") &&\n css`\n border-color: var(--color-primary);\n color: var(--color-primary);\n `}\n\n ${props.variant === \"dark transparent\" &&\n css`\n background-color: var(--only-black);\n `}\n\n ${(props.variant === \"tertiary\" || props.variant === \"text colored\") &&\n css`\n background-color: var(--color-primary-200);\n `}\n\n ${(props.variant === \"option\" || props.variant === \"text gray\") &&\n css`\n color: var(--color-primary);\n ${props.children instanceof Array &&\n css`\n background-color: var(--color-theme-300);\n `}\n `}\n `}\n`;\n\nStyledPressed.displayName = \"StyledPressed\";\n"],"file":"Styles.js"}
1
+ {"version":3,"sources":["../../../../src/components/Pressed/Styles.ts"],"names":["styled","css","Button","StyledPressed","props","active","variant","children","Array","displayName"],"mappings":"AAAA,OAAOA,MAAP,IAAiBC,GAAjB,QAA4B,mBAA5B;AAEA,SAASC,MAAT,QAAuB,kBAAvB;AAGA,OAAO,IAAMC,aAAa,GAAGH,MAAM,CAACE,MAAD,CAAT;AAAA;AAAA;AAAA,aACtB,UAACE,KAAD;AAAA,SACAA,KAAK,CAACC,MAAN,IACAJ,GADA,yCAEM;AAAA;AAAA,GAFN,EAII,CAACG,KAAK,CAACE,OAAN,KAAkB,SAAlB,IAA+BF,KAAK,CAACE,OAAN,KAAkB,WAAlD,KACFL,GADE,gDAJJ,EASI,CAACG,KAAK,CAACE,OAAN,KAAkB,WAAlB,IAAiCF,KAAK,CAACE,OAAN,KAAkB,UAApD,KACFL,GADE,mEATJ,EAeIG,KAAK,CAACE,OAAN,KAAkB,kBAAlB,IACFL,GADE,yCAfJ,EAoBIG,KAAK,CAACE,OAAN,KAAkB,eAAlB,IACFL,GADE,sFApBJ,EA0BE,CAACG,KAAK,CAACE,OAAN,KAAkB,UAAlB,IAAgCF,KAAK,CAACE,OAAN,KAAkB,cAAnD,KACAL,GADA,gDA1BF,EA+BE,CAACG,KAAK,CAACE,OAAN,KAAkB,QAAlB,IAA8BF,KAAK,CAACE,OAAN,KAAkB,WAAjD,KACAL,GADA,sCAGIG,KAAK,CAACG,QAAN,YAA0BC,KAA1B,IACFP,GADE,8CAHJ,CA/BF,CADA;AAAA,CADsB,CAAnB;AA4CPE,aAAa,CAACM,WAAd,GAA4B,eAA5B","sourcesContent":["import styled, { css } from \"styled-components\";\nimport { IPressedProps } from \"./Pressed\";\nimport { Button } from \"../Button/Button\";\nimport tw from \"twin.macro\";\n\nexport const StyledPressed = styled(Button)<IPressedProps>`\n ${(props) =>\n props.active &&\n css`\n ${tw`tw-pointer-events-none`}\n\n ${(props.variant === \"primary\" || props.variant === \"contained\") &&\n css`\n background-color: var(--color-primary-800);\n `}\n\n ${(props.variant === \"secondary\" || props.variant === \"outlined\") &&\n css`\n border-color: var(--color-primary);\n color: var(--color-primary);\n `}\n\n ${props.variant === \"dark transparent\" &&\n css`\n background-color: var(--only-black);\n `}\n\n ${props.variant === \"circle raised\" &&\n css`\n background-color: var(--page-paper-main);\n box-shadow: var(--shadow-tertiary-hover);\n `}\n\n ${(props.variant === \"tertiary\" || props.variant === \"text colored\") &&\n css`\n background-color: var(--color-primary-200);\n `}\n\n ${(props.variant === \"option\" || props.variant === \"text gray\") &&\n css`\n color: var(--color-primary);\n ${props.children instanceof Array &&\n css`\n background-color: var(--color-theme-300);\n `}\n `}\n `}\n`;\n\nStyledPressed.displayName = \"StyledPressed\";\n"],"file":"Styles.js"}
package/dist/index.js CHANGED
@@ -279,7 +279,7 @@
279
279
  var StyledButton$1 = styled__default["default"].button.withConfig({
280
280
  displayName: "Styles__StyledButton",
281
281
  componentId: "sc-vi1kcr-0"
282
- })(["", " ", " -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle;font-weight:500;display:inline-block;line-height:1;margin:0;text-decoration:none;font-size:0.875rem;user-select:none;cursor:pointer;text-align:center;border:none;height:32px;transition:all 0.3s ease;svg{fill:currentColor;}&:focus{outline:none;}&:hover{text-decoration:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], FontStyle, BoxSizingStyle, function (props) {
282
+ })(["", " ", " -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:middle;font-weight:500;display:inline-block;line-height:1;margin:0;text-decoration:none;font-size:0.875rem;user-select:none;cursor:pointer;text-align:center;border:none;height:32px;transition:all 0.3s ease;svg{fill:currentColor;}&:focus{outline:none;}&:hover{text-decoration:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], FontStyle, BoxSizingStyle, function (props) {
283
283
  return props.size === "small" && styled.css(["height:24px;"]);
284
284
  }, function (props) {
285
285
  return props.size === "big" && styled.css(["height:40px;"]);
@@ -293,6 +293,8 @@
293
293
  return (props.variant === "tertiary" || props.variant === "text colored") && styled.css(["padding:0 8px;background-color:transparent;border-radius:var(--ac-br-6);color:var(--color-primary);&:hover{background-color:var(--color-primary-200);}&:active{background-color:var(--color-primary-300);}"]);
294
294
  }, function (props) {
295
295
  return (props.variant === "option" || props.variant === "text gray") && styled.css(["padding:0 8px;background-color:transparent;border-radius:var(--ac-br-6);color:var(--color-theme-700);&:hover{background-color:var(--color-theme-300);color:var(--color-theme-900);}&:active{background-color:var(--color-theme-400);color:var(--color-theme-900);}"]);
296
+ }, function (props) {
297
+ return props.variant === "circle raised" && styled.css(["padding:0 6px;background-color:transparent;border-radius:var(--ac-br-rounded);color:var(--color-theme-700);transition:ease 0.3s all;&:hover{background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary);}&:active{background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary-hover);}"]);
296
298
  }, function (props) {
297
299
  return props.iconOnly && styled.css(["display:inline-flex;justify-content:center;align-items:center;padding:0;width:32px;", ";", " ", ""], (props.size === "small" || props.size === "big") && styled.css(["border-radius:var(--ac-br-rounded);"]), props.size === "small" && styled.css(["width:24px;"]), props.size === "big" && styled.css(["width:40px;"]));
298
300
  }, function (props) {
@@ -335,6 +337,7 @@
335
337
  "c-btn--text_colored": variant === "tertiary" || variant === "text colored",
336
338
  "c-btn--text_gray": variant === "option" || variant === "text gray",
337
339
  "c-btn--dark_transparent": variant === "dark transparent",
340
+ "c-btn--circle-raised": variant === "circle raised",
338
341
  "c-btn--big": size === "big",
339
342
  "c-btn--small": size === "small",
340
343
  "c-btn--icon-only": children instanceof Object && !(children instanceof Array)
@@ -1781,9 +1784,9 @@
1781
1784
  var StyledBubble = styled__default["default"].div.withConfig({
1782
1785
  displayName: "Styles__StyledBubble",
1783
1786
  componentId: "sc-tloccl-0"
1784
- })(["", " transition:opacity 0.2s,visibility 0.2s;", " ", ""], {
1787
+ })(["", " transition:opacity 0.2s,visibility 0.2s;", " ", " background-color:var(--page-paper-main);"], {
1785
1788
  "--tw-bg-opacity": "1",
1786
- "backgroundColor": "var(--color-theme-100)",
1789
+ "backgroundColor": "rgba(255, 255, 255, var(--tw-bg-opacity))",
1787
1790
  "--tw-shadow": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
1788
1791
  "boxShadow": "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",
1789
1792
  "borderColor": "var(--color-theme-200)",
@@ -8033,7 +8036,7 @@
8033
8036
  var StyledLink = styled__default["default"].a.withConfig({
8034
8037
  displayName: "Styles__StyledLink",
8035
8038
  componentId: "sc-1c1jdox-1"
8036
- })(["", " ", " ", " border:none;height:32px;transition:all 0.3s ease;svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:hover{text-decoration:none;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], FontStyle, BoxSizingStyle, {
8039
+ })(["", " ", " ", " border:none;height:32px;transition:all 0.3s ease;svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:hover{text-decoration:none;}", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", ""], FontStyle, BoxSizingStyle, {
8037
8040
  "WebkitFontSmoothing": "antialiased",
8038
8041
  "MozOsxFontSmoothing": "grayscale",
8039
8042
  "fontWeight": "500",
@@ -8062,6 +8065,8 @@
8062
8065
  return (props.variant === "option" || props.variant === "text gray") && styled.css(["padding:0 8px;background-color:transparent;border-radius:6px;color:var(--color-theme-600);&:focus,&:hover{background-color:var(--color-theme-300);color:var(--color-theme-900);}&:active{background-color:var(--color-theme-400);color:var(--color-theme-900);}"]);
8063
8066
  }, function (props) {
8064
8067
  return props.variant === "dark transparent" && styled.css(["padding:0 8px;background-color:rgba(0,0,0,0.5);border-radius:var(--ac-br-6);color:var(--only-white);&:hover{background-color:rgba(0,0,0,0.85);}&:active{background-color:var(--only-black);}"]);
8068
+ }, function (props) {
8069
+ return props.variant === "circle raised" && styled.css(["padding:0 6px;background-color:transparent;border-radius:var(--ac-br-rounded);color:var(--color-theme-700);transition:ease 0.3s all;&:hover{background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary);}&:active{background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary-hover);}"]);
8065
8070
  }, function (props) {
8066
8071
  return props.iconOnly && styled.css(["padding:0;width:32px;", " ", ""], props.size === "small" && styled.css(["radius:16px;width:24px;"]), props.size === "big" && styled.css(["radius:20px;width:40px;"]));
8067
8072
  }, function (props) {
@@ -8146,6 +8151,7 @@
8146
8151
  "c-link--text_colored": variant === "tertiary" || variant === "text colored",
8147
8152
  "c-link--text_gray": variant === "option" || variant === "text gray",
8148
8153
  "c-link--dark_transparent": variant === "dark transparent",
8154
+ "c-link--circle_raised": variant === "circle raised",
8149
8155
  "c-link--big": size === "big",
8150
8156
  "c-link--small": size === "small",
8151
8157
  "c-link--icon-only": children instanceof Object && !(children instanceof Array),
@@ -8506,9 +8512,9 @@
8506
8512
  displayName: "Styles__StyledPressed",
8507
8513
  componentId: "sc-1wqfsg5-0"
8508
8514
  })(["", ""], function (props) {
8509
- return props.active && styled.css(["", " ", " ", " ", " ", " ", ""], {
8515
+ return props.active && styled.css(["", " ", " ", " ", " ", " ", " ", ""], {
8510
8516
  "pointerEvents": "none"
8511
- }, (props.variant === "primary" || props.variant === "contained") && styled.css(["background-color:var(--color-primary-800);"]), (props.variant === "secondary" || props.variant === "outlined") && styled.css(["border-color:var(--color-primary);color:var(--color-primary);"]), props.variant === "dark transparent" && styled.css(["background-color:var(--only-black);"]), (props.variant === "tertiary" || props.variant === "text colored") && styled.css(["background-color:var(--color-primary-200);"]), (props.variant === "option" || props.variant === "text gray") && styled.css(["color:var(--color-primary);", ""], props.children instanceof Array && styled.css(["background-color:var(--color-theme-300);"])));
8517
+ }, (props.variant === "primary" || props.variant === "contained") && styled.css(["background-color:var(--color-primary-800);"]), (props.variant === "secondary" || props.variant === "outlined") && styled.css(["border-color:var(--color-primary);color:var(--color-primary);"]), props.variant === "dark transparent" && styled.css(["background-color:var(--only-black);"]), props.variant === "circle raised" && styled.css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-tertiary-hover);"]), (props.variant === "tertiary" || props.variant === "text colored") && styled.css(["background-color:var(--color-primary-200);"]), (props.variant === "option" || props.variant === "text gray") && styled.css(["color:var(--color-primary);", ""], props.children instanceof Array && styled.css(["background-color:var(--color-theme-300);"])));
8512
8518
  });
8513
8519
  StyledPressed.displayName = "StyledPressed";
8514
8520