@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":"RadioGroup.js","names":["React","forwardRef","classnames","StyledFieldset","StyledList","useStableId","RadioCard","Tiles","Typography","RadioGroup","_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","_objectWithoutPropertiesLoose","_excluded","groupName","messageId","isInvalid","undefined","showError","messageText","hasMessage","cards","map","option","createElement","key","id","checked","icon","title","useTiles","_extends","$hideLabel","as","weight","color","$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,OAAOA,KAAK,IAA8BC,UAAU,QAAmB,OAAO;AAE9E,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAAgCC,cAAc,EAAEC,UAAU,QAAQ,UAAU;AAC5E,OAAOC,WAAW,MAAM,yBAAyB;AAEjD,SAASC,SAAS,QAA0B,cAAc;AAC1D,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,UAAU,QAAQ,0BAA0B;AA8CrD,OAAO,MAAMC,UAAU,gBAAGR,UAAU,CAKlC,CAAAS,IAAA,EAoBEC,GAAG,KACA;EAAA,IAnBDC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,IAAI,GAAAL,IAAA,CAAJK,IAAI;IACJC,KAAK,GAAAN,IAAA,CAALM,KAAK;IAAAC,cAAA,GAAAP,IAAA,CACLQ,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;IACjBE,WAAW,GAAAT,IAAA,CAAXS,WAAW;IAAAC,aAAA,GAAAV,IAAA,CACXW,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,YAAA,GAAAZ,IAAA,CAChBa,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IACfE,YAAY,G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IACTgD,EAAE,EAAC,GAAG;IACN5B,OAAO,EAAC,WAAW;IACnBqB,EAAE,EAAEX,SAAU;IACdoB,KAAK,EAAEjB,SAAS,GAAG,OAAO,GAAG,WAAY;IACzCR,SAAS,EAAC;EAAwB,GAEjCS,WACS,CAAC,GACX,IACU,CAAC;AAErB,CACF,CAAC;AAEDjC,UAAU,CAACoD,WAAW,GAAG,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"RadioGroup.js","names":["React","forwardRef","classnames","StyledFieldset","StyledList","useStableId","RadioCard","Tiles","Typography","RadioGroup","_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","_objectWithoutPropertiesLoose","_excluded","groupName","messageId","isInvalid","undefined","showError","messageText","hasMessage","cards","map","option","createElement","key","id","checked","icon","title","children","useTiles","_extends","$hideLabel","as","weight","color","$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,OAAOA,KAAK,IAA8BC,UAAU,QAAmB,OAAO;AAE9E,OAAOC,UAAU,MAAM,YAAY;AAEnC,SAAgCC,cAAc,EAAEC,UAAU,QAAQ,UAAU;AAC5E,OAAOC,WAAW,MAAM,yBAAyB;AAGjD,SAASC,SAAS,QAA0B,cAAc;AAC1D,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,UAAU,QAAQ,0BAA0B;AAqDrD,OAAO,MAAMC,UAAU,gBAAGR,UAAU,CAKlC,CAAAS,IAAA,EAqBEC,GAAG,KACA;EAAA,IApBDC,OAAO,GAAAF,IAAA,CAAPE,OAAO;IACPC,KAAK,GAAAH,IAAA,CAALG,KAAK;IACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IACRC,IAAI,GAAAL,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S,EAAC;EAAuB,GAEhClB,KAAK,EACLK,QAAQ,GAAG,GAAG,GAAG,IACR,CAAC,GACX,IAAI,EAEPkC,QAAQ,gBACPvD,KAAA,CAAAgD,aAAA,CAACzC,KAAK;IACJ2B,SAAS,EAAC,qBAAqB;IAC/BH,OAAO,EAAEA,OAAkB;IAC3BC,aAAa,EAAEA,aAAc;IAC7BC,KAAK,EAAEA;EAAM,GAEZY,KACI,CAAC,gBAER7C,KAAA,CAAAgD,aAAA,CAAC5C,UAAU;IACT8B,SAAS,EAAC,qBAAqB;IAC/B2B,YAAY,EAAE/B,WAAY;IAC1BgC,MAAM,EAAE7B;EAAM,GAEbY,KACS,CACb,EAEAD,UAAU,gBACT5C,KAAA,CAAAgD,aAAA,CAACxC,UAAU;IACTkD,EAAE,EAAC,GAAG;IACN9B,OAAO,EAAC,WAAW;IACnBsB,EAAE,EAAEX,SAAU;IACdqB,KAAK,EAAElB,SAAS,GAAG,OAAO,GAAG,WAAY;IACzCR,SAAS,EAAC;EAAwB,GAEjCS,WACS,CAAC,GACX,IACU,CAAC;AAErB,CACF,CAAC;AAEDlC,UAAU,CAACsD,WAAW,GAAG,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioGroup/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAS,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,sFAgC1B,CAAC;AAGF,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,qBAAqB,CAAC;IACpC,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,6EAYtB,CAAC"}
1
+ {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioGroup/Styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAS,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,YAAY,CAAC;AAE9D,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,sFAgC1B,CAAC;AAGF,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,qBAAqB,CAAC;IACpC,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,6EActB,CAAC"}
@@ -18,6 +18,6 @@ StyledFieldset.displayName = "RadioGroupFieldset";
18
18
  export const StyledList = styled.div.withConfig({
19
19
  displayName: "Styles__StyledList",
20
20
  componentId: "sc-2qnvoo-1"
21
- })(["display:flex;flex-direction:", ";gap:", ";", ""], props => props.$orientation === "horizontal" ? "row" : "column", props => props.$space ? SPACE[props.$space] : "12px", props => props.$orientation === "horizontal" && css(["flex-wrap:wrap;align-items:center;"]));
21
+ })(["display:flex;flex-direction:", ";gap:", ";", ""], props => props.$orientation === "horizontal" ? "row" : "column", props => props.$space ? SPACE[props.$space] : "12px", props => props.$orientation === "horizontal" && css(["flex-wrap:wrap;align-items:stretch;"]));
22
22
  StyledList.displayName = "RadioGroupList";
23
23
  //# sourceMappingURL=Styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","SPACE","StyledFieldset","fieldset","withConfig","displayName","componentId","props","$hideLabel","StyledList","div","$orientation","$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,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAAgBC,KAAK,QAAQ,iBAAiB;AAQ9C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGH,MAAM,CAACI,QAAQ,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+IAiBxCC,KAAK,IACNA,KAAK,CAACC,UAAU,IAChBR,GAAG,kKAYF,CACJ;AACDE,cAAc,CAACG,WAAW,GAAG,oBAAoB;AAOjD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,UAAU,GAAGV,MAAM,CAACW,GAAG,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uDAEfC,KAAK,IACtBA,KAAK,CAACI,YAAY,KAAK,YAAY,GAAG,KAAK,GAAG,QAAQ,EAChDJ,KAAK,IAAMA,KAAK,CAACK,MAAM,GAAGX,KAAK,CAACM,KAAK,CAACK,MAAM,CAAC,GAAG,MAAO,EAE5DL,KAAK,IACNA,KAAK,CAACI,YAAY,KAAK,YAAY,IACnCX,GAAG,wCAGF,CACJ;AACDS,UAAU,CAACJ,WAAW,GAAG,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","SPACE","StyledFieldset","fieldset","withConfig","displayName","componentId","props","$hideLabel","StyledList","div","$orientation","$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,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAAgBC,KAAK,QAAQ,iBAAiB;AAQ9C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAGH,MAAM,CAACI,QAAQ,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+IAiBxCC,KAAK,IACNA,KAAK,CAACC,UAAU,IAChBR,GAAG,kKAYF,CACJ;AACDE,cAAc,CAACG,WAAW,GAAG,oBAAoB;AAOjD;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMI,UAAU,GAAGV,MAAM,CAACW,GAAG,CAAAN,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uDAEfC,KAAK,IACtBA,KAAK,CAACI,YAAY,KAAK,YAAY,GAAG,KAAK,GAAG,QAAQ,EAChDJ,KAAK,IAAMA,KAAK,CAACK,MAAM,GAAGX,KAAK,CAACM,KAAK,CAACK,MAAM,CAAC,GAAG,MAAO,EAI5DL,KAAK,IACNA,KAAK,CAACI,YAAY,KAAK,YAAY,IACnCX,GAAG,yCAGF,CACJ;AACDS,UAAU,CAACJ,WAAW,GAAG,gBAAgB","ignoreList":[]}
@@ -1,10 +1,19 @@
1
+ /**
2
+ * `default` is the page look: paper shadow, outer margins, uppercase header.
3
+ * `plain` is the in-dialog look: the table sits flush in the content it is
4
+ * dropped into.
5
+ */
6
+ export type TableVariant = "default" | "plain";
1
7
  export declare const StyledTableHead: import("styled-components").StyledComponent<"thead", any, {
2
8
  $headerVariant: "primary" | "secondary";
3
9
  }, never>;
4
10
  export declare const StyledTableBody: import("styled-components").StyledComponent<"tbody", any, {}, never>;
5
- export declare const StyledTableWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
11
+ export declare const StyledTableWrapper: import("styled-components").StyledComponent<"div", any, {
12
+ $variant: TableVariant;
13
+ }, never>;
6
14
  export declare const StyledTable: import("styled-components").StyledComponent<"table", any, {
7
15
  $striped: boolean;
16
+ $variant: TableVariant;
8
17
  }, never>;
9
18
  export declare const StyledDataTable: import("styled-components").StyledComponent<"div", any, {}, never>;
10
19
  //# sourceMappingURL=Styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Tables/Styles.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,eAAe;oBACV,SAAS,GAAG,WAAW;SA6CxC,CAAC;AAGF,eAAO,MAAM,eAAe,sEAsB3B,CAAC;AAGF,eAAO,MAAM,kBAAkB,oEAY9B,CAAC;AAGF,eAAO,MAAM,WAAW;cACZ,OAAO;SAyBlB,CAAC;AAGF,eAAO,MAAM,eAAe,oEA8L3B,CAAC"}
1
+ {"version":3,"file":"Styles.d.ts","sourceRoot":"","sources":["../../../../src/components/Tables/Styles.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;AAE/C,eAAO,MAAM,eAAe;oBACV,SAAS,GAAG,WAAW;SA6CxC,CAAC;AAGF,eAAO,MAAM,eAAe,sEAsB3B,CAAC;AAGF,eAAO,MAAM,kBAAkB;cACnB,YAAY;SAmBvB,CAAC;AAGF,eAAO,MAAM,WAAW;cACZ,OAAO;cACP,YAAY;SAqCvB,CAAC;AAGF,eAAO,MAAM,eAAe,oEA8L3B,CAAC"}
@@ -2,6 +2,13 @@ import styled, { css } from "styled-components";
2
2
  import { DARK_THEME_SELECTOR } from "../../utils/themes";
3
3
  import { BoxSizingStyle } from "../BoxSizingStyle";
4
4
  import { FontStyle } from "../FontStyle";
5
+
6
+ /**
7
+ * `default` is the page look: paper shadow, outer margins, uppercase header.
8
+ * `plain` is the in-dialog look: the table sits flush in the content it is
9
+ * dropped into.
10
+ */
11
+
5
12
  export const StyledTableHead = styled.thead.withConfig({
6
13
  displayName: "Styles__StyledTableHead",
7
14
  componentId: "sc-e16t6w-0"
@@ -47,12 +54,13 @@ StyledTableBody.displayName = "StyledTableBody";
47
54
  export const StyledTableWrapper = styled.div.withConfig({
48
55
  displayName: "Styles__StyledTableWrapper",
49
56
  componentId: "sc-e16t6w-2"
50
- })(["", " ", " ", " &:before{", " content:\"\";top:39px;z-index:-1;}"], FontStyle, BoxSizingStyle, {
51
- "marginLeft": "1rem",
52
- "marginRight": "1rem",
53
- "marginTop": "2rem",
57
+ })(["", " ", " ", " ", ""], FontStyle, BoxSizingStyle, {
54
58
  "overflowX": "auto",
55
59
  "overflowY": "hidden"
60
+ }, props => props.$variant === "default" && css(["", " &:before{", " content:\"\";top:39px;z-index:-1;}"], {
61
+ "marginLeft": "1rem",
62
+ "marginRight": "1rem",
63
+ "marginTop": "2rem"
56
64
  }, {
57
65
  "position": "absolute",
58
66
  "bottom": "0px",
@@ -63,20 +71,22 @@ export const StyledTableWrapper = styled.div.withConfig({
63
71
  "--tw-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
64
72
  "--tw-shadow-colored": "0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",
65
73
  "boxShadow": "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
66
- });
74
+ }));
67
75
  StyledTableWrapper.displayName = "StyledTableWrapper";
68
76
  export const StyledTable = styled.table.withConfig({
69
77
  displayName: "Styles__StyledTable",
70
78
  componentId: "sc-e16t6w-3"
71
- })(["", " border-spacing:0;", " tr th,", " tr td{&:last-child{", "}}td{", "}", ""], {
79
+ })(["", " border-spacing:0;", " ", " td{", "}", ""], {
72
80
  "width": "100%",
73
81
  "padding": "0px",
74
82
  "paddingBottom": "1rem",
75
83
  "fontSize": "0.75rem",
76
84
  "lineHeight": "1rem"
77
- }, StyledTableHead, StyledTableBody, {
85
+ }, props => props.$variant === "default" && css(["", " tr th,", " tr td{&:last-child{", "}}"], StyledTableHead, StyledTableBody, {
78
86
  "textAlign": "right"
79
- }, {
87
+ }), props => props.$variant === "plain" && css([".c-table__head{", "}"], {
88
+ "textTransform": "none"
89
+ }), {
80
90
  "paddingLeft": "1rem",
81
91
  "paddingRight": "1rem",
82
92
  "paddingTop": "0.75rem",
@@ -1 +1 @@
1
- {"version":3,"file":"Styles.js","names":["styled","css","DARK_THEME_SELECTOR","BoxSizingStyle","FontStyle","StyledTableHead","thead","withConfig","displayName","componentId","props","$headerVariant","StyledTableBody","tbody","StyledTableWrapper","div","StyledTable","table","$striped","StyledDataTable"],"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,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,SAAS,QAAQ,cAAc;AAExC,OAAO,MAAMC,eAAe,GAAGL,MAAM,CAACM,KAAK,CAAAC,UAAA;EAAAC,WAAA;EA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AiB","ignoreList":[]}
1
+ {"version":3,"file":"Styles.js","names":["styled","css","DARK_THEME_SELECTOR","BoxSizingStyle","FontStyle","StyledTableHead","thead","withConfig","displayName","componentId","props","$headerVariant","StyledTableBody","tbody","StyledTableWrapper","div","$variant","StyledTable","table","$striped","StyledDataTable"],"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,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAG/C,SAASC,mBAAmB,QAAQ,oBAAoB;AACxD,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,SAAS,QAAQ,cAAc;;AAExC;AACA;AACA;AACA;AACA;;AAGA,OAAO,MAAMC,eAAe,GAAGL,MAAM,CAACM,KAAK,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sCAGvCL,SAAS,EACTD,cAAc,EAEZ;EAAA;EAAA;AAA0B,CAAC,EAC3B;EAAA;EAAA;EAAA;AAA+C,CAAC,EAEjDO,KAAK,IACNA,KAAK,CAACC,cAAc,IACpBD,KAAK,CAACC,cAAc,KAAK,SAAS,IAClCV,GAAG,sDAEK;EAAA;EAAA;EAAA;EAAA;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e,CAACZ,WAAW,GAAG,iBAAiB","ignoreList":[]}
@@ -1,4 +1,6 @@
1
1
  import { ReactNode, FC, RefObject } from "react";
2
+ import { TableVariant } from "./Styles";
3
+ export type { TableVariant } from "./Styles";
2
4
  export interface ITableWithChildren {
3
5
  /** Children prop can be ReactNode. */
4
6
  children: ReactNode;
@@ -14,6 +16,12 @@ export interface ITableProps {
14
16
  wrapperClassName?: string;
15
17
  /** Ref object for table. */
16
18
  innerRef?: RefObject<HTMLTableElement>;
19
+ /**
20
+ * `"default"` is the page look. `"plain"` drops the outer margins, the paper
21
+ * shadow and the forced right alignment of the last column, and keeps the
22
+ * header in sentence case. It is the look a table needs inside a dialog.
23
+ */
24
+ variant?: TableVariant;
17
25
  }
18
26
  export declare const Table: FC<ITableProps & ITableWithChildren>;
19
27
  export declare const Thead: FC<ITableWithChildren & {
@@ -1 +1 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Tables/Table.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWxD,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,WAAW,GAAG,kBAAkB,CAoBtD,CAAC;AAIF,eAAO,MAAM,KAAK,EAAE,EAAE,CACpB,kBAAkB,GAAG;IAAE,aAAa,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAAE,CAQjE,CAAC;AAIF,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAIxC,CAAC"}
1
+ {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Tables/Table.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIxD,OAAO,EAKL,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mBAAmB;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACvC;;;;OAIG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,WAAW,GAAG,kBAAkB,CA2BtD,CAAC;AAIF,eAAO,MAAM,KAAK,EAAE,EAAE,CACpB,kBAAkB,GAAG;IAAE,aAAa,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAAE,CAQjE,CAAC;AAIF,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAIxC,CAAC"}
@@ -7,13 +7,21 @@ export const Table = _ref => {
7
7
  wrapperClassName = _ref.wrapperClassName,
8
8
  _ref$striped = _ref.striped,
9
9
  striped = _ref$striped === void 0 ? false : _ref$striped,
10
- innerRef = _ref.innerRef;
10
+ innerRef = _ref.innerRef,
11
+ _ref$variant = _ref.variant,
12
+ variant = _ref$variant === void 0 ? "default" : _ref$variant;
11
13
  return /*#__PURE__*/React.createElement(StyledTableWrapper, {
12
- className: classNames("c-table__wrap", wrapperClassName)
14
+ className: classNames("c-table__wrap", wrapperClassName, {
15
+ "c-table__wrap--plain": variant === "plain"
16
+ }),
17
+ $variant: variant
13
18
  }, /*#__PURE__*/React.createElement(StyledTable, {
14
19
  ref: innerRef,
15
- className: classNames("c-table", className),
16
- $striped: striped
20
+ className: classNames("c-table", className, {
21
+ "c-table--plain": variant === "plain"
22
+ }),
23
+ $striped: striped,
24
+ $variant: variant
17
25
  }, children));
18
26
  };
19
27
  Table.displayName = "Table";
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","names":["React","classNames","StyledTableWrapper","StyledTable","StyledTableBody","StyledTableHead","Table","_ref","children","className","wrapperClassName","_ref$striped","striped","innerRef","createElement","ref","$striped","displayName","Thead","_ref2","_ref2$headerVariant","headerVariant","$headerVariant","Tbody","_ref3"],"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,OAAOA,KAAK,MAAoC,OAAO;AAEvD,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,WAAW,EACXC,eAAe,EACfC,eAAe,QACV,UAAU;AAoBjB,OAAO,MAAMC,KAA2C,GAAGC,IAAA,IAMrD;EAAA,IALJC,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;EAER,oBACEb,KAAA,CAAAc,aAAA,CAACZ,kBAAkB;IACjBO,SAAS,EAAER,UAAU,CAAC,eAAe,EAAES,gBAAgB;EAAE,gBAEzDV,KAAA,CAAAc,aAAA,CAACX,WAAW;IACVY,GAAG,EAAEF,QAAS;IACdJ,SAAS,EAAER,UAAU,CAAC,SAAS,EAAEQ,SAAS,CAAE;IAC5CO,QAAQ,EAAEJ;EAAQ,GAEjBJ,QACU,CACK,CAAC;AAEzB,CAAC;AAEDF,KAAK,CAACW,WAAW,GAAG,OAAO;AAE3B,OAAO,MAAMC,KAEZ,GAAGC,KAAA;EAAA,IAAGX,QAAQ,GAAAW,KAAA,CAARX,QAAQ;IAAEC,SAAS,GAAAU,KAAA,CAATV,SAAS;IAAAW,mBAAA,GAAAD,KAAA,CAAEE,aAAa;IAAbA,aAAa,GAAAD,mBAAA,cAAG,SAAS,GAAAA,mBAAA;EAAA,oBACnDpB,KAAA,CAAAc,aAAA,CAACT,eAAe;IACdiB,cAAc,EAAED,aAAc;IAC9BZ,SAAS,EAAER,UAAU,CAAC,eAAe,EAAEQ,SAAS;EAAE,GAEjDD,QACc,CAAC;AAAA,CACnB;AAEDU,KAAK,CAACD,WAAW,GAAG,OAAO;AAE3B,OAAO,MAAMM,KAA6B,GAAGC,KAAA;EAAA,IAAGhB,QAAQ,GAAAgB,KAAA,CAARhB,QAAQ;IAAEC,SAAS,GAAAe,KAAA,CAATf,SAAS;EAAA,oBACjET,KAAA,CAAAc,aAAA,CAACV,eAAe;IAACK,SAAS,EAAER,UAAU,CAAC,eAAe,EAAEQ,SAAS;EAAE,GAChED,QACc,CAAC;AAAA,CACnB;AAEDe,KAAK,CAACN,WAAW,GAAG,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"Table.js","names":["React","classNames","StyledTableWrapper","StyledTable","StyledTableBody","StyledTableHead","Table","_ref","children","className","wrapperClassName","_ref$striped","striped","innerRef","_ref$variant","variant","createElement","$variant","ref","$striped","displayName","Thead","_ref2","_ref2$headerVariant","headerVariant","$headerVariant","Tbody","_ref3"],"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,OAAOA,KAAK,MAAoC,OAAO;AAEvD,OAAOC,UAAU,MAAM,YAAY;AAEnC,SACEC,kBAAkB,EAClBC,WAAW,EACXC,eAAe,EACfC,eAAe,QAEV,UAAU;AA4BjB,OAAO,MAAMC,KAA2C,GAAGC,IAAA,IAOrD;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,GA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