@activecollab/components 2.0.507 → 2.0.509
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Chip/Chip.js +3 -1
- package/dist/cjs/components/Chip/Chip.js.map +1 -1
- package/dist/cjs/components/Chip/Styles.js +16 -3
- package/dist/cjs/components/Chip/Styles.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.js +126 -0
- package/dist/cjs/components/FilterInput/FilterInput.js.map +1 -0
- package/dist/cjs/components/FilterInput/FilterInput.styles.js +22 -0
- package/dist/cjs/components/FilterInput/FilterInput.styles.js.map +1 -0
- package/dist/cjs/components/FilterInput/index.js +17 -0
- package/dist/cjs/components/FilterInput/index.js.map +1 -0
- package/dist/cjs/components/GlobalStyle.js +1 -1
- package/dist/cjs/components/GlobalStyle.js.map +1 -1
- package/dist/cjs/components/NoResultsSlate/NoResultsIllustration.js +120 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsIllustration.js.map +1 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.js +33 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.js.map +1 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.styles.js +31 -0
- package/dist/cjs/components/NoResultsSlate/NoResultsSlate.styles.js.map +1 -0
- package/dist/cjs/components/NoResultsSlate/index.js +17 -0
- package/dist/cjs/components/NoResultsSlate/index.js.map +1 -0
- package/dist/cjs/components/ObjectFormModal/Styles.js +2 -2
- package/dist/cjs/components/ObjectFormModal/Styles.js.map +1 -1
- package/dist/cjs/components/Sort/Sort.js +3 -1
- package/dist/cjs/components/Sort/Sort.js.map +1 -1
- package/dist/cjs/components/ValueButton/ValueButton.js.map +1 -1
- package/dist/cjs/components/index.js +22 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/esm/components/Chip/Chip.d.ts +3 -1
- package/dist/esm/components/Chip/Chip.d.ts.map +1 -1
- package/dist/esm/components/Chip/Chip.js +3 -1
- package/dist/esm/components/Chip/Chip.js.map +1 -1
- package/dist/esm/components/Chip/Styles.d.ts +1 -0
- package/dist/esm/components/Chip/Styles.d.ts.map +1 -1
- package/dist/esm/components/Chip/Styles.js +14 -3
- package/dist/esm/components/Chip/Styles.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.d.ts +17 -0
- package/dist/esm/components/FilterInput/FilterInput.d.ts.map +1 -0
- package/dist/esm/components/FilterInput/FilterInput.js +95 -0
- package/dist/esm/components/FilterInput/FilterInput.js.map +1 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts +7 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts.map +1 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.js +15 -0
- package/dist/esm/components/FilterInput/FilterInput.styles.js.map +1 -0
- package/dist/esm/components/FilterInput/index.d.ts +2 -0
- package/dist/esm/components/FilterInput/index.d.ts.map +1 -0
- package/dist/esm/components/FilterInput/index.js +2 -0
- package/dist/esm/components/FilterInput/index.js.map +1 -0
- package/dist/esm/components/GlobalStyle.d.ts.map +1 -1
- package/dist/esm/components/GlobalStyle.js +1 -1
- package/dist/esm/components/GlobalStyle.js.map +1 -1
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.d.ts +3 -0
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.js +113 -0
- package/dist/esm/components/NoResultsSlate/NoResultsIllustration.js.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.d.ts +13 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.js +25 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.js.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.d.ts +6 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.js +24 -0
- package/dist/esm/components/NoResultsSlate/NoResultsSlate.styles.js.map +1 -0
- package/dist/esm/components/NoResultsSlate/index.d.ts +2 -0
- package/dist/esm/components/NoResultsSlate/index.d.ts.map +1 -0
- package/dist/esm/components/NoResultsSlate/index.js +2 -0
- package/dist/esm/components/NoResultsSlate/index.js.map +1 -0
- package/dist/esm/components/ObjectFormModal/Styles.js +2 -2
- package/dist/esm/components/ObjectFormModal/Styles.js.map +1 -1
- package/dist/esm/components/Sort/Sort.d.ts.map +1 -1
- package/dist/esm/components/Sort/Sort.js +3 -1
- package/dist/esm/components/Sort/Sort.js.map +1 -1
- package/dist/esm/components/ValueButton/ValueButton.d.ts +2 -0
- package/dist/esm/components/ValueButton/ValueButton.d.ts.map +1 -1
- package/dist/esm/components/ValueButton/ValueButton.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/index.js +1110 -823
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalStyle.js","names":["_styledComponents","require","_themes","GlobalStyle","exports","createGlobalStyle","DARK_THEME_MATCH"],"sources":["../../../src/components/GlobalStyle.ts"],"sourcesContent":["import { createGlobalStyle } from \"styled-components\";\n\nimport { DARK_THEME_MATCH } from \"../utils/themes\";\n\nexport const GlobalStyle = createGlobalStyle`\n :root {\n --color-primary: #5d2bff;\n --color-secondary: #5d2bff;\n\n --color-theme-100: #ffffff;\n --color-theme-200: #f6f6f9;\n --color-theme-300: #ebebee;\n --color-theme-400: #d7d7da;\n --color-theme-500: #b9b9bd;\n --color-theme-600: #89898e;\n --color-theme-700: #6d6d73;\n --color-theme-800: #5b5b61;\n --color-theme-900: #303037;\n\n --color-primary-200: rgba(93, 43, 255, 0.05);\n --color-primary-300: rgba(93, 43, 255, 0.1);\n --color-primary-400: rgba(93, 43, 255, 0.25);\n --color-primary-500: rgba(93, 43, 255, 0.5);\n --color-primary-600: rgba(93, 43, 255, 0.75);\n --color-primary-700: #5d2bff;\n --color-primary-800: #4a21cd;\n --color-primary-900: #32178b;\n\n --color-secondary-200: rgba(93, 43, 255, 0.05);\n --color-secondary-300: rgba(93, 43, 255, 0.1);\n --color-secondary-400: rgba(93, 43, 255, 0.25);\n --color-secondary-500: rgba(93, 43, 255, 0.5);\n --color-secondary-600: rgba(93, 43, 255, 0.75);\n --color-secondary-700: #5d2bff;\n --color-secondary-800: #4a21cd;\n --color-secondary-900: #32178b;\n\n --color-theme-transparent-200: rgba(36,36,76,0.04);\n --color-theme-transparent-300: rgba(48,48,55,0.1);\n --color-theme-transparent-400: rgba(48,48,55,0.2);\n --color-theme-transparent-500: rgba(48,48,55,0.34);\n --color-theme-transparent-600: rgba(48,48,55,0.57);\n --color-theme-transparent-700: rgba(48,48,55,0.7);\n --color-theme-transparent-800: rgba(48,48,55,0.8);\n\n --color-primary-opaque-300: #efeaff;\n --color-primary-opaque-400: #d6caff;\n\n --color-secondary-opaque-300: #efeaff;\n --color-secondary-opaque-400: #d6caff;\n\n --color-sucess-green: #64cd93;\n --color-pale-green: #c3e799;\n --color-progress-blue: #4182f2;\n\n --color-yellow: #FDF196;\n --color-yellow-darker: #948D5D;\n --color-yellow-lighter: #EBD429;\n --color-orange: #FBBB75;\n --color-orange-darker: #916C43;\n --color-orange-lighter: #E99841;\n --color-beige: #EAC2AD;\n --color-beige-darker: #877064;\n --color-beige-lighter: #B98A72;\n --color-pink: #FBD6E7;\n --color-pink-darker: #917C86;\n --color-pink-lighter: #E4A1C0;\n --color-coral: #FF9C9C;\n --color-coral-darker: #945A5A;\n --color-coral-lighter: #DB4545;\n --color-purple-dirty: #C49CB6;\n --color-purple-dirty-darker: #715A69;\n --color-purple-dirty-lighter: #B16E9A;\n --color-purple: #BEACF9;\n --color-purple-darker: #6E6390;\n --color-purple-lighter: #9B86DF;\n --color-blue-aqua: #BDF7FD;\n --color-blue-aqua-darker: #6D8F92;\n --color-blue-aqua-lighter: #7BDDE7;\n --color-blue-pale: #BEEAFF;\n --color-blue-pale-darker: #6E8794;\n --color-blue-pale-lighter: #92BFD4;\n --color-blue-sky: #A0CBFD;\n --color-blue-sky-darker: #5C7592;\n --color-blue-sky-lighter: #568CCB;\n --color-turquoise: #B9E4E0;\n --color-turquoise-darker: #6B8482;\n --color-turquoise-lighter: #70BFB8;\n --color-green-pale: #C3E799;\n --color-green-pale-darker: #718658;\n --color-green-pale-lighter: #80C333;\n --color-green-olive-drab: #98B57C;\n --color-green-olive-drab-darker: #647157;\n --color-green-olive-drab-lighter: #819F65;\n --color-gray-silver: #DDDDDD;\n --color-gray-silver-darker: #808080;\n --color-gray-silver-lighter: #ACACAC;\n --color-gray: #CACACA;\n --color-gray-darker: #757575;\n --color-gray-lighter: #7D7D7D;\n\n --body-bg-main: rgb(244, 245, 247);\n --body-bg-main-transparent: rgba(244, 245, 247, 0);\n --page-paper-main: #ffffff;\n --border-primary: #d7d7da;\n --selectable: #d7d7da;\n --selectable-active: #3b82f6;\n\n --note-bg: #fff9f1;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.06), 0 16px 16px 0 rgba(0, 0, 0, 0.04),\n 0 4px 4px 0 rgba(0, 0, 0, 0.04), 0 2px 2px 0 rgba(0, 0, 0, 0.04);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.06),\n 0 32px 32px 0 rgba(0, 0, 0, 0.03), 0 16px 16px 0 rgba(0, 0, 0, 0.02),\n 0 4px 4px 0 rgba(0, 0, 0, 0.02), 0 2px 2px 0 rgba(0, 0, 0, 0.02);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.17);\n\n --shadow-popover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --popover-border: var(--border-primary);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.05),\n 0 10px 15px -3px rgba(0, 0, 0, 0.1);\n --shadow-tertiary-hover: 0 4px 10px -2px rgba(0, 0, 0, 0.1),\n 0 12px 20px -3px rgba(0, 0, 0, 0.2);\n\n --page-paper-main-shadow: rgba(\n 255,\n 255,\n 255,\n 0\n ); /* Shadow list shadow for page paper main */\n\n --modal-background: rgba(244, 245, 247, 0.6);\n\n --highlight-dark: rgba(0, 0, 0, 0.03);\n\n --input-background-color: #ffffff;\n\n /* Consumed by app LESS under the dark-theme selector; every theme must define them so a dark\n theme never inherits another theme's chrome. */\n --color-primary-100: rgba(93, 43, 255, 0.03);\n --color-primary-opaque-200: #f7f4ff;\n --muted-text: #6d6d73;\n --alert-surface: rgba(243, 24, 72, 0.12);\n --muted-surface: #d7d7da;\n --muted-surface-text: #303037;\n --stripe-pattern: #e6e6e9;\n --drop-overlay-bg: rgba(255, 255, 255, 0.93);\n\n --surface-canvas: var(--color-theme-300);\n --surface-sheet: var(--color-theme-200);\n --surface-raised: #ffffff;\n --surface-bubble: #ffffff;\n --border-raised: #f0f0f2;\n --success-surface: #e4f3eb;\n --alert-surface-subtle: #f6e7e7;\n --warning-surface: #f7eadd;\n --warning-text: #916c43;\n --color-primary-opaque-500: #b6a0ff;\n --shadow-float: 0 1px 3px 0 rgba(0, 0, 0, 0.06),\n 0 6px 16px 0 rgba(0, 0, 0, 0.05);\n --shadow-soft: 0 1px 2px 0 rgba(0, 0, 0, 0.04),\n 0 2px 8px 0 rgba(0, 0, 0, 0.04);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n #ffffff,\n rgba(255, 255, 255, 0)\n );\n\n --ai-gradient: linear-gradient(135deg, #4da2ed, #9f69e5, #ec43d8, #f72222);\n \n --ai-gradient-lighter: linear-gradient(\n 135deg,\n rgba(77, 162, 237, 0.1),\n rgba(159, 105, 229, 0.1),\n rgba(236, 67, 216, 0.1),\n rgba(230, 10, 10, 0.1)\n );\n\n --red-alert: rgb(237, 97, 97);\n\n --warning: #ffcc6b;\n\n --only-white: #ffffff;\n\n --only-black: #000000;\n\n --ac-br-4: 4px;\n\n --ac-br-6: 6px;\n\n --ac-br-8: 8px;\n\n --ac-br-rounded: 999px;\n }\n\n .cupcake {\n --color-primary: #29bcdd;\n --color-secondary: #fe6fa7;\n\n --color-primary-200: rgba(41, 188, 221, 0.07);\n --color-primary-300: rgba(41, 188, 221, 0.12);\n --color-primary-400: rgba(41, 188, 221, 0.26);\n --color-primary-500: rgba(41, 188, 221, 0.52);\n --color-primary-600: rgba(41, 188, 221, 0.75);\n --color-primary-700: #29bcdd;\n --color-primary-800: #219fbb;\n --color-primary-900: #1a768b;\n\n --color-secondary-200: rgba(254, 111, 167, 0.07);\n --color-secondary-300: rgba(254, 111, 167, 0.13);\n --color-secondary-400: rgba(254, 111, 167, 0.27);\n --color-secondary-500: rgba(254, 111, 167, 0.52);\n --color-secondary-600: rgba(254, 111, 167, 0.75);\n --color-secondary-700: #fe6fa7;\n --color-secondary-800: #dd6091;\n --color-secondary-900: #ab496f;\n\n --color-primary-opaque-300: #e5f7fb;\n --color-primary-opaque-400: #c8eef6;\n\n --color-secondary-opaque-300: #ffecf4;\n --color-secondary-opaque-400: #ffd8e7;\n\n --color-primary-100: rgba(41, 188, 221, 0.04);\n --color-primary-opaque-200: #f0fafc;\n --color-primary-opaque-500: #9fe1f0;\n }\n\n .classic {\n --color-primary: #4182f2;\n --color-secondary: #4182f2;\n\n --color-primary-200: rgba(65, 130, 242, 0.07);\n --color-primary-300: rgba(65, 130, 242, 0.13);\n --color-primary-400: rgba(65, 130, 242, 0.26);\n --color-primary-500: rgba(65, 130, 242, 0.52);\n --color-primary-600: rgba(65, 130, 242, 0.75);\n --color-primary-700: #4182f2;\n --color-primary-800: #356bc8;\n --color-primary-900: #244a8a;\n\n --color-secondary-200: rgba(65, 130, 242, 0.07);\n --color-secondary-300: rgba(65, 130, 242, 0.13);\n --color-secondary-400: rgba(65, 130, 242, 0.26);\n --color-secondary-500: rgba(65, 130, 242, 0.52);\n --color-secondary-600: rgba(65, 130, 242, 0.75);\n --color-secondary-700: #4182f2;\n --color-secondary-800: #356bc8;\n --color-secondary-900: #244a8a;\n\n --color-primary-opaque-300: #e6effd;\n --color-primary-opaque-400: #cedffc;\n\n --color-secondary-opaque-300: #e6effd;\n --color-secondary-opaque-400: #cedffc;\n\n --color-primary-100: rgba(65, 130, 242, 0.04);\n --color-primary-opaque-200: #f2f6fe;\n --color-primary-opaque-500: #aac7f9;\n }\n\n .neon {\n --color-primary: #67ffc8;\n --color-secondary: #67ffc8;\n\n --color-theme-100: #000000;\n --color-theme-200: #292b34;\n --color-theme-300: #202129;\n --color-theme-400: #17171a;\n --color-theme-500: #6D6D73;\n --color-theme-600: #89898e;\n --color-theme-700: #b0b0b5;\n --color-theme-800: #dfdfe5;\n --color-theme-900: #ffffff;\n\n --color-primary-200: rgba(103, 255, 200, 0.05);\n --color-primary-300: rgba(103, 255, 200, 0.1);\n --color-primary-400: rgba(103, 255, 200, 0.25);\n --color-primary-500: rgba(103, 255, 200, 0.5);\n --color-primary-600: rgba(103, 255, 200, 0.75);\n --color-primary-700: #67ffc8;\n --color-primary-800: #a5ffdf;\n --color-primary-900: #d0fdec;\n\n --color-secondary-200: rgba(103, 255, 200, 0.05);\n --color-secondary-300: rgba(103, 255, 200, 0.1);\n --color-secondary-400: rgba(103, 255, 200, 0.25);\n --color-secondary-500: rgba(103, 255, 200, 0.5);\n --color-secondary-600: rgba(103, 255, 200, 0.75);\n --color-secondary-700: #67ffc8;\n --color-secondary-800: #a5ffdf;\n --color-secondary-900: #d0fdec;\n\n --color-theme-transparent-200: rgba(6,7,8,0.12);\n --color-theme-transparent-300: rgba(6,7,8,0.22);\n --color-theme-transparent-400: rgba(6,7,8,0.5);\n --color-theme-transparent-500: rgba(255,255,255,0.27);\n --color-theme-transparent-600: rgba(255,255,255,0.4);\n --color-theme-transparent-700: rgba(255,255,255,0.6);\n --color-theme-transparent-800: rgba(255,255,255,0.85);\n\n --color-primary-opaque-300: #334447;\n --color-primary-opaque-400: #3c605a;\n\n --color-secondary-opaque-300: #334447;\n --color-secondary-opaque-400: #3c605a;\n\n --body-bg-main: rgb(36, 38, 46);\n --body-bg-main-transparent: rgba(36, 38, 46, 0);\n --page-paper-main: #2f323a;\n --border-primary: #17171a;\n --selectable: #17171a;\n --selectable-active: #3b82f6;\n\n --note-bg: #3d3c3c;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.2), 0 16px 16px 0 rgba(0, 0, 0, 0.2),\n 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.1), 0 16px 16px 0 rgba(0, 0, 0, 0.1),\n 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n\n --shadow-popover: 0 6px 16px 0 rgba(0, 0, 0, 0.35);\n --popover-border: var(--border-raised);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.15);\n --shadow-tertiary-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4),\n 0 10px 30px -3px rgba(0, 0, 0, 0.5);\n\n --page-paper-main-shadow: rgba(\n 47,\n 50,\n 58,\n 0\n ); /* Shadow list shadow for page paper main */\n\n --modal-background: rgba(36, 38, 46, 0.7);\n\n --highlight-dark: rgba(0, 0, 0, 0.06);\n\n --input-background-color: #24262e;\n\n --only-white: #ffffff;\n\n --only-black: #000000;\n\n --color-primary-100: rgba(103, 255, 200, 0.08);\n --color-primary-opaque-200: #31403b;\n --muted-text: #cfcfd0;\n --alert-surface: rgba(243, 24, 72, 0.25);\n --muted-surface: #b4b4b8;\n --muted-surface-text: #4a4a4a;\n --stripe-pattern: #524145;\n --drop-overlay-bg: rgba(47, 50, 58, 0.93);\n\n --surface-canvas: var(--body-bg-main);\n --surface-sheet: var(--page-paper-main);\n --surface-raised: #353840;\n --surface-bubble: #32353d;\n --border-raised: #44474e;\n --success-surface: #3c4d4c;\n --alert-surface-subtle: #463941;\n --warning-surface: #504640;\n --warning-text: #e5c07b;\n --color-primary-opaque-500: #488e7a;\n --shadow-float: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --shadow-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n rgba(255, 255, 255, 0.07),\n rgba(255, 255, 255, 0)\n );\n }\n\n .dracula {\n --color-primary: #bd93f9;\n --color-secondary: #ff79c6;\n\n --color-theme-100: #000000;\n --color-theme-200: #262735;\n --color-theme-300: #1c1e27;\n --color-theme-400: #111217;\n --color-theme-500: #6272a4;\n --color-theme-600: #7d8ab8;\n --color-theme-700: #a4aecd;\n --color-theme-800: #dededa;\n --color-theme-900: #f8f8f2;\n\n --color-primary-200: rgba(189, 147, 249, 0.05);\n --color-primary-300: rgba(189, 147, 249, 0.1);\n --color-primary-400: rgba(189, 147, 249, 0.25);\n --color-primary-500: rgba(189, 147, 249, 0.5);\n --color-primary-600: rgba(189, 147, 249, 0.75);\n --color-primary-700: #bd93f9;\n --color-primary-800: #d2b6fb;\n --color-primary-900: #e4d3fd;\n\n --color-secondary-200: rgba(255, 121, 198, 0.05);\n --color-secondary-300: rgba(255, 121, 198, 0.1);\n --color-secondary-400: rgba(255, 121, 198, 0.25);\n --color-secondary-500: rgba(255, 121, 198, 0.5);\n --color-secondary-600: rgba(255, 121, 198, 0.75);\n --color-secondary-700: #ff79c6;\n --color-secondary-800: #ffa3d7;\n --color-secondary-900: #ffc9e7;\n\n --color-theme-transparent-200: rgba(6, 7, 8, 0.12);\n --color-theme-transparent-300: rgba(6, 7, 8, 0.22);\n --color-theme-transparent-400: rgba(6, 7, 8, 0.5);\n --color-theme-transparent-500: rgba(255, 255, 255, 0.27);\n --color-theme-transparent-600: rgba(255, 255, 255, 0.4);\n --color-theme-transparent-700: rgba(255, 255, 255, 0.6);\n --color-theme-transparent-800: rgba(255, 255, 255, 0.85);\n\n --color-primary-opaque-300: #42385b;\n --color-primary-opaque-400: #534472;\n\n --color-secondary-opaque-300: #543448;\n --color-secondary-opaque-400: #6f435f;\n\n --body-bg-main: rgb(32, 34, 44);\n --body-bg-main-transparent: rgba(32, 34, 44, 0);\n --page-paper-main: #2c2f3c;\n --border-primary: #111217;\n --selectable: #111217;\n --selectable-active: #3b82f6;\n\n --note-bg: #323026;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.2), 0 16px 16px 0 rgba(0, 0, 0, 0.2),\n 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.1), 0 16px 16px 0 rgba(0, 0, 0, 0.1),\n 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n\n --shadow-popover: 0 6px 16px 0 rgba(0, 0, 0, 0.35);\n --popover-border: var(--border-raised);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.15);\n --shadow-tertiary-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4),\n 0 10px 30px -3px rgba(0, 0, 0, 0.5);\n\n --page-paper-main-shadow: rgba(44, 47, 60, 0);\n\n --modal-background: rgba(32, 34, 44, 0.7);\n\n --highlight-dark: rgba(0, 0, 0, 0.06);\n\n --input-background-color: #191a22;\n\n --color-primary-100: rgba(189, 147, 249, 0.08);\n --color-primary-opaque-200: #302c3e;\n --muted-text: #d0d0cb;\n --alert-surface: rgba(255, 85, 85, 0.25);\n --muted-surface: #a9aec4;\n --muted-surface-text: #282a36;\n --stripe-pattern: #503d47;\n --drop-overlay-bg: rgba(44, 47, 60, 0.93);\n\n --surface-canvas: var(--body-bg-main);\n --surface-sheet: var(--page-paper-main);\n --surface-raised: #323541;\n --surface-bubble: #2f323f;\n --border-raised: #40434e;\n --success-surface: #394a4c;\n --alert-surface-subtle: #433741;\n --warning-surface: #4d4441;\n --warning-text: #e5c07b;\n --color-primary-opaque-500: #6d5c91;\n --shadow-float: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --shadow-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n rgba(255, 255, 255, 0.07),\n rgba(255, 255, 255, 0)\n );\n }\n\n .one-dark {\n --color-primary: #61afef;\n --color-secondary: #c678dd;\n\n --color-theme-100: #000000;\n --color-theme-200: #22262e;\n --color-theme-300: #1c1f24;\n --color-theme-400: #191c21;\n --color-theme-500: #5c6370;\n --color-theme-600: #767d8a;\n --color-theme-700: #9aa2b1;\n --color-theme-800: #cdd3de;\n --color-theme-900: #dcdfe4;\n\n --color-primary-200: rgba(97, 175, 239, 0.05);\n --color-primary-300: rgba(97, 175, 239, 0.1);\n --color-primary-400: rgba(97, 175, 239, 0.25);\n --color-primary-500: rgba(97, 175, 239, 0.5);\n --color-primary-600: rgba(97, 175, 239, 0.75);\n --color-primary-700: #61afef;\n --color-primary-800: #8ec6f4;\n --color-primary-900: #bcdcf9;\n\n --color-secondary-200: rgba(198, 120, 221, 0.05);\n --color-secondary-300: rgba(198, 120, 221, 0.1);\n --color-secondary-400: rgba(198, 120, 221, 0.25);\n --color-secondary-500: rgba(198, 120, 221, 0.5);\n --color-secondary-600: rgba(198, 120, 221, 0.75);\n --color-secondary-700: #c678dd;\n --color-secondary-800: #d79ce8;\n --color-secondary-900: #e8c2f2;\n\n --color-theme-transparent-200: rgba(6, 7, 8, 0.12);\n --color-theme-transparent-300: rgba(6, 7, 8, 0.22);\n --color-theme-transparent-400: rgba(6, 7, 8, 0.5);\n --color-theme-transparent-500: rgba(255, 255, 255, 0.27);\n --color-theme-transparent-600: rgba(255, 255, 255, 0.4);\n --color-theme-transparent-700: rgba(255, 255, 255, 0.6);\n --color-theme-transparent-800: rgba(255, 255, 255, 0.85);\n\n --color-primary-opaque-300: #2d3e51;\n --color-primary-opaque-400: #364e65;\n\n --color-secondary-opaque-300: #402e47;\n --color-secondary-opaque-400: #543b5d;\n\n --body-bg-main: rgb(32, 35, 42);\n --body-bg-main-transparent: rgba(32, 35, 42, 0);\n --page-paper-main: #292d35;\n --border-primary: #191c21;\n --selectable: #191c21;\n --selectable-active: #3b82f6;\n\n --note-bg: #302e28;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.2), 0 16px 16px 0 rgba(0, 0, 0, 0.2),\n 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.1), 0 16px 16px 0 rgba(0, 0, 0, 0.1),\n 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n\n --shadow-popover: 0 6px 16px 0 rgba(0, 0, 0, 0.35);\n --popover-border: var(--border-raised);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.15);\n --shadow-tertiary-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4),\n 0 10px 30px -3px rgba(0, 0, 0, 0.5);\n\n --page-paper-main-shadow: rgba(41, 45, 53, 0);\n\n --modal-background: rgba(32, 35, 42, 0.7);\n\n --highlight-dark: rgba(0, 0, 0, 0.06);\n\n --input-background-color: #191c21;\n\n --color-primary-100: rgba(97, 175, 239, 0.08);\n --color-primary-opaque-200: #25313e;\n --muted-text: #c5cbd6;\n --alert-surface: rgba(224, 108, 117, 0.25);\n --muted-surface: #a3aab8;\n --muted-surface-text: #282c34;\n --stripe-pattern: #4b3e41;\n --drop-overlay-bg: rgba(41, 45, 53, 0.93);\n\n --surface-canvas: var(--body-bg-main);\n --surface-sheet: var(--page-paper-main);\n --surface-raised: #2e333c;\n --surface-bubble: #2b2f37;\n --border-raised: #3a3e46;\n --success-surface: #364948;\n --alert-surface-subtle: #3e353d;\n --warning-surface: #4a423d;\n --warning-text: #e5c07b;\n --color-primary-opaque-500: #42688a;\n --shadow-float: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --shadow-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n rgba(255, 255, 255, 0.07),\n rgba(255, 255, 255, 0)\n );\n }\n\n html {\n color-scheme: light;\n --pill-background: rgba(48, 48, 55, 0.06);\n --pill-background-hover: rgba(48, 48, 55, 0.1);\n --pill-background-active: color-mix(in srgb, var(--color-primary) 12%, transparent);\n --pill-border: rgba(48, 48, 55, 0.16);\n\n &${DARK_THEME_MATCH} {\n color-scheme: dark;\n --pill-background: rgba(255, 255, 255, 0.07);\n --pill-background-hover: rgba(255, 255, 255, 0.11);\n --pill-background-active: color-mix(in srgb, var(--color-primary) 20%, transparent);\n --pill-border: rgba(255, 255, 255, 0.16);\n }\n }\n\n .ac-shadow,\n .ac-shadow--raised {\n &--lg {\n box-shadow: var(--shadow-primary);\n }\n &--sm {\n box-shadow: var(--shadow-tertiary);\n }\n }\n\n .ac-shadow--raised {\n &--lg {\n transition: box-shadow 0.3s;\n &:hover {\n box-shadow: var(--shadow-primary-hover);\n }\n }\n &--sm {\n transition: box-shadow 0.3s;\n &:hover {\n box-shadow: var(--shadow-tertiary-hover);\n }\n }\n }\n\n .ac-shadow-optimized--sm {\n position: relative;\n box-shadow: var(--shadow-tertiary);\n\n &::before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: \"\";\n box-shadow: var(--shadow-tertiary);\n opacity: 0;\n border-radius: var(--ac-br-6);\n transition: opacity 0.3s ease;\n z-index: -1;\n }\n\n @media (hover: hover) {\n &:hover::before {\n opacity: 1;\n }\n }\n }\n\n .ac-shadow-optimized--lg {\n position: relative;\n box-shadow: var(--shadow-primary);\n\n &::before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: \"\";\n box-shadow: var(--shadow-primary);\n opacity: 0;\n border-radius: var(--ac-br-8);\n transition: opacity 0.3s ease;\n z-index: -1;\n }\n\n @media (hover: hover) {\n &:hover::before {\n opacity: 1;\n }\n }\n }\n\n .ac-border-radius {\n &-4 {\n border-radius: var(--ac-br-4);\n }\n\n &-6 {\n border-radius: var(--ac-br-6);\n }\n\n &-8 {\n border-radius: var(--ac-br-8);\n }\n\n &-rounded {\n border-radius: var(--ac-br-rounded);\n }\n }\n\n\n // CSS Tooltip ::after content: data-tooltip\n\n .c-cooltip {\n position: relative;\n\n /*\n * Prefer scoped variables in this case.\n * This lines of CSS should be scoped too.\n */\n\n --cooltip-spacing: 0.5rem;\n --cooltip-padding: 0.25rem 0.625rem;\n --cooltip-max-width: 12.5rem;\n\n --cooltip-transition-duration: 0.15s, 0.1s, 0.15s;\n --cooltip-transition-delay: 0.6s;\n --cooltip-timing: ease, ease, cubic-bezier(0.39, 0.575, 0.565, 1);\n }\n\n .c-cooltip::after {\n /*\n * will-change is intended to be used as a last resort,\n * in order to try to deal with existing performance problems.\n * It should not be used to anticipate performance problems.\n * https://developer.mozilla.org/en-US/docs/Web/CSS/will-change\n *\n * will-change: transform, opacity\n */\n pointer-events: none;\n content: attr(data-tooltip);\n position: absolute;\n color: #fff;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0.5rem;\n font-size: 0.75rem;\n font-weight: 500;\n line-height: 1.3;\n max-width: var(--cooltip-max-width);\n padding: var(--cooltip-padding);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n .c-cooltip--top::after {\n bottom: calc(100% + var(--cooltip-spacing));\n left: 50%;\n transform: scale(0.85) translateX(-50%);\n transform-origin: 0;\n }\n\n .c-cooltip--right::after {\n left: calc(100% + var(--cooltip-spacing));\n transform: scale(0.85);\n }\n\n .c-cooltip--bottom::after {\n top: calc(100% + var(--cooltip-spacing));\n left: 50%;\n transform: scale(0.85) translateX(-50%);\n transform-origin: 0;\n }\n\n .c-cooltip--left::after {\n right: calc(100% + var(--cooltip-spacing));\n transform: scale(0.85);\n }\n\n /*\n * Make sure that disabled and aria pressed\n * items do not have tooltips available.\n */\n .c-cooltip:disabled::after,\n [aria-pressed=\"true\"]::after {\n display: none;\n }\n\n /*\n *\n * Only use hover when is available .\n * https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover\n */\n @media (hover: hover) {\n /*\n * Here we maybe have a complex selector but actually it's not.\n * We simply asks here to show tooltip only on hover.\n * Focused elements (in this case, clicked elements) should hide the tooltip.\n */\n .c-cooltip--top:not(:focus):hover::after,\n .c-cooltip--bottom:not(:focus):hover::after {\n transition-property: opacity, transform;\n transition-duration: var(--cooltip-transition-duration);\n transition-delay: var(--cooltip-transition-delay);\n transition-timing-function: var(--cooltip-timing);\n transform: scale(1) translateX(-50%);\n opacity: 1;\n }\n\n /*\n *\n * This is not code duplication!\n * Transform properties are tricky to animate and values\n * are not the same depending on the tooltip position.\n *\n * Animating only one transform, eg. scale(1) will\n * override all previously set transforms, eg. translateY.\n * So we need to always chain them.\n * eg. transform: scale(1) translateY(-50%) etc...\n */\n\n .c-cooltip--right:not(:focus):hover::after,\n .c-cooltip--left:not(:focus):hover::after {\n transition-property: opacity, transform;\n transition-duration: var(--cooltip-transition-duration);\n transition-delay: var(--cooltip-transition-delay);\n transition-timing-function: var(--cooltip-timing);\n transform: scale(1);\n opacity: 1;\n }\n }\n\n .c-date-picker--calendar {\n width: 260px;\n padding: 16px 0px 8px 0px;\n margin: auto;\n background-color: var(--page-paper-main);\n }\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEO,IAAME,WAAW,GAAAC,OAAA,CAAAD,WAAA,OAAGE,mCAAiB,yomBAwlBrCC,wBAAgB,CAwOtB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"GlobalStyle.js","names":["_styledComponents","require","_themes","GlobalStyle","exports","createGlobalStyle","DARK_THEME_MATCH"],"sources":["../../../src/components/GlobalStyle.ts"],"sourcesContent":["import { createGlobalStyle } from \"styled-components\";\n\nimport { DARK_THEME_MATCH } from \"../utils/themes\";\n\nexport const GlobalStyle = createGlobalStyle`\n :root {\n --color-primary: #5d2bff;\n --color-secondary: #5d2bff;\n\n --color-theme-100: #ffffff;\n --color-theme-200: #f6f6f9;\n --color-theme-300: #ebebee;\n --color-theme-400: #d7d7da;\n --color-theme-500: #b9b9bd;\n --color-theme-600: #89898e;\n --color-theme-700: #6d6d73;\n --color-theme-800: #5b5b61;\n --color-theme-900: #303037;\n\n --color-primary-200: rgba(93, 43, 255, 0.05);\n --color-primary-300: rgba(93, 43, 255, 0.1);\n --color-primary-400: rgba(93, 43, 255, 0.25);\n --color-primary-500: rgba(93, 43, 255, 0.5);\n --color-primary-600: rgba(93, 43, 255, 0.75);\n --color-primary-700: #5d2bff;\n --color-primary-800: #4a21cd;\n --color-primary-900: #32178b;\n\n --color-secondary-200: rgba(93, 43, 255, 0.05);\n --color-secondary-300: rgba(93, 43, 255, 0.1);\n --color-secondary-400: rgba(93, 43, 255, 0.25);\n --color-secondary-500: rgba(93, 43, 255, 0.5);\n --color-secondary-600: rgba(93, 43, 255, 0.75);\n --color-secondary-700: #5d2bff;\n --color-secondary-800: #4a21cd;\n --color-secondary-900: #32178b;\n\n --color-theme-transparent-200: rgba(36,36,76,0.04);\n --color-theme-transparent-300: rgba(48,48,55,0.1);\n --color-theme-transparent-400: rgba(48,48,55,0.2);\n --color-theme-transparent-500: rgba(48,48,55,0.34);\n --color-theme-transparent-600: rgba(48,48,55,0.57);\n --color-theme-transparent-700: rgba(48,48,55,0.7);\n --color-theme-transparent-800: rgba(48,48,55,0.8);\n\n --color-primary-opaque-300: #efeaff;\n --color-primary-opaque-400: #d6caff;\n\n --color-secondary-opaque-300: #efeaff;\n --color-secondary-opaque-400: #d6caff;\n\n --color-sucess-green: #64cd93;\n --color-pale-green: #c3e799;\n --color-progress-blue: #4182f2;\n\n --color-yellow: #FDF196;\n --color-yellow-darker: #948D5D;\n --color-yellow-lighter: #EBD429;\n --color-orange: #FBBB75;\n --color-orange-darker: #916C43;\n --color-orange-lighter: #E99841;\n --color-beige: #EAC2AD;\n --color-beige-darker: #877064;\n --color-beige-lighter: #B98A72;\n --color-pink: #FBD6E7;\n --color-pink-darker: #917C86;\n --color-pink-lighter: #E4A1C0;\n --color-coral: #FF9C9C;\n --color-coral-darker: #945A5A;\n --color-coral-lighter: #DB4545;\n --color-purple-dirty: #C49CB6;\n --color-purple-dirty-darker: #715A69;\n --color-purple-dirty-lighter: #B16E9A;\n --color-purple: #BEACF9;\n --color-purple-darker: #6E6390;\n --color-purple-lighter: #9B86DF;\n --color-blue-aqua: #BDF7FD;\n --color-blue-aqua-darker: #6D8F92;\n --color-blue-aqua-lighter: #7BDDE7;\n --color-blue-pale: #BEEAFF;\n --color-blue-pale-darker: #6E8794;\n --color-blue-pale-lighter: #92BFD4;\n --color-blue-sky: #A0CBFD;\n --color-blue-sky-darker: #5C7592;\n --color-blue-sky-lighter: #568CCB;\n --color-turquoise: #B9E4E0;\n --color-turquoise-darker: #6B8482;\n --color-turquoise-lighter: #70BFB8;\n --color-green-pale: #C3E799;\n --color-green-pale-darker: #718658;\n --color-green-pale-lighter: #80C333;\n --color-green-olive-drab: #98B57C;\n --color-green-olive-drab-darker: #647157;\n --color-green-olive-drab-lighter: #819F65;\n --color-gray-silver: #DDDDDD;\n --color-gray-silver-darker: #808080;\n --color-gray-silver-lighter: #ACACAC;\n --color-gray: #CACACA;\n --color-gray-darker: #757575;\n --color-gray-lighter: #7D7D7D;\n\n --body-bg-main: rgb(244, 245, 247);\n --body-bg-main-transparent: rgba(244, 245, 247, 0);\n --page-paper-main: #ffffff;\n --border-primary: #d7d7da;\n --selectable: #d7d7da;\n --selectable-active: #3b82f6;\n\n --note-bg: #fff9f1;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.06), 0 16px 16px 0 rgba(0, 0, 0, 0.04),\n 0 4px 4px 0 rgba(0, 0, 0, 0.04), 0 2px 2px 0 rgba(0, 0, 0, 0.04);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.06),\n 0 32px 32px 0 rgba(0, 0, 0, 0.03), 0 16px 16px 0 rgba(0, 0, 0, 0.02),\n 0 4px 4px 0 rgba(0, 0, 0, 0.02), 0 2px 2px 0 rgba(0, 0, 0, 0.02);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.17);\n\n --shadow-popover: 0 25px 50px -12px rgba(0, 0, 0, 0.25);\n --popover-border: var(--border-primary);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.05),\n 0 10px 15px -3px rgba(0, 0, 0, 0.1);\n --shadow-tertiary-hover: 0 4px 10px -2px rgba(0, 0, 0, 0.1),\n 0 12px 20px -3px rgba(0, 0, 0, 0.2);\n\n --page-paper-main-shadow: rgba(\n 255,\n 255,\n 255,\n 0\n ); /* Shadow list shadow for page paper main */\n\n --modal-background: rgba(244, 245, 247, 0.6);\n\n --highlight-dark: rgba(0, 0, 0, 0.03);\n\n --input-background-color: #ffffff;\n\n /* Consumed by app LESS under the dark-theme selector; every theme must define them so a dark\n theme never inherits another theme's chrome. */\n --color-primary-100: rgba(93, 43, 255, 0.03);\n --color-primary-opaque-200: #f7f4ff;\n --muted-text: #6d6d73;\n --alert-surface: rgba(243, 24, 72, 0.12);\n --muted-surface: #d7d7da;\n --muted-surface-text: #303037;\n --stripe-pattern: #e6e6e9;\n --drop-overlay-bg: rgba(255, 255, 255, 0.93);\n\n --surface-canvas: var(--color-theme-300);\n --surface-sheet: var(--color-theme-200);\n --surface-raised: #ffffff;\n --surface-bubble: #ffffff;\n --border-raised: #f0f0f2;\n --chip-tint-strong: 100%;\n --chip-tint-surface: 22%;\n --chip-tint-text: 48%;\n --form-modal-surface: var(--color-theme-300);\n --form-modal-border: var(--color-theme-400);\n --form-modal-shadow: var(--shadow-popover), var(--shadow-primary);\n --success-surface: #e4f3eb;\n --alert-surface-subtle: #f6e7e7;\n --warning-surface: #f7eadd;\n --warning-text: #916c43;\n --color-primary-opaque-500: #b6a0ff;\n --shadow-float: 0 1px 3px 0 rgba(0, 0, 0, 0.06),\n 0 6px 16px 0 rgba(0, 0, 0, 0.05);\n --shadow-soft: 0 1px 2px 0 rgba(0, 0, 0, 0.04),\n 0 2px 8px 0 rgba(0, 0, 0, 0.04);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n #ffffff,\n rgba(255, 255, 255, 0)\n );\n\n --ai-gradient: linear-gradient(135deg, #4da2ed, #9f69e5, #ec43d8, #f72222);\n \n --ai-gradient-lighter: linear-gradient(\n 135deg,\n rgba(77, 162, 237, 0.1),\n rgba(159, 105, 229, 0.1),\n rgba(236, 67, 216, 0.1),\n rgba(230, 10, 10, 0.1)\n );\n\n --red-alert: rgb(237, 97, 97);\n\n --warning: #ffcc6b;\n\n --only-white: #ffffff;\n\n --only-black: #000000;\n\n --ac-br-4: 4px;\n\n --ac-br-6: 6px;\n\n --ac-br-8: 8px;\n\n --ac-br-rounded: 999px;\n }\n\n .cupcake {\n --color-primary: #29bcdd;\n --color-secondary: #fe6fa7;\n\n --color-primary-200: rgba(41, 188, 221, 0.07);\n --color-primary-300: rgba(41, 188, 221, 0.12);\n --color-primary-400: rgba(41, 188, 221, 0.26);\n --color-primary-500: rgba(41, 188, 221, 0.52);\n --color-primary-600: rgba(41, 188, 221, 0.75);\n --color-primary-700: #29bcdd;\n --color-primary-800: #219fbb;\n --color-primary-900: #1a768b;\n\n --color-secondary-200: rgba(254, 111, 167, 0.07);\n --color-secondary-300: rgba(254, 111, 167, 0.13);\n --color-secondary-400: rgba(254, 111, 167, 0.27);\n --color-secondary-500: rgba(254, 111, 167, 0.52);\n --color-secondary-600: rgba(254, 111, 167, 0.75);\n --color-secondary-700: #fe6fa7;\n --color-secondary-800: #dd6091;\n --color-secondary-900: #ab496f;\n\n --color-primary-opaque-300: #e5f7fb;\n --color-primary-opaque-400: #c8eef6;\n\n --color-secondary-opaque-300: #ffecf4;\n --color-secondary-opaque-400: #ffd8e7;\n\n --color-primary-100: rgba(41, 188, 221, 0.04);\n --color-primary-opaque-200: #f0fafc;\n --color-primary-opaque-500: #9fe1f0;\n }\n\n .classic {\n --color-primary: #4182f2;\n --color-secondary: #4182f2;\n\n --color-primary-200: rgba(65, 130, 242, 0.07);\n --color-primary-300: rgba(65, 130, 242, 0.13);\n --color-primary-400: rgba(65, 130, 242, 0.26);\n --color-primary-500: rgba(65, 130, 242, 0.52);\n --color-primary-600: rgba(65, 130, 242, 0.75);\n --color-primary-700: #4182f2;\n --color-primary-800: #356bc8;\n --color-primary-900: #244a8a;\n\n --color-secondary-200: rgba(65, 130, 242, 0.07);\n --color-secondary-300: rgba(65, 130, 242, 0.13);\n --color-secondary-400: rgba(65, 130, 242, 0.26);\n --color-secondary-500: rgba(65, 130, 242, 0.52);\n --color-secondary-600: rgba(65, 130, 242, 0.75);\n --color-secondary-700: #4182f2;\n --color-secondary-800: #356bc8;\n --color-secondary-900: #244a8a;\n\n --color-primary-opaque-300: #e6effd;\n --color-primary-opaque-400: #cedffc;\n\n --color-secondary-opaque-300: #e6effd;\n --color-secondary-opaque-400: #cedffc;\n\n --color-primary-100: rgba(65, 130, 242, 0.04);\n --color-primary-opaque-200: #f2f6fe;\n --color-primary-opaque-500: #aac7f9;\n }\n\n .neon {\n --color-primary: #67ffc8;\n --color-secondary: #67ffc8;\n\n --color-theme-100: #000000;\n --color-theme-200: #292b34;\n --color-theme-300: #202129;\n --color-theme-400: #17171a;\n --color-theme-500: #6D6D73;\n --color-theme-600: #89898e;\n --color-theme-700: #b0b0b5;\n --color-theme-800: #dfdfe5;\n --color-theme-900: #ffffff;\n\n --color-primary-200: rgba(103, 255, 200, 0.05);\n --color-primary-300: rgba(103, 255, 200, 0.1);\n --color-primary-400: rgba(103, 255, 200, 0.25);\n --color-primary-500: rgba(103, 255, 200, 0.5);\n --color-primary-600: rgba(103, 255, 200, 0.75);\n --color-primary-700: #67ffc8;\n --color-primary-800: #a5ffdf;\n --color-primary-900: #d0fdec;\n\n --color-secondary-200: rgba(103, 255, 200, 0.05);\n --color-secondary-300: rgba(103, 255, 200, 0.1);\n --color-secondary-400: rgba(103, 255, 200, 0.25);\n --color-secondary-500: rgba(103, 255, 200, 0.5);\n --color-secondary-600: rgba(103, 255, 200, 0.75);\n --color-secondary-700: #67ffc8;\n --color-secondary-800: #a5ffdf;\n --color-secondary-900: #d0fdec;\n\n --color-theme-transparent-200: rgba(6,7,8,0.12);\n --color-theme-transparent-300: rgba(6,7,8,0.22);\n --color-theme-transparent-400: rgba(6,7,8,0.5);\n --color-theme-transparent-500: rgba(255,255,255,0.27);\n --color-theme-transparent-600: rgba(255,255,255,0.4);\n --color-theme-transparent-700: rgba(255,255,255,0.6);\n --color-theme-transparent-800: rgba(255,255,255,0.85);\n\n --color-primary-opaque-300: #334447;\n --color-primary-opaque-400: #3c605a;\n\n --color-secondary-opaque-300: #334447;\n --color-secondary-opaque-400: #3c605a;\n\n --body-bg-main: rgb(36, 38, 46);\n --body-bg-main-transparent: rgba(36, 38, 46, 0);\n --page-paper-main: #2f323a;\n --border-primary: #17171a;\n --selectable: #17171a;\n --selectable-active: #3b82f6;\n\n --note-bg: #3d3c3c;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.2), 0 16px 16px 0 rgba(0, 0, 0, 0.2),\n 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.1), 0 16px 16px 0 rgba(0, 0, 0, 0.1),\n 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n\n --shadow-popover: 0 6px 16px 0 rgba(0, 0, 0, 0.35);\n --popover-border: var(--border-raised);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.15);\n --shadow-tertiary-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4),\n 0 10px 30px -3px rgba(0, 0, 0, 0.5);\n\n --page-paper-main-shadow: rgba(\n 47,\n 50,\n 58,\n 0\n ); /* Shadow list shadow for page paper main */\n\n --modal-background: rgba(36, 38, 46, 0.7);\n\n --highlight-dark: rgba(0, 0, 0, 0.06);\n\n --input-background-color: #24262e;\n\n --only-white: #ffffff;\n\n --only-black: #000000;\n\n --color-primary-100: rgba(103, 255, 200, 0.08);\n --color-primary-opaque-200: #31403b;\n --muted-text: #cfcfd0;\n --alert-surface: rgba(243, 24, 72, 0.25);\n --muted-surface: #b4b4b8;\n --muted-surface-text: #4a4a4a;\n --stripe-pattern: #524145;\n --drop-overlay-bg: rgba(47, 50, 58, 0.93);\n\n --surface-canvas: var(--body-bg-main);\n --surface-sheet: var(--page-paper-main);\n --surface-raised: #353840;\n --surface-bubble: #32353d;\n --border-raised: #44474e;\n --chip-tint-strong: 0%;\n --chip-tint-surface: 13%;\n --chip-tint-text: 100%;\n --form-modal-surface: var(--color-theme-200);\n --form-modal-border: var(--border-raised);\n --form-modal-shadow: var(--shadow-primary);\n --success-surface: #3c4d4c;\n --alert-surface-subtle: #463941;\n --warning-surface: #504640;\n --warning-text: #e5c07b;\n --color-primary-opaque-500: #488e7a;\n --shadow-float: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --shadow-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n rgba(255, 255, 255, 0.07),\n rgba(255, 255, 255, 0)\n );\n }\n\n .dracula {\n --color-primary: #bd93f9;\n --color-secondary: #ff79c6;\n\n --color-theme-100: #000000;\n --color-theme-200: #262735;\n --color-theme-300: #1c1e27;\n --color-theme-400: #111217;\n --color-theme-500: #6272a4;\n --color-theme-600: #7d8ab8;\n --color-theme-700: #a4aecd;\n --color-theme-800: #dededa;\n --color-theme-900: #f8f8f2;\n\n --color-primary-200: rgba(189, 147, 249, 0.05);\n --color-primary-300: rgba(189, 147, 249, 0.1);\n --color-primary-400: rgba(189, 147, 249, 0.25);\n --color-primary-500: rgba(189, 147, 249, 0.5);\n --color-primary-600: rgba(189, 147, 249, 0.75);\n --color-primary-700: #bd93f9;\n --color-primary-800: #d2b6fb;\n --color-primary-900: #e4d3fd;\n\n --color-secondary-200: rgba(255, 121, 198, 0.05);\n --color-secondary-300: rgba(255, 121, 198, 0.1);\n --color-secondary-400: rgba(255, 121, 198, 0.25);\n --color-secondary-500: rgba(255, 121, 198, 0.5);\n --color-secondary-600: rgba(255, 121, 198, 0.75);\n --color-secondary-700: #ff79c6;\n --color-secondary-800: #ffa3d7;\n --color-secondary-900: #ffc9e7;\n\n --color-theme-transparent-200: rgba(6, 7, 8, 0.12);\n --color-theme-transparent-300: rgba(6, 7, 8, 0.22);\n --color-theme-transparent-400: rgba(6, 7, 8, 0.5);\n --color-theme-transparent-500: rgba(255, 255, 255, 0.27);\n --color-theme-transparent-600: rgba(255, 255, 255, 0.4);\n --color-theme-transparent-700: rgba(255, 255, 255, 0.6);\n --color-theme-transparent-800: rgba(255, 255, 255, 0.85);\n\n --color-primary-opaque-300: #42385b;\n --color-primary-opaque-400: #534472;\n\n --color-secondary-opaque-300: #543448;\n --color-secondary-opaque-400: #6f435f;\n\n --body-bg-main: rgb(32, 34, 44);\n --body-bg-main-transparent: rgba(32, 34, 44, 0);\n --page-paper-main: #2c2f3c;\n --border-primary: #111217;\n --selectable: #111217;\n --selectable-active: #3b82f6;\n\n --note-bg: #323026;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.2), 0 16px 16px 0 rgba(0, 0, 0, 0.2),\n 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.1), 0 16px 16px 0 rgba(0, 0, 0, 0.1),\n 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n\n --shadow-popover: 0 6px 16px 0 rgba(0, 0, 0, 0.35);\n --popover-border: var(--border-raised);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.15);\n --shadow-tertiary-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4),\n 0 10px 30px -3px rgba(0, 0, 0, 0.5);\n\n --page-paper-main-shadow: rgba(44, 47, 60, 0);\n\n --modal-background: rgba(32, 34, 44, 0.7);\n\n --highlight-dark: rgba(0, 0, 0, 0.06);\n\n --input-background-color: #191a22;\n\n --color-primary-100: rgba(189, 147, 249, 0.08);\n --color-primary-opaque-200: #302c3e;\n --muted-text: #d0d0cb;\n --alert-surface: rgba(255, 85, 85, 0.25);\n --muted-surface: #a9aec4;\n --muted-surface-text: #282a36;\n --stripe-pattern: #503d47;\n --drop-overlay-bg: rgba(44, 47, 60, 0.93);\n\n --surface-canvas: var(--body-bg-main);\n --surface-sheet: var(--page-paper-main);\n --surface-raised: #323541;\n --surface-bubble: #2f323f;\n --border-raised: #40434e;\n --chip-tint-strong: 0%;\n --chip-tint-surface: 13%;\n --chip-tint-text: 100%;\n --form-modal-surface: var(--color-theme-200);\n --form-modal-border: var(--border-raised);\n --form-modal-shadow: var(--shadow-primary);\n --success-surface: #394a4c;\n --alert-surface-subtle: #433741;\n --warning-surface: #4d4441;\n --warning-text: #e5c07b;\n --color-primary-opaque-500: #6d5c91;\n --shadow-float: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --shadow-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n rgba(255, 255, 255, 0.07),\n rgba(255, 255, 255, 0)\n );\n }\n\n .one-dark {\n --color-primary: #61afef;\n --color-secondary: #c678dd;\n\n --color-theme-100: #000000;\n --color-theme-200: #22262e;\n --color-theme-300: #1c1f24;\n --color-theme-400: #191c21;\n --color-theme-500: #5c6370;\n --color-theme-600: #767d8a;\n --color-theme-700: #9aa2b1;\n --color-theme-800: #cdd3de;\n --color-theme-900: #dcdfe4;\n\n --color-primary-200: rgba(97, 175, 239, 0.05);\n --color-primary-300: rgba(97, 175, 239, 0.1);\n --color-primary-400: rgba(97, 175, 239, 0.25);\n --color-primary-500: rgba(97, 175, 239, 0.5);\n --color-primary-600: rgba(97, 175, 239, 0.75);\n --color-primary-700: #61afef;\n --color-primary-800: #8ec6f4;\n --color-primary-900: #bcdcf9;\n\n --color-secondary-200: rgba(198, 120, 221, 0.05);\n --color-secondary-300: rgba(198, 120, 221, 0.1);\n --color-secondary-400: rgba(198, 120, 221, 0.25);\n --color-secondary-500: rgba(198, 120, 221, 0.5);\n --color-secondary-600: rgba(198, 120, 221, 0.75);\n --color-secondary-700: #c678dd;\n --color-secondary-800: #d79ce8;\n --color-secondary-900: #e8c2f2;\n\n --color-theme-transparent-200: rgba(6, 7, 8, 0.12);\n --color-theme-transparent-300: rgba(6, 7, 8, 0.22);\n --color-theme-transparent-400: rgba(6, 7, 8, 0.5);\n --color-theme-transparent-500: rgba(255, 255, 255, 0.27);\n --color-theme-transparent-600: rgba(255, 255, 255, 0.4);\n --color-theme-transparent-700: rgba(255, 255, 255, 0.6);\n --color-theme-transparent-800: rgba(255, 255, 255, 0.85);\n\n --color-primary-opaque-300: #2d3e51;\n --color-primary-opaque-400: #364e65;\n\n --color-secondary-opaque-300: #402e47;\n --color-secondary-opaque-400: #543b5d;\n\n --body-bg-main: rgb(32, 35, 42);\n --body-bg-main-transparent: rgba(32, 35, 42, 0);\n --page-paper-main: #292d35;\n --border-primary: #191c21;\n --selectable: #191c21;\n --selectable-active: #3b82f6;\n\n --note-bg: #302e28;\n\n --shadow-primary-hover: 0 64px 64px 0 rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.2), 0 16px 16px 0 rgba(0, 0, 0, 0.2),\n 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.2);\n --shadow-primary: 0 64px 64px 0 rgba(0, 0, 0, 0.1),\n 0 32px 32px 0 rgba(0, 0, 0, 0.1), 0 16px 16px 0 rgba(0, 0, 0, 0.1),\n 0 4px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 2px 0 rgba(0, 0, 0, 0.1);\n\n --shadow-secondary: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n\n --shadow-popover: 0 6px 16px 0 rgba(0, 0, 0, 0.35);\n --popover-border: var(--border-raised);\n\n --shadow-tertiary: 0 4px 6px -2px rgba(0, 0, 0, 0.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.15);\n --shadow-tertiary-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.4),\n 0 10px 30px -3px rgba(0, 0, 0, 0.5);\n\n --page-paper-main-shadow: rgba(41, 45, 53, 0);\n\n --modal-background: rgba(32, 35, 42, 0.7);\n\n --highlight-dark: rgba(0, 0, 0, 0.06);\n\n --input-background-color: #191c21;\n\n --color-primary-100: rgba(97, 175, 239, 0.08);\n --color-primary-opaque-200: #25313e;\n --muted-text: #c5cbd6;\n --alert-surface: rgba(224, 108, 117, 0.25);\n --muted-surface: #a3aab8;\n --muted-surface-text: #282c34;\n --stripe-pattern: #4b3e41;\n --drop-overlay-bg: rgba(41, 45, 53, 0.93);\n\n --surface-canvas: var(--body-bg-main);\n --surface-sheet: var(--page-paper-main);\n --surface-raised: #2e333c;\n --surface-bubble: #2b2f37;\n --border-raised: #3a3e46;\n --chip-tint-strong: 0%;\n --chip-tint-surface: 13%;\n --chip-tint-text: 100%;\n --form-modal-surface: var(--color-theme-200);\n --form-modal-border: var(--border-raised);\n --form-modal-shadow: var(--shadow-primary);\n --success-surface: #364948;\n --alert-surface-subtle: #3e353d;\n --warning-surface: #4a423d;\n --warning-text: #e5c07b;\n --color-primary-opaque-500: #42688a;\n --shadow-float: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --shadow-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.3);\n --paper-highlight: radial-gradient(\n circle 760px at 50% 0,\n rgba(255, 255, 255, 0.07),\n rgba(255, 255, 255, 0)\n );\n }\n\n html {\n color-scheme: light;\n --pill-background: rgba(48, 48, 55, 0.06);\n --pill-background-hover: rgba(48, 48, 55, 0.1);\n --pill-background-active: color-mix(in srgb, var(--color-primary) 12%, transparent);\n --pill-border: rgba(48, 48, 55, 0.16);\n\n &${DARK_THEME_MATCH} {\n color-scheme: dark;\n --pill-background: rgba(255, 255, 255, 0.07);\n --pill-background-hover: rgba(255, 255, 255, 0.11);\n --pill-background-active: color-mix(in srgb, var(--color-primary) 20%, transparent);\n --pill-border: rgba(255, 255, 255, 0.16);\n }\n }\n\n .ac-shadow,\n .ac-shadow--raised {\n &--lg {\n box-shadow: var(--shadow-primary);\n }\n &--sm {\n box-shadow: var(--shadow-tertiary);\n }\n }\n\n .ac-shadow--raised {\n &--lg {\n transition: box-shadow 0.3s;\n &:hover {\n box-shadow: var(--shadow-primary-hover);\n }\n }\n &--sm {\n transition: box-shadow 0.3s;\n &:hover {\n box-shadow: var(--shadow-tertiary-hover);\n }\n }\n }\n\n .ac-shadow-optimized--sm {\n position: relative;\n box-shadow: var(--shadow-tertiary);\n\n &::before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: \"\";\n box-shadow: var(--shadow-tertiary);\n opacity: 0;\n border-radius: var(--ac-br-6);\n transition: opacity 0.3s ease;\n z-index: -1;\n }\n\n @media (hover: hover) {\n &:hover::before {\n opacity: 1;\n }\n }\n }\n\n .ac-shadow-optimized--lg {\n position: relative;\n box-shadow: var(--shadow-primary);\n\n &::before {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n content: \"\";\n box-shadow: var(--shadow-primary);\n opacity: 0;\n border-radius: var(--ac-br-8);\n transition: opacity 0.3s ease;\n z-index: -1;\n }\n\n @media (hover: hover) {\n &:hover::before {\n opacity: 1;\n }\n }\n }\n\n .ac-border-radius {\n &-4 {\n border-radius: var(--ac-br-4);\n }\n\n &-6 {\n border-radius: var(--ac-br-6);\n }\n\n &-8 {\n border-radius: var(--ac-br-8);\n }\n\n &-rounded {\n border-radius: var(--ac-br-rounded);\n }\n }\n\n\n // CSS Tooltip ::after content: data-tooltip\n\n .c-cooltip {\n position: relative;\n\n /*\n * Prefer scoped variables in this case.\n * This lines of CSS should be scoped too.\n */\n\n --cooltip-spacing: 0.5rem;\n --cooltip-padding: 0.25rem 0.625rem;\n --cooltip-max-width: 12.5rem;\n\n --cooltip-transition-duration: 0.15s, 0.1s, 0.15s;\n --cooltip-transition-delay: 0.6s;\n --cooltip-timing: ease, ease, cubic-bezier(0.39, 0.575, 0.565, 1);\n }\n\n .c-cooltip::after {\n /*\n * will-change is intended to be used as a last resort,\n * in order to try to deal with existing performance problems.\n * It should not be used to anticipate performance problems.\n * https://developer.mozilla.org/en-US/docs/Web/CSS/will-change\n *\n * will-change: transform, opacity\n */\n pointer-events: none;\n content: attr(data-tooltip);\n position: absolute;\n color: #fff;\n opacity: 0;\n background-color: rgba(0, 0, 0, 0.9);\n border-radius: 0.5rem;\n font-size: 0.75rem;\n font-weight: 500;\n line-height: 1.3;\n max-width: var(--cooltip-max-width);\n padding: var(--cooltip-padding);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n .c-cooltip--top::after {\n bottom: calc(100% + var(--cooltip-spacing));\n left: 50%;\n transform: scale(0.85) translateX(-50%);\n transform-origin: 0;\n }\n\n .c-cooltip--right::after {\n left: calc(100% + var(--cooltip-spacing));\n transform: scale(0.85);\n }\n\n .c-cooltip--bottom::after {\n top: calc(100% + var(--cooltip-spacing));\n left: 50%;\n transform: scale(0.85) translateX(-50%);\n transform-origin: 0;\n }\n\n .c-cooltip--left::after {\n right: calc(100% + var(--cooltip-spacing));\n transform: scale(0.85);\n }\n\n /*\n * Make sure that disabled and aria pressed\n * items do not have tooltips available.\n */\n .c-cooltip:disabled::after,\n [aria-pressed=\"true\"]::after {\n display: none;\n }\n\n /*\n *\n * Only use hover when is available .\n * https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover\n */\n @media (hover: hover) {\n /*\n * Here we maybe have a complex selector but actually it's not.\n * We simply asks here to show tooltip only on hover.\n * Focused elements (in this case, clicked elements) should hide the tooltip.\n */\n .c-cooltip--top:not(:focus):hover::after,\n .c-cooltip--bottom:not(:focus):hover::after {\n transition-property: opacity, transform;\n transition-duration: var(--cooltip-transition-duration);\n transition-delay: var(--cooltip-transition-delay);\n transition-timing-function: var(--cooltip-timing);\n transform: scale(1) translateX(-50%);\n opacity: 1;\n }\n\n /*\n *\n * This is not code duplication!\n * Transform properties are tricky to animate and values\n * are not the same depending on the tooltip position.\n *\n * Animating only one transform, eg. scale(1) will\n * override all previously set transforms, eg. translateY.\n * So we need to always chain them.\n * eg. transform: scale(1) translateY(-50%) etc...\n */\n\n .c-cooltip--right:not(:focus):hover::after,\n .c-cooltip--left:not(:focus):hover::after {\n transition-property: opacity, transform;\n transition-duration: var(--cooltip-transition-duration);\n transition-delay: var(--cooltip-transition-delay);\n transition-timing-function: var(--cooltip-timing);\n transform: scale(1);\n opacity: 1;\n }\n }\n\n .c-date-picker--calendar {\n width: 260px;\n padding: 16px 0px 8px 0px;\n margin: auto;\n background-color: var(--page-paper-main);\n }\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEO,IAAME,WAAW,GAAAC,OAAA,CAAAD,WAAA,OAAGE,mCAAiB,86nBAgnBrCC,wBAAgB,CAwOtB","ignoreList":[]}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NoResultsIllustration = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _NoResultsSlate = require("./NoResultsSlate.styles");
|
|
9
|
+
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); }
|
|
10
|
+
var PAGE = "M26 14H66A10 10 0 0 1 76 24V72A10 10 0 0 1 66 82H26A10 10 0 0 1 16 72V24A10 10 0 0 1 26 14Z";
|
|
11
|
+
var NoResultsIllustration = exports.NoResultsIllustration = function NoResultsIllustration() {
|
|
12
|
+
var id = (0, _react.useId)();
|
|
13
|
+
var glow = "".concat(id, "-glow");
|
|
14
|
+
var shadow = "".concat(id, "-shadow");
|
|
15
|
+
var clip = "".concat(id, "-clip");
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_NoResultsSlate.StyledIllustration, {
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
18
|
+
viewBox: "0 0 100 100",
|
|
19
|
+
width: "100%",
|
|
20
|
+
height: "100%",
|
|
21
|
+
overflow: "visible",
|
|
22
|
+
fill: "none",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
"data-testid": "no-results-illustration"
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement("defs", null, /*#__PURE__*/_react.default.createElement("filter", {
|
|
26
|
+
id: glow,
|
|
27
|
+
filterUnits: "userSpaceOnUse",
|
|
28
|
+
x: "-30",
|
|
29
|
+
y: "-20",
|
|
30
|
+
width: "160",
|
|
31
|
+
height: "140"
|
|
32
|
+
}, /*#__PURE__*/_react.default.createElement("feGaussianBlur", {
|
|
33
|
+
stdDeviation: "9"
|
|
34
|
+
})), /*#__PURE__*/_react.default.createElement("filter", {
|
|
35
|
+
id: shadow,
|
|
36
|
+
filterUnits: "userSpaceOnUse",
|
|
37
|
+
x: "44",
|
|
38
|
+
y: "44",
|
|
39
|
+
width: "68",
|
|
40
|
+
height: "68"
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement("feDropShadow", {
|
|
42
|
+
dx: "0",
|
|
43
|
+
dy: "4",
|
|
44
|
+
stdDeviation: "5",
|
|
45
|
+
floodColor: "#000000",
|
|
46
|
+
floodOpacity: "0.28"
|
|
47
|
+
})), /*#__PURE__*/_react.default.createElement("clipPath", {
|
|
48
|
+
id: clip
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
50
|
+
d: PAGE
|
|
51
|
+
}))), /*#__PURE__*/_react.default.createElement("ellipse", {
|
|
52
|
+
className: "glow-secondary",
|
|
53
|
+
cx: "74",
|
|
54
|
+
cy: "68",
|
|
55
|
+
rx: "23",
|
|
56
|
+
ry: "21",
|
|
57
|
+
filter: "url(#".concat(glow, ")")
|
|
58
|
+
}), /*#__PURE__*/_react.default.createElement("ellipse", {
|
|
59
|
+
className: "glow-primary",
|
|
60
|
+
cx: "30",
|
|
61
|
+
cy: "30",
|
|
62
|
+
rx: "26",
|
|
63
|
+
ry: "20",
|
|
64
|
+
filter: "url(#".concat(glow, ")")
|
|
65
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
66
|
+
className: "paper",
|
|
67
|
+
d: PAGE,
|
|
68
|
+
strokeWidth: "2",
|
|
69
|
+
strokeLinejoin: "round",
|
|
70
|
+
clipPath: "url(#".concat(clip, ")")
|
|
71
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
72
|
+
className: "line",
|
|
73
|
+
x: "26",
|
|
74
|
+
y: "26",
|
|
75
|
+
width: "40",
|
|
76
|
+
height: "4.5",
|
|
77
|
+
rx: "2.25"
|
|
78
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
79
|
+
className: "gap",
|
|
80
|
+
x: "26.75",
|
|
81
|
+
y: "38.75",
|
|
82
|
+
width: "38.5",
|
|
83
|
+
height: "9.5",
|
|
84
|
+
rx: "4.75",
|
|
85
|
+
strokeWidth: "1.5",
|
|
86
|
+
strokeDasharray: "3 3"
|
|
87
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
88
|
+
className: "line",
|
|
89
|
+
x: "26",
|
|
90
|
+
y: "56",
|
|
91
|
+
width: "34",
|
|
92
|
+
height: "4.5",
|
|
93
|
+
rx: "2.25"
|
|
94
|
+
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
95
|
+
className: "line",
|
|
96
|
+
x: "26",
|
|
97
|
+
y: "66",
|
|
98
|
+
width: "22",
|
|
99
|
+
height: "4.5",
|
|
100
|
+
rx: "2.25"
|
|
101
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
102
|
+
className: "badge",
|
|
103
|
+
cx: "78",
|
|
104
|
+
cy: "74",
|
|
105
|
+
r: "14",
|
|
106
|
+
filter: "url(#".concat(shadow, ")")
|
|
107
|
+
}), /*#__PURE__*/_react.default.createElement("circle", {
|
|
108
|
+
cx: "76.5",
|
|
109
|
+
cy: "72.5",
|
|
110
|
+
r: "5",
|
|
111
|
+
stroke: "#ffffff",
|
|
112
|
+
strokeWidth: "2.2"
|
|
113
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
114
|
+
d: "M80.2 76.2L84.4 80.4",
|
|
115
|
+
stroke: "#ffffff",
|
|
116
|
+
strokeWidth: "2.2",
|
|
117
|
+
strokeLinecap: "round"
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=NoResultsIllustration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsIllustration.js","names":["_react","_interopRequireWildcard","require","_NoResultsSlate","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","PAGE","NoResultsIllustration","exports","id","useId","glow","concat","shadow","clip","createElement","StyledIllustration","xmlns","viewBox","width","height","overflow","fill","filterUnits","x","y","stdDeviation","dx","dy","floodColor","floodOpacity","d","className","cx","cy","rx","ry","filter","strokeWidth","strokeLinejoin","clipPath","strokeDasharray","stroke","strokeLinecap"],"sources":["../../../../src/components/NoResultsSlate/NoResultsIllustration.tsx"],"sourcesContent":["import React, { useId } from \"react\";\n\nimport { StyledIllustration } from \"./NoResultsSlate.styles\";\n\nconst PAGE =\n \"M26 14H66A10 10 0 0 1 76 24V72A10 10 0 0 1 66 82H26A10 10 0 0 1 16 72V24A10 10 0 0 1 26 14Z\";\n\nexport const NoResultsIllustration = () => {\n const id = useId();\n const glow = `${id}-glow`;\n const shadow = `${id}-shadow`;\n const clip = `${id}-clip`;\n\n return (\n <StyledIllustration\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 100 100\"\n width=\"100%\"\n height=\"100%\"\n overflow=\"visible\"\n fill=\"none\"\n aria-hidden=\"true\"\n data-testid=\"no-results-illustration\"\n >\n <defs>\n <filter\n id={glow}\n filterUnits=\"userSpaceOnUse\"\n x=\"-30\"\n y=\"-20\"\n width=\"160\"\n height=\"140\"\n >\n <feGaussianBlur stdDeviation=\"9\" />\n </filter>\n <filter\n id={shadow}\n filterUnits=\"userSpaceOnUse\"\n x=\"44\"\n y=\"44\"\n width=\"68\"\n height=\"68\"\n >\n <feDropShadow\n dx=\"0\"\n dy=\"4\"\n stdDeviation=\"5\"\n floodColor=\"#000000\"\n floodOpacity=\"0.28\"\n />\n </filter>\n <clipPath id={clip}>\n <path d={PAGE} />\n </clipPath>\n </defs>\n <ellipse\n className=\"glow-secondary\"\n cx=\"74\"\n cy=\"68\"\n rx=\"23\"\n ry=\"21\"\n filter={`url(#${glow})`}\n />\n <ellipse\n className=\"glow-primary\"\n cx=\"30\"\n cy=\"30\"\n rx=\"26\"\n ry=\"20\"\n filter={`url(#${glow})`}\n />\n <path\n className=\"paper\"\n d={PAGE}\n strokeWidth=\"2\"\n strokeLinejoin=\"round\"\n clipPath={`url(#${clip})`}\n />\n <rect className=\"line\" x=\"26\" y=\"26\" width=\"40\" height=\"4.5\" rx=\"2.25\" />\n <rect\n className=\"gap\"\n x=\"26.75\"\n y=\"38.75\"\n width=\"38.5\"\n height=\"9.5\"\n rx=\"4.75\"\n strokeWidth=\"1.5\"\n strokeDasharray=\"3 3\"\n />\n <rect className=\"line\" x=\"26\" y=\"56\" width=\"34\" height=\"4.5\" rx=\"2.25\" />\n <rect className=\"line\" x=\"26\" y=\"66\" width=\"22\" height=\"4.5\" rx=\"2.25\" />\n <circle\n className=\"badge\"\n cx=\"78\"\n cy=\"74\"\n r=\"14\"\n filter={`url(#${shadow})`}\n />\n <circle cx=\"76.5\" cy=\"72.5\" r=\"5\" stroke=\"#ffffff\" strokeWidth=\"2.2\" />\n <path\n d=\"M80.2 76.2L84.4 80.4\"\n stroke=\"#ffffff\"\n strokeWidth=\"2.2\"\n strokeLinecap=\"round\"\n />\n </StyledIllustration>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AAA6D,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,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
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NoResultsSlate = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _NoResultsIllustration = require("./NoResultsIllustration");
|
|
9
|
+
var _NoResultsSlate = require("./NoResultsSlate.styles");
|
|
10
|
+
var _Button = require("../Button");
|
|
11
|
+
var _Typography = require("../Typography");
|
|
12
|
+
var _excluded = ["title", "description", "clearLabel", "onClear"];
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
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); }
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
17
|
+
var NoResultsSlate = exports.NoResultsSlate = function NoResultsSlate(_ref) {
|
|
18
|
+
var title = _ref.title,
|
|
19
|
+
description = _ref.description,
|
|
20
|
+
clearLabel = _ref.clearLabel,
|
|
21
|
+
onClear = _ref.onClear,
|
|
22
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
23
|
+
return /*#__PURE__*/_react.default.createElement(_NoResultsSlate.StyledNoResultsSlate, _extends({}, rest, {
|
|
24
|
+
role: "status"
|
|
25
|
+
}), /*#__PURE__*/_react.default.createElement(_NoResultsSlate.StyledIllustrationBox, null, /*#__PURE__*/_react.default.createElement(_NoResultsIllustration.NoResultsIllustration, null)), /*#__PURE__*/_react.default.createElement(_NoResultsSlate.StyledTitle, null, title), description ? /*#__PURE__*/_react.default.createElement(_Typography.Body1, {
|
|
26
|
+
color: "secondary"
|
|
27
|
+
}, description) : null, clearLabel && onClear ? /*#__PURE__*/_react.default.createElement(_NoResultsSlate.StyledActions, null, /*#__PURE__*/_react.default.createElement(_Button.Button, {
|
|
28
|
+
variant: "secondary",
|
|
29
|
+
onClick: onClear
|
|
30
|
+
}, clearLabel)) : null);
|
|
31
|
+
};
|
|
32
|
+
NoResultsSlate.displayName = "NoResultsSlate";
|
|
33
|
+
//# sourceMappingURL=NoResultsSlate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsSlate.js","names":["_react","_interopRequireDefault","require","_NoResultsIllustration","_NoResultsSlate","_Button","_Typography","_excluded","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","_objectWithoutProperties","o","i","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","NoResultsSlate","exports","_ref","title","description","clearLabel","onClear","rest","createElement","StyledNoResultsSlate","role","StyledIllustrationBox","NoResultsIllustration","StyledTitle","Body1","color","StyledActions","Button","variant","onClick","displayName"],"sources":["../../../../src/components/NoResultsSlate/NoResultsSlate.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\";\n\nimport { NoResultsIllustration } from \"./NoResultsIllustration\";\nimport {\n StyledActions,\n StyledIllustrationBox,\n StyledNoResultsSlate,\n StyledTitle,\n} from \"./NoResultsSlate.styles\";\nimport { Button } from \"../Button\";\nimport { Body1 } from \"../Typography\";\n\nexport interface NoResultsSlateProps\n extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n title: string;\n description?: string;\n /** The label of the button that clears the filter. The button needs onClear too. */\n clearLabel?: string;\n onClear?: () => void;\n}\n\nexport const NoResultsSlate = ({\n title,\n description,\n clearLabel,\n onClear,\n ...rest\n}: NoResultsSlateProps) => (\n <StyledNoResultsSlate {...rest} role=\"status\">\n <StyledIllustrationBox>\n <NoResultsIllustration />\n </StyledIllustrationBox>\n <StyledTitle>{title}</StyledTitle>\n {description ? <Body1 color=\"secondary\">{description}</Body1> : null}\n {clearLabel && onClear ? (\n <StyledActions>\n <Button variant=\"secondary\" onClick={onClear}>\n {clearLabel}\n </Button>\n </StyledActions>\n ) : null}\n </StyledNoResultsSlate>\n);\n\nNoResultsSlate.displayName = \"NoResultsSlate\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAAsC,IAAAK,SAAA;AAAA,SAAAN,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AAAA,SAAAO,yBAAAf,CAAA,EAAAU,CAAA,gBAAAV,CAAA,iBAAAgB,CAAA,EAAAL,CAAA,EAAAM,CAAA,GAAAC,6BAAA,CAAAlB,CAAA,EAAAU,CAAA,OAAAN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AA,CAAA4B,aAAA,CAAClC,eAAA,CAAAuC,WAAW,QAAEV,KAAmB,CAAC,EACjCC,WAAW,gBAAGlC,MAAA,CAAAU,OAAA,CAAA4B,aAAA,CAAChC,WAAA,CAAAsC,KAAK;IAACC,KAAK,EAAC;EAAW,GAAEX,WAAmB,CAAC,GAAG,IAAI,EACnEC,UAAU,IAAIC,OAAO,gBACpBpC,MAAA,CAAAU,OAAA,CAAA4B,aAAA,CAAClC,eAAA,CAAA0C,aAAa,qBACZ9C,MAAA,CAAAU,OAAA,CAAA4B,aAAA,CAACjC,OAAA,CAAA0C,MAAM;IAACC,OAAO,EAAC,WAAW;IAACC,OAAO,EAAEb;EAAQ,GAC1CD,UACK,CACK,CAAC,GACd,IACgB,CAAC;AAAA,CACxB;AAEDL,cAAc,CAACoB,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.StyledTitle = exports.StyledNoResultsSlate = exports.StyledIllustrationBox = exports.StyledIllustration = exports.StyledActions = void 0;
|
|
7
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
8
|
+
var _BoxSizingStyle = require("../BoxSizingStyle");
|
|
9
|
+
var _FontStyle = require("../FontStyle");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var StyledNoResultsSlate = exports.StyledNoResultsSlate = _styledComponents.default.div.withConfig({
|
|
12
|
+
displayName: "NoResultsSlatestyles__StyledNoResultsSlate",
|
|
13
|
+
componentId: "sc-75hsrr-0"
|
|
14
|
+
})(["align-items:center;display:flex;flex-direction:column;margin-inline:auto;max-width:768px;padding-top:16px;text-align:center;width:100%;", " ", ""], _FontStyle.FontStyle, _BoxSizingStyle.BoxSizingStyle);
|
|
15
|
+
var StyledIllustrationBox = exports.StyledIllustrationBox = _styledComponents.default.div.withConfig({
|
|
16
|
+
displayName: "NoResultsSlatestyles__StyledIllustrationBox",
|
|
17
|
+
componentId: "sc-75hsrr-1"
|
|
18
|
+
})(["height:160px;margin-bottom:16px;width:160px;"]);
|
|
19
|
+
var StyledTitle = exports.StyledTitle = _styledComponents.default.div.withConfig({
|
|
20
|
+
displayName: "NoResultsSlatestyles__StyledTitle",
|
|
21
|
+
componentId: "sc-75hsrr-2"
|
|
22
|
+
})(["color:var(--color-theme-900);font-size:24px;font-weight:700;line-height:32px;margin-bottom:8px;"]);
|
|
23
|
+
var StyledActions = exports.StyledActions = _styledComponents.default.div.withConfig({
|
|
24
|
+
displayName: "NoResultsSlatestyles__StyledActions",
|
|
25
|
+
componentId: "sc-75hsrr-3"
|
|
26
|
+
})(["margin-top:20px;"]);
|
|
27
|
+
var StyledIllustration = exports.StyledIllustration = _styledComponents.default.svg.withConfig({
|
|
28
|
+
displayName: "NoResultsSlatestyles__StyledIllustration",
|
|
29
|
+
componentId: "sc-75hsrr-4"
|
|
30
|
+
})([".glow-secondary{fill:color-mix(in srgb,var(--color-secondary) 20%,transparent);}.glow-primary{fill:color-mix(in srgb,var(--color-primary) 15%,transparent);}.paper{fill:var(--surface-sheet);stroke:var(--border-primary);}@supports (color:light-dark(red,red)){.paper{fill:light-dark(var(--surface-raised),var(--surface-sheet));stroke:light-dark(var(--border-primary),var(--border-raised));}}.line{fill:var(--color-theme-500);fill-opacity:0.7;}.gap{stroke:var(--color-primary);}.badge{fill:var(--color-secondary);}"]);
|
|
31
|
+
//# sourceMappingURL=NoResultsSlate.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoResultsSlate.styles.js","names":["_styledComponents","_interopRequireDefault","require","_BoxSizingStyle","_FontStyle","e","__esModule","default","StyledNoResultsSlate","exports","styled","div","withConfig","displayName","componentId","FontStyle","BoxSizingStyle","StyledIllustrationBox","StyledTitle","StyledActions","StyledIllustration","svg"],"sources":["../../../../src/components/NoResultsSlate/NoResultsSlate.styles.ts"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nexport const StyledNoResultsSlate = styled.div`\n align-items: center;\n display: flex;\n flex-direction: column;\n margin-inline: auto;\n max-width: 768px;\n padding-top: 16px;\n text-align: center;\n width: 100%;\n\n ${FontStyle}\n ${BoxSizingStyle}\n`;\n\nexport const StyledIllustrationBox = styled.div`\n height: 160px;\n margin-bottom: 16px;\n width: 160px;\n`;\n\nexport const StyledTitle = styled.div`\n color: var(--color-theme-900);\n font-size: 24px;\n font-weight: 700;\n line-height: 32px;\n margin-bottom: 8px;\n`;\n\nexport const StyledActions = styled.div`\n margin-top: 20px;\n`;\n\nexport const StyledIllustration = styled.svg`\n .glow-secondary {\n fill: color-mix(in srgb, var(--color-secondary) 20%, transparent);\n }\n\n .glow-primary {\n fill: color-mix(in srgb, var(--color-primary) 15%, transparent);\n }\n\n .paper {\n fill: var(--surface-sheet);\n stroke: var(--border-primary);\n }\n\n @supports (color: light-dark(red, red)) {\n .paper {\n fill: light-dark(var(--surface-raised), var(--surface-sheet));\n stroke: light-dark(var(--border-primary), var(--border-raised));\n }\n }\n\n .line {\n fill: var(--color-theme-500);\n fill-opacity: 0.7;\n }\n\n .gap {\n stroke: var(--color-primary);\n }\n\n .badge {\n fill: var(--color-secondary);\n }\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAyC,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAElC,IAAMG,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,yJAU1CC,oBAAS,EACTC,8BAAc,CACjB;AAEM,IAAMC,qBAAqB,GAAAR,OAAA,CAAAQ,qBAAA,GAAGP,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oDAI9C;AAEM,IAAMI,WAAW,GAAAT,OAAA,CAAAS,WAAA,GAAGR,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,uGAMpC;AAEM,IAAMK,aAAa,GAAAV,OAAA,CAAAU,aAAA,GAAGT,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,wBAEtC;AAEM,IAAMM,kBAAkB,GAAAX,OAAA,CAAAW,kBAAA,GAAGV,yBAAM,CAACW,GAAG,CAAAT,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,sgBAiC3C","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _NoResultsSlate = require("./NoResultsSlate");
|
|
7
|
+
Object.keys(_NoResultsSlate).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _NoResultsSlate[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _NoResultsSlate[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_NoResultsSlate","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/components/NoResultsSlate/index.ts"],"sourcesContent":["export * from \"./NoResultsSlate\";\n"],"mappings":";;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,eAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,eAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,eAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -12,12 +12,12 @@ var MAX_HEIGHT = "95vh";
|
|
|
12
12
|
var StyledObjectFormModalClose = exports.StyledObjectFormModalClose = _styledComponents.default.button.withConfig({
|
|
13
13
|
displayName: "Styles__StyledObjectFormModalClose",
|
|
14
14
|
componentId: "sc-vysvjm-0"
|
|
15
|
-
})(["position:absolute;top:-1px;left:calc(100% + 8px);display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;cursor:pointer;background-color:var(--color-theme-200);border:1px solid var(--border-raised);box-shadow:var(--shadow-primary);border-radius:24px;&:hover{filter:brightness(1.1);}svg{width:24px;height:24px;fill:var(--color-theme-700);}"]);
|
|
15
|
+
})(["position:absolute;top:-1px;left:calc(100% + 8px);display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;cursor:pointer;background-color:var(--form-modal-surface,var(--color-theme-200));border:1px solid var(--form-modal-border,var(--border-raised));box-shadow:var(--form-modal-shadow,var(--shadow-primary));border-radius:24px;&:hover{filter:brightness(1.1);}svg{width:24px;height:24px;fill:var(--color-theme-700);}"]);
|
|
16
16
|
StyledObjectFormModalClose.displayName = "StyledObjectFormModalClose";
|
|
17
17
|
var StyledObjectFormModal = exports.StyledObjectFormModal = _styledComponents.default.div.withConfig({
|
|
18
18
|
displayName: "Styles__StyledObjectFormModal",
|
|
19
19
|
componentId: "sc-vysvjm-1"
|
|
20
|
-
})(["flex:0 0 auto;pointer-events:auto;position:relative;width:100%;max-width:", "px;max-height:", ";padding:20px;overflow-y:auto;overscroll-behavior:contain;background-color:var(--color-theme-200);color:var(--color-theme-900);border:1px solid var(--border-raised);box-shadow:var(--shadow-primary);border-radius:24px;&[data-resizing]{overflow:hidden;}", " ", " ", " ", ""], function (props) {
|
|
20
|
+
})(["flex:0 0 auto;pointer-events:auto;position:relative;width:100%;max-width:", "px;max-height:", ";padding:20px;overflow-y:auto;overscroll-behavior:contain;background-color:var(--form-modal-surface,var(--color-theme-200));color:var(--color-theme-900);border:1px solid var(--form-modal-border,var(--border-raised));box-shadow:var(--form-modal-shadow,var(--shadow-primary));border-radius:24px;&[data-resizing]{overflow:hidden;}", " ", " ", " ", ""], function (props) {
|
|
21
21
|
return props.$maxWidth;
|
|
22
22
|
}, MAX_HEIGHT, function (props) {
|
|
23
23
|
return props.$fill && (0, _styledComponents.css)(["display:flex;flex-direction:column;> :not(.c-object-form-modal-close){min-height:0;}"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_BoxSizingStyle","_FontStyle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MAX_HEIGHT","StyledObjectFormModalClose","exports","styled","button","withConfig","displayName","componentId","StyledObjectFormModal","div","props","$maxWidth","$fill","css","$closeButton","FontStyle","BoxSizingStyle"],"sources":["../../../../src/components/ObjectFormModal/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nconst MAX_HEIGHT = \"95vh\";\n\nexport const StyledObjectFormModalClose = styled.button`\n position: absolute;\n top: -1px;\n left: calc(100% + 8px);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 48px;\n height: 48px;\n padding: 0;\n cursor: pointer;\n background-color: var(--color-theme-200);\n border: 1px solid var(--border-raised);\n box-shadow: var(--shadow-primary);\n border-radius: 24px;\n\n &:hover {\n filter: brightness(1.1);\n }\n\n svg {\n width: 24px;\n height: 24px;\n fill: var(--color-theme-700);\n }\n`;\n\nStyledObjectFormModalClose.displayName = \"StyledObjectFormModalClose\";\n\nexport const StyledObjectFormModal = styled.div<{\n $maxWidth: number;\n $fill: boolean;\n $closeButton: boolean;\n}>`\n flex: 0 0 auto;\n pointer-events: auto;\n position: relative;\n width: 100%;\n max-width: ${(props) => props.$maxWidth}px;\n max-height: ${MAX_HEIGHT};\n padding: 20px;\n overflow-y: auto;\n overscroll-behavior: contain;\n background-color: var(--color-theme-200);\n color: var(--color-theme-900);\n border: 1px solid var(--border-raised);\n box-shadow: var(--shadow-primary);\n border-radius: 24px;\n\n &[data-resizing] {\n overflow: hidden;\n }\n\n ${(props) =>\n props.$fill &&\n css`\n display: flex;\n flex-direction: column;\n\n > :not(.c-object-form-modal-close) {\n min-height: 0;\n }\n `}\n\n /* The close button stands beside the surface, so the content clips in place of the surface. */\n ${(props) =>\n props.$closeButton &&\n css`\n &,\n &[data-resizing] {\n overflow: visible;\n }\n\n &[data-resizing] > :not(.c-object-form-modal-close) {\n overflow: hidden;\n }\n `}\n\n ${FontStyle}\n ${BoxSizingStyle}\n`;\n\nStyledObjectFormModal.displayName = \"StyledObjectFormModal\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAyC,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,wBAAAI,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;AAEzC,IAAMmB,UAAU,GAAG,MAAM;AAElB,IAAMC,0BAA0B,GAAAC,OAAA,CAAAD,0BAAA,GAAGE,yBAAM,CAACC,MAAM,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_BoxSizingStyle","_FontStyle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","MAX_HEIGHT","StyledObjectFormModalClose","exports","styled","button","withConfig","displayName","componentId","StyledObjectFormModal","div","props","$maxWidth","$fill","css","$closeButton","FontStyle","BoxSizingStyle"],"sources":["../../../../src/components/ObjectFormModal/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nconst MAX_HEIGHT = \"95vh\";\n\nexport const StyledObjectFormModalClose = styled.button`\n position: absolute;\n top: -1px;\n left: calc(100% + 8px);\n display: flex;\n align-items: center;\n justify-content: center;\n width: 48px;\n height: 48px;\n padding: 0;\n cursor: pointer;\n background-color: var(--form-modal-surface, var(--color-theme-200));\n border: 1px solid var(--form-modal-border, var(--border-raised));\n box-shadow: var(--form-modal-shadow, var(--shadow-primary));\n border-radius: 24px;\n\n &:hover {\n filter: brightness(1.1);\n }\n\n svg {\n width: 24px;\n height: 24px;\n fill: var(--color-theme-700);\n }\n`;\n\nStyledObjectFormModalClose.displayName = \"StyledObjectFormModalClose\";\n\nexport const StyledObjectFormModal = styled.div<{\n $maxWidth: number;\n $fill: boolean;\n $closeButton: boolean;\n}>`\n flex: 0 0 auto;\n pointer-events: auto;\n position: relative;\n width: 100%;\n max-width: ${(props) => props.$maxWidth}px;\n max-height: ${MAX_HEIGHT};\n padding: 20px;\n overflow-y: auto;\n overscroll-behavior: contain;\n background-color: var(--form-modal-surface, var(--color-theme-200));\n color: var(--color-theme-900);\n border: 1px solid var(--form-modal-border, var(--border-raised));\n box-shadow: var(--form-modal-shadow, var(--shadow-primary));\n border-radius: 24px;\n\n &[data-resizing] {\n overflow: hidden;\n }\n\n ${(props) =>\n props.$fill &&\n css`\n display: flex;\n flex-direction: column;\n\n > :not(.c-object-form-modal-close) {\n min-height: 0;\n }\n `}\n\n /* The close button stands beside the surface, so the content clips in place of the surface. */\n ${(props) =>\n props.$closeButton &&\n css`\n &,\n &[data-resizing] {\n overflow: visible;\n }\n\n &[data-resizing] > :not(.c-object-form-modal-close) {\n overflow: hidden;\n }\n `}\n\n ${FontStyle}\n ${BoxSizingStyle}\n`;\n\nStyledObjectFormModal.displayName = \"StyledObjectFormModal\";\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,G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AA,CAAAM,qBAAA,GAAGL,yBAAM,CAACM,GAAG,CAAAJ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,kcAShC,UAACG,KAAK;EAAA,OAAKA,KAAK,CAACC,SAAS;AAAA,GACzBX,UAAU,EActB,UAACU,KAAK;EAAA,OACNA,KAAK,CAACE,KAAK,QACXC,qBAAG,2FAOF;AAAA,GAGD,UAACH,KAAK;EAAA,OACNA,KAAK,CAACI,YAAY,QAClBD,qBAAG,iHASF;AAAA,GAEDE,oBAAS,EACTC,8BAAc,CACjB;AAEDR,qBAAqB,CAACF,WAAW,GAAG,uBAAuB","ignoreList":[]}
|
|
@@ -64,7 +64,9 @@ var Sort = exports.Sort = function Sort(_ref) {
|
|
|
64
64
|
}, /*#__PURE__*/_react.default.createElement(_Styles.StyledValueButton, {
|
|
65
65
|
active: open,
|
|
66
66
|
value: labelText,
|
|
67
|
-
|
|
67
|
+
icon: /*#__PURE__*/_react.default.isValidElement(icon) ? icon : /*#__PURE__*/_react.default.createElement(_Styles.StyledSortIcon, null),
|
|
68
|
+
alwaysShowIcon: true,
|
|
69
|
+
title: label,
|
|
68
70
|
"data-testid": "sort-button"
|
|
69
71
|
}), /*#__PURE__*/_react.default.createElement(_Styles.StyledIconButton, {
|
|
70
72
|
active: open,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sort.js","names":["_react","_interopRequireWildcard","require","_Styles","_Menu","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","return","isArray","Sort","exports","_ref","label","icon","options","selected","onChange","target","className","_useState","useState","_useState2","open","setOpen","handleClose","useCallback","handleOpen","handleOnChange","event","nextSortBy","currentTarget","dataset","id","nextOrder","sortDirection","sortBy","_options$find","find","opt","defaultDirection","labelText","useMemo","_options$find$name","_options$find2","console","warn","createElement","Menu","onOpen","onClose","position","StyledSortWrapper","StyledValueButton","active","StyledIconButton","variant","StyledSortIcon","StyledList","map","_ref2","showDownArrow","StyledListItem","key","onClick","$active","StyledListItemName","StyledSortIconDown","StyledSortIconUp"],"sources":["../../../../src/components/Sort/Sort.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from \"react\";\n\nimport {\n StyledIconButton,\n StyledList,\n StyledListItem,\n StyledListItemName,\n StyledSortIcon,\n StyledSortIconDown,\n StyledSortIconUp,\n StyledSortWrapper,\n StyledValueButton,\n} from \"./Styles\";\nimport { Menu } from \"../Menu\";\nimport { ElementWithRef } from \"../Select\";\n\nexport type SortDirections = \"asc\" | \"desc\";\n\nexport type SortOption = {\n id: string;\n name: string;\n defaultDirection: SortDirections;\n};\n\nexport type SortObj = { sortBy: string; sortDirection: SortDirections };\n\nexport interface SortProps {\n label: string;\n icon?: React.ReactNode;\n options: SortOption[];\n selected: SortObj;\n onChange: (sort: SortObj) => void;\n target?: ElementWithRef<Element>;\n className?: string;\n}\n\nexport const Sort: React.FC<SortProps> = ({\n label,\n icon,\n options,\n selected,\n onChange,\n target,\n className,\n}) => {\n const [open, setOpen] = useState(false);\n\n const handleClose = useCallback(() => setOpen(false), []);\n const handleOpen = useCallback(() => setOpen(true), []);\n\n const handleOnChange = useCallback(\n (event: React.MouseEvent<HTMLLIElement>) => {\n const nextSortBy = event.currentTarget.dataset.id as string;\n let nextOrder: SortDirections =\n selected.sortDirection === \"desc\" ? \"asc\" : \"desc\";\n\n if (nextSortBy !== selected.sortBy) {\n nextOrder =\n options.find((opt) => opt.id === nextSortBy)?.defaultDirection ||\n \"asc\";\n }\n\n onChange({ sortBy: nextSortBy, sortDirection: nextOrder });\n },\n [onChange, selected, options]\n );\n\n const labelText = useMemo(() => {\n return options.find((opt) => opt.id === selected.sortBy)?.name ?? \"\";\n }, [selected.sortBy, options]);\n\n if (!labelText) {\n console.warn(\"Cannot find selected id in options.\");\n }\n\n return (\n <Menu\n onOpen={handleOpen}\n onClose={handleClose}\n position=\"bottom-end\"\n target={\n target || (\n <StyledSortWrapper className={className}>\n <StyledValueButton\n active={open}\n value={labelText}\n label={label}\n data-testid=\"sort-button\"\n />\n <StyledIconButton\n active={open}\n variant=\"text gray\"\n data-testid=\"sort-icon-button\"\n >\n {icon || <StyledSortIcon />}\n </StyledIconButton>\n </StyledSortWrapper>\n )\n }\n >\n <StyledList>\n {options.map(({ id, name, defaultDirection }) => {\n let showDownArrow = selected.sortDirection === \"asc\";\n\n if (selected.sortBy !== id) {\n showDownArrow = defaultDirection === \"asc\";\n }\n\n return (\n <StyledListItem\n key={id}\n onClick={handleOnChange}\n data-id={id}\n data-testid={id}\n $active={id === selected.sortBy}\n >\n <StyledListItemName>{name}</StyledListItemName>\n {showDownArrow ? <StyledSortIconDown /> : <StyledSortIconUp />}\n </StyledListItem>\n );\n })}\n </StyledList>\n </Menu>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,KAAA,GAAAF,OAAA;AAA+B,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,wBAAAI,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,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ACV,CACD;EAEtB,gBAEDlG,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAAgG,UAAU,QACR3C,OAAO,CAAC4C,GAAG,CAAC,UAAAC,KAAA,EAAoC;IAAA,IAAjC3B,EAAE,GAAA2B,KAAA,CAAF3B,EAAE;MAAEtC,IAAI,GAAAiE,KAAA,CAAJjE,IAAI;MAAE6C,gBAAgB,GAAAoB,KAAA,CAAhBpB,gBAAgB;IACxC,IAAIqB,aAAa,GAAG7C,QAAQ,CAACmB,aAAa,KAAK,KAAK;IAEpD,IAAInB,QAAQ,CAACoB,MAAM,KAAKH,EAAE,EAAE;MAC1B4B,aAAa,GAAGrB,gBAAgB,KAAK,KAAK;IAC5C;IAEA,oBACEjF,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAAoG,cAAc;MACbC,GAAG,EAAE9B,EAAG;MACR+B,OAAO,EAAEpC,cAAe;MACxB,WAASK,EAAG;MACZ,eAAaA,EAAG;MAChBgC,OAAO,EAAEhC,EAAE,KAAKjB,QAAQ,CAACoB;IAAO,gBAEhC7E,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAAwG,kBAAkB,QAAEvE,IAAyB,CAAC,EAC9CkE,aAAa,gBAAGtG,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAAyG,kBAAkB,MAAE,CAAC,gBAAG5G,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAA0G,gBAAgB,MAAE,CAC/C,CAAC;EAErB,CAAC,CACS,CACR,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Sort.js","names":["_react","_interopRequireWildcard","require","_Styles","_Menu","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","length","l","Symbol","iterator","u","next","done","push","value","return","isArray","Sort","exports","_ref","label","icon","options","selected","onChange","target","className","_useState","useState","_useState2","open","setOpen","handleClose","useCallback","handleOpen","handleOnChange","event","nextSortBy","currentTarget","dataset","id","nextOrder","sortDirection","sortBy","_options$find","find","opt","defaultDirection","labelText","useMemo","_options$find$name","_options$find2","console","warn","createElement","Menu","onOpen","onClose","position","StyledSortWrapper","StyledValueButton","active","React","isValidElement","StyledSortIcon","alwaysShowIcon","title","StyledIconButton","variant","StyledList","map","_ref2","showDownArrow","StyledListItem","key","onClick","$active","StyledListItemName","StyledSortIconDown","StyledSortIconUp"],"sources":["../../../../src/components/Sort/Sort.tsx"],"sourcesContent":["import React, { useCallback, useMemo, useState } from \"react\";\n\nimport {\n StyledIconButton,\n StyledList,\n StyledListItem,\n StyledListItemName,\n StyledSortIcon,\n StyledSortIconDown,\n StyledSortIconUp,\n StyledSortWrapper,\n StyledValueButton,\n} from \"./Styles\";\nimport { Menu } from \"../Menu\";\nimport { ElementWithRef } from \"../Select\";\n\nexport type SortDirections = \"asc\" | \"desc\";\n\nexport type SortOption = {\n id: string;\n name: string;\n defaultDirection: SortDirections;\n};\n\nexport type SortObj = { sortBy: string; sortDirection: SortDirections };\n\nexport interface SortProps {\n label: string;\n icon?: React.ReactNode;\n options: SortOption[];\n selected: SortObj;\n onChange: (sort: SortObj) => void;\n target?: ElementWithRef<Element>;\n className?: string;\n}\n\nexport const Sort: React.FC<SortProps> = ({\n label,\n icon,\n options,\n selected,\n onChange,\n target,\n className,\n}) => {\n const [open, setOpen] = useState(false);\n\n const handleClose = useCallback(() => setOpen(false), []);\n const handleOpen = useCallback(() => setOpen(true), []);\n\n const handleOnChange = useCallback(\n (event: React.MouseEvent<HTMLLIElement>) => {\n const nextSortBy = event.currentTarget.dataset.id as string;\n let nextOrder: SortDirections =\n selected.sortDirection === \"desc\" ? \"asc\" : \"desc\";\n\n if (nextSortBy !== selected.sortBy) {\n nextOrder =\n options.find((opt) => opt.id === nextSortBy)?.defaultDirection ||\n \"asc\";\n }\n\n onChange({ sortBy: nextSortBy, sortDirection: nextOrder });\n },\n [onChange, selected, options]\n );\n\n const labelText = useMemo(() => {\n return options.find((opt) => opt.id === selected.sortBy)?.name ?? \"\";\n }, [selected.sortBy, options]);\n\n if (!labelText) {\n console.warn(\"Cannot find selected id in options.\");\n }\n\n return (\n <Menu\n onOpen={handleOpen}\n onClose={handleClose}\n position=\"bottom-end\"\n target={\n target || (\n <StyledSortWrapper className={className}>\n <StyledValueButton\n active={open}\n value={labelText}\n icon={React.isValidElement(icon) ? icon : <StyledSortIcon />}\n alwaysShowIcon\n title={label}\n data-testid=\"sort-button\"\n />\n <StyledIconButton\n active={open}\n variant=\"text gray\"\n data-testid=\"sort-icon-button\"\n >\n {icon || <StyledSortIcon />}\n </StyledIconButton>\n </StyledSortWrapper>\n )\n }\n >\n <StyledList>\n {options.map(({ id, name, defaultDirection }) => {\n let showDownArrow = selected.sortDirection === \"asc\";\n\n if (selected.sortBy !== id) {\n showDownArrow = defaultDirection === \"asc\";\n }\n\n return (\n <StyledListItem\n key={id}\n onClick={handleOnChange}\n data-id={id}\n data-testid={id}\n $active={id === selected.sortBy}\n >\n <StyledListItemName>{name}</StyledListItemName>\n {showDownArrow ? <StyledSortIconDown /> : <StyledSortIconUp />}\n </StyledListItem>\n );\n })}\n </StyledList>\n </Menu>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,KAAA,GAAAF,OAAA;AAA+B,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,wBAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,C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Aa,gBAAG1G,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAA6G,kBAAkB,MAAE,CAAC,gBAAGhH,MAAA,CAAAe,OAAA,CAAAyE,aAAA,CAACrF,OAAA,CAAA8G,gBAAgB,MAAE,CAC/C,CAAC;EAErB,CAAC,CACS,CACR,CAAC;AAEX,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueButton.js","names":["_react","_interopRequireWildcard","require","_Styles","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","ValueButton","exports","forwardRef","_ref","ref","_ref$active","active","_ref$alwaysShowIcon","alwaysShowIcon","icon","label","value","args","createElement","StyledValueButton","className","variant","$active","React","cloneElement","style","display","StyledValueButtonLabel","color","weight","StyledValueButtonValue","displayName"],"sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"sourcesContent":["import React, { forwardRef, ReactElement } from \"react\";\n\nimport {\n StyledValueButton,\n StyledValueButtonLabel,\n StyledValueButtonValue,\n} from \"./Styles\";\n\nexport interface IValueButtonProps {\n /** Set active state */\n active?: boolean;\n /** Label for value */\n label?: string;\n /** Value */\n value: string;\n /** Icon */\n icon?: ReactElement;\n /** Always show icon */\n alwaysShowIcon?: boolean;\n}\n\nexport const ValueButton = forwardRef<HTMLButtonElement, IValueButtonProps>(\n (\n { active = false, alwaysShowIcon = false, icon, label, value, ...args },\n ref\n ) => {\n return (\n <StyledValueButton\n className=\"c-value-button\"\n {...args}\n ref={ref}\n variant=\"text gray\"\n $active={active}\n >\n {icon && alwaysShowIcon\n ? React.cloneElement(icon, {\n style: { display: \"inline-block\" },\n })\n : null}\n {label ? (\n <StyledValueButtonLabel\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__label\"\n >\n {label}:\n </StyledValueButtonLabel>\n ) : null}\n <StyledValueButtonValue\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__value\"\n >\n {value}\n </StyledValueButtonValue>\n </StyledValueButton>\n );\n }\n);\n\nValueButton.displayName = \"ValueButton\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAIkB,IAAAE,SAAA;AAAA,SAAAH,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,wBAAAI,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,KA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js","names":["_react","_interopRequireWildcard","require","_Styles","_excluded","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","ValueButton","exports","forwardRef","_ref","ref","_ref$active","active","_ref$alwaysShowIcon","alwaysShowIcon","icon","label","value","args","createElement","StyledValueButton","className","variant","$active","React","cloneElement","style","display","StyledValueButtonLabel","color","weight","StyledValueButtonValue","displayName"],"sources":["../../../../src/components/ValueButton/ValueButton.tsx"],"sourcesContent":["import React, { forwardRef, ReactElement } from \"react\";\n\nimport {\n StyledValueButton,\n StyledValueButtonLabel,\n StyledValueButtonValue,\n} from \"./Styles\";\n\nexport interface IValueButtonProps {\n /** Set active state */\n active?: boolean;\n /** Label for value */\n label?: string;\n /** Value */\n value: string;\n /** Icon */\n icon?: ReactElement;\n /** Always show icon */\n alwaysShowIcon?: boolean;\n /** Names the button when the icon stands in place of the label */\n title?: string;\n}\n\nexport const ValueButton = forwardRef<HTMLButtonElement, IValueButtonProps>(\n (\n { active = false, alwaysShowIcon = false, icon, label, value, ...args },\n ref\n ) => {\n return (\n <StyledValueButton\n className=\"c-value-button\"\n {...args}\n ref={ref}\n variant=\"text gray\"\n $active={active}\n >\n {icon && alwaysShowIcon\n ? React.cloneElement(icon, {\n style: { display: \"inline-block\" },\n })\n : null}\n {label ? (\n <StyledValueButtonLabel\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__label\"\n >\n {label}:\n </StyledValueButtonLabel>\n ) : null}\n <StyledValueButtonValue\n color=\"secondary\"\n weight=\"medium\"\n className=\"c-value-button__value\"\n >\n {value}\n </StyledValueButtonValue>\n </StyledValueButton>\n );\n }\n);\n\nValueButton.displayName = \"ValueButton\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;A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AAAA,mBAAA;IAAEE,IAAI,GAAAN,IAAA,CAAJM,IAAI;IAAEC,KAAK,GAAAP,IAAA,CAALO,KAAK;IAAEC,KAAK,GAAAR,IAAA,CAALQ,KAAK;IAAKC,IAAI,GAAAjB,wBAAA,CAAAQ,IAAA,EAAAnC,SAAA;EAGrE,oBACEJ,MAAA,CAAAe,OAAA,CAAAkC,aAAA,CAAC9C,OAAA,CAAA+C,iBAAiB,EAAAzB,QAAA;IAChB0B,SAAS,EAAC;EAAgB,GACtBH,IAAI;IACRR,GAAG,EAAEA,GAAI;IACTY,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAEX;EAAO,IAEfG,IAAI,IAAID,cAAc,gBACnBU,cAAK,CAACC,YAAY,CAACV,IAAI,EAAE;IACvBW,KAAK,EAAE;MAAEC,OAAO,EAAE;IAAe;EACnC,CAAC,CAAC,GACF,IAAI,EACPX,KAAK,gBACJ9C,MAAA,CAAAe,OAAA,CAAAkC,aAAA,CAAC9C,OAAA,CAAAuD,sBAAsB;IACrBC,KAAK,EAAC,WAAW;IACjBC,MAAM,EAAC,QAAQ;IACfT,SAAS,EAAC;EAAuB,GAEhCL,KAAK,EAAC,GACe,CAAC,GACvB,IAAI,eACR9C,MAAA,CAAAe,OAAA,CAAAkC,aAAA,CAAC9C,OAAA,CAAA0D,sBAAsB;IACrBF,KAAK,EAAC,WAAW;IACjBC,MAAM,EAAC,QAAQ;IACfT,SAAS,EAAC;EAAuB,GAEhCJ,KACqB,CACP,CAAC;AAExB,CACF,CAAC;AAEDX,WAAW,CAAC0B,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -982,6 +982,28 @@ Object.keys(_EmptySlate).forEach(function (key) {
|
|
|
982
982
|
}
|
|
983
983
|
});
|
|
984
984
|
});
|
|
985
|
+
var _NoResultsSlate = require("./NoResultsSlate");
|
|
986
|
+
Object.keys(_NoResultsSlate).forEach(function (key) {
|
|
987
|
+
if (key === "default" || key === "__esModule") return;
|
|
988
|
+
if (key in exports && exports[key] === _NoResultsSlate[key]) return;
|
|
989
|
+
Object.defineProperty(exports, key, {
|
|
990
|
+
enumerable: true,
|
|
991
|
+
get: function get() {
|
|
992
|
+
return _NoResultsSlate[key];
|
|
993
|
+
}
|
|
994
|
+
});
|
|
995
|
+
});
|
|
996
|
+
var _FilterInput = require("./FilterInput");
|
|
997
|
+
Object.keys(_FilterInput).forEach(function (key) {
|
|
998
|
+
if (key === "default" || key === "__esModule") return;
|
|
999
|
+
if (key in exports && exports[key] === _FilterInput[key]) return;
|
|
1000
|
+
Object.defineProperty(exports, key, {
|
|
1001
|
+
enumerable: true,
|
|
1002
|
+
get: function get() {
|
|
1003
|
+
return _FilterInput[key];
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
985
1007
|
var _Toolbar = require("./Toolbar");
|
|
986
1008
|
Object.keys(_Toolbar).forEach(function (key) {
|
|
987
1009
|
if (key === "default" || key === "__esModule") return;
|