@zonos/amino 6.0.7 → 6.1.1

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 (43) hide show
  1. package/all.d.ts +1 -0
  2. package/amino.css +0 -2
  3. package/components/button/useRipple.d.ts +1 -1
  4. package/components/data-grid/DataGrid.d.ts +87 -0
  5. package/components/data-grid/DataGrid.js +1 -0
  6. package/components/filter/FilterWrapper.d.ts +1 -1
  7. package/components/input/Input.d.ts +2 -2
  8. package/components/input/input-simple/InputSimple.d.ts +2 -2
  9. package/components/input/input-simple/input-type/_DateInput.d.ts +1 -1
  10. package/components/input/input-simple/input-type/_InputBase.d.ts +1 -1
  11. package/components/input/input-simple/input-type/_NumberInput.d.ts +1 -1
  12. package/components/input/input-simple/input-type/_PasswordInput.d.ts +1 -1
  13. package/components/input/input-simple/input-type/_TimeInput.d.ts +1 -1
  14. package/components/input/input-type/_DateInput.d.ts +1 -1
  15. package/components/input/input-type/_FloatLabelInput.d.ts +1 -1
  16. package/components/input/input-type/_NumberInput.d.ts +1 -1
  17. package/components/input/input-type/_PasswordInput.d.ts +1 -1
  18. package/components/input/input-type/_TimeInput.d.ts +1 -1
  19. package/components/nested-data-table/NestedDataTable.d.ts +1 -1
  20. package/components/nested-data-table/NestedDataTable.js +1 -1
  21. package/components/nested-data-table/NestedDataTableHasura.js +1 -1
  22. package/components/nested-data-table/_Filter.d.ts +1 -1
  23. package/components/nested-data-table/_Filter.js +1 -1
  24. package/components/nested-data-table/_TableData.d.ts +1 -1
  25. package/components/nested-data-table/_TableData.js +1 -1
  26. package/components/pivot-table/PivotTable.d.ts +8 -3
  27. package/components/pivot-table/PivotTable.js +1 -1
  28. package/components/simple-table/SimpleTableRow.js +1 -1
  29. package/components/split-panel/SplitPanel.js +1 -1
  30. package/components/split-panel/_Split.d.ts +46 -0
  31. package/components/split-panel/_Split.js +1 -0
  32. package/components/switch/Switch.d.ts +2 -0
  33. package/components/switch/Switch.js +1 -1
  34. package/components/theme-select/ThemeSelect.js +1 -1
  35. package/components/tooltip/Tooltip.d.ts +1 -1
  36. package/package.json +4 -6
  37. package/table-theme-overrides.css +7 -0
  38. package/utils/hooks/useCountryOptions.d.ts +2 -2
  39. package/utils/hooks/useDropdown.d.ts +1 -1
  40. package/utils/hooks/useHeightAdjustTextarea.d.ts +2 -2
  41. package/utils/hooks/usePrevious.js +1 -1
  42. package/pivot-table.css +0 -483
  43. package/tsconfig.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- "use strict";var e=require("react"),a=require("../text/Text.js"),s=require("../../utils/cn.js"),l=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge");exports.Switch=function(t){var i=t["aria-label"],r=t.checked,n=t.className,c=t.disabled,o=t.label,x=t.labelDescription,p=t.labelIcon,d=t.onChange,u=t.style,h=t.subtitle,b=t.switchIconLeft,g=t.switchIconRight,m=e.useId(),_=Boolean(b||g),y=Boolean(o||p||x||h);return l.jsxs("label",{className:s.cn("flex cursor-pointer flex-row","focus-within:outline-none\n [&:has(input:focus-visible)]:shadow-[var(--amino-glow-blue)]",c&&"cursor-not-allowed",n),htmlFor:m,style:u,children:[l.jsx("input",{"aria-label":!y&&i?i:void 0,checked:r,id:m,onChange:function(){return!c&&d(!r)},onKeyDown:function(e){return"Enter"===e.key&&!c&&d(!r)},style:{width:"0px"},tabIndex:0,type:"checkbox"}),_?l.jsxs("div",{className:s.cn("relative block h-8 w-[62px] min-w-6 rounded-[20px] leading-4\n select-none","bg-gray-50",r&&"bg-primary",c&&"opacity-40"),children:[l.jsx("div",{className:s.cn("bg-gray-200 dark:bg-gray-200","shadow-[0px_-1px_1px_0px_rgba(0,0,0,0.2)_inset,0px_1px_3px_0px_rgba(0,0,0,0.4)]","absolute top-[2px] left-[2px] h-7 w-7 rounded-full\n transition-all",r&&"left-[calc(100%-30px)]",c&&"opacity-95"),id:m}),l.jsx("div",{className:"absolute top-1 right-1 left-auto",children:b}),l.jsx("div",{className:"absolute top-1 right-auto left-1",children:g})]}):l.jsx("div",{className:s.cn("relative block h-4 min-h-4 w-8 min-w-8 rounded-[20px] leading-4\n select-none","bg-gray-100 shadow-[var(--amino-v3-shadow-inset)]",r&&"bg-primary",c&&"opacity-40"),children:l.jsx("div",{className:s.cn("bg-gray-0 dark:bg-gray-1000","shadow-[0px_-1px_1px_0px_rgba(0,0,0,0.08)_inset,0px_1px_3px_0px_rgba(0,0,0,0.2)]","absolute top-[1px] left-[1px] h-[14px] w-[14px] rounded-full\n transition-all",r&&["left-[calc(100%-15px)]","shadow-[0px_-1px_1px_0px_rgba(68,94,238,0.08)_inset,0px_1px_3px_0px_rgba(0,0,0,0.2)]"],c&&"opacity-95"),id:m})}),y&&l.jsxs("div",{className:"ml-4",children:[l.jsxs("div",{className:"flex items-center leading-4",children:[p&&l.jsx("div",{className:s.cn("mr-1",c&&"opacity-40"),children:p}),l.jsxs(a.Text,{className:s.cn("mb-0",c&&"text-gray-600"),type:"input-label",children:[o,x&&l.jsx("span",{className:"ml-1 text-gray-600",children:x})]})]}),h&&l.jsx(a.Text,{className:s.cn(c&&"text-gray-400"),type:"subtitle",children:h})]})]})};
1
+ "use strict";var e=require("react"),a=require("../text/Text.js"),s=require("../../utils/cn.js"),l=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../../tslib.es6-cdc5f922.js"),require("../../styles/constants/theme.js"),require("clsx"),require("tailwind-merge");exports.Switch=function(t){var r=t["aria-label"],i=t.checked,n=t.className,c=t.disabled,o=t.label,x=t.labelDescription,p=t.labelIcon,d=t.onChange,u=t.style,h=t.subtitle,b=t.switchIconLeft,g=t.switchIconRight,m=e.useId(),_=Boolean(b||g),y=Boolean(o||p||x||h);return l.jsxs("label",{className:s.cn("flex cursor-pointer flex-row","focus-within:outline-none\n [&:has(input:focus-visible)]:shadow-[var(--amino-glow-blue)]",c&&"cursor-not-allowed",n),htmlFor:m,style:u,children:[l.jsx("input",{"aria-label":!y&&r?r:void 0,checked:i,id:m,onChange:function(){return!c&&d(!i)},onKeyDown:function(e){return"Enter"===e.key&&!c&&d(!i)},style:{width:"0px"},tabIndex:0,type:"checkbox"}),_?l.jsxs("div",{className:s.cn("relative block h-8 w-[62px] min-w-6 rounded-[20px] leading-4\n select-none","bg-gray-50",i&&"bg-primary",c&&"opacity-40"),children:[l.jsx("div",{className:s.cn("bg-gray-200 dark:bg-gray-200","shadow-[0px_-1px_1px_0px_rgba(0,0,0,0.2)_inset,0px_1px_3px_0px_rgba(0,0,0,0.4)]","absolute top-[2px] left-[2px] h-7 w-7 rounded-full\n transition-all",i&&"left-[calc(100%-30px)]",c&&"opacity-95")}),l.jsx("div",{className:"absolute top-1 right-auto left-1",children:b}),l.jsx("div",{className:"absolute top-1 right-1 left-auto",children:g})]}):l.jsx("div",{className:s.cn("relative block h-4 min-h-4 w-8 min-w-8 rounded-[20px] leading-4\n select-none","bg-gray-100 shadow-[var(--amino-v3-shadow-inset)]",i&&"bg-primary",c&&"opacity-40"),children:l.jsx("div",{className:s.cn("bg-gray-0 dark:bg-gray-1000","shadow-[0px_-1px_1px_0px_rgba(0,0,0,0.08)_inset,0px_1px_3px_0px_rgba(0,0,0,0.2)]","absolute top-[1px] left-[1px] h-[14px] w-[14px] rounded-full\n transition-all",i&&["left-[calc(100%-15px)]","shadow-[0px_-1px_1px_0px_rgba(68,94,238,0.08)_inset,0px_1px_3px_0px_rgba(0,0,0,0.2)]"],c&&"opacity-95")})}),y&&l.jsxs("div",{className:"ml-4",children:[l.jsxs("div",{className:"flex items-center leading-4",children:[p&&l.jsx("div",{className:s.cn("mr-1",c&&"opacity-40"),children:p}),l.jsxs(a.Text,{className:s.cn("mb-0",c&&"text-gray-600"),type:"input-label",children:[o,x&&l.jsx("span",{className:"ml-1 text-gray-600",children:x})]})]}),h&&l.jsx(a.Text,{className:s.cn(c&&"text-gray-400"),type:"subtitle",children:h})]})]})};
@@ -1 +1 @@
1
- "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("react"),s=require("../__amino__/TranslateAminoText.js"),t=require("../card/Card.js"),i=require("../select/Select.js"),n=require("../stack/HStack.js"),a=require("../switch/Switch.js"),o=require("../text/Text.js"),c=require("../../icons/custom/theme/ThemeDarkIcon.js"),u=require("../../icons/custom/theme/ThemeLightIcon.js"),l=require("../../icons/NightIcon.js"),d=require("../../icons/SunnyIcon.js"),h=require("../../styles/constants/theme.js"),m=require("../../utils/cn.js"),j=require("../../utils/hooks/useAminoTheme.js"),x=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../translations/Translate.js"),require("../../utils/translations/_handleTranslateComponentText.js"),require("../../utils/translations/AminoTranslationStore.js"),require("zod"),require("zustand"),require("../../utils/storage.js"),require("dayjs"),require("../../utils/translations/supportedLanguages.js"),require("../select/_StyledReactSelect.js"),require("react-intersection-observer"),require("react-select"),require("../checkbox/Checkbox.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getNodeText.js"),require("../../utils/getTestId.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../stack/Stack.js"),require("clsx"),require("tailwind-merge"),require("../../icons/icon-base/_ThemeIconBase.js"),require("../../utils/hooks/useStorage.js");var g=[{label:"Light",value:"day"},{label:"Dark",value:"night"}];exports.ThemeSelect=function(q){var b=q.className,v=q.disabled,T=void 0!==v&&v,p=q.type,y=void 0===p?"select":p,f=j.useAminoTheme(),k=f.aminoTheme,I=f.setAminoTheme,_=e.__read(r.useState(!1),2),S=_[0],C=_[1];return r.useEffect(function(){C("day"===k)},[k]),x.jsxs(x.Fragment,{children:["cards"===y&&x.jsxs(n.HStack,{className:b,children:[x.jsx("button",{className:m.cn("rounded-amino-8 text-text-color border-2 border-solid\n border-transparent focus:outline-none active:outline-none","day"===k&&"text-primary border-blue-400"),"data-theme":"day",onClick:function(){return I("day")},type:"button",children:x.jsxs(t.Card,{className:"bg-gray-0 [&_svg]:mb-amino-16 [&_svg]:shadow-v3-large flex flex-col items-center [&_svg]:h-16 [&_svg]:w-[110px]",spacing:h.theme.space16,children:[x.jsx(u.ThemeLightIcon,{}),x.jsx(o.Text,{type:"bold-label",children:x.jsx(s.TranslateAminoText,{text:"Light"})})]})}),x.jsx("button",{className:m.cn("rounded-amino-8 text-text-color border-2 border-solid\n border-transparent focus:outline-none active:outline-none","night"===k&&"text-primary border-blue-400"),"data-theme":"night",onClick:function(){return I("night")},type:"button",children:x.jsxs(t.Card,{className:"bg-gray-0 [&_svg]:mb-amino-16 [&_svg]:shadow-v3-large flex flex-col items-center [&_svg]:h-16 [&_svg]:w-[110px]",spacing:h.theme.space16,children:[x.jsx(c.ThemeDarkIcon,{}),x.jsx(o.Text,{type:"bold-label",children:x.jsx(s.TranslateAminoText,{text:"Dark"})})]})})]}),"select"===y&&x.jsx(i.Select,{className:b,icon:function(){switch(k){case"day":default:return x.jsx(d.SunnyIcon,{});case"night":return x.jsx(l.NightIcon,{})}}(),isClearable:!1,isDisabled:T,onChange:function(e){return I((null==e?void 0:e.value)||"day")},options:g,value:g.filter(function(e){return e.value===k})}),"toggle"===y&&x.jsx(a.Switch,{"aria-label":"Light mode",checked:S,className:b,disabled:T,onChange:function(){return!T&&I("day"===k?"night":"day")},switchIconLeft:x.jsx(l.NightIcon,{}),switchIconRight:x.jsx(d.SunnyIcon,{})})]})};
1
+ "use strict";var e=require("../../tslib.es6-cdc5f922.js"),r=require("react"),s=require("../__amino__/TranslateAminoText.js"),t=require("../card/Card.js"),n=require("../select/Select.js"),i=require("../stack/HStack.js"),a=require("../switch/Switch.js"),o=require("../text/Text.js"),c=require("../../icons/custom/theme/ThemeDarkIcon.js"),u=require("../../icons/custom/theme/ThemeLightIcon.js"),l=require("../../icons/NightIcon.js"),h=require("../../icons/SunnyIcon.js"),d=require("../../styles/constants/theme.js"),m=require("../../utils/cn.js"),j=require("../../utils/hooks/useAminoTheme.js"),x=require("react/jsx-runtime");require("../../_rollupPluginBabelHelpers-4522587c.js"),require("../translations/Translate.js"),require("../../utils/translations/_handleTranslateComponentText.js"),require("../../utils/translations/AminoTranslationStore.js"),require("zod"),require("zustand"),require("../../utils/storage.js"),require("dayjs"),require("../../utils/translations/supportedLanguages.js"),require("../select/_StyledReactSelect.js"),require("react-intersection-observer"),require("react-select"),require("../checkbox/Checkbox.js"),require("framer-motion"),require("../help-text/HelpText.js"),require("../../icons/CheckmarkIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../utils/getNodeText.js"),require("../../utils/getTestId.js"),require("../../icons/DoubleChevronIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../stack/Stack.js"),require("clsx"),require("tailwind-merge"),require("../../icons/icon-base/_ThemeIconBase.js"),require("../../utils/hooks/useStorage.js");var g=[{label:"Light",value:"day"},{label:"Dark",value:"night"}];exports.ThemeSelect=function(q){var b=q.className,v=q.disabled,T=void 0!==v&&v,p=q.type,y=void 0===p?"select":p,f=j.useAminoTheme(),k=f.aminoTheme,I=f.setAminoTheme,_=e.__read(r.useState(!1),2),S=_[0],C=_[1];return r.useEffect(function(){C("night"===k)},[k]),x.jsxs(x.Fragment,{children:["cards"===y&&x.jsxs(i.HStack,{className:b,children:[x.jsx("button",{className:m.cn("rounded-amino-8 text-text-color border-2 border-solid\n border-transparent focus:outline-none active:outline-none","day"===k&&"text-primary border-blue-400"),"data-theme":"day",onClick:function(){return I("day")},type:"button",children:x.jsxs(t.Card,{className:"bg-gray-0 [&_svg]:mb-amino-16 [&_svg]:shadow-v3-large flex flex-col items-center [&_svg]:h-16 [&_svg]:w-[110px]",spacing:d.theme.space16,children:[x.jsx(u.ThemeLightIcon,{}),x.jsx(o.Text,{type:"bold-label",children:x.jsx(s.TranslateAminoText,{text:"Light"})})]})}),x.jsx("button",{className:m.cn("rounded-amino-8 text-text-color border-2 border-solid\n border-transparent focus:outline-none active:outline-none","night"===k&&"text-primary border-blue-400"),"data-theme":"night",onClick:function(){return I("night")},type:"button",children:x.jsxs(t.Card,{className:"bg-gray-0 [&_svg]:mb-amino-16 [&_svg]:shadow-v3-large flex flex-col items-center [&_svg]:h-16 [&_svg]:w-[110px]",spacing:d.theme.space16,children:[x.jsx(c.ThemeDarkIcon,{}),x.jsx(o.Text,{type:"bold-label",children:x.jsx(s.TranslateAminoText,{text:"Dark"})})]})})]}),"select"===y&&x.jsx(n.Select,{className:b,icon:function(){switch(k){case"day":default:return x.jsx(h.SunnyIcon,{});case"night":return x.jsx(l.NightIcon,{})}}(),isClearable:!1,isDisabled:T,onChange:function(e){return I((null==e?void 0:e.value)||"day")},options:g,value:g.filter(function(e){return e.value===k})}),"toggle"===y&&x.jsx(a.Switch,{"aria-label":"Dark mode",checked:S,className:b,disabled:T,onChange:function(){return!T&&I("night"===k?"day":"night")},switchIconLeft:x.jsx(h.SunnyIcon,{}),switchIconRight:x.jsx(l.NightIcon,{})})]})};
@@ -93,5 +93,5 @@ export type TooltipProps = BaseProps & {
93
93
  * <Button>Hover me (no tooltip)</Button>
94
94
  * </Tooltip>
95
95
  */
96
- export declare const Tooltip: ({ children, className, disabled, enterDelay, enterNextDelay, maxWidth, open, placement, subtitle, themeOverride, title, }: TooltipProps) => string | number | boolean | Iterable<ReactNode> | import("react").JSX.Element | null | undefined;
96
+ export declare const Tooltip: ({ children, className, disabled, enterDelay, enterNextDelay, maxWidth, open, placement, subtitle, themeOverride, title, }: TooltipProps) => string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
97
97
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "6.0.7",
3
+ "version": "6.1.1",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
@@ -41,11 +41,9 @@
41
41
  "class-variance-authority": "^0.7.1",
42
42
  "clsx": "^2.1.1",
43
43
  "fuse.js": "^6.6.2",
44
- "react-data-grid": "7.0.0-beta.34",
45
44
  "react-dropzone": "^12.1.0",
46
45
  "react-intersection-observer": "^9.16.0",
47
46
  "react-select": "^5.10.2",
48
- "react-split-it": "^2.0.0",
49
47
  "sonner": "^2.0.7",
50
48
  "tailwind-merge": "^3.4.0",
51
49
  "uuid": "^11.0.0",
@@ -65,10 +63,10 @@
65
63
  },
66
64
  "peerDependencies": {
67
65
  "dayjs": "*",
68
- "framer-motion": "^10.x",
66
+ "framer-motion": "^12.x || ^13.x",
69
67
  "lodash": "^4.17.23",
70
- "react": "^18.x || ^19.x",
71
- "react-dom": "^18.x || ^19.x",
68
+ "react": "^19.x",
69
+ "react-dom": "^19.x",
72
70
  "swr": "2.x",
73
71
  "zustand": "^5.0.0"
74
72
  },
@@ -1,3 +1,10 @@
1
+ /*
2
+ Night-theme table overrides.
3
+
4
+ These live in plain CSS rather than Tailwind arbitrary variants, which
5
+ generate `:is()` selectors that fight the `dark:` variant.
6
+ */
7
+
1
8
  [data-theme='night'] tbody tr.amino-table-row-active {
2
9
  background-color: var(--amino-gray-100);
3
10
  }
@@ -22,8 +22,8 @@ declare const schemaCountry: z.ZodObject<{
22
22
  active: boolean;
23
23
  code: string;
24
24
  label: string;
25
- displayName: string;
26
25
  value: string;
26
+ displayName: string;
27
27
  languageCode: string | null;
28
28
  code3: string | null;
29
29
  currencyCode: string;
@@ -37,8 +37,8 @@ declare const schemaCountry: z.ZodObject<{
37
37
  active: boolean;
38
38
  code: string;
39
39
  label: string;
40
- displayName: string;
41
40
  value: string;
41
+ displayName: string;
42
42
  languageCode: string | null;
43
43
  code3: string | null;
44
44
  currencyCode: string;
@@ -25,7 +25,7 @@ type Return<WrapperRef extends HTMLElement = HTMLDivElement, TriggerRef extends
25
25
  setVisible: React.Dispatch<React.SetStateAction<boolean>>;
26
26
  visibility: 'visible' | 'hidden';
27
27
  visible: boolean;
28
- wrapperRef: React.RefObject<WrapperRef>;
28
+ wrapperRef: React.RefObject<WrapperRef | null>;
29
29
  };
30
30
  export declare const useDropdown: <WrapperRef extends HTMLElement = HTMLDivElement, TriggerRef extends HTMLElement = HTMLButtonElement>(params?: UseDropdownParams) => Return<WrapperRef, TriggerRef>;
31
31
  export {};
@@ -1,9 +1,9 @@
1
- import { type MutableRefObject } from 'react';
1
+ import { type RefObject } from 'react';
2
2
  type TextareaParams = {
3
3
  additionalHeight?: number;
4
4
  initialRows?: number;
5
5
  maxRows?: number;
6
- ref: MutableRefObject<HTMLTextAreaElement | null>;
6
+ ref: RefObject<HTMLTextAreaElement | null>;
7
7
  shouldExpand: boolean;
8
8
  textareaValue: string;
9
9
  };
@@ -1 +1 @@
1
- "use strict";var e=require("react");exports.usePrevious=function(r){var u=e.useRef();return e.useEffect(function(){u.current=r},[r]),u.current};
1
+ "use strict";var e=require("react");exports.usePrevious=function(r){var u=e.useRef(void 0);return e.useEffect(function(){u.current=r},[r]),u.current};
package/pivot-table.css DELETED
@@ -1,483 +0,0 @@
1
- /*
2
- @source: "node_modules/react-data-grid/lib/styles"
3
- */
4
-
5
- @layer rdg.Cell {
6
- .c1wupbe7-0-0-beta-28 {
7
- /* max-content does not work with size containment
8
- * dynamically switching between different containment styles incurs a heavy relayout penalty
9
- * Chromium bug: at odd zoom levels or subpixel positioning, layout/paint containment can make cell borders disappear
10
- * https://bugs.chromium.org/p/chromium/issues/detail?id=1326946
11
- */
12
- contain: style;
13
- position: relative; /* needed for absolute positioning to work */
14
- padding-block: 0;
15
- padding-inline: 8px;
16
- border-inline-end: 1px solid var(--rdg-border-color);
17
- border-block-end: 1px solid var(--rdg-border-color);
18
- grid-row-start: var(--rdg-grid-row-start);
19
- background-color: inherit;
20
-
21
- white-space: nowrap;
22
- overflow: hidden;
23
- overflow: clip;
24
- text-overflow: ellipsis;
25
- outline: none;
26
- }
27
-
28
- .c1wupbe7-0-0-beta-28[aria-selected='true'] {
29
- outline: 2px solid var(--rdg-selection-color);
30
- outline-offset: -2px;
31
- }
32
- }
33
-
34
- @layer rdg.Cell {
35
- .cd0kgiy7-0-0-beta-28 {
36
- position: sticky;
37
- /* Should have a higher value than 0 to show up above unfrozen cells */
38
- z-index: 1;
39
- }
40
- }
41
-
42
- @layer rdg.Cell {
43
- .c1730fa47-0-0-beta-28 {
44
- box-shadow: calc(2px * var(--rdg-sign)) 0 5px -2px rgba(136, 136, 136, 0.3);
45
- }
46
- }
47
-
48
- @layer rdg {
49
- @layer Defaults,
50
- FocusSink,
51
- CheckboxInput,
52
- CheckboxIcon,
53
- CheckboxLabel,
54
- Cell,
55
- HeaderCell,
56
- SummaryCell,
57
- EditCell,
58
- Row,
59
- HeaderRow,
60
- SummaryRow,
61
- GroupedRow,
62
- Root;
63
-
64
- @layer Defaults {
65
- .r104f42s7-0-0-beta-28 *,
66
- .r104f42s7-0-0-beta-28 *::before,
67
- .r104f42s7-0-0-beta-28 *::after {
68
- box-sizing: inherit;
69
- }
70
- }
71
-
72
- @layer Root {
73
- .r104f42s7-0-0-beta-28 {
74
- --rdg-color: #000;
75
- --rdg-border-color: #ddd;
76
- --rdg-summary-border-color: #aaa;
77
- --rdg-background-color: hsl(0deg 0% 100%);
78
- --rdg-header-background-color: hsl(0deg 0% 97.5%);
79
- --rdg-row-hover-background-color: hsl(0deg 0% 96%);
80
- --rdg-row-selected-background-color: hsl(207deg 76% 92%);
81
- --rdg-row-selected-hover-background-color: hsl(207deg 76% 88%);
82
- --rdg-checkbox-color: hsl(207deg 100% 29%);
83
- --rdg-checkbox-focus-color: hsl(207deg 100% 69%);
84
- --rdg-checkbox-disabled-border-color: #ccc;
85
- --rdg-checkbox-disabled-background-color: #ddd;
86
- --rdg-selection-color: #66afe9;
87
- --rdg-font-size: 14px;
88
-
89
- display: grid;
90
-
91
- color-scheme: var(--rdg-color-scheme, light dark);
92
-
93
- /* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context */
94
- /* We set a stacking context so internal elements don't render on top of external elements. */
95
- contain: strict;
96
- content-visibility: auto;
97
- block-size: 350px;
98
- border: 1px solid var(--rdg-border-color);
99
- box-sizing: border-box;
100
- overflow: auto;
101
- background-color: var(--rdg-background-color);
102
- color: var(--rdg-color);
103
- font-size: var(--rdg-font-size);
104
-
105
- /* needed on Firefox */
106
- }
107
- .r104f42s7-0-0-beta-28::before {
108
- content: '';
109
- grid-column: 1/-1;
110
- grid-row: 1/-1;
111
- }
112
-
113
- .r104f42s7-0-0-beta-28.rdg-dark {
114
- --rdg-color-scheme: dark;
115
- --rdg-color: #ddd;
116
- --rdg-border-color: #444;
117
- --rdg-summary-border-color: #555;
118
- --rdg-background-color: hsl(0deg 0% 13%);
119
- --rdg-header-background-color: hsl(0deg 0% 10.5%);
120
- --rdg-row-hover-background-color: hsl(0deg 0% 9%);
121
- --rdg-row-selected-background-color: hsl(207deg 76% 42%);
122
- --rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);
123
- --rdg-checkbox-color: hsl(207deg 100% 79%);
124
- --rdg-checkbox-focus-color: hsl(207deg 100% 89%);
125
- --rdg-checkbox-disabled-border-color: #000;
126
- --rdg-checkbox-disabled-background-color: #333;
127
- }
128
-
129
- .r104f42s7-0-0-beta-28.rdg-light {
130
- --rdg-color-scheme: light;
131
- }
132
-
133
- @media (prefers-color-scheme: dark) {
134
- .r104f42s7-0-0-beta-28:not(.rdg-light) {
135
- --rdg-color: #ddd;
136
- --rdg-border-color: #444;
137
- --rdg-summary-border-color: #555;
138
- --rdg-background-color: hsl(0deg 0% 13%);
139
- --rdg-header-background-color: hsl(0deg 0% 10.5%);
140
- --rdg-row-hover-background-color: hsl(0deg 0% 9%);
141
- --rdg-row-selected-background-color: hsl(207deg 76% 42%);
142
- --rdg-row-selected-hover-background-color: hsl(207deg 76% 38%);
143
- --rdg-checkbox-color: hsl(207deg 100% 79%);
144
- --rdg-checkbox-focus-color: hsl(207deg 100% 89%);
145
- --rdg-checkbox-disabled-border-color: #000;
146
- --rdg-checkbox-disabled-background-color: #333;
147
- }
148
- }
149
- }
150
- }
151
-
152
- @layer rdg.Root {
153
- .v7ly7s7-0-0-beta-28 {
154
- user-select: none;
155
- }
156
-
157
- .v7ly7s7-0-0-beta-28 .r1otpg647-0-0-beta-28 {
158
- cursor: move;
159
- }
160
- }
161
-
162
- @layer rdg.FocusSink {
163
- .fc4f4zb7-0-0-beta-28 {
164
- grid-column: 1/-1;
165
- pointer-events: none;
166
- /* Should have a higher value than 2 to show up above header row */
167
- z-index: 3;
168
- }
169
- }
170
-
171
- @layer rdg.Row {
172
- .r1otpg647-0-0-beta-28 {
173
- display: contents;
174
- line-height: var(--rdg-row-height);
175
- background-color: var(--rdg-background-color);
176
- }
177
-
178
- .r1otpg647-0-0-beta-28:hover {
179
- background-color: var(--rdg-row-hover-background-color);
180
- }
181
-
182
- .r1otpg647-0-0-beta-28[aria-selected='true'] {
183
- background-color: var(--rdg-row-selected-background-color);
184
- }
185
-
186
- .r1otpg647-0-0-beta-28[aria-selected='true']:hover {
187
- background-color: var(--rdg-row-selected-hover-background-color);
188
- }
189
- }
190
-
191
- @layer rdg.FocusSink {
192
- .rel5gk27-0-0-beta-28 {
193
- outline: 2px solid var(--rdg-selection-color);
194
- outline-offset: -2px;
195
- }
196
- }
197
-
198
- @layer rdg.FocusSink {
199
- .r1qymf1z7-0-0-beta-28::before {
200
- content: '';
201
- display: inline-block;
202
- height: 100%;
203
- position: sticky;
204
- inset-inline-start: 0;
205
- border-inline-start: 2px solid var(--rdg-selection-color);
206
- }
207
- }
208
-
209
- @layer rdg.CheckboxLabel {
210
- .c8rwwhf7-0-0-beta-28 {
211
- cursor: pointer;
212
- display: flex;
213
- align-items: center;
214
- justify-content: center;
215
- position: absolute;
216
- inset: 0;
217
- margin-inline-end: 1px; /* align checkbox in row group cell */
218
- }
219
- }
220
-
221
- @layer rdg.CheckboxInput {
222
- .c1rb4brs7-0-0-beta-28 {
223
- all: unset;
224
- }
225
- }
226
-
227
- @layer rdg.CheckboxIcon {
228
- .c1bvvwcc7-0-0-beta-28 {
229
- content: '';
230
- inline-size: 20px;
231
- block-size: 20px;
232
- border: 2px solid var(--rdg-border-color);
233
- background-color: var(--rdg-background-color);
234
- }
235
-
236
- .c1rb4brs7-0-0-beta-28:checked + .c1bvvwcc7-0-0-beta-28 {
237
- background-color: var(--rdg-checkbox-color);
238
- outline: 4px solid var(--rdg-background-color);
239
- outline-offset: -6px;
240
- }
241
-
242
- .c1rb4brs7-0-0-beta-28:focus + .c1bvvwcc7-0-0-beta-28 {
243
- border-color: var(--rdg-checkbox-focus-color);
244
- }
245
- }
246
-
247
- @layer rdg.CheckboxLabel {
248
- .c1yg790j7-0-0-beta-28 {
249
- cursor: default;
250
- }
251
-
252
- .c1yg790j7-0-0-beta-28 .c1bvvwcc7-0-0-beta-28 {
253
- border-color: var(--rdg-checkbox-disabled-border-color);
254
- background-color: var(--rdg-checkbox-disabled-background-color);
255
- }
256
- }
257
-
258
- @layer rdg.GroupCellContent {
259
- .gb8l2vs7-0-0-beta-28 {
260
- outline: none;
261
- }
262
- }
263
-
264
- @layer rdg.GroupCellCaret {
265
- .c1ggynjl7-0-0-beta-28 {
266
- margin-inline-start: 4px;
267
- stroke: currentColor;
268
- stroke-width: 1.5px;
269
- fill: transparent;
270
- vertical-align: middle;
271
- }
272
-
273
- .c1ggynjl7-0-0-beta-28 > path {
274
- transition: d 0.1s;
275
- }
276
- }
277
-
278
- @layer rdg.MeasuringCell {
279
- .m1l09lto7-0-0-beta-28 {
280
- contain: strict;
281
- grid-row: 1;
282
- visibility: hidden;
283
- }
284
- }
285
-
286
- @layer rdg.SortableHeaderCell {
287
- .h1e8ezgp7-0-0-beta-28 {
288
- cursor: pointer;
289
- display: flex;
290
- }
291
-
292
- .h1e8ezgp7-0-0-beta-28:focus {
293
- outline: none;
294
- }
295
- }
296
-
297
- @layer rdg.SortableHeaderCellName {
298
- .h1rrblhe7-0-0-beta-28 {
299
- flex-grow: 1;
300
- overflow: hidden;
301
- overflow: clip;
302
- text-overflow: ellipsis;
303
- }
304
- }
305
-
306
- @layer rdg.HeaderCell {
307
- .celq7o97-0-0-beta-28 {
308
- touch-action: none;
309
- }
310
-
311
- .celq7o97-0-0-beta-28::after {
312
- content: '';
313
- cursor: col-resize;
314
- position: absolute;
315
- inset-block-start: 0;
316
- inset-inline-end: 0;
317
- inset-block-end: 0;
318
- inline-size: 10px;
319
- }
320
- }
321
-
322
- @layer rdg.HeaderRow {
323
- .h197vzie7-0-0-beta-28 {
324
- display: contents;
325
- line-height: var(--rdg-header-row-height);
326
- background-color: var(--rdg-header-background-color);
327
- font-weight: bold;
328
- }
329
-
330
- .h197vzie7-0-0-beta-28 > .c1wupbe7-0-0-beta-28 {
331
- /* Should have a higher value than 0 to show up above regular cells */
332
- z-index: 1;
333
- position: sticky;
334
- inset-block-start: 0;
335
- }
336
-
337
- .h197vzie7-0-0-beta-28 > .cd0kgiy7-0-0-beta-28 {
338
- z-index: 2;
339
- }
340
- }
341
-
342
- @layer rdg.Cell {
343
- .ccpfvsn7-0-0-beta-28 {
344
- background-color: #ccccff;
345
- }
346
- }
347
-
348
- @layer rdg.Cell {
349
- .c1bmg16t7-0-0-beta-28 {
350
- background-color: #ccccff;
351
- }
352
-
353
- .c1bmg16t7-0-0-beta-28.ccpfvsn7-0-0-beta-28 {
354
- background-color: #9999ff;
355
- }
356
- }
357
-
358
- @layer rdg.GroupedRow {
359
- .gyxx7e97-0-0-beta-28:not([aria-selected='true']) {
360
- background-color: var(--rdg-header-background-color);
361
- }
362
-
363
- .gyxx7e97-0-0-beta-28
364
- > .c1wupbe7-0-0-beta-28:not(:last-child):not(.c1730fa47-0-0-beta-28) {
365
- border-inline-end: none;
366
- }
367
- }
368
-
369
- @layer rdg.SummaryCell {
370
- .s1n3hxke7-0-0-beta-28 {
371
- inset-block-start: var(--rdg-summary-row-top);
372
- inset-block-end: var(--rdg-summary-row-bottom);
373
- }
374
- }
375
-
376
- @layer rdg.SummaryRow {
377
- .snfqesz7-0-0-beta-28 {
378
- line-height: var(--rdg-summary-row-height);
379
- }
380
-
381
- .snfqesz7-0-0-beta-28 > .c1wupbe7-0-0-beta-28 {
382
- position: sticky;
383
- }
384
- }
385
-
386
- @layer rdg.SummaryRow {
387
- .t1jijrjz7-0-0-beta-28 > .c1wupbe7-0-0-beta-28 {
388
- z-index: 1;
389
- }
390
-
391
- .t1jijrjz7-0-0-beta-28 > .cd0kgiy7-0-0-beta-28 {
392
- z-index: 2;
393
- }
394
- }
395
-
396
- @layer rdg.SummaryRow {
397
- .t14bmecc7-0-0-beta-28 > .c1wupbe7-0-0-beta-28 {
398
- border-block-end: 2px solid var(--rdg-summary-border-color);
399
- }
400
- }
401
-
402
- @layer rdg.SummaryRow {
403
- .b1odhhml7-0-0-beta-28 > .c1wupbe7-0-0-beta-28 {
404
- border-block-start: 2px solid var(--rdg-summary-border-color);
405
- }
406
- }
407
-
408
- @layer rdg.EditCell {
409
- .c1tngyp17-0-0-beta-28 {
410
- padding: 0;
411
- }
412
- }
413
-
414
- @layer rdg.DragHandle {
415
- .cadd3bp7-0-0-beta-28 {
416
- cursor: move;
417
- position: absolute;
418
- inset-inline-end: 0;
419
- inset-block-end: 0;
420
- inline-size: 8px;
421
- block-size: 8px;
422
- background-color: var(--rdg-selection-color);
423
- }
424
-
425
- .cadd3bp7-0-0-beta-28:hover {
426
- inline-size: 16px;
427
- block-size: 16px;
428
- border: 2px solid var(--rdg-selection-color);
429
- background-color: var(--rdg-background-color);
430
- }
431
- }
432
-
433
- @layer rdg.SortIcon {
434
- .a1mygwml7-0-0-beta-28 {
435
- fill: currentColor;
436
- }
437
-
438
- .a1mygwml7-0-0-beta-28 > path {
439
- transition: d 0.1s;
440
- }
441
- }
442
-
443
- @layer rdg.TextEditor {
444
- .tlmcuo07-0-0-beta-28 {
445
- appearance: none;
446
-
447
- box-sizing: border-box;
448
- inline-size: 100%;
449
- block-size: 100%;
450
- padding-block: 0;
451
- padding-inline: 6px;
452
- border: 2px solid #ccc;
453
- vertical-align: top;
454
- color: var(--rdg-color);
455
- background-color: var(--rdg-background-color);
456
-
457
- font-family: inherit;
458
- font-size: var(--rdg-font-size);
459
- }
460
-
461
- .tlmcuo07-0-0-beta-28:focus {
462
- border-color: var(--rdg-selection-color);
463
- outline: none;
464
- }
465
-
466
- .tlmcuo07-0-0-beta-28::placeholder {
467
- color: #999;
468
- opacity: 1;
469
- }
470
- }
471
-
472
- [data-theme='night'] .amino-pivot-table .rdg-row {
473
- background-color: var(--amino-gray-50);
474
- }
475
- [data-theme='night'] .amino-pivot-table .rdg-header-row {
476
- background-color: var(--amino-gray-100);
477
- }
478
- [data-theme='night'] .amino-pivot-table .rdg-summary-row {
479
- background-color: var(--amino-gray-100);
480
- }
481
- [data-theme='night'] .amino-pivot-table .rdg-cell {
482
- border-color: var(--amino-gray-400);
483
- }