@activecollab/components 2.0.457 → 2.0.458

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 (63) hide show
  1. package/dist/cjs/components/Icons/collection/Import.js +61 -0
  2. package/dist/cjs/components/Icons/collection/Import.js.map +1 -0
  3. package/dist/cjs/components/Icons/collection/SpreadsheetFile.js +61 -0
  4. package/dist/cjs/components/Icons/collection/SpreadsheetFile.js.map +1 -0
  5. package/dist/cjs/components/Icons/collection/Tools.js +61 -0
  6. package/dist/cjs/components/Icons/collection/Tools.js.map +1 -0
  7. package/dist/cjs/components/Icons/collection/index.js +21 -0
  8. package/dist/cjs/components/Icons/collection/index.js.map +1 -1
  9. package/dist/cjs/components/RadioCard/RadioCard.js +7 -4
  10. package/dist/cjs/components/RadioCard/RadioCard.js.map +1 -1
  11. package/dist/cjs/components/RadioCard/Styles.js +2 -2
  12. package/dist/cjs/components/RadioCard/Styles.js.map +1 -1
  13. package/dist/cjs/components/RadioGroup/RadioGroup.js +4 -2
  14. package/dist/cjs/components/RadioGroup/RadioGroup.js.map +1 -1
  15. package/dist/cjs/components/RadioGroup/Styles.js +1 -1
  16. package/dist/cjs/components/RadioGroup/Styles.js.map +1 -1
  17. package/dist/cjs/components/Tables/Styles.js +32 -17
  18. package/dist/cjs/components/Tables/Styles.js.map +1 -1
  19. package/dist/cjs/components/Tables/Table.js +12 -4
  20. package/dist/cjs/components/Tables/Table.js.map +1 -1
  21. package/dist/esm/components/Icons/collection/Import.d.ts +32 -0
  22. package/dist/esm/components/Icons/collection/Import.d.ts.map +1 -0
  23. package/dist/esm/components/Icons/collection/Import.js +54 -0
  24. package/dist/esm/components/Icons/collection/Import.js.map +1 -0
  25. package/dist/esm/components/Icons/collection/SpreadsheetFile.d.ts +32 -0
  26. package/dist/esm/components/Icons/collection/SpreadsheetFile.d.ts.map +1 -0
  27. package/dist/esm/components/Icons/collection/SpreadsheetFile.js +54 -0
  28. package/dist/esm/components/Icons/collection/SpreadsheetFile.js.map +1 -0
  29. package/dist/esm/components/Icons/collection/Tools.d.ts +32 -0
  30. package/dist/esm/components/Icons/collection/Tools.d.ts.map +1 -0
  31. package/dist/esm/components/Icons/collection/Tools.js +54 -0
  32. package/dist/esm/components/Icons/collection/Tools.js.map +1 -0
  33. package/dist/esm/components/Icons/collection/index.d.ts +3 -0
  34. package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
  35. package/dist/esm/components/Icons/collection/index.js +3 -0
  36. package/dist/esm/components/Icons/collection/index.js.map +1 -1
  37. package/dist/esm/components/RadioCard/RadioCard.d.ts +11 -2
  38. package/dist/esm/components/RadioCard/RadioCard.d.ts.map +1 -1
  39. package/dist/esm/components/RadioCard/RadioCard.js +7 -4
  40. package/dist/esm/components/RadioCard/RadioCard.js.map +1 -1
  41. package/dist/esm/components/RadioCard/Styles.d.ts.map +1 -1
  42. package/dist/esm/components/RadioCard/Styles.js +1 -1
  43. package/dist/esm/components/RadioCard/Styles.js.map +1 -1
  44. package/dist/esm/components/RadioGroup/RadioGroup.d.ts +8 -0
  45. package/dist/esm/components/RadioGroup/RadioGroup.d.ts.map +1 -1
  46. package/dist/esm/components/RadioGroup/RadioGroup.js +4 -2
  47. package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -1
  48. package/dist/esm/components/RadioGroup/Styles.d.ts.map +1 -1
  49. package/dist/esm/components/RadioGroup/Styles.js +1 -1
  50. package/dist/esm/components/RadioGroup/Styles.js.map +1 -1
  51. package/dist/esm/components/Tables/Styles.d.ts +10 -1
  52. package/dist/esm/components/Tables/Styles.d.ts.map +1 -1
  53. package/dist/esm/components/Tables/Styles.js +18 -8
  54. package/dist/esm/components/Tables/Styles.js.map +1 -1
  55. package/dist/esm/components/Tables/Table.d.ts +8 -0
  56. package/dist/esm/components/Tables/Table.d.ts.map +1 -1
  57. package/dist/esm/components/Tables/Table.js +12 -4
  58. package/dist/esm/components/Tables/Table.js.map +1 -1
  59. package/dist/index.js +737 -556
  60. package/dist/index.js.map +1 -1
  61. package/dist/index.min.js +1 -1
  62. package/dist/index.min.js.map +1 -1
  63. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_BoxSizingStyle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SELECTION_RING","StyledInput","exports","styled","input","withConfig","displayName","componentId","StyledRadioCard","label","BoxSizingStyle","props","$hasIcon","css","$variant","$checked","$invalid","$disabled"],"sources":["../../../../src/components/RadioCard/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\n\nexport type RadioCardVariant = \"plain\" | \"card\";\n\n/**\n * Selected-state ring for the card variant. A shared, exported `SELECTION_RING`\n * token does not exist yet (`StackedCard/Styles.ts` keeps its own as a private\n * const), so we keep a local one here. Promotion to a shared token is tracked\n * in #461359.\n */\nconst SELECTION_RING = \"var(--color-primary-500)\";\n\n/**\n * Real, focusable native radio, visually hidden with the sr-only idiom (copied\n * from `Checkbox/Styles.ts`). Never `display: none` / `visibility: hidden`, so\n * it stays in the tab order and in the accessibility tree.\n */\nexport const StyledInput = styled.input`\n border: 0px;\n clip: rect(0px, 0px, 0px, 0px);\n cursor: pointer;\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0px;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n`;\nStyledInput.displayName = \"RadioCardInput\";\n\nexport interface IStyledRadioCard {\n $variant: RadioCardVariant;\n $checked?: boolean;\n $invalid?: boolean;\n $disabled?: boolean;\n $hasIcon?: boolean;\n}\n\nexport const StyledRadioCard = styled.label<IStyledRadioCard>`\n ${BoxSizingStyle}\n\n display: flex;\n align-items: flex-start;\n column-gap: 12px;\n cursor: pointer;\n position: relative;\n\n /* EXPERIMENT: when a leading icon is present, move the radio indicator to the\n far right of the card, vertically centered to the middle of the card. */\n ${(props) =>\n props.$hasIcon &&\n css`\n .c-radio-card--icon {\n order: 1;\n }\n .c-radio-card--text {\n order: 2;\n margin-right: auto;\n }\n .c-radio-card--indicator {\n order: 3;\n margin-left: auto;\n align-self: center;\n }\n `}\n\n /* Indicator: drawn with RadioButtonIcon, retinted with the same CSS-var\n tokens RadioButton uses so old and new radios look identical. The wrapper\n height matches the Body2 title line-height so the 16px indicator centers\n against the first line of the title. */\n .c-radio-card--indicator,\n .c-radio-card--icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n height: 20px;\n }\n\n .c-radio-card--indicator svg {\n fill: transparent;\n }\n .c-radio-card--indicator circle:first-child {\n transition-duration: 0.2s;\n stroke: var(--color-theme-500);\n }\n .c-radio-card--indicator circle:last-child {\n transition-duration: 0.2s;\n transform-origin: center;\n transform: scale(0);\n fill: var(--color-secondary-500);\n }\n\n ${StyledInput}:checked ~ .c-radio-card--indicator {\n circle:first-child {\n stroke: var(--color-secondary);\n }\n circle:last-child {\n transform: scale(1);\n fill: var(--color-secondary);\n }\n }\n\n ${StyledInput}:focus-visible ~ .c-radio-card--indicator circle:first-child {\n stroke: var(--color-secondary);\n }\n\n .c-radio-card--text {\n display: flex;\n flex-direction: column;\n row-gap: 2px;\n min-width: 0;\n }\n\n /* Card variant: bordered tile on Card variant=\"tile-1\" tokens. */\n ${(props) =>\n props.$variant === \"card\" &&\n css`\n align-items: center;\n min-height: 44px;\n padding: 8px 12px;\n border-radius: var(--ac-br-8);\n border: solid 1px var(--color-theme-300);\n background-color: var(--page-paper-main);\n transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;\n\n &:hover {\n background-color: var(--color-theme-200);\n border-color: var(--color-theme-500);\n }\n\n ${props.$checked &&\n css`\n border-color: ${SELECTION_RING};\n box-shadow: 0 0 0 1px ${SELECTION_RING};\n\n &:hover {\n border-color: ${SELECTION_RING};\n }\n `}\n\n ${props.$invalid &&\n css`\n border-color: var(--red-alert);\n\n &:hover {\n border-color: var(--red-alert);\n }\n `}\n\n &:has(input:focus-visible),\n &:focus-within {\n box-shadow: 0 0 0 2px var(--color-secondary);\n }\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n opacity: 0.5;\n cursor: not-allowed;\n\n .c-radio-card--indicator svg,\n .c-radio-card--icon svg {\n cursor: not-allowed;\n }\n `}\n`;\nStyledRadioCard.displayName = \"StyledRadioCard\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAAmD,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,wBAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,CAAA,CAAAc,EAAA,WAAAN,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAInD;AACA;AACA;AACA;AACA;AACA;AACA,IAAMmB,cAAc,GAAG,0BAA0B;;AAEjD;AACA;AACA;AACA;AACA;AACO,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,yBAAM,CAACC,KAAK,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yKAYtC;AACDN,WAAW,CAACK,WAAW,GAAG,gBAAgB;AAUnC,IAAME,eAAe,GAAAN,OAAA,CAAAM,eAAA,GAAGL,yBAAM,CAACM,KAAK,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,g1BACvCG,8BAAc,EAUd,UAACC,KAAK;EAAA,OACNA,KAAK,CAACC,QAAQ,QACdC,qBAAG,wJAaF;AAAA,GA4BDZ,WAAW,EAUXA,WAAW,EAYX,UAACU,KAAK;EAAA,OACNA,KAAK,CAACG,QAAQ,KAAK,MAAM,QACzBD,qBAAG,kaAcCF,KAAK,CAACI,QAAQ,QAChBF,qBAAG,+EACeb,cAAc,EACNA,cAAc,EAGpBA,cAAc,CAEjC,EAECW,KAAK,CAACK,QAAQ,QAChBH,qBAAG,4EAMF,CAMF;AAAA,GAED,UAACF,KAAK;EAAA,OACNA,KAAK,CAACM,SAAS,QACfJ,qBAAG,+GAQF;AAAA,EACJ;AACDL,eAAe,CAACF,WAAW,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_BoxSizingStyle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SELECTION_RING","StyledInput","exports","styled","input","withConfig","displayName","componentId","StyledRadioCard","label","BoxSizingStyle","props","$hasIcon","css","$variant","$checked","$invalid","$disabled"],"sources":["../../../../src/components/RadioCard/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\n\nexport type RadioCardVariant = \"plain\" | \"card\";\n\n/**\n * Selected-state ring for the card variant. A shared, exported `SELECTION_RING`\n * token does not exist yet (`StackedCard/Styles.ts` keeps its own as a private\n * const), so we keep a local one here. Promotion to a shared token is tracked\n * in #461359.\n */\nconst SELECTION_RING = \"var(--color-primary-500)\";\n\n/**\n * Real, focusable native radio, visually hidden with the sr-only idiom (copied\n * from `Checkbox/Styles.ts`). Never `display: none` / `visibility: hidden`, so\n * it stays in the tab order and in the accessibility tree.\n */\nexport const StyledInput = styled.input`\n border: 0px;\n clip: rect(0px, 0px, 0px, 0px);\n cursor: pointer;\n height: 1px;\n margin: -1px;\n opacity: 0;\n overflow: hidden;\n padding: 0px;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n`;\nStyledInput.displayName = \"RadioCardInput\";\n\nexport interface IStyledRadioCard {\n $variant: RadioCardVariant;\n $checked?: boolean;\n $invalid?: boolean;\n $disabled?: boolean;\n $hasIcon?: boolean;\n}\n\nexport const StyledRadioCard = styled.label<IStyledRadioCard>`\n ${BoxSizingStyle}\n\n display: flex;\n align-items: flex-start;\n column-gap: 12px;\n cursor: pointer;\n position: relative;\n\n /* EXPERIMENT: when a leading icon is present, move the radio indicator to the\n far right of the card, vertically centered to the middle of the card. */\n ${(props) =>\n props.$hasIcon &&\n css`\n .c-radio-card--icon {\n order: 1;\n }\n .c-radio-card--text {\n order: 2;\n margin-right: auto;\n }\n .c-radio-card--indicator {\n order: 3;\n margin-left: auto;\n align-self: center;\n }\n `}\n\n /* Indicator: drawn with RadioButtonIcon, retinted with the same CSS-var\n tokens RadioButton uses so old and new radios look identical. The wrapper\n height matches the Body2 title line-height so the 16px indicator centers\n against the first line of the title. */\n .c-radio-card--indicator,\n .c-radio-card--icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n height: 20px;\n }\n\n .c-radio-card--indicator svg {\n fill: transparent;\n }\n .c-radio-card--indicator circle:first-child {\n transition-duration: 0.2s;\n stroke: var(--color-theme-500);\n }\n .c-radio-card--indicator circle:last-child {\n transition-duration: 0.2s;\n transform-origin: center;\n transform: scale(0);\n fill: var(--color-secondary-500);\n }\n\n ${StyledInput}:checked ~ .c-radio-card--indicator {\n circle:first-child {\n stroke: var(--color-secondary);\n }\n circle:last-child {\n transform: scale(1);\n fill: var(--color-secondary);\n }\n }\n\n ${StyledInput}:focus-visible ~ .c-radio-card--indicator circle:first-child {\n stroke: var(--color-secondary);\n }\n\n .c-radio-card--text {\n display: flex;\n flex-direction: column;\n row-gap: 2px;\n min-width: 0;\n }\n\n /* A column, so a body of several lines stacks the way the title and the\n description do. One child behaves like a plain block. */\n .c-radio-card--body {\n display: flex;\n flex-direction: column;\n row-gap: 2px;\n min-width: 0;\n }\n\n /* Card variant: bordered tile on Card variant=\"tile-1\" tokens. */\n ${(props) =>\n props.$variant === \"card\" &&\n css`\n align-items: center;\n min-height: 44px;\n padding: 8px 12px;\n border-radius: var(--ac-br-8);\n border: solid 1px var(--color-theme-300);\n background-color: var(--page-paper-main);\n transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;\n\n &:hover {\n background-color: var(--color-theme-200);\n border-color: var(--color-theme-500);\n }\n\n ${props.$checked &&\n css`\n border-color: ${SELECTION_RING};\n box-shadow: 0 0 0 1px ${SELECTION_RING};\n\n &:hover {\n border-color: ${SELECTION_RING};\n }\n `}\n\n ${props.$invalid &&\n css`\n border-color: var(--red-alert);\n\n &:hover {\n border-color: var(--red-alert);\n }\n `}\n\n /* Keyboard only: :focus-within would also ring the card after a click. */\n &:has(input:focus-visible) {\n box-shadow: 0 0 0 2px var(--color-secondary);\n }\n `}\n\n ${(props) =>\n props.$disabled &&\n css`\n opacity: 0.5;\n cursor: not-allowed;\n\n .c-radio-card--indicator svg,\n .c-radio-card--icon svg {\n cursor: not-allowed;\n }\n `}\n`;\nStyledRadioCard.displayName = \"StyledRadioCard\";\n"],"mappings":";;;;;;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A;AAAA,yKAYtC;AACDN,WAAW,CAACK,WAAW,GAAG,gBAAgB;AAUnC,IAAME,eAAe,GAAAN,OAAA,CAAAM,eAAA,GAAGL,yBAAM,CAACM,KAAK,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,g6BACvCG,8BAAc,EAUd,UAACC,KAAK;EAAA,OACNA,KAAK,CAACC,QAAQ,QACdC,qBAAG,wJAaF;AAAA,GA4BDZ,WAAW,EAUXA,WAAW,EAqBX,UAACU,KAAK;EAAA,OACNA,KAAK,CAACG,QAAQ,KAAK,MAAM,QACzBD,qBAAG,mZAcCF,KAAK,CAACI,QAAQ,QAChBF,qBAAG,+EACeb,cAAc,EACNA,cAAc,EAGpBA,cAAc,CAEjC,EAECW,KAAK,CAACK,QAAQ,QAChBH,qBAAG,4EAMF,CAMF;AAAA,GAED,UAACF,KAAK;EAAA,OACNA,KAAK,CAACM,SAAS,QACfJ,qBAAG,+GAQF;AAAA,EACJ;AACDL,eAAe,CAACF,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -11,7 +11,7 @@ var _useStableId = _interopRequireDefault(require("../../utils/useStableId"));
11
11
  var _RadioCard = require("../RadioCard");
12
12
  var _Tiles = require("../Tiles");
13
13
  var _Typography = require("../Typography/Typography");
14
- var _excluded = ["options", "value", "onChange", "name", "label", "hideLabel", "description", "required", "invalid", "errorMessage", "disabled", "variant", "orientation", "columns", "space", "className"];
14
+ var _excluded = ["options", "value", "onChange", "name", "label", "hideLabel", "description", "required", "invalid", "errorMessage", "disabled", "variant", "orientation", "columns", "collapseBelow", "space", "className"];
15
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
@@ -38,6 +38,7 @@ var RadioGroup = exports.RadioGroup = /*#__PURE__*/(0, _react.forwardRef)(functi
38
38
  _ref$orientation = _ref.orientation,
39
39
  orientation = _ref$orientation === void 0 ? "vertical" : _ref$orientation,
40
40
  columns = _ref.columns,
41
+ collapseBelow = _ref.collapseBelow,
41
42
  space = _ref.space,
42
43
  className = _ref.className,
43
44
  rest = _objectWithoutProperties(_ref, _excluded);
@@ -65,7 +66,7 @@ var RadioGroup = exports.RadioGroup = /*#__PURE__*/(0, _react.forwardRef)(functi
65
66
  onChange: function onChange() {
66
67
  return _onChange(option.id);
67
68
  }
68
- });
69
+ }, option.children);
69
70
  });
70
71
  var useTiles = variant === "card" && typeof columns === "number";
71
72
  return /*#__PURE__*/_react.default.createElement(_Styles.StyledFieldset, _extends({
@@ -85,6 +86,7 @@ var RadioGroup = exports.RadioGroup = /*#__PURE__*/(0, _react.forwardRef)(functi
85
86
  }, label, required ? "*" : null) : null, useTiles ? /*#__PURE__*/_react.default.createElement(_Tiles.Tiles, {
86
87
  className: "c-radio-group--list",
87
88
  columns: columns,
89
+ collapseBelow: collapseBelow,
88
90
  space: space
89
91
  }, cards) : /*#__PURE__*/_react.default.createElement(_Styles.StyledList, {
90
92
  className: "c-radio-group--list",
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_useStableId","_RadioCard","_Tiles","_Typography","_excluded","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","RadioGroup","exports","forwardRef","_ref","ref","options","value","onChange","name","label","_ref$hideLabel","hideLabel","description","_ref$required","required","_ref$invalid","invalid","errorMessage","_ref$disabled","disabled","_ref$variant","variant","_ref$orientation","orientation","columns","space","className","rest","groupName","useStableId","messageId","isInvalid","undefined","showError","messageText","hasMessage","cards","map","option","createElement","RadioCard","key","id","checked","icon","title","useTiles","StyledFieldset","classnames","$hideLabel","Typography","as","weight","color","Tiles","StyledList","$orientation","$space","displayName"],"sources":["../../../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import React, { ComponentPropsWithoutRef, forwardRef, ReactNode } from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { RadioGroupOrientation, StyledFieldset, StyledList } from \"./Styles\";\nimport useStableId from \"../../utils/useStableId\";\nimport { Space } from \"../LayoutTokens\";\nimport { RadioCard, RadioCardVariant } from \"../RadioCard\";\nimport { Tiles } from \"../Tiles\";\nimport { Typography } from \"../Typography/Typography\";\n\nexport interface RadioGroupOption {\n id: string | number;\n name: string;\n description?: string;\n icon?: ReactNode;\n disabled?: boolean;\n}\n\nexport interface IRadioGroupProps {\n /** The options rendered as radios. */\n options: RadioGroupOption[];\n /** Selected option id. `undefined` means nothing is selected. */\n value?: string | number;\n /** Fired with the selected option id. Never called with `undefined`. */\n onChange: (value: string | number) => void;\n /** Shared input `name`. Defaults to a generated id; pass for real form posts. */\n name?: string;\n /** Group label, rendered as the `<legend>`. */\n label?: string;\n /** Visually hide the legend while keeping it in the accessibility tree. */\n hideLabel?: boolean;\n /** Helper text under the group. */\n description?: string;\n /** Adds the required asterisk and `aria-required`. */\n required?: boolean;\n /**\n * Invalid state — marks the group `aria-invalid` and shows `errorMessage`.\n * Ignored once a `value` is selected: making any choice clears the error.\n */\n invalid?: boolean;\n /** Error text that replaces `description` while invalid. */\n errorMessage?: string;\n /** Disable the whole group. */\n disabled?: boolean;\n /** `\"plain\"` (default) or `\"card\"`. */\n variant?: RadioCardVariant;\n /** Layout direction of the option list. */\n orientation?: RadioGroupOrientation;\n /** Number of columns — card variant only, rendered through `Tiles`. */\n columns?: number;\n /** Override for the between-options gap only. */\n space?: Space;\n}\n\nexport const RadioGroup = forwardRef<\n HTMLFieldSetElement,\n IRadioGroupProps &\n Omit<ComponentPropsWithoutRef<\"fieldset\">, keyof IRadioGroupProps>\n>(\n (\n {\n options,\n value,\n onChange,\n name,\n label,\n hideLabel = false,\n description,\n required = false,\n invalid = false,\n errorMessage,\n disabled = false,\n variant = \"plain\",\n orientation = \"vertical\",\n columns,\n space,\n className,\n ...rest\n },\n ref\n ) => {\n const groupName = useStableId(name);\n const messageId = useStableId();\n\n // A group with a selection isn't invalid — picking any option clears the\n // error, mirroring how `checked` beats `invalid` on a single RadioCard.\n const isInvalid = invalid && value === undefined;\n\n const showError = isInvalid && !!errorMessage;\n const messageText = showError ? errorMessage : description;\n const hasMessage = !!messageText;\n\n const cards = options.map((option) => (\n <RadioCard\n key={option.id}\n variant={variant}\n name={groupName}\n value={option.id}\n checked={value === option.id}\n disabled={option.disabled}\n invalid={isInvalid}\n icon={option.icon}\n title={option.name}\n description={option.description}\n onChange={() => onChange(option.id)}\n />\n ));\n\n const useTiles = variant === \"card\" && typeof columns === \"number\";\n\n return (\n <StyledFieldset\n ref={ref}\n className={classnames(\"c-radio-group\", className)}\n $hideLabel={hideLabel}\n disabled={disabled}\n aria-required={required || undefined}\n aria-invalid={isInvalid || undefined}\n aria-describedby={hasMessage ? messageId : undefined}\n {...rest}\n >\n {label ? (\n <Typography\n as=\"legend\"\n variant=\"Body 2\"\n weight=\"bold\"\n color={isInvalid ? \"alert\" : \"primary\"}\n className=\"c-radio-group--legend\"\n >\n {label}\n {required ? \"*\" : null}\n </Typography>\n ) : null}\n\n {useTiles ? (\n <Tiles\n className=\"c-radio-group--list\"\n columns={columns as number}\n space={space}\n >\n {cards}\n </Tiles>\n ) : (\n <StyledList\n className=\"c-radio-group--list\"\n $orientation={orientation}\n $space={space}\n >\n {cards}\n </StyledList>\n )}\n\n {hasMessage ? (\n <Typography\n as=\"p\"\n variant=\"Caption 1\"\n id={messageId}\n color={showError ? \"alert\" : \"secondary\"}\n className=\"c-radio-group--message\"\n >\n {messageText}\n </Typography>\n ) : null}\n </StyledFieldset>\n );\n }\n);\n\nRadioGroup.displayName = \"RadioGroup\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAF,sBAAA,CAAAF,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAAsD,IAAAQ,SAAA;AAAA,SAAAN,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,wBAAAU,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,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AEAD,UAAU,gBACT7E,MAAA,CAAAa,OAAA,CAAAoE,aAAA,CAACxE,WAAA,CAAAmF,UAAU;IACTC,EAAE,EAAC,GAAG;IACN9B,OAAO,EAAC,WAAW;IACnBqB,EAAE,EAAEZ,SAAU;IACduB,KAAK,EAAEpB,SAAS,GAAG,OAAO,GAAG,WAAY;IACzCP,SAAS,EAAC;EAAwB,GAEjCQ,WACS,CAAC,GACX,IACU,CAAC;AAErB,CACF,CAAC;AAEDlC,UAAU,CAAC0D,WAAW,GAAG,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"RadioGroup.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_useStableId","_RadioCard","_Tiles","_Typography","_excluded","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","RadioGroup","exports","forwardRef","_ref","ref","options","value","onChange","name","label","_ref$hideLabel","hideLabel","description","_ref$required","required","_ref$invalid","invalid","errorMessage","_ref$disabled","disabled","_ref$variant","variant","_ref$orientation","orientation","columns","collapseBelow","space","className","rest","groupName","useStableId","messageId","isInvalid","undefined","showError","messageText","hasMessage","cards","map","option","createElement","RadioCard","key","id","checked","icon","title","children","useTiles","StyledFieldset","classnames","$hideLabel","Typography","as","weight","color","Tiles","StyledList","$orientation","$space","displayName"],"sources":["../../../../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import React, { ComponentPropsWithoutRef, forwardRef, ReactNode } from \"react\";\n\nimport classnames from \"classnames\";\n\nimport { RadioGroupOrientation, StyledFieldset, StyledList } from \"./Styles\";\nimport useStableId from \"../../utils/useStableId\";\nimport { Breakpoint } from \"../BreakPoints\";\nimport { Space } from \"../LayoutTokens\";\nimport { RadioCard, RadioCardVariant } from \"../RadioCard\";\nimport { Tiles } from \"../Tiles\";\nimport { Typography } from \"../Typography/Typography\";\n\nexport interface RadioGroupOption {\n id: string | number;\n name: string;\n description?: string;\n icon?: ReactNode;\n disabled?: boolean;\n /** Custom body, rendered under the name. See `RadioCard` `children`. */\n children?: ReactNode;\n}\n\nexport interface IRadioGroupProps {\n /** The options rendered as radios. */\n options: RadioGroupOption[];\n /** Selected option id. `undefined` means nothing is selected. */\n value?: string | number;\n /** Fired with the selected option id. Never called with `undefined`. */\n onChange: (value: string | number) => void;\n /** Shared input `name`. Defaults to a generated id; pass for real form posts. */\n name?: string;\n /** Group label, rendered as the `<legend>`. */\n label?: string;\n /** Visually hide the legend while keeping it in the accessibility tree. */\n hideLabel?: boolean;\n /** Helper text under the group. */\n description?: string;\n /** Adds the required asterisk and `aria-required`. */\n required?: boolean;\n /**\n * Invalid state — marks the group `aria-invalid` and shows `errorMessage`.\n * Ignored once a `value` is selected: making any choice clears the error.\n */\n invalid?: boolean;\n /** Error text that replaces `description` while invalid. */\n errorMessage?: string;\n /** Disable the whole group. */\n disabled?: boolean;\n /** `\"plain\"` (default) or `\"card\"`. */\n variant?: RadioCardVariant;\n /** Layout direction of the option list. */\n orientation?: RadioGroupOrientation;\n /** Number of columns — card variant only, rendered through `Tiles`. */\n columns?: number;\n /**\n * Stack the columns into one below this breakpoint. Works with `columns`\n * only, because it is the `Tiles` grid that collapses.\n */\n collapseBelow?: Breakpoint;\n /** Override for the between-options gap only. */\n space?: Space;\n}\n\nexport const RadioGroup = forwardRef<\n HTMLFieldSetElement,\n IRadioGroupProps &\n Omit<ComponentPropsWithoutRef<\"fieldset\">, keyof IRadioGroupProps>\n>(\n (\n {\n options,\n value,\n onChange,\n name,\n label,\n hideLabel = false,\n description,\n required = false,\n invalid = false,\n errorMessage,\n disabled = false,\n variant = \"plain\",\n orientation = \"vertical\",\n columns,\n collapseBelow,\n space,\n className,\n ...rest\n },\n ref\n ) => {\n const groupName = useStableId(name);\n const messageId = useStableId();\n\n // A group with a selection isn't invalid — picking any option clears the\n // error, mirroring how `checked` beats `invalid` on a single RadioCard.\n const isInvalid = invalid && value === undefined;\n\n const showError = isInvalid && !!errorMessage;\n const messageText = showError ? errorMessage : description;\n const hasMessage = !!messageText;\n\n const cards = options.map((option) => (\n <RadioCard\n key={option.id}\n variant={variant}\n name={groupName}\n value={option.id}\n checked={value === option.id}\n disabled={option.disabled}\n invalid={isInvalid}\n icon={option.icon}\n title={option.name}\n description={option.description}\n onChange={() => onChange(option.id)}\n >\n {option.children}\n </RadioCard>\n ));\n\n const useTiles = variant === \"card\" && typeof columns === \"number\";\n\n return (\n <StyledFieldset\n ref={ref}\n className={classnames(\"c-radio-group\", className)}\n $hideLabel={hideLabel}\n disabled={disabled}\n aria-required={required || undefined}\n aria-invalid={isInvalid || undefined}\n aria-describedby={hasMessage ? messageId : undefined}\n {...rest}\n >\n {label ? (\n <Typography\n as=\"legend\"\n variant=\"Body 2\"\n weight=\"bold\"\n color={isInvalid ? \"alert\" : \"primary\"}\n className=\"c-radio-group--legend\"\n >\n {label}\n {required ? \"*\" : null}\n </Typography>\n ) : null}\n\n {useTiles ? (\n <Tiles\n className=\"c-radio-group--list\"\n columns={columns as number}\n collapseBelow={collapseBelow}\n space={space}\n >\n {cards}\n </Tiles>\n ) : (\n <StyledList\n className=\"c-radio-group--list\"\n $orientation={orientation}\n $space={space}\n >\n {cards}\n </StyledList>\n )}\n\n {hasMessage ? (\n <Typography\n as=\"p\"\n variant=\"Caption 1\"\n id={messageId}\n color={showError ? \"alert\" : \"secondary\"}\n className=\"c-radio-group--message\"\n >\n {messageText}\n </Typography>\n ) : null}\n </StyledFieldset>\n );\n }\n);\n\nRadioGroup.displayName = \"RadioGroup\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAF,sBAAA,CAAAF,OAAA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AU;IACrC,oBAAkBG,UAAU,GAAGL,SAAS,GAAGE;EAAU,GACjDL,IAAI,GAEPnB,KAAK,gBACJnD,MAAA,CAAAa,OAAA,CAAAqE,aAAA,CAACzE,WAAA,CAAAqF,UAAU;IACTC,EAAE,EAAC,QAAQ;IACXhC,OAAO,EAAC,QAAQ;IAChBiC,MAAM,EAAC,MAAM;IACbC,KAAK,EAAEvB,SAAS,GAAG,OAAO,GAAG,SAAU;IACvCL,SAAS,EAAC;EAAuB,GAEhClB,KAAK,EACLK,QAAQ,GAAG,GAAG,GAAG,IACR,CAAC,GACX,IAAI,EAEPkC,QAAQ,gBACP1F,MAAA,CAAAa,OAAA,CAAAqE,aAAA,CAAC1E,MAAA,CAAA0F,KAAK;IACJ7B,SAAS,EAAC,qBAAqB;IAC/BH,OAAO,EAAEA,OAAkB;IAC3BC,aAAa,EAAEA,aAAc;IAC7BC,KAAK,EAAEA;EAAM,GAEZW,KACI,CAAC,gBAER/E,MAAA,CAAAa,OAAA,CAAAqE,aAAA,CAAC7E,OAAA,CAAA8F,UAAU;IACT9B,SAAS,EAAC,qBAAqB;IAC/B+B,YAAY,EAAEnC,WAAY;IAC1BoC,MAAM,EAAEjC;EAAM,GAEbW,KACS,CACb,EAEAD,UAAU,gBACT9E,MAAA,CAAAa,OAAA,CAAAqE,aAAA,CAACzE,WAAA,CAAAqF,UAAU;IACTC,EAAE,EAAC,GAAG;IACNhC,OAAO,EAAC,WAAW;IACnBsB,EAAE,EAAEZ,SAAU;IACdwB,KAAK,EAAErB,SAAS,GAAG,OAAO,GAAG,WAAY;IACzCP,SAAS,EAAC;EAAwB,GAEjCQ,WACS,CAAC,GACX,IACU,CAAC;AAErB,CACF,CAAC;AAEDnC,UAAU,CAAC4D,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -32,7 +32,7 @@ var StyledList = exports.StyledList = _styledComponents.default.div.withConfig({
32
32
  }, function (props) {
33
33
  return props.$space ? _LayoutTokens.SPACE[props.$space] : "12px";
34
34
  }, function (props) {
35
- return props.$orientation === "horizontal" && (0, _styledComponents.css)(["flex-wrap:wrap;align-items:center;"]);
35
+ return props.$orientation === "horizontal" && (0, _styledComponents.css)(["flex-wrap:wrap;align-items:stretch;"]);
36
36
  });
37
37
  StyledList.displayName = "RadioGroupList";
38
38
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_LayoutTokens","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledFieldset","exports","styled","fieldset","withConfig","displayName","componentId","props","$hideLabel","css","StyledList","div","$orientation","$space","SPACE"],"sources":["../../../../src/components/RadioGroup/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Space, SPACE } from \"../LayoutTokens\";\n\nexport type RadioGroupOrientation = \"vertical\" | \"horizontal\";\n\nexport interface IStyledFieldset {\n $hideLabel?: boolean;\n}\n\n/**\n * `<fieldset>` reset — no default border or padding. Layout lives on the inner\n * list div, never on the fieldset, because a fieldset breaks flex/grid in some\n * browsers.\n */\nexport const StyledFieldset = styled.fieldset<IStyledFieldset>`\n border: 0;\n margin: 0;\n padding: 0;\n min-width: 0;\n\n .c-radio-group--legend {\n padding: 0;\n margin: 0 0 12px;\n }\n\n .c-radio-group--message {\n margin: 8px 0 0;\n }\n\n /* hideLabel: keep the legend in the a11y tree, hide it visually. Same sr-only\n idiom the hidden radio input uses. */\n ${(props) =>\n props.$hideLabel &&\n css`\n .c-radio-group--legend {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n clip: rect(0px, 0px, 0px, 0px);\n }\n `}\n`;\nStyledFieldset.displayName = \"RadioGroupFieldset\";\n\nexport interface IStyledList {\n $orientation: RadioGroupOrientation;\n $space?: Space;\n}\n\n/**\n * Flex list of options. Default between-options gap is 12px (the\n * ExportProjectDialog look); `$space` overrides only this gap, using the same\n * `Space`-to-pixel mapping as `Tiles` so a group and a `Tiles` grid line up.\n */\nexport const StyledList = styled.div<IStyledList>`\n display: flex;\n flex-direction: ${(props) =>\n props.$orientation === \"horizontal\" ? \"row\" : \"column\"};\n gap: ${(props) => (props.$space ? SPACE[props.$space] : \"12px\")};\n\n ${(props) =>\n props.$orientation === \"horizontal\" &&\n css`\n flex-wrap: wrap;\n align-items: center;\n `}\n`;\nStyledList.displayName = \"RadioGroupList\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAA+C,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,wBAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,CAAA,CAAAc,EAAA,WAAAN,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAQ/C;AACA;AACA;AACA;AACA;AACO,IAAMmB,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,yBAAM,CAACC,QAAQ,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+IAiBzC,UAACC,KAAK;EAAA,OACNA,KAAK,CAACC,UAAU,QAChBC,qBAAG,mKAYF;AAAA,EACJ;AACDT,cAAc,CAACK,WAAW,GAAG,oBAAoB;AAOjD;AACA;AACA;AACA;AACA;AACO,IAAMK,UAAU,GAAAT,OAAA,CAAAS,UAAA,GAAGR,yBAAM,CAACS,GAAG,CAAAP,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uDAEhB,UAACC,KAAK;EAAA,OACtBA,KAAK,CAACK,YAAY,KAAK,YAAY,GAAG,KAAK,GAAG,QAAQ;AAAA,GACjD,UAACL,KAAK;EAAA,OAAMA,KAAK,CAACM,MAAM,GAAGC,mBAAK,CAACP,KAAK,CAACM,MAAM,CAAC,GAAG,MAAM;AAAA,CAAC,EAE7D,UAACN,KAAK;EAAA,OACNA,KAAK,CAACK,YAAY,KAAK,YAAY,QACnCH,qBAAG,yCAGF;AAAA,EACJ;AACDC,UAAU,CAACL,WAAW,GAAG,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_LayoutTokens","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledFieldset","exports","styled","fieldset","withConfig","displayName","componentId","props","$hideLabel","css","StyledList","div","$orientation","$space","SPACE"],"sources":["../../../../src/components/RadioGroup/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { Space, SPACE } from \"../LayoutTokens\";\n\nexport type RadioGroupOrientation = \"vertical\" | \"horizontal\";\n\nexport interface IStyledFieldset {\n $hideLabel?: boolean;\n}\n\n/**\n * `<fieldset>` reset — no default border or padding. Layout lives on the inner\n * list div, never on the fieldset, because a fieldset breaks flex/grid in some\n * browsers.\n */\nexport const StyledFieldset = styled.fieldset<IStyledFieldset>`\n border: 0;\n margin: 0;\n padding: 0;\n min-width: 0;\n\n .c-radio-group--legend {\n padding: 0;\n margin: 0 0 12px;\n }\n\n .c-radio-group--message {\n margin: 8px 0 0;\n }\n\n /* hideLabel: keep the legend in the a11y tree, hide it visually. Same sr-only\n idiom the hidden radio input uses. */\n ${(props) =>\n props.$hideLabel &&\n css`\n .c-radio-group--legend {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n clip: rect(0px, 0px, 0px, 0px);\n }\n `}\n`;\nStyledFieldset.displayName = \"RadioGroupFieldset\";\n\nexport interface IStyledList {\n $orientation: RadioGroupOrientation;\n $space?: Space;\n}\n\n/**\n * Flex list of options. Default between-options gap is 12px (the\n * ExportProjectDialog look); `$space` overrides only this gap, using the same\n * `Space`-to-pixel mapping as `Tiles` so a group and a `Tiles` grid line up.\n */\nexport const StyledList = styled.div<IStyledList>`\n display: flex;\n flex-direction: ${(props) =>\n props.$orientation === \"horizontal\" ? \"row\" : \"column\"};\n gap: ${(props) => (props.$space ? SPACE[props.$space] : \"12px\")};\n\n /* stretch, not center: a row of cards is only readable when every card ends\n at the same line, whatever its body holds. */\n ${(props) =>\n props.$orientation === \"horizontal\" &&\n css`\n flex-wrap: wrap;\n align-items: stretch;\n `}\n`;\nStyledList.displayName = \"RadioGroupList\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAA+C,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,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AGR,yBAAM,CAACS,GAAG,CAAAP,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uDAEhB,UAACC,KAAK;EAAA,OACtBA,KAAK,CAACK,YAAY,KAAK,YAAY,GAAG,KAAK,GAAG,QAAQ;AAAA,GACjD,UAACL,KAAK;EAAA,OAAMA,KAAK,CAACM,MAAM,GAAGC,mBAAK,CAACP,KAAK,CAACM,MAAM,CAAC,GAAG,MAAM;AAAA,CAAC,EAI7D,UAACN,KAAK;EAAA,OACNA,KAAK,CAACK,YAAY,KAAK,YAAY,QACnCH,qBAAG,0CAGF;AAAA,EACJ;AACDC,UAAU,CAACL,WAAW,GAAG,gBAAgB","ignoreList":[]}
@@ -9,6 +9,12 @@ var _themes = require("../../utils/themes");
9
9
  var _BoxSizingStyle = require("../BoxSizingStyle");
10
10
  var _FontStyle = require("../FontStyle");
11
11
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
+ /**
13
+ * `default` is the page look: paper shadow, outer margins, uppercase header.
14
+ * `plain` is the in-dialog look: the table sits flush in the content it is
15
+ * dropped into.
16
+ */
17
+
12
18
  var StyledTableHead = exports.StyledTableHead = _styledComponents.default.thead.withConfig({
13
19
  displayName: "Styles__StyledTableHead",
14
20
  componentId: "sc-e16t6w-0"
@@ -58,35 +64,44 @@ StyledTableBody.displayName = "StyledTableBody";
58
64
  var StyledTableWrapper = exports.StyledTableWrapper = _styledComponents.default.div.withConfig({
59
65
  displayName: "Styles__StyledTableWrapper",
60
66
  componentId: "sc-e16t6w-2"
61
- })(["", " ", " ", " &:before{", " content:\"\";top:39px;z-index:-1;}"], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, {
62
- "marginLeft": "1rem",
63
- "marginRight": "1rem",
64
- "marginTop": "2rem",
67
+ })(["", " ", " ", " ", ""], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle, {
65
68
  "overflowX": "auto",
66
69
  "overflowY": "hidden"
67
- }, {
68
- "position": "absolute",
69
- "bottom": "0px",
70
- "left": "0px",
71
- "right": "0px",
72
- "borderRadius": "0.5rem",
73
- "backgroundColor": "var(--page-paper-main)",
74
- "--tw-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
75
- "--tw-shadow-colored": "0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",
76
- "boxShadow": "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
70
+ }, function (props) {
71
+ return props.$variant === "default" && (0, _styledComponents.css)(["", " &:before{", " content:\"\";top:39px;z-index:-1;}"], {
72
+ "marginLeft": "1rem",
73
+ "marginRight": "1rem",
74
+ "marginTop": "2rem"
75
+ }, {
76
+ "position": "absolute",
77
+ "bottom": "0px",
78
+ "left": "0px",
79
+ "right": "0px",
80
+ "borderRadius": "0.5rem",
81
+ "backgroundColor": "var(--page-paper-main)",
82
+ "--tw-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
83
+ "--tw-shadow-colored": "0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",
84
+ "boxShadow": "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
85
+ });
77
86
  });
78
87
  StyledTableWrapper.displayName = "StyledTableWrapper";
79
88
  var StyledTable = exports.StyledTable = _styledComponents.default.table.withConfig({
80
89
  displayName: "Styles__StyledTable",
81
90
  componentId: "sc-e16t6w-3"
82
- })(["", " border-spacing:0;", " tr th,", " tr td{&:last-child{", "}}td{", "}", ""], {
91
+ })(["", " border-spacing:0;", " ", " td{", "}", ""], {
83
92
  "width": "100%",
84
93
  "padding": "0px",
85
94
  "paddingBottom": "1rem",
86
95
  "fontSize": "0.75rem",
87
96
  "lineHeight": "1rem"
88
- }, StyledTableHead, StyledTableBody, {
89
- "textAlign": "right"
97
+ }, function (props) {
98
+ return props.$variant === "default" && (0, _styledComponents.css)(["", " tr th,", " tr td{&:last-child{", "}}"], StyledTableHead, StyledTableBody, {
99
+ "textAlign": "right"
100
+ });
101
+ }, function (props) {
102
+ return props.$variant === "plain" && (0, _styledComponents.css)([".c-table__head{", "}"], {
103
+ "textTransform": "none"
104
+ });
90
105
  }, {
91
106
  "paddingLeft": "1rem",
92
107
  "paddingRight": "1rem",
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_themes","_BoxSizingStyle","_FontStyle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledTableHead","exports","styled","thead","withConfig","displayName","componentId","FontStyle","BoxSizingStyle","props","$headerVariant","css","StyledTableBody","tbody","StyledTableWrapper","div","StyledTable","table","$striped","StyledDataTable","DARK_THEME_SELECTOR"],"sources":["../../../../src/components/Tables/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\n\nimport { DARK_THEME_SELECTOR } from \"../../utils/themes\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nexport const StyledTableHead = styled.thead<{\n $headerVariant: \"primary\" | \"secondary\";\n}>`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-text-left tw-uppercase`}\n ${tw`tw-text-theme-700 tw-font-semibold tw-text-xxs`}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"primary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap tw-pl-4 tw-pr-4 tw-pb-8 tw-pt-2`}\n }\n\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n `}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"secondary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap`}\n }\n\n tr {\n th {\n padding-bottom: 8px;\n padding-left: 16px;\n }\n }\n\n tr {\n th:last-child {\n padding-right: 16px;\n }\n }\n `}\n`;\nStyledTableHead.displayName = \"StyledTableHead\";\n\nexport const StyledTableBody = styled.tbody`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-truncate`}\n\n td {\n ${tw`tw-truncate`}\n }\n\n &:not(.c-table__grouped__head) {\n td {\n ${tw`tw-text-theme-700`}\n }\n }\n\n a {\n ${tw`tw-no-underline tw-text-primary`}\n &:hover {\n ${tw`tw-underline`}\n }\n }\n`;\nStyledTableBody.displayName = \"StyledTableBody\";\n\nexport const StyledTableWrapper = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-mt-8 tw-mx-4 tw-overflow-x-auto tw-overflow-y-hidden`}\n\n &:before {\n ${tw`tw-absolute tw-left-0 tw-right-0 tw-bottom-0 tw-bg-page-paper-main tw-rounded-lg tw-shadow-lg`}\n content: \"\";\n top: 39px;\n z-index: -1;\n }\n`;\nStyledTableWrapper.displayName = \"StyledTableWrapper\";\n\nexport const StyledTable = styled.table<{\n $striped: boolean;\n}>`\n ${tw`tw-w-full tw-p-0 tw-text-xs tw-pb-4`}\n border-spacing: 0;\n\n ${StyledTableHead} tr th,\n ${StyledTableBody} tr td {\n &:last-child {\n ${tw`tw-text-right`}\n }\n }\n\n td {\n ${tw`tw-py-3 tw-px-4`}\n }\n\n ${(props) =>\n props.$striped &&\n css`\n ${StyledTableBody}:not(.c-table__grouped__head) {\n tr:nth-child(odd) {\n ${tw`tw-bg-theme-200`}\n }\n }\n `}\n`;\nStyledTable.displayName = \"StyledTable\";\n\nexport const StyledDataTable = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n &.c-table__collapsible {\n .c-table__head {\n tr {\n th {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n }\n }\n }\n &.c-table__grouped {\n .c-table__head th {\n ${tw`tw-pb-4`}\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n &.c-data-table {\n position: relative;\n .c-table__head th {\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n .c-table__cell {\n ${tw`tw-relative`}\n &:hover {\n .c-table__icon {\n ${tw`tw-opacity-50`}\n }\n }\n }\n .c-table__overlay {\n ${tw`tw-absolute tw-w-full tw-left-0 tw-pointer-events-none`}\n top: 0px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n background: rgba(0, 0, 0, 0.02);\n ${DARK_THEME_SELECTOR} & {\n background: rgba(0, 0, 0, 0.1);\n }\n z-index: 5;\n }\n .c-table__icon-wrapper {\n ${tw`tw-inline-block tw-select-none`}\n }\n .c-table__label {\n ${tw`tw-border-0 tw-border-0 tw-border-transparent tw-border-solid`}\n }\n .c-table__icon {\n transform: translateY(1px);\n ${tw`tw-ml-1`}\n fill: var(--color-theme-900);\n\n &:hover {\n ${tw`tw-opacity-100`}\n }\n }\n .c-table__icon--inactive {\n ${tw`tw-opacity-0`}\n }\n .c-table__icon--active {\n ${tw`tw-opacity-100`}\n }\n .c-table__icon--desc {\n transform: rotate(-180deg) scale(-1, 1);\n }\n .c-table__grouped__head {\n ${tw`tw-font-bold`}\n > :first-child {\n ${tw`tw-text-theme-900`}\n }\n a:first-child {\n ${tw`tw-text-primary`}\n }\n }\n .c-table__head--hidden {\n ${tw`tw-pointer-events-none tw-opacity-0`}\n }\n .c-table__collapse_icon--expanded {\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__collapse_icon--collapsed {\n transform: rotate(180deg);\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__head__icon-wrapper__icon {\n ${tw`tw-absolute tw-cursor-pointer`}\n transform: translate(-24px, -5px);\n }\n &.c-table__collapsible {\n .c-table__group {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 1px solid var(--border-primary);\n }\n &:last-child {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 0;\n }\n }\n }\n .c-table__grouped__head {\n tr td {\n border-bottom: 1px solid var(--border-primary);\n }\n .c-table__body__collapse td {\n border-bottom: 0;\n }\n &.last {\n tr td {\n border-bottom: 0 !important;\n }\n }\n }\n .c-table__grouped__head--expanded {\n tr:last-child td {\n border-bottom: 0;\n }\n }\n }\n .c-table__collapse_body {\n tr {\n background-color: transparent !important;\n }\n td:last-child {\n ${tw`tw-border-0`}\n }\n ${tw`tw-absolute`}\n }\n .c-table__row {\n td:first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n }\n &:nth-child(odd) {\n td {\n ${tw`tw-bg-theme-200`}\n }\n }\n &:nth-child(even) {\n td {\n ${tw`tw-bg-page-paper-main`}\n }\n }\n }\n .c-table__row {\n th:first-child {\n position: sticky;\n left: 0;\n z-index: 2 !important;\n }\n }\n &.c-table__collapsible .c-table__body {\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n }\n .c-table__body__icon {\n ${tw`tw-p-0`}\n padding-left: 0 !important;\n transform: translateY(8px);\n }\n &.padding-b-0 {\n ${tw`tw-pb-0`}\n }\n .cursor-pointer {\n ${tw`tw-cursor-pointer`}\n }\n .text-center {\n ${tw`tw-text-center`}\n }\n .opacity-75 {\n ${tw`tw-opacity-75`}\n }\n .hidden {\n ${tw`tw-hidden`}\n }\n`;\nStyledDataTable.displayName = \"StyledDataTable\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,OAAA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C,CAElB;AACDD,eAAe,CAACd,WAAW,GAAG,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_themes","_BoxSizingStyle","_FontStyle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","StyledTableHead","exports","styled","thead","withConfig","displayName","componentId","FontStyle","BoxSizingStyle","props","$headerVariant","css","StyledTableBody","tbody","StyledTableWrapper","div","$variant","StyledTable","table","$striped","StyledDataTable","DARK_THEME_SELECTOR"],"sources":["../../../../src/components/Tables/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\n\nimport { DARK_THEME_SELECTOR } from \"../../utils/themes\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\n/**\n * `default` is the page look: paper shadow, outer margins, uppercase header.\n * `plain` is the in-dialog look: the table sits flush in the content it is\n * dropped into.\n */\nexport type TableVariant = \"default\" | \"plain\";\n\nexport const StyledTableHead = styled.thead<{\n $headerVariant: \"primary\" | \"secondary\";\n}>`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-text-left tw-uppercase`}\n ${tw`tw-text-theme-700 tw-font-semibold tw-text-xxs`}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"primary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap tw-pl-4 tw-pr-4 tw-pb-8 tw-pt-2`}\n }\n\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n `}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"secondary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap`}\n }\n\n tr {\n th {\n padding-bottom: 8px;\n padding-left: 16px;\n }\n }\n\n tr {\n th:last-child {\n padding-right: 16px;\n }\n }\n `}\n`;\nStyledTableHead.displayName = \"StyledTableHead\";\n\nexport const StyledTableBody = styled.tbody`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-truncate`}\n\n td {\n ${tw`tw-truncate`}\n }\n\n &:not(.c-table__grouped__head) {\n td {\n ${tw`tw-text-theme-700`}\n }\n }\n\n a {\n ${tw`tw-no-underline tw-text-primary`}\n &:hover {\n ${tw`tw-underline`}\n }\n }\n`;\nStyledTableBody.displayName = \"StyledTableBody\";\n\nexport const StyledTableWrapper = styled.div<{\n $variant: TableVariant;\n}>`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-overflow-x-auto tw-overflow-y-hidden`}\n\n ${(props) =>\n props.$variant === \"default\" &&\n css`\n ${tw`tw-mt-8 tw-mx-4`}\n\n &:before {\n ${tw`tw-absolute tw-left-0 tw-right-0 tw-bottom-0 tw-bg-page-paper-main tw-rounded-lg tw-shadow-lg`}\n content: \"\";\n top: 39px;\n z-index: -1;\n }\n `}\n`;\nStyledTableWrapper.displayName = \"StyledTableWrapper\";\n\nexport const StyledTable = styled.table<{\n $striped: boolean;\n $variant: TableVariant;\n}>`\n ${tw`tw-w-full tw-p-0 tw-text-xs tw-pb-4`}\n border-spacing: 0;\n\n ${(props) =>\n props.$variant === \"default\" &&\n css`\n ${StyledTableHead} tr th,\n ${StyledTableBody} tr td {\n &:last-child {\n ${tw`tw-text-right`}\n }\n }\n `}\n\n ${(props) =>\n props.$variant === \"plain\" &&\n css`\n .c-table__head {\n ${tw`tw-normal-case`}\n }\n `}\n\n td {\n ${tw`tw-py-3 tw-px-4`}\n }\n\n ${(props) =>\n props.$striped &&\n css`\n ${StyledTableBody}:not(.c-table__grouped__head) {\n tr:nth-child(odd) {\n ${tw`tw-bg-theme-200`}\n }\n }\n `}\n`;\nStyledTable.displayName = \"StyledTable\";\n\nexport const StyledDataTable = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n &.c-table__collapsible {\n .c-table__head {\n tr {\n th {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n }\n }\n }\n &.c-table__grouped {\n .c-table__head th {\n ${tw`tw-pb-4`}\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n &.c-data-table {\n position: relative;\n .c-table__head th {\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n .c-table__cell {\n ${tw`tw-relative`}\n &:hover {\n .c-table__icon {\n ${tw`tw-opacity-50`}\n }\n }\n }\n .c-table__overlay {\n ${tw`tw-absolute tw-w-full tw-left-0 tw-pointer-events-none`}\n top: 0px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n background: rgba(0, 0, 0, 0.02);\n ${DARK_THEME_SELECTOR} & {\n background: rgba(0, 0, 0, 0.1);\n }\n z-index: 5;\n }\n .c-table__icon-wrapper {\n ${tw`tw-inline-block tw-select-none`}\n }\n .c-table__label {\n ${tw`tw-border-0 tw-border-0 tw-border-transparent tw-border-solid`}\n }\n .c-table__icon {\n transform: translateY(1px);\n ${tw`tw-ml-1`}\n fill: var(--color-theme-900);\n\n &:hover {\n ${tw`tw-opacity-100`}\n }\n }\n .c-table__icon--inactive {\n ${tw`tw-opacity-0`}\n }\n .c-table__icon--active {\n ${tw`tw-opacity-100`}\n }\n .c-table__icon--desc {\n transform: rotate(-180deg) scale(-1, 1);\n }\n .c-table__grouped__head {\n ${tw`tw-font-bold`}\n > :first-child {\n ${tw`tw-text-theme-900`}\n }\n a:first-child {\n ${tw`tw-text-primary`}\n }\n }\n .c-table__head--hidden {\n ${tw`tw-pointer-events-none tw-opacity-0`}\n }\n .c-table__collapse_icon--expanded {\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__collapse_icon--collapsed {\n transform: rotate(180deg);\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__head__icon-wrapper__icon {\n ${tw`tw-absolute tw-cursor-pointer`}\n transform: translate(-24px, -5px);\n }\n &.c-table__collapsible {\n .c-table__group {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 1px solid var(--border-primary);\n }\n &:last-child {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 0;\n }\n }\n }\n .c-table__grouped__head {\n tr td {\n border-bottom: 1px solid var(--border-primary);\n }\n .c-table__body__collapse td {\n border-bottom: 0;\n }\n &.last {\n tr td {\n border-bottom: 0 !important;\n }\n }\n }\n .c-table__grouped__head--expanded {\n tr:last-child td {\n border-bottom: 0;\n }\n }\n }\n .c-table__collapse_body {\n tr {\n background-color: transparent !important;\n }\n td:last-child {\n ${tw`tw-border-0`}\n }\n ${tw`tw-absolute`}\n }\n .c-table__row {\n td:first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n }\n &:nth-child(odd) {\n td {\n ${tw`tw-bg-theme-200`}\n }\n }\n &:nth-child(even) {\n td {\n ${tw`tw-bg-page-paper-main`}\n }\n }\n }\n .c-table__row {\n th:first-child {\n position: sticky;\n left: 0;\n z-index: 2 !important;\n }\n }\n &.c-table__collapsible .c-table__body {\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n }\n .c-table__body__icon {\n ${tw`tw-p-0`}\n padding-left: 0 !important;\n transform: translateY(8px);\n }\n &.padding-b-0 {\n ${tw`tw-pb-0`}\n }\n .cursor-pointer {\n ${tw`tw-cursor-pointer`}\n }\n .text-center {\n ${tw`tw-text-center`}\n }\n .opacity-75 {\n ${tw`tw-opacity-75`}\n }\n .hidden {\n ${tw`tw-hidden`}\n }\n`;\nStyledDataTable.displayName = \"StyledDataTable\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAAyC,SAAAD,wBAAAK,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAP,uBAAA,YAAAA,wBAAAK,CAAA,EAAAC,CAAA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AAAQ,CAAC,EAGT;EAAA;AAAkB,CAAC,EAGnB;EAAA;AAAe,CAAC,EAGhB;EAAA;AAAc,CAAC,EAGf;EAAA;AAAU,CAAC,CAElB;AACDD,eAAe,CAACf,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -14,13 +14,21 @@ var Table = exports.Table = function Table(_ref) {
14
14
  wrapperClassName = _ref.wrapperClassName,
15
15
  _ref$striped = _ref.striped,
16
16
  striped = _ref$striped === void 0 ? false : _ref$striped,
17
- innerRef = _ref.innerRef;
17
+ innerRef = _ref.innerRef,
18
+ _ref$variant = _ref.variant,
19
+ variant = _ref$variant === void 0 ? "default" : _ref$variant;
18
20
  return /*#__PURE__*/_react.default.createElement(_Styles.StyledTableWrapper, {
19
- className: (0, _classnames.default)("c-table__wrap", wrapperClassName)
21
+ className: (0, _classnames.default)("c-table__wrap", wrapperClassName, {
22
+ "c-table__wrap--plain": variant === "plain"
23
+ }),
24
+ $variant: variant
20
25
  }, /*#__PURE__*/_react.default.createElement(_Styles.StyledTable, {
21
26
  ref: innerRef,
22
- className: (0, _classnames.default)("c-table", className),
23
- $striped: striped
27
+ className: (0, _classnames.default)("c-table", className, {
28
+ "c-table--plain": variant === "plain"
29
+ }),
30
+ $striped: striped,
31
+ $variant: variant
24
32
  }, children));
25
33
  };
26
34
  Table.displayName = "Table";
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","names":["_react","_interopRequireDefault","require","_classnames","_Styles","e","__esModule","default","Table","exports","_ref","children","className","wrapperClassName","_ref$striped","striped","innerRef","createElement","StyledTableWrapper","classNames","StyledTable","ref","$striped","displayName","Thead","_ref2","_ref2$headerVariant","headerVariant","StyledTableHead","$headerVariant","Tbody","_ref3","StyledTableBody"],"sources":["../../../../src/components/Tables/Table.tsx"],"sourcesContent":["import React, { ReactNode, FC, RefObject } from \"react\";\n\nimport classNames from \"classnames\";\n\nimport {\n StyledTableWrapper,\n StyledTable,\n StyledTableBody,\n StyledTableHead,\n} from \"./Styles\";\n\nexport interface ITableWithChildren {\n /** Children prop can be ReactNode. */\n children: ReactNode;\n /** Classname prop for custom styling. */\n className?: string;\n}\n\nexport interface ITableProps {\n /** Darker color on odd column. */\n striped?: boolean;\n /** CSS classes. */\n className?: string;\n /** CSS classes for wrapper */\n wrapperClassName?: string;\n /** Ref object for table. */\n innerRef?: RefObject<HTMLTableElement>;\n}\n\nexport const Table: FC<ITableProps & ITableWithChildren> = ({\n children,\n className,\n wrapperClassName,\n striped = false,\n innerRef,\n}) => {\n return (\n <StyledTableWrapper\n className={classNames(\"c-table__wrap\", wrapperClassName)}\n >\n <StyledTable\n ref={innerRef}\n className={classNames(\"c-table\", className)}\n $striped={striped}\n >\n {children}\n </StyledTable>\n </StyledTableWrapper>\n );\n};\n\nTable.displayName = \"Table\";\n\nexport const Thead: FC<\n ITableWithChildren & { headerVariant?: \"primary\" | \"secondary\" }\n> = ({ children, className, headerVariant = \"primary\" }) => (\n <StyledTableHead\n $headerVariant={headerVariant}\n className={classNames(\"c-table__head\", className)}\n >\n {children}\n </StyledTableHead>\n);\n\nThead.displayName = \"Thead\";\n\nexport const Tbody: FC<ITableWithChildren> = ({ children, className }) => (\n <StyledTableBody className={classNames(\"c-table__body\", className)}>\n {children}\n </StyledTableBody>\n);\n\nTbody.displayName = \"Tbody\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAKkB,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAoBX,IAAMG,KAA2C,GAAAC,OAAA,CAAAD,KAAA,GAAG,SAA9CA,KAA2CA,CAAAE,IAAA,EAMlD;EAAA,IALJC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,SAAS,GAAAF,IAAA,CAATE,SAAS;IAC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mB,KAAA,CAATnB,SAAS;EAAA,oBACjEZ,MAAA,CAAAO,OAAA,CAAAU,aAAA,CAACb,OAAA,CAAA4B,eAAe;IAACpB,SAAS,EAAE,IAAAO,mBAAU,EAAC,eAAe,EAAEP,SAAS;EAAE,GAChED,QACc,CAAC;AAAA,CACnB;AAEDmB,KAAK,CAACP,WAAW,GAAG,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"Table.js","names":["_react","_interopRequireDefault","require","_classnames","_Styles","e","__esModule","default","Table","exports","_ref","children","className","wrapperClassName","_ref$striped","striped","innerRef","_ref$variant","variant","createElement","StyledTableWrapper","classNames","$variant","StyledTable","ref","$striped","displayName","Thead","_ref2","_ref2$headerVariant","headerVariant","StyledTableHead","$headerVariant","Tbody","_ref3","StyledTableBody"],"sources":["../../../../src/components/Tables/Table.tsx"],"sourcesContent":["import React, { ReactNode, FC, RefObject } from \"react\";\n\nimport classNames from \"classnames\";\n\nimport {\n StyledTableWrapper,\n StyledTable,\n StyledTableBody,\n StyledTableHead,\n TableVariant,\n} from \"./Styles\";\n\nexport type { TableVariant } from \"./Styles\";\n\nexport interface ITableWithChildren {\n /** Children prop can be ReactNode. */\n children: ReactNode;\n /** Classname prop for custom styling. */\n className?: string;\n}\n\nexport interface ITableProps {\n /** Darker color on odd column. */\n striped?: boolean;\n /** CSS classes. */\n className?: string;\n /** CSS classes for wrapper */\n wrapperClassName?: string;\n /** Ref object for table. */\n innerRef?: RefObject<HTMLTableElement>;\n /**\n * `\"default\"` is the page look. `\"plain\"` drops the outer margins, the paper\n * shadow and the forced right alignment of the last column, and keeps the\n * header in sentence case. It is the look a table needs inside a dialog.\n */\n variant?: TableVariant;\n}\n\nexport const Table: FC<ITableProps & ITableWithChildren> = ({\n children,\n className,\n wrapperClassName,\n striped = false,\n innerRef,\n variant = \"default\",\n}) => {\n return (\n <StyledTableWrapper\n className={classNames(\"c-table__wrap\", wrapperClassName, {\n \"c-table__wrap--plain\": variant === \"plain\",\n })}\n $variant={variant}\n >\n <StyledTable\n ref={innerRef}\n className={classNames(\"c-table\", className, {\n \"c-table--plain\": variant === \"plain\",\n })}\n $striped={striped}\n $variant={variant}\n >\n {children}\n </StyledTable>\n </StyledTableWrapper>\n );\n};\n\nTable.displayName = \"Table\";\n\nexport const Thead: FC<\n ITableWithChildren & { headerVariant?: \"primary\" | \"secondary\" }\n> = ({ children, className, headerVariant = \"primary\" }) => (\n <StyledTableHead\n $headerVariant={headerVariant}\n className={classNames(\"c-table__head\", className)}\n >\n {children}\n </StyledTableHead>\n);\n\nThead.displayName = \"Thead\";\n\nexport const Tbody: FC<ITableWithChildren> = ({ children, className }) => (\n <StyledTableBody className={classNames(\"c-table__body\", className)}>\n {children}\n </StyledTableBody>\n);\n\nTbody.displayName = \"Tbody\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAMkB,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA4BX,IAAMG,KAA2C,GAAAC,OAAA,CAAAD,KAAA,GAAG,SAA9CA,KAA2CA,CAAAE,IAAA,EAOlD;EAAA,IANJC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IACRC,SAAS,GAAAF,IAAA,CAATE,SAAS;IACTC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAAAC,YAAA,GAAAJ,IAAA,CAChBK,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IACfE,QAAQ,GAAAN,IAAA,CAARM,QAAQ;IAAAC,YAAA,GAAAP,IAAA,CACRQ,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,SAAS,GAAAA,YAAA;EAEnB,oBACEjB,MAAA,CAAAO,OAAA,CAAAY,aAAA,CAACf,OAAA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AY,aAAA,CAACf,OAAA,CAAA+B,eAAe;IAACvB,SAAS,EAAE,IAAAS,mBAAU,EAAC,eAAe,EAAET,SAAS;EAAE,GAChED,QACc,CAAC;AAAA,CACnB;AAEDsB,KAAK,CAACP,WAAW,GAAG,OAAO","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ /**
3
+ * @component ImportIcon
4
+ * @description
5
+ *
6
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
7
+ * The Icon component is
8
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
9
+ *
10
+ * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
11
+ * Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
12
+ *
13
+ * @example
14
+ * return (
15
+ * <ImportIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
16
+ * )
17
+ *
18
+ * @example
19
+ * return (
20
+ * <ImportIcon className="mr-2" />
21
+ * )
22
+ *
23
+ * @see
24
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
25
+ * @see
26
+ * https://design.activecollab.com/docs/foundations/icons
27
+ */
28
+ declare const ImportIcon: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement> & {
29
+ gradient?: string;
30
+ }, "ref"> & React.RefAttributes<SVGSVGElement>>;
31
+ export default ImportIcon;
32
+ //# sourceMappingURL=Import.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Import.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/collection/Import.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,UAAU;eAMC,MAAM;+CA4BtB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,54 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["gradient"];
4
+ import React from "react";
5
+ import { GradientDefs } from "../../GradientDefs";
6
+
7
+ /**
8
+ * @component ImportIcon
9
+ * @description
10
+ *
11
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
12
+ * The Icon component is
13
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
14
+ *
15
+ * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
16
+ * Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
17
+ *
18
+ * @example
19
+ * return (
20
+ * <ImportIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
21
+ * )
22
+ *
23
+ * @example
24
+ * return (
25
+ * <ImportIcon className="mr-2" />
26
+ * )
27
+ *
28
+ * @see
29
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
30
+ * @see
31
+ * https://design.activecollab.com/docs/foundations/icons
32
+ */
33
+ const ImportIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
34
+ let gradient = _ref.gradient,
35
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
36
+ return /*#__PURE__*/React.createElement("svg", _extends({
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ width: 24,
39
+ height: 24,
40
+ viewBox: "0 0 24 24",
41
+ "data-testid": "ImportIcon",
42
+ fill: gradient ? "url(#icon-gradient)" : props != null && props.fill ? props.fill : "var(--color-theme-600)",
43
+ focusable: false,
44
+ ref: ref
45
+ }, props), /*#__PURE__*/React.createElement(GradientDefs, {
46
+ gradient: gradient
47
+ }), /*#__PURE__*/React.createElement("path", {
48
+ fillRule: "evenodd",
49
+ d: "M11 3h2v5h3l-4 5-4-5h3zM2 15h2v3h16v-3h2v3a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z"
50
+ }));
51
+ });
52
+ ImportIcon.displayName = "ImportIcon";
53
+ export default ImportIcon;
54
+ //# sourceMappingURL=Import.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Import.js","names":["React","GradientDefs","ImportIcon","forwardRef","_ref","ref","gradient","props","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","xmlns","width","height","viewBox","fill","focusable","fillRule","d","displayName"],"sources":["../../../../../src/components/Icons/collection/Import.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { GradientDefs } from \"../../GradientDefs\";\n\n/**\n * @component ImportIcon\n * @description\n *\n * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.\n * The Icon component is\n * customizable, allowing for variations in size, color, and style to fit the needs of the application.\n *\n * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.\n * Format: \"linear-gradient(<angle>deg, <color1>, <color2>, ...)\"\n *\n * @example\n * return (\n * <ImportIcon gradient=\"linear-gradient(135deg, #4da2ed, #f72222)\" />\n * )\n *\n * @example\n * return (\n * <ImportIcon className=\"mr-2\" />\n * )\n *\n * @see\n * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons\n * @see\n * https://design.activecollab.com/docs/foundations/icons\n */\nconst ImportIcon = React.forwardRef(\n (\n {\n gradient,\n ...props\n }: React.SVGProps<SVGSVGElement> & {\n gradient?: string;\n },\n ref?: React.Ref<SVGSVGElement>\n ) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={24}\n height={24}\n viewBox=\"0 0 24 24\"\n data-testid=\"ImportIcon\"\n fill={\n gradient\n ? \"url(#icon-gradient)\"\n : props?.fill\n ? props.fill\n : \"var(--color-theme-600)\"\n }\n focusable={false}\n ref={ref}\n {...props}\n >\n <GradientDefs gradient={gradient} />\n <path\n fillRule=\"evenodd\"\n d=\"M11 3h2v5h3l-4 5-4-5h3zM2 15h2v3h16v-3h2v3a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2z\"\n />\n </svg>\n )\n);\nImportIcon.displayName = \"ImportIcon\";\nexport default ImportIcon;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAY,QAAQ,oBAAoB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,UAAU,gBAAGF,KAAK,CAACG,UAAU,CACjC,CAAAC,IAAA,EAOEC,GAA8B;EAAA,IAL5BC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACLC,KAAK,GAAAC,6BAAA,CAAAJ,IAAA,EAAAK,SAAA;EAAA,oBAMVT,KAAA,CAAAU,aAAA,QAAAC,QAAA;IACEC,KAAK,EAAC,4BAA4B;IAClCC,KAAK,EAAE,EAAG;IACVC,MAAM,EAAE,EAAG;IACXC,OAAO,EAAC,WAAW;IACnB,eAAY,YAAY;IACxBC,IAAI,EACFV,QAAQ,GACJ,qBAAqB,GACrBC,KAAK,YAALA,KAAK,CAAES,IAAI,GACXT,KAAK,CAACS,IAAI,GACV,wBACL;IACDC,SAAS,EAAE,KAAM;IACjBZ,GAAG,EAAEA;EAAI,GACLE,KAAK,gBAETP,KAAA,CAAAU,aAAA,CAACT,YAAY;IAACK,QAAQ,EAAEA;EAAS,CAAE,CAAC,eACpCN,KAAA,CAAAU,aAAA;IACEQ,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC;EAA2E,CAC9E,CACE,CAAC;AAAA,CAEV,CAAC;AACDjB,UAAU,CAACkB,WAAW,GAAG,YAAY;AACrC,eAAelB,UAAU","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ /**
3
+ * @component SpreadsheetFileIcon
4
+ * @description
5
+ *
6
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
7
+ * The Icon component is
8
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
9
+ *
10
+ * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
11
+ * Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
12
+ *
13
+ * @example
14
+ * return (
15
+ * <SpreadsheetFileIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
16
+ * )
17
+ *
18
+ * @example
19
+ * return (
20
+ * <SpreadsheetFileIcon className="mr-2" />
21
+ * )
22
+ *
23
+ * @see
24
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
25
+ * @see
26
+ * https://design.activecollab.com/docs/foundations/icons
27
+ */
28
+ declare const SpreadsheetFileIcon: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement> & {
29
+ gradient?: string;
30
+ }, "ref"> & React.RefAttributes<SVGSVGElement>>;
31
+ export default SpreadsheetFileIcon;
32
+ //# sourceMappingURL=SpreadsheetFile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpreadsheetFile.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/collection/SpreadsheetFile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,mBAAmB;eAMR,MAAM;+CA4BtB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,54 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["gradient"];
4
+ import React from "react";
5
+ import { GradientDefs } from "../../GradientDefs";
6
+
7
+ /**
8
+ * @component SpreadsheetFileIcon
9
+ * @description
10
+ *
11
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
12
+ * The Icon component is
13
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
14
+ *
15
+ * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
16
+ * Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
17
+ *
18
+ * @example
19
+ * return (
20
+ * <SpreadsheetFileIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
21
+ * )
22
+ *
23
+ * @example
24
+ * return (
25
+ * <SpreadsheetFileIcon className="mr-2" />
26
+ * )
27
+ *
28
+ * @see
29
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
30
+ * @see
31
+ * https://design.activecollab.com/docs/foundations/icons
32
+ */
33
+ const SpreadsheetFileIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
34
+ let gradient = _ref.gradient,
35
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
36
+ return /*#__PURE__*/React.createElement("svg", _extends({
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ width: 24,
39
+ height: 24,
40
+ viewBox: "0 0 24 24",
41
+ "data-testid": "SpreadsheetFileIcon",
42
+ fill: gradient ? "url(#icon-gradient)" : props != null && props.fill ? props.fill : "var(--color-theme-600)",
43
+ focusable: false,
44
+ ref: ref
45
+ }, props), /*#__PURE__*/React.createElement(GradientDefs, {
46
+ gradient: gradient
47
+ }), /*#__PURE__*/React.createElement("path", {
48
+ fillRule: "evenodd",
49
+ d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm4 18H6V4h7v5h5zM7 11h10v2H7zm0 3h4.5v2H7zm5.5 0H17v2h-4.5zM7 17h4.5v2H7zm5.5 0H17v2h-4.5z"
50
+ }));
51
+ });
52
+ SpreadsheetFileIcon.displayName = "SpreadsheetFileIcon";
53
+ export default SpreadsheetFileIcon;
54
+ //# sourceMappingURL=SpreadsheetFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpreadsheetFile.js","names":["React","GradientDefs","SpreadsheetFileIcon","forwardRef","_ref","ref","gradient","props","_objectWithoutPropertiesLoose","_excluded","createElement","_extends","xmlns","width","height","viewBox","fill","focusable","fillRule","d","displayName"],"sources":["../../../../../src/components/Icons/collection/SpreadsheetFile.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { GradientDefs } from \"../../GradientDefs\";\n\n/**\n * @component SpreadsheetFileIcon\n * @description\n *\n * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.\n * The Icon component is\n * customizable, allowing for variations in size, color, and style to fit the needs of the application.\n *\n * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.\n * Format: \"linear-gradient(<angle>deg, <color1>, <color2>, ...)\"\n *\n * @example\n * return (\n * <SpreadsheetFileIcon gradient=\"linear-gradient(135deg, #4da2ed, #f72222)\" />\n * )\n *\n * @example\n * return (\n * <SpreadsheetFileIcon className=\"mr-2\" />\n * )\n *\n * @see\n * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons\n * @see\n * https://design.activecollab.com/docs/foundations/icons\n */\nconst SpreadsheetFileIcon = React.forwardRef(\n (\n {\n gradient,\n ...props\n }: React.SVGProps<SVGSVGElement> & {\n gradient?: string;\n },\n ref?: React.Ref<SVGSVGElement>\n ) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={24}\n height={24}\n viewBox=\"0 0 24 24\"\n data-testid=\"SpreadsheetFileIcon\"\n fill={\n gradient\n ? \"url(#icon-gradient)\"\n : props?.fill\n ? props.fill\n : \"var(--color-theme-600)\"\n }\n focusable={false}\n ref={ref}\n {...props}\n >\n <GradientDefs gradient={gradient} />\n <path\n fillRule=\"evenodd\"\n d=\"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm4 18H6V4h7v5h5zM7 11h10v2H7zm0 3h4.5v2H7zm5.5 0H17v2h-4.5zM7 17h4.5v2H7zm5.5 0H17v2h-4.5z\"\n />\n </svg>\n )\n);\nSpreadsheetFileIcon.displayName = \"SpreadsheetFileIcon\";\nexport default SpreadsheetFileIcon;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAY,QAAQ,oBAAoB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,mBAAmB,gBAAGF,KAAK,CAACG,UAAU,CAC1C,CAAAC,IAAA,EAOEC,GAA8B;EAAA,IAL5BC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACLC,KAAK,GAAAC,6BAAA,CAAAJ,IAAA,EAAAK,SAAA;EAAA,oBAMVT,KAAA,CAAAU,aAAA,QAAAC,QAAA;IACEC,KAAK,EAAC,4BAA4B;IAClCC,KAAK,EAAE,EAAG;IACVC,MAAM,EAAE,EAAG;IACXC,OAAO,EAAC,WAAW;IACnB,eAAY,qBAAqB;IACjCC,IAAI,EACFV,QAAQ,GACJ,qBAAqB,GACrBC,KAAK,YAALA,KAAK,CAAES,IAAI,GACXT,KAAK,CAACS,IAAI,GACV,wBACL;IACDC,SAAS,EAAE,KAAM;IACjBZ,GAAG,EAAEA;EAAI,GACLE,KAAK,gBAETP,KAAA,CAAAU,aAAA,CAACT,YAAY;IAACK,QAAQ,EAAEA;EAAS,CAAE,CAAC,eACpCN,KAAA,CAAAU,aAAA;IACEQ,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC;EAAsJ,CACzJ,CACE,CAAC;AAAA,CAEV,CAAC;AACDjB,mBAAmB,CAACkB,WAAW,GAAG,qBAAqB;AACvD,eAAelB,mBAAmB","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ /**
3
+ * @component ToolsIcon
4
+ * @description
5
+ *
6
+ * The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
7
+ * The Icon component is
8
+ * customizable, allowing for variations in size, color, and style to fit the needs of the application.
9
+ *
10
+ * @prop {string} [gradient] - Optional CSS linear-gradient string to apply a custom fill.
11
+ * Format: "linear-gradient(<angle>deg, <color1>, <color2>, ...)"
12
+ *
13
+ * @example
14
+ * return (
15
+ * <ToolsIcon gradient="linear-gradient(135deg, #4da2ed, #f72222)" />
16
+ * )
17
+ *
18
+ * @example
19
+ * return (
20
+ * <ToolsIcon className="mr-2" />
21
+ * )
22
+ *
23
+ * @see
24
+ * https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
25
+ * @see
26
+ * https://design.activecollab.com/docs/foundations/icons
27
+ */
28
+ declare const ToolsIcon: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement> & {
29
+ gradient?: string;
30
+ }, "ref"> & React.RefAttributes<SVGSVGElement>>;
31
+ export default ToolsIcon;
32
+ //# sourceMappingURL=Tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tools.d.ts","sourceRoot":"","sources":["../../../../../src/components/Icons/collection/Tools.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,SAAS;eAME,MAAM;+CA4BtB,CAAC;AAEF,eAAe,SAAS,CAAC"}