@activecollab/components 2.0.589 → 2.0.591
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/CommandPalette/CommandPalette.js +90 -62
- package/dist/cjs/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPalette.styles.js +34 -16
- package/dist/cjs/components/CommandPalette/CommandPalette.styles.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteCommandItem.js +1 -0
- package/dist/cjs/components/CommandPalette/CommandPaletteCommandItem.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteHeader.js +40 -9
- package/dist/cjs/components/CommandPalette/CommandPaletteHeader.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteItem.js +13 -4
- package/dist/cjs/components/CommandPalette/CommandPaletteItem.js.map +1 -1
- package/dist/cjs/components/CommandPalette/CommandPaletteVirtualList.js +125 -0
- package/dist/cjs/components/CommandPalette/CommandPaletteVirtualList.js.map +1 -0
- package/dist/cjs/components/CommandPalette/context/SelectedContext.js.map +1 -1
- package/dist/cjs/components/GlobalStyle.js +1 -1
- package/dist/cjs/components/GlobalStyle.js.map +1 -1
- package/dist/cjs/components/ObjectLayout/ObjectLayout.js +5 -1
- package/dist/cjs/components/ObjectLayout/ObjectLayout.js.map +1 -1
- package/dist/cjs/components/ObjectLayout/Styles.js +17 -10
- package/dist/cjs/components/ObjectLayout/Styles.js.map +1 -1
- package/dist/cjs/components/PropertyList/PropertyList.js +12 -1
- package/dist/cjs/components/PropertyList/PropertyList.js.map +1 -1
- package/dist/cjs/components/PropertyList/Styles.js +58 -51
- package/dist/cjs/components/PropertyList/Styles.js.map +1 -1
- package/dist/cjs/components/Section/Section.js +4 -1
- package/dist/cjs/components/Section/Section.js.map +1 -1
- package/dist/cjs/components/Section/Styles.js +7 -3
- package/dist/cjs/components/Section/Styles.js.map +1 -1
- package/dist/cjs/components/TicketPerforation/TicketPerforation.js +7 -5
- package/dist/cjs/components/TicketPerforation/TicketPerforation.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.d.ts +13 -3
- package/dist/esm/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.js +77 -53
- package/dist/esm/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.styles.d.ts +9 -2
- package/dist/esm/components/CommandPalette/CommandPalette.styles.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.styles.js +30 -14
- package/dist/esm/components/CommandPalette/CommandPalette.styles.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteCommandItem.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteCommandItem.js +1 -0
- package/dist/esm/components/CommandPalette/CommandPaletteCommandItem.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.d.ts +3 -1
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.js +40 -9
- package/dist/esm/components/CommandPalette/CommandPaletteHeader.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteItem.d.ts +7 -1
- package/dist/esm/components/CommandPalette/CommandPaletteItem.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteItem.js +14 -5
- package/dist/esm/components/CommandPalette/CommandPaletteItem.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.d.ts +21 -0
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.d.ts.map +1 -0
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.js +104 -0
- package/dist/esm/components/CommandPalette/CommandPaletteVirtualList.js.map +1 -0
- package/dist/esm/components/CommandPalette/context/SelectedContext.d.ts +5 -0
- package/dist/esm/components/CommandPalette/context/SelectedContext.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/context/SelectedContext.js.map +1 -1
- 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/ObjectLayout/ObjectLayout.d.ts +2 -0
- package/dist/esm/components/ObjectLayout/ObjectLayout.d.ts.map +1 -1
- package/dist/esm/components/ObjectLayout/ObjectLayout.js +5 -1
- package/dist/esm/components/ObjectLayout/ObjectLayout.js.map +1 -1
- package/dist/esm/components/ObjectLayout/Styles.d.ts +1 -0
- package/dist/esm/components/ObjectLayout/Styles.d.ts.map +1 -1
- package/dist/esm/components/ObjectLayout/Styles.js +16 -9
- package/dist/esm/components/ObjectLayout/Styles.js.map +1 -1
- package/dist/esm/components/PropertyList/PropertyList.d.ts +6 -0
- package/dist/esm/components/PropertyList/PropertyList.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/PropertyList.js +12 -1
- package/dist/esm/components/PropertyList/PropertyList.js.map +1 -1
- package/dist/esm/components/PropertyList/Styles.d.ts +2 -0
- package/dist/esm/components/PropertyList/Styles.d.ts.map +1 -1
- package/dist/esm/components/PropertyList/Styles.js +58 -51
- package/dist/esm/components/PropertyList/Styles.js.map +1 -1
- package/dist/esm/components/Section/Section.d.ts +2 -0
- package/dist/esm/components/Section/Section.d.ts.map +1 -1
- package/dist/esm/components/Section/Section.js +4 -1
- package/dist/esm/components/Section/Section.js.map +1 -1
- package/dist/esm/components/Section/Styles.d.ts +3 -1
- package/dist/esm/components/Section/Styles.d.ts.map +1 -1
- package/dist/esm/components/Section/Styles.js +6 -2
- package/dist/esm/components/Section/Styles.js.map +1 -1
- package/dist/esm/components/TicketPerforation/TicketPerforation.d.ts +2 -0
- package/dist/esm/components/TicketPerforation/TicketPerforation.d.ts.map +1 -1
- package/dist/esm/components/TicketPerforation/TicketPerforation.js +7 -5
- package/dist/esm/components/TicketPerforation/TicketPerforation.js.map +1 -1
- package/dist/index.js +385 -166
- 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","_SwatchPalette","_themes","THEME_ROOTS","THEME_NAMES","map","name","concat","join","GlobalStyle","exports","createGlobalStyle","SWATCH_PALETTE_FILL_MIX","event","light","dark","card","label","DARK_THEME_MATCH"],"sources":["../../../src/components/GlobalStyle.ts"],"sourcesContent":["import { createGlobalStyle } from \"styled-components\";\n\nimport { SWATCH_PALETTE_FILL_MIX } from \"./SwatchPalette\";\nimport { DARK_THEME_MATCH, THEME_NAMES } from \"../utils/themes\";\n\nconst THEME_ROOTS = [\":root\", ...THEME_NAMES.map((name) => `.${name}`)].join(\n \", \"\n);\n\nexport const GlobalStyle = createGlobalStyle`\n :root {\n --text-scale: 1;\n\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: #626268;\n --color-theme-800: #5b5b61;\n --color-theme-900: #2b2b32;\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(237, 238, 240);\n --body-bg-main-transparent: rgba(237, 238, 240, 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 -24px rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.12), 0 16px 16px 0 rgba(0, 0, 0, 0.08),\n 0 4px 4px 0 rgba(0, 0, 0, 0.08), 0 2px 2px 0 rgba(0, 0, 0, 0.08);\n --shadow-primary: 0 64px 64px -24px rgba(0, 0, 0, 0.12),\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-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.2);\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.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.2);\n --shadow-tertiary-hover: 0 4px 10px -2px rgba(0, 0, 0, 0.2),\n 0 12px 20px -3px rgba(0, 0, 0, 0.4);\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: #626268;\n --alert-surface: rgba(243, 24, 72, 0.12);\n --muted-surface: #d7d7da;\n --muted-surface-text: #2b2b32;\n --stripe-pattern: #e6e6e9;\n --swatch-palette-event-mix-light: ${SWATCH_PALETTE_FILL_MIX.event.light}%;\n --swatch-palette-event-mix-dark: ${SWATCH_PALETTE_FILL_MIX.event.dark}%;\n --swatch-palette-card-mix-light: ${SWATCH_PALETTE_FILL_MIX.card.light}%;\n --swatch-palette-card-mix-dark: ${SWATCH_PALETTE_FILL_MIX.card.dark}%;\n --swatch-palette-label-mix-light: ${SWATCH_PALETTE_FILL_MIX.label.light}%;\n --swatch-palette-label-mix-dark: ${SWATCH_PALETTE_FILL_MIX.label.dark}%;\n --drop-overlay-bg: rgba(255, 255, 255, 0.93);\n\n --surface-canvas: var(--color-theme-300);\n --surface-sheet: var(--body-bg-main);\n /* A light sheet over a light page needs an edge: a hairline ring and a closer shadow over the soft drop. */\n --surface-sheet-shadow: 0 0 0 1px rgba(48, 48, 55, 0.14),\n 0 12px 32px 0 rgba(0, 0, 0, 0.12), var(--shadow-primary-simplified);\n --surface-raised: #ffffff;\n --surface-bubble: #ffffff;\n --border-raised: var(--color-theme-400);\n /* The tile behind a logo: a tint of the theme's own tone, or the solid opposite tone. */\n --identity-tile-light: color-mix(in srgb, var(--color-theme-900) 7%, transparent);\n --identity-tile-dark: var(--color-theme-900);\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-simplified);\n --success-surface: #e4f3eb;\n --green-success: #40c37d;\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.12),\n 0 6px 16px 0 rgba(0, 0, 0, 0.1);\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 --shadow-float-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.058),\n 0 6px 16px 0 rgba(0, 0, 0, 0.048);\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 /* The day and week totals of a timesheet against the daily capacity. */\n --capacity-over: #f97316;\n --capacity-under: #dc2626;\n\n --clickable-field-hover: rgba(0, 0, 0, 0.03);\n\n --only-white: #ffffff;\n\n --only-black: #000000;\n\n /* The amber scroll-to toast keeps the same colors in every theme. */\n --toast-amber-border: #ffd38b;\n --toast-amber-text: #d08b1a;\n --toast-amber-message: #fde2b9;\n --toast-amber-message-hover: #feeac0;\n --toast-amber-close: #fde2b8;\n --toast-amber-close-hover: #feeac8;\n --shadow-toast: 0 2px 4px 1px rgba(0, 0, 0, 0.1);\n\n --ac-br-3: 3px;\n\n --ac-br-4: 4px;\n\n --ac-br-6: 6px;\n\n --ac-br-8: 8px;\n\n --ac-br-10: 10px;\n\n --ac-br-12: 12px;\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(31, 32, 39);\n --body-bg-main-transparent: rgba(31, 32, 39, 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 -24px 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 -24px 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 --shadow-primary-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.36);\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-sheet-shadow: var(--shadow-primary-simplified);\n --surface-raised: #353840;\n --surface-bubble: #32353d;\n --border-raised: #44474e;\n --identity-tile-light: var(--color-theme-900);\n --identity-tile-dark: color-mix(in srgb, var(--color-theme-100) 30%, transparent);\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-simplified);\n --success-surface: #3c4d4c;\n --green-success: #40c37d;\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 --shadow-float-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\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(27, 29, 37);\n --body-bg-main-transparent: rgba(27, 29, 37, 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 -24px 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 -24px 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 --shadow-primary-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.36);\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-sheet-shadow: var(--shadow-primary-simplified);\n --surface-raised: #323541;\n --surface-bubble: #2f323f;\n --border-raised: #40434e;\n --identity-tile-light: var(--color-theme-900);\n --identity-tile-dark: color-mix(in srgb, var(--color-theme-100) 30%, transparent);\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-simplified);\n --success-surface: #394a4c;\n --green-success: #40c37d;\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 --shadow-float-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\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(27, 30, 36);\n --body-bg-main-transparent: rgba(27, 30, 36, 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 -24px 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 -24px 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 --shadow-primary-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.36);\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-sheet-shadow: var(--shadow-primary-simplified);\n --surface-raised: #2e333c;\n --surface-bubble: #2b2f37;\n --border-raised: #3a3e46;\n --identity-tile-light: var(--color-theme-900);\n --identity-tile-dark: color-mix(in srgb, var(--color-theme-100) 30%, transparent);\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-simplified);\n --success-surface: #364948;\n --green-success: #40c37d;\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 --shadow-float-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\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 /* The line between two list rows, and the stronger line under a list header. */\n ${THEME_ROOTS} {\n --new-list-line: var(--color-theme-300);\n --new-list-header-line: var(--border-primary);\n /* The outline of a task list card band, and the surface of a completed card of the column view. */\n --new-band-outline: var(--new-list-line);\n --column-completed-card: #f3fffc;\n /* The default fill of an icon. Dark themes take one shade lighter. */\n --color-icon-default: var(--color-theme-600);\n }\n\n @supports (color: light-dark(red, red)) {\n ${THEME_ROOTS} {\n --new-list-line: light-dark(\n var(--color-theme-300),\n color-mix(in srgb, var(--color-theme-transparent-500) 17%, transparent)\n );\n --new-list-header-line: light-dark(\n var(--border-primary),\n color-mix(in srgb, var(--color-theme-transparent-500) 22%, transparent)\n );\n --new-band-outline: light-dark(var(--new-list-line), transparent);\n --column-completed-card: light-dark(\n #f3fffc,\n var(--color-primary-opaque-200)\n );\n --color-icon-default: light-dark(\n var(--color-theme-600),\n var(--color-theme-700)\n );\n }\n }\n\n .ac-shadow,\n .ac-shadow--raised {\n &--lg {\n box-shadow: var(--shadow-primary-simplified);\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-simplified);\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-simplified);\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: calc(0.75rem * var(--text-scale, 1));\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,cAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAMG,WAAW,GAAG,CAAC,OAAO,EAAE,GAAGC,mBAAW,CAACC,GAAG,CAAC,UAACC,IAAI;EAAA,WAAAC,MAAA,CAASD,IAAI;AAAA,CAAE,CAAC,CAAC,CAACE,IAAI,CAC1E,IACF,CAAC;AAEM,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,OAAGE,mCAAiB,qstBAoJJC,sCAAuB,CAACC,KAAK,CAACC,KAAK,EACpCF,sCAAuB,CAACC,KAAK,CAACE,IAAI,EAClCH,sCAAuB,CAACI,IAAI,CAACF,KAAK,EACnCF,sCAAuB,CAACI,IAAI,CAACD,IAAI,EAC/BH,sCAAuB,CAACK,KAAK,CAACH,KAAK,EACpCF,sCAAuB,CAACK,KAAK,CAACF,IAAI,EAghBlEG,wBAAgB,EAUnBf,WAAW,EAWTA,WAAW,CAoPhB","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"GlobalStyle.js","names":["_styledComponents","require","_SwatchPalette","_themes","THEME_ROOTS","THEME_NAMES","map","name","concat","join","GlobalStyle","exports","createGlobalStyle","SWATCH_PALETTE_FILL_MIX","event","light","dark","card","label","DARK_THEME_MATCH"],"sources":["../../../src/components/GlobalStyle.ts"],"sourcesContent":["import { createGlobalStyle } from \"styled-components\";\n\nimport { SWATCH_PALETTE_FILL_MIX } from \"./SwatchPalette\";\nimport { DARK_THEME_MATCH, THEME_NAMES } from \"../utils/themes\";\n\nconst THEME_ROOTS = [\":root\", ...THEME_NAMES.map((name) => `.${name}`)].join(\n \", \"\n);\n\nexport const GlobalStyle = createGlobalStyle`\n :root {\n --text-scale: 1;\n\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: #626268;\n --color-theme-800: #5b5b61;\n --color-theme-900: #2b2b32;\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(237, 238, 240);\n --body-bg-main-transparent: rgba(237, 238, 240, 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 -24px rgba(0, 0, 0, 0.2),\n 0 32px 32px 0 rgba(0, 0, 0, 0.12), 0 16px 16px 0 rgba(0, 0, 0, 0.08),\n 0 4px 4px 0 rgba(0, 0, 0, 0.08), 0 2px 2px 0 rgba(0, 0, 0, 0.08);\n --shadow-primary: 0 64px 64px -24px rgba(0, 0, 0, 0.12),\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-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.2);\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.1),\n 0 10px 15px -3px rgba(0, 0, 0, 0.2);\n --shadow-tertiary-hover: 0 4px 10px -2px rgba(0, 0, 0, 0.2),\n 0 12px 20px -3px rgba(0, 0, 0, 0.4);\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: #626268;\n --alert-surface: rgba(243, 24, 72, 0.12);\n --muted-surface: #d7d7da;\n --muted-surface-text: #2b2b32;\n --stripe-pattern: #e6e6e9;\n --swatch-palette-event-mix-light: ${SWATCH_PALETTE_FILL_MIX.event.light}%;\n --swatch-palette-event-mix-dark: ${SWATCH_PALETTE_FILL_MIX.event.dark}%;\n --swatch-palette-card-mix-light: ${SWATCH_PALETTE_FILL_MIX.card.light}%;\n --swatch-palette-card-mix-dark: ${SWATCH_PALETTE_FILL_MIX.card.dark}%;\n --swatch-palette-label-mix-light: ${SWATCH_PALETTE_FILL_MIX.label.light}%;\n --swatch-palette-label-mix-dark: ${SWATCH_PALETTE_FILL_MIX.label.dark}%;\n --drop-overlay-bg: rgba(255, 255, 255, 0.93);\n\n --surface-canvas: var(--color-theme-300);\n --surface-sheet: var(--body-bg-main);\n /* A light sheet over a light page needs an edge: a hairline ring and a closer shadow over the soft drop. */\n --surface-sheet-shadow: 0 0 0 1px rgba(48, 48, 55, 0.14),\n 0 12px 32px 0 rgba(0, 0, 0, 0.12), var(--shadow-primary-simplified);\n --surface-raised: #ffffff;\n --surface-bubble: #ffffff;\n --border-raised: var(--color-theme-400);\n /* The tile behind a logo: a tint of the theme's own tone, or the solid opposite tone. */\n --identity-tile-light: color-mix(in srgb, var(--color-theme-900) 7%, transparent);\n --identity-tile-dark: var(--color-theme-900);\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-simplified);\n --success-surface: #e4f3eb;\n --green-success: #40c37d;\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.12),\n 0 6px 16px 0 rgba(0, 0, 0, 0.1);\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 --shadow-float-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.058),\n 0 6px 16px 0 rgba(0, 0, 0, 0.048);\n --shadow-float-flat: 0 6px 16px 0 rgba(0, 0, 0, 0.048);\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 /* The day and week totals of a timesheet against the daily capacity. */\n --capacity-over: #f97316;\n --capacity-under: #dc2626;\n\n --clickable-field-hover: rgba(0, 0, 0, 0.03);\n\n --only-white: #ffffff;\n\n --only-black: #000000;\n\n /* The amber scroll-to toast keeps the same colors in every theme. */\n --toast-amber-border: #ffd38b;\n --toast-amber-text: #d08b1a;\n --toast-amber-message: #fde2b9;\n --toast-amber-message-hover: #feeac0;\n --toast-amber-close: #fde2b8;\n --toast-amber-close-hover: #feeac8;\n --shadow-toast: 0 2px 4px 1px rgba(0, 0, 0, 0.1);\n\n --ac-br-3: 3px;\n\n --ac-br-4: 4px;\n\n --ac-br-6: 6px;\n\n --ac-br-8: 8px;\n\n --ac-br-10: 10px;\n\n --ac-br-12: 12px;\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(31, 32, 39);\n --body-bg-main-transparent: rgba(31, 32, 39, 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 -24px 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 -24px 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 --shadow-primary-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.36);\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-sheet-shadow: var(--shadow-primary-simplified);\n --surface-raised: #353840;\n --surface-bubble: #32353d;\n --border-raised: #44474e;\n --identity-tile-light: var(--color-theme-900);\n --identity-tile-dark: color-mix(in srgb, var(--color-theme-100) 30%, transparent);\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-simplified);\n --success-surface: #3c4d4c;\n --green-success: #40c37d;\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 --shadow-float-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\n --shadow-float-flat: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\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(27, 29, 37);\n --body-bg-main-transparent: rgba(27, 29, 37, 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 -24px 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 -24px 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 --shadow-primary-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.36);\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-sheet-shadow: var(--shadow-primary-simplified);\n --surface-raised: #323541;\n --surface-bubble: #2f323f;\n --border-raised: #40434e;\n --identity-tile-light: var(--color-theme-900);\n --identity-tile-dark: color-mix(in srgb, var(--color-theme-100) 30%, transparent);\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-simplified);\n --success-surface: #394a4c;\n --green-success: #40c37d;\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 --shadow-float-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\n --shadow-float-flat: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\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(27, 30, 36);\n --body-bg-main-transparent: rgba(27, 30, 36, 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 -24px 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 -24px 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 --shadow-primary-simplified: 0 24px 48px -8px rgba(0, 0, 0, 0.36);\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-sheet-shadow: var(--shadow-primary-simplified);\n --surface-raised: #2e333c;\n --surface-bubble: #2b2f37;\n --border-raised: #3a3e46;\n --identity-tile-light: var(--color-theme-900);\n --identity-tile-dark: color-mix(in srgb, var(--color-theme-100) 30%, transparent);\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-simplified);\n --success-surface: #364948;\n --green-success: #40c37d;\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 --shadow-float-soft: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\n --shadow-float-flat: 0 4px 14px 0 rgba(0, 0, 0, 0.144);\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 /* The line between two list rows, and the stronger line under a list header. */\n ${THEME_ROOTS} {\n --new-list-line: var(--color-theme-300);\n --new-list-header-line: var(--border-primary);\n /* The outline of a task list card band, and the surface of a completed card of the column view. */\n --new-band-outline: var(--new-list-line);\n --column-completed-card: #f3fffc;\n /* The default fill of an icon. Dark themes take one shade lighter. */\n --color-icon-default: var(--color-theme-600);\n }\n\n @supports (color: light-dark(red, red)) {\n ${THEME_ROOTS} {\n --new-list-line: light-dark(\n var(--color-theme-300),\n color-mix(in srgb, var(--color-theme-transparent-500) 17%, transparent)\n );\n --new-list-header-line: light-dark(\n var(--border-primary),\n color-mix(in srgb, var(--color-theme-transparent-500) 22%, transparent)\n );\n --new-band-outline: light-dark(var(--new-list-line), transparent);\n --column-completed-card: light-dark(\n #f3fffc,\n var(--color-primary-opaque-200)\n );\n --color-icon-default: light-dark(\n var(--color-theme-600),\n var(--color-theme-700)\n );\n }\n }\n\n .ac-shadow,\n .ac-shadow--raised {\n &--lg {\n box-shadow: var(--shadow-primary-simplified);\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-simplified);\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-simplified);\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: calc(0.75rem * var(--text-scale, 1));\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,cAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAMG,WAAW,GAAG,CAAC,OAAO,EAAE,GAAGC,mBAAW,CAACC,GAAG,CAAC,UAACC,IAAI;EAAA,WAAAC,MAAA,CAASD,IAAI;AAAA,CAAE,CAAC,CAAC,CAACE,IAAI,CAC1E,IACF,CAAC;AAEM,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,OAAGE,mCAAiB,i5tBAoJJC,sCAAuB,CAACC,KAAK,CAACC,KAAK,EACpCF,sCAAuB,CAACC,KAAK,CAACE,IAAI,EAClCH,sCAAuB,CAACI,IAAI,CAACF,KAAK,EACnCF,sCAAuB,CAACI,IAAI,CAACD,IAAI,EAC/BH,sCAAuB,CAACK,KAAK,CAACH,KAAK,EACpCF,sCAAuB,CAACK,KAAK,CAACF,IAAI,EAohBlEG,wBAAgB,EAUnBf,WAAW,EAWTA,WAAW,CAoPhB","ignoreList":[]}
|
|
@@ -9,7 +9,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _Styles = require("./Styles");
|
|
10
10
|
var _hooks = require("../../hooks");
|
|
11
11
|
var _useContainerCss = require("../../utils/useContainerCss");
|
|
12
|
-
var _excluded = ["topBar", "band", "properties", "main", "rail", "stream", "panel", "panelWidth", "panelMin", "panelMax", "mainMin", "onPanelWidthChange", "onPanelWidthReset", "resizeLabel", "ownScroll", "resetKey", "gap", "softShadow", "className", "data-testid"];
|
|
12
|
+
var _excluded = ["topBar", "band", "properties", "main", "rail", "stream", "panel", "panelWidth", "panelMin", "panelMax", "mainMin", "onPanelWidthChange", "onPanelWidthReset", "resizeLabel", "ownScroll", "resetKey", "gap", "softShadow", "flat", "className", "data-testid"];
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
14
|
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); }
|
|
15
15
|
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); }
|
|
@@ -87,6 +87,8 @@ var ObjectLayout = exports.ObjectLayout = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
87
87
|
gap = _ref.gap,
|
|
88
88
|
_ref$softShadow = _ref.softShadow,
|
|
89
89
|
softShadow = _ref$softShadow === void 0 ? false : _ref$softShadow,
|
|
90
|
+
_ref$flat = _ref.flat,
|
|
91
|
+
flat = _ref$flat === void 0 ? false : _ref$flat,
|
|
90
92
|
className = _ref.className,
|
|
91
93
|
testId = _ref["data-testid"],
|
|
92
94
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -128,6 +130,7 @@ var ObjectLayout = exports.ObjectLayout = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
128
130
|
$fill: ownScroll,
|
|
129
131
|
$gap: gap,
|
|
130
132
|
$softShadow: softShadow,
|
|
133
|
+
$flat: flat,
|
|
131
134
|
"data-object-layout": "",
|
|
132
135
|
"data-testid": testId,
|
|
133
136
|
className: (0, _classnames.default)("c-object-layout c-object-layout--panel", {
|
|
@@ -167,6 +170,7 @@ var ObjectLayout = exports.ObjectLayout = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
167
170
|
$fill: false,
|
|
168
171
|
$gap: gap,
|
|
169
172
|
$softShadow: softShadow,
|
|
173
|
+
$flat: flat,
|
|
170
174
|
"data-object-layout": "",
|
|
171
175
|
"data-testid": testId,
|
|
172
176
|
onPointerDownCapture: freeze,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectLayout.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_hooks","_useContainerCss","_excluded","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","Symbol","iterator","u","next","done","push","value","return","isArray","useOpeningRailHeight","resetKey","railRef","useRef","isFrozen","_useState","useState","_useState2","height","setHeight","useEffect","rail","current","measure","offsetHeight","ResizeObserver","undefined","observer","observe","disconnect","freeze","useCallback","noChange","ObjectLayout","exports","forwardRef","_ref","ref","topBar","band","properties","main","stream","panel","_ref$panelWidth","panelWidth","_ref$panelMin","panelMin","_ref$panelMax","panelMax","_ref$mainMin","mainMin","onPanelWidthChange","onPanelWidthReset","_ref$resizeLabel","resizeLabel","_ref$ownScroll","ownScroll","gap","_ref$softShadow","softShadow","className","testId","rest","useContainerCss","CONTAINER_CSS","hasPanel","hasRail","_useOpeningRailHeight","_useResizablePanel","useResizablePanel","side","width","clampPanelWidth","min","max","onChange","onReset","handleProps","part","concat","header","createElement","StyledHeader","$panel","StyledTopBar","bandNode","StyledBand","StyledObjectLayout","$fill","$gap","$softShadow","classnames","StyledSplit","$ownScroll","style","StyledPart","StyledPartColumns","StyledProperties","StyledMain","$padded","StyledPanel","StyledPanelHandle","label","onPointerDownCapture","onKeyDownCapture","StyledColumns","StyledLeft","StyledStream","StyledRail","displayName"],"sources":["../../../../src/components/ObjectLayout/ObjectLayout.tsx"],"sourcesContent":["import React, {\n CSSProperties,\n HTMLAttributes,\n ReactNode,\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n StyledBand,\n StyledColumns,\n StyledHeader,\n StyledLeft,\n StyledMain,\n StyledObjectLayout,\n StyledPanel,\n StyledPanelHandle,\n StyledPart,\n StyledPartColumns,\n StyledProperties,\n StyledRail,\n StyledSplit,\n StyledStream,\n StyledTopBar,\n} from \"./Styles\";\nimport { clampPanelWidth, useResizablePanel } from \"../../hooks\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\n\nexport interface IObjectLayoutProps extends HTMLAttributes<HTMLDivElement> {\n /** Sticky bar at the top edge. */\n topBar?: ReactNode;\n /** Sticky band under the top bar, for the title. */\n band?: ReactNode;\n /** A block above the main content. */\n properties?: ReactNode;\n main?: ReactNode;\n /** The 300px right column. Without a rail and a panel the layout has one column. */\n rail?: ReactNode;\n /** Rail mode: content after the main column that can hold a part on the bottom edge. */\n stream?: ReactNode;\n /** Replaces the rail with a panel at the full height of the layout. */\n panel?: ReactNode;\n panelWidth?: number;\n panelMin?: number;\n panelMax?: number;\n /** The width the main part keeps beside the panel. */\n mainMin?: number;\n /** With it the panel has a resize handle. Called with a whole pixel. */\n onPanelWidthChange?: (width: number) => void;\n /** A double click on the resize handle. */\n onPanelWidthReset?: () => void;\n /** The accessible name of the resize handle. */\n resizeLabel?: string;\n /** Panel mode: the layout has the height of its parent and the main part scrolls by itself. */\n ownScroll?: boolean;\n /** Rail mode: a new value measures the opening height of the rail again. */\n resetKey?: string | number;\n /** The space in pixels between the blocks of every column. Without it the main column has 24px and the others 16px. */\n gap?: number;\n /** Gives the cards in the layout a softer float shadow. */\n softShadow?: boolean;\n \"data-testid\"?: string;\n}\n\n// The height of the rail as the object opens. It stops to follow the rail at the first action of the user.\nconst useOpeningRailHeight = (resetKey?: string | number) => {\n const railRef = useRef<HTMLDivElement>(null);\n const isFrozen = useRef(false);\n const [height, setHeight] = useState(0);\n\n useEffect(() => {\n const rail = railRef.current;\n\n isFrozen.current = false;\n\n const measure = () => {\n if (rail && !isFrozen.current) {\n setHeight(rail.offsetHeight);\n }\n };\n\n measure();\n\n if (!rail || typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n // eslint-disable-next-line compat/compat\n const observer = new ResizeObserver(measure);\n\n observer.observe(rail);\n\n return () => observer.disconnect();\n }, [resetKey]);\n\n const freeze = useCallback(() => {\n isFrozen.current = true;\n }, []);\n\n return { railRef, height, freeze };\n};\n\nconst noChange = () => undefined;\n\nexport const ObjectLayout = forwardRef<HTMLDivElement, IObjectLayoutProps>(\n (\n {\n topBar,\n band,\n properties,\n main,\n rail,\n stream,\n panel,\n panelWidth = 600,\n panelMin = 300,\n panelMax = 750,\n mainMin = 550,\n onPanelWidthChange,\n onPanelWidthReset,\n resizeLabel = \"Resize panel\",\n ownScroll = false,\n resetKey,\n gap,\n softShadow = false,\n className,\n \"data-testid\": testId,\n ...rest\n },\n ref\n ) => {\n useContainerCss(\"c-object-layout-container\", CONTAINER_CSS);\n\n const hasPanel = panel !== undefined && panel !== null;\n const hasRail = rail !== undefined && rail !== null;\n const { railRef, height, freeze } = useOpeningRailHeight(resetKey);\n const { width, handleProps } = useResizablePanel({\n side: \"right\",\n width: clampPanelWidth(panelWidth, panelMin, panelMax),\n min: panelMin,\n max: panelMax,\n onChange: onPanelWidthChange ?? noChange,\n onReset: onPanelWidthReset,\n });\n const part = (name: string) => (testId ? `${testId}-${name}` : undefined);\n\n const header = topBar ? (\n <StyledHeader\n $panel={hasPanel}\n className=\"c-object-layout__header\"\n data-testid={part(\"header\")}\n >\n <StyledTopBar data-testid={part(\"top-bar\")}>{topBar}</StyledTopBar>\n </StyledHeader>\n ) : null;\n\n const bandNode = band ? (\n <StyledBand\n className=\"c-object-layout__band\"\n data-object-layout-band=\"\"\n data-testid={part(\"band\")}\n >\n {band}\n </StyledBand>\n ) : null;\n\n if (hasPanel) {\n return (\n <StyledObjectLayout\n {...rest}\n ref={ref}\n $fill={ownScroll}\n $gap={gap}\n $softShadow={softShadow}\n data-object-layout=\"\"\n data-testid={testId}\n className={classnames(\n \"c-object-layout c-object-layout--panel\",\n { \"c-object-layout--own-scroll\": ownScroll },\n className\n )}\n >\n <StyledSplit\n $ownScroll={ownScroll}\n className=\"c-object-layout__split\"\n style={\n {\n \"--panel-width\": `${width}px`,\n \"--main-min\": `${mainMin}px`,\n } as CSSProperties\n }\n data-testid={part(\"split\")}\n >\n <StyledPart\n className=\"c-object-layout__part\"\n data-testid={part(\"part\")}\n >\n {header}\n {bandNode}\n <StyledPartColumns\n className=\"c-object-layout__part-columns\"\n data-testid={part(\"columns\")}\n >\n {properties ? (\n <StyledProperties data-testid={part(\"properties\")}>\n {properties}\n </StyledProperties>\n ) : null}\n <StyledMain\n $padded\n className=\"c-object-layout__main\"\n data-testid={part(\"main\")}\n >\n {main}\n </StyledMain>\n </StyledPartColumns>\n </StyledPart>\n <StyledPanel\n className=\"c-object-layout__panel\"\n data-testid={part(\"rail\")}\n >\n {onPanelWidthChange ? (\n <StyledPanelHandle\n {...handleProps}\n label={resizeLabel}\n className=\"c-object-layout__handle\"\n data-testid={part(\"resize\")}\n />\n ) : null}\n {panel}\n </StyledPanel>\n </StyledSplit>\n </StyledObjectLayout>\n );\n }\n\n return (\n <StyledObjectLayout\n {...rest}\n ref={ref}\n $fill={false}\n $gap={gap}\n $softShadow={softShadow}\n data-object-layout=\"\"\n data-testid={testId}\n onPointerDownCapture={freeze}\n onKeyDownCapture={freeze}\n className={classnames(\n \"c-object-layout\",\n { \"c-object-layout--single\": !hasRail },\n className\n )}\n >\n {header}\n {bandNode}\n <StyledColumns\n className=\"c-object-layout__columns\"\n data-testid={part(\"columns\")}\n >\n <StyledLeft\n className=\"c-object-layout__left\"\n style={{ \"--opening-rail-height\": `${height}px` } as CSSProperties}\n data-testid={part(\"left\")}\n >\n {properties ? (\n <StyledProperties data-testid={part(\"properties\")}>\n {properties}\n </StyledProperties>\n ) : null}\n <StyledMain\n $padded={!stream}\n className=\"c-object-layout__main\"\n data-testid={part(\"main\")}\n >\n {main}\n </StyledMain>\n <StyledStream data-testid={part(\"stream\")}>{stream}</StyledStream>\n </StyledLeft>\n {hasRail ? (\n <StyledRail\n ref={railRef}\n className=\"c-object-layout__rail\"\n data-testid={part(\"rail\")}\n >\n {rail}\n </StyledRail>\n ) : null}\n </StyledColumns>\n </StyledObjectLayout>\n );\n }\n);\n\nObjectLayout.displayName = \"ObjectLayout\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAkBA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAA8D,IAAAM,SAAA;AAAA,SAAAJ,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,wBAAAQ,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,Q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AAQ,eACT7I,MAAA,CAAAW,OAAA,CAAA8H,aAAA,CAACpI,OAAA,CAAA4J,aAAa;IACZ7C,SAAS,EAAC,0BAA0B;IACpC,eAAakB,IAAI,CAAC,SAAS;EAAE,gBAE7BtI,MAAA,CAAAW,OAAA,CAAA8H,aAAA,CAACpI,OAAA,CAAA6J,UAAU;IACT9C,SAAS,EAAC,uBAAuB;IACjCkC,KAAK,EAAE;MAAE,uBAAuB,KAAAf,MAAA,CAAK9D,MAAM;IAAK,CAAmB;IACnE,eAAa6D,IAAI,CAAC,MAAM;EAAE,GAEzBvC,UAAU,gBACT/F,MAAA,CAAAW,OAAA,CAAA8H,aAAA,CAACpI,OAAA,CAAAoJ,gBAAgB;IAAC,eAAanB,IAAI,CAAC,YAAY;EAAE,GAC/CvC,UACe,CAAC,GACjB,IAAI,eACR/F,MAAA,CAAAW,OAAA,CAAA8H,aAAA,CAACpI,OAAA,CAAAqJ,UAAU;IACTC,OAAO,EAAE,CAAC1D,MAAO;IACjBmB,SAAS,EAAC,uBAAuB;IACjC,eAAakB,IAAI,CAAC,MAAM;EAAE,GAEzBtC,IACS,CAAC,eACbhG,MAAA,CAAAW,OAAA,CAAA8H,aAAA,CAACpI,OAAA,CAAA8J,YAAY;IAAC,eAAa7B,IAAI,CAAC,QAAQ;EAAE,GAAErC,MAAqB,CACvD,CAAC,EACZyB,OAAO,gBACN1H,MAAA,CAAAW,OAAA,CAAA8H,aAAA,CAACpI,OAAA,CAAA+J,UAAU;IACTxE,GAAG,EAAEzB,OAAQ;IACbiD,SAAS,EAAC,uBAAuB;IACjC,eAAakB,IAAI,CAAC,MAAM;EAAE,GAEzB1D,IACS,CAAC,GACX,IACS,CACG,CAAC;AAEzB,CACF,CAAC;AAEDY,YAAY,CAAC6E,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ObjectLayout.js","names":["_react","_interopRequireWildcard","require","_classnames","_interopRequireDefault","_Styles","_hooks","_useContainerCss","_excluded","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_extends","assign","bind","arguments","length","apply","_objectWithoutProperties","_objectWithoutPropertiesLoose","getOwnPropertySymbols","indexOf","propertyIsEnumerable","_slicedToArray","_arrayWithHoles","_iterableToArrayLimit","_unsupportedIterableToArray","_nonIterableRest","TypeError","a","_arrayLikeToArray","toString","slice","constructor","name","Array","from","test","l","Symbol","iterator","u","next","done","push","value","return","isArray","useOpeningRailHeight","resetKey","railRef","useRef","isFrozen","_useState","useState","_useState2","height","setHeight","useEffect","rail","current","measure","offsetHeight","ResizeObserver","undefined","observer","observe","disconnect","freeze","useCallback","noChange","ObjectLayout","exports","forwardRef","_ref","ref","topBar","band","properties","main","stream","panel","_ref$panelWidth","panelWidth","_ref$panelMin","panelMin","_ref$panelMax","panelMax","_ref$mainMin","mainMin","onPanelWidthChange","onPanelWidthReset","_ref$resizeLabel","resizeLabel","_ref$ownScroll","ownScroll","gap","_ref$softShadow","softShadow","_ref$flat","flat","className","testId","rest","useContainerCss","CONTAINER_CSS","hasPanel","hasRail","_useOpeningRailHeight","_useResizablePanel","useResizablePanel","side","width","clampPanelWidth","min","max","onChange","onReset","handleProps","part","concat","header","createElement","StyledHeader","$panel","StyledTopBar","bandNode","StyledBand","StyledObjectLayout","$fill","$gap","$softShadow","$flat","classnames","StyledSplit","$ownScroll","style","StyledPart","StyledPartColumns","StyledProperties","StyledMain","$padded","StyledPanel","StyledPanelHandle","label","onPointerDownCapture","onKeyDownCapture","StyledColumns","StyledLeft","StyledStream","StyledRail","displayName"],"sources":["../../../../src/components/ObjectLayout/ObjectLayout.tsx"],"sourcesContent":["import React, {\n CSSProperties,\n HTMLAttributes,\n ReactNode,\n forwardRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport classnames from \"classnames\";\n\nimport {\n CONTAINER_CSS,\n StyledBand,\n StyledColumns,\n StyledHeader,\n StyledLeft,\n StyledMain,\n StyledObjectLayout,\n StyledPanel,\n StyledPanelHandle,\n StyledPart,\n StyledPartColumns,\n StyledProperties,\n StyledRail,\n StyledSplit,\n StyledStream,\n StyledTopBar,\n} from \"./Styles\";\nimport { clampPanelWidth, useResizablePanel } from \"../../hooks\";\nimport { useContainerCss } from \"../../utils/useContainerCss\";\n\nexport interface IObjectLayoutProps extends HTMLAttributes<HTMLDivElement> {\n /** Sticky bar at the top edge. */\n topBar?: ReactNode;\n /** Sticky band under the top bar, for the title. */\n band?: ReactNode;\n /** A block above the main content. */\n properties?: ReactNode;\n main?: ReactNode;\n /** The 300px right column. Without a rail and a panel the layout has one column. */\n rail?: ReactNode;\n /** Rail mode: content after the main column that can hold a part on the bottom edge. */\n stream?: ReactNode;\n /** Replaces the rail with a panel at the full height of the layout. */\n panel?: ReactNode;\n panelWidth?: number;\n panelMin?: number;\n panelMax?: number;\n /** The width the main part keeps beside the panel. */\n mainMin?: number;\n /** With it the panel has a resize handle. Called with a whole pixel. */\n onPanelWidthChange?: (width: number) => void;\n /** A double click on the resize handle. */\n onPanelWidthReset?: () => void;\n /** The accessible name of the resize handle. */\n resizeLabel?: string;\n /** Panel mode: the layout has the height of its parent and the main part scrolls by itself. */\n ownScroll?: boolean;\n /** Rail mode: a new value measures the opening height of the rail again. */\n resetKey?: string | number;\n /** The space in pixels between the blocks of every column. Without it the main column has 24px and the others 16px. */\n gap?: number;\n /** Gives the cards in the layout a softer float shadow. */\n softShadow?: boolean;\n /** The sheet and its cards share one color, with a flat float shadow. A Section or a PropertyList with solid keeps the raised color. */\n flat?: boolean;\n \"data-testid\"?: string;\n}\n\n// The height of the rail as the object opens. It stops to follow the rail at the first action of the user.\nconst useOpeningRailHeight = (resetKey?: string | number) => {\n const railRef = useRef<HTMLDivElement>(null);\n const isFrozen = useRef(false);\n const [height, setHeight] = useState(0);\n\n useEffect(() => {\n const rail = railRef.current;\n\n isFrozen.current = false;\n\n const measure = () => {\n if (rail && !isFrozen.current) {\n setHeight(rail.offsetHeight);\n }\n };\n\n measure();\n\n if (!rail || typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n // eslint-disable-next-line compat/compat\n const observer = new ResizeObserver(measure);\n\n observer.observe(rail);\n\n return () => observer.disconnect();\n }, [resetKey]);\n\n const freeze = useCallback(() => {\n isFrozen.current = true;\n }, []);\n\n return { railRef, height, freeze };\n};\n\nconst noChange = () => undefined;\n\nexport const ObjectLayout = forwardRef<HTMLDivElement, IObjectLayoutProps>(\n (\n {\n topBar,\n band,\n properties,\n main,\n rail,\n stream,\n panel,\n panelWidth = 600,\n panelMin = 300,\n panelMax = 750,\n mainMin = 550,\n onPanelWidthChange,\n onPanelWidthReset,\n resizeLabel = \"Resize panel\",\n ownScroll = false,\n resetKey,\n gap,\n softShadow = false,\n flat = false,\n className,\n \"data-testid\": testId,\n ...rest\n },\n ref\n ) => {\n useContainerCss(\"c-object-layout-container\", CONTAINER_CSS);\n\n const hasPanel = panel !== undefined && panel !== null;\n const hasRail = rail !== undefined && rail !== null;\n const { railRef, height, freeze } = useOpeningRailHeight(resetKey);\n const { width, handleProps } = useResizablePanel({\n side: \"right\",\n width: clampPanelWidth(panelWidth, panelMin, panelMax),\n min: panelMin,\n max: panelMax,\n onChange: onPanelWidthChange ?? noChange,\n onReset: onPanelWidthReset,\n });\n const part = (name: string) => (testId ? `${testId}-${name}` : undefined);\n\n const header = topBar ? (\n <StyledHeader\n $panel={hasPanel}\n className=\"c-object-layout__header\"\n data-testid={part(\"header\")}\n >\n <StyledTopBar data-testid={part(\"top-bar\")}>{topBar}</StyledTopBar>\n </StyledHeader>\n ) : null;\n\n const bandNode = band ? (\n <StyledBand\n className=\"c-object-layout__band\"\n data-object-layout-band=\"\"\n data-testid={part(\"band\")}\n >\n {band}\n </StyledBand>\n ) : null;\n\n if (hasPanel) {\n return (\n <StyledObjectLayout\n {...rest}\n ref={ref}\n $fill={ownScroll}\n $gap={gap}\n $softShadow={softShadow}\n $flat={flat}\n data-object-layout=\"\"\n data-testid={testId}\n className={classnames(\n \"c-object-layout c-object-layout--panel\",\n { \"c-object-layout--own-scroll\": ownScroll },\n className\n )}\n >\n <StyledSplit\n $ownScroll={ownScroll}\n className=\"c-object-layout__split\"\n style={\n {\n \"--panel-width\": `${width}px`,\n \"--main-min\": `${mainMin}px`,\n } as CSSProperties\n }\n data-testid={part(\"split\")}\n >\n <StyledPart\n className=\"c-object-layout__part\"\n data-testid={part(\"part\")}\n >\n {header}\n {bandNode}\n <StyledPartColumns\n className=\"c-object-layout__part-columns\"\n data-testid={part(\"columns\")}\n >\n {properties ? (\n <StyledProperties data-testid={part(\"properties\")}>\n {properties}\n </StyledProperties>\n ) : null}\n <StyledMain\n $padded\n className=\"c-object-layout__main\"\n data-testid={part(\"main\")}\n >\n {main}\n </StyledMain>\n </StyledPartColumns>\n </StyledPart>\n <StyledPanel\n className=\"c-object-layout__panel\"\n data-testid={part(\"rail\")}\n >\n {onPanelWidthChange ? (\n <StyledPanelHandle\n {...handleProps}\n label={resizeLabel}\n className=\"c-object-layout__handle\"\n data-testid={part(\"resize\")}\n />\n ) : null}\n {panel}\n </StyledPanel>\n </StyledSplit>\n </StyledObjectLayout>\n );\n }\n\n return (\n <StyledObjectLayout\n {...rest}\n ref={ref}\n $fill={false}\n $gap={gap}\n $softShadow={softShadow}\n $flat={flat}\n data-object-layout=\"\"\n data-testid={testId}\n onPointerDownCapture={freeze}\n onKeyDownCapture={freeze}\n className={classnames(\n \"c-object-layout\",\n { \"c-object-layout--single\": !hasRail },\n className\n )}\n >\n {header}\n {bandNode}\n <StyledColumns\n className=\"c-object-layout__columns\"\n data-testid={part(\"columns\")}\n >\n <StyledLeft\n className=\"c-object-layout__left\"\n style={{ \"--opening-rail-height\": `${height}px` } as CSSProperties}\n data-testid={part(\"left\")}\n >\n {properties ? (\n <StyledProperties data-testid={part(\"properties\")}>\n {properties}\n </StyledProperties>\n ) : null}\n <StyledMain\n $padded={!stream}\n className=\"c-object-layout__main\"\n data-testid={part(\"main\")}\n >\n {main}\n </StyledMain>\n <StyledStream data-testid={part(\"stream\")}>{stream}</StyledStream>\n </StyledLeft>\n {hasRail ? (\n <StyledRail\n ref={railRef}\n className=\"c-object-layout__rail\"\n data-testid={part(\"rail\")}\n >\n {rail}\n </StyledRail>\n ) : null}\n </StyledColumns>\n </StyledObjectLayout>\n );\n }\n);\n\nObjectLayout.displayName = \"ObjectLayout\";\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAWA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AAkBA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AAA8D,IAAAM,SAAA;AAAA,SAAAJ,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,wBAAAQ,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAR,OAAA,EAAAF,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAS,CAAA,MAAAF,CAAA,GAAAJ,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAE,CAAA,CAAAI,GAAA,CAAAX,CAAA,UAAAO,CAAA,CAAAK,GAAA,CAAAZ,CAAA,GAAAO,CAAA,CAAAM,GAAA,CAAAb,CAAA,EAAAS,CAAA,cAAAK,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc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+J,aAAa;IACZ9C,SAAS,EAAC,0BAA0B;IACpC,eAAakB,IAAI,CAAC,SAAS;EAAE,gBAE7BxI,MAAA,CAAAW,OAAA,CAAAgI,aAAA,CAACtI,OAAA,CAAAgK,UAAU;IACT/C,SAAS,EAAC,uBAAuB;IACjCmC,KAAK,EAAE;MAAE,uBAAuB,KAAAhB,MAAA,CAAKhE,MAAM;IAAK,CAAmB;IACnE,eAAa+D,IAAI,CAAC,MAAM;EAAE,GAEzBzC,UAAU,gBACT/F,MAAA,CAAAW,OAAA,CAAAgI,aAAA,CAACtI,OAAA,CAAAuJ,gBAAgB;IAAC,eAAapB,IAAI,CAAC,YAAY;EAAE,GAC/CzC,UACe,CAAC,GACjB,IAAI,eACR/F,MAAA,CAAAW,OAAA,CAAAgI,aAAA,CAACtI,OAAA,CAAAwJ,UAAU;IACTC,OAAO,EAAE,CAAC7D,MAAO;IACjBqB,SAAS,EAAC,uBAAuB;IACjC,eAAakB,IAAI,CAAC,MAAM;EAAE,GAEzBxC,IACS,CAAC,eACbhG,MAAA,CAAAW,OAAA,CAAAgI,aAAA,CAACtI,OAAA,CAAAiK,YAAY;IAAC,eAAa9B,IAAI,CAAC,QAAQ;EAAE,GAAEvC,MAAqB,CACvD,CAAC,EACZ2B,OAAO,gBACN5H,MAAA,CAAAW,OAAA,CAAAgI,aAAA,CAACtI,OAAA,CAAAkK,UAAU;IACT3E,GAAG,EAAEzB,OAAQ;IACbmD,SAAS,EAAC,uBAAuB;IACjC,eAAakB,IAAI,CAAC,MAAM;EAAE,GAEzB5D,IACS,CAAC,GACX,IACS,CACG,CAAC;AAEzB,CACF,CAAC;AAEDY,YAAY,CAACgF,WAAW,GAAG,cAAc","ignoreList":[]}
|
|
@@ -4,28 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StyledTopBar = exports.StyledStream = exports.StyledSplit = exports.StyledRail = exports.StyledProperties = exports.StyledPartColumns = exports.StyledPart = exports.StyledPanelHandle = exports.StyledPanel = exports.StyledObjectLayout = exports.StyledMain = exports.StyledLeft = exports.StyledHeader = exports.StyledColumns = exports.StyledBand = exports.CONTAINER_CSS = void 0;
|
|
7
|
-
var _styledComponents =
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _ResizeHandle = require("../ResizeHandle");
|
|
9
|
-
function
|
|
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
10
|
var CONTAINER_CSS = exports.CONTAINER_CSS = "\n@container (min-width: 900px) {\n .c-object-layout .c-object-layout__header,\n .c-object-layout .c-object-layout__band {\n position: sticky;\n z-index: 6;\n background-color: var(--surface-sheet);\n }\n .c-object-layout .c-object-layout__header { top: 0; }\n .c-object-layout .c-object-layout__band { top: 41px; padding: 8px 32px 16px; }\n .c-object-layout .c-object-layout__columns {\n grid-template-columns: minmax(0, 1fr) 300px;\n column-gap: 32px;\n padding-top: 0;\n padding-left: 32px;\n }\n .c-object-layout--single .c-object-layout__columns {\n grid-template-columns: minmax(0, 1fr);\n padding-right: 32px;\n }\n .c-object-layout .c-object-layout__left {\n display: flex;\n flex-direction: column;\n align-self: stretch;\n gap: var(--c-object-layout-gap, 16px);\n min-width: 0;\n min-height: var(--opening-rail-height);\n }\n .c-object-layout .c-object-layout__rail { padding-bottom: 24px; }\n .c-object-layout .c-object-layout__split {\n display: grid;\n grid-template-columns: minmax(0, 1fr) min(var(--panel-width), calc(100% - var(--main-min)));\n }\n .c-object-layout--own-scroll .c-object-layout__split { grid-template-rows: minmax(0, 1fr); }\n .c-object-layout--own-scroll .c-object-layout__part { min-height: 0; overflow-y: auto; overscroll-behavior: none; }\n .c-object-layout .c-object-layout__part-columns { padding: 0 32px; }\n .c-object-layout .c-object-layout__panel { padding: 0; }\n .c-object-layout .c-object-layout__handle { display: block; }\n}\n@container (max-width: 899px) {\n .c-object-layout .c-object-layout__columns { align-content: start; }\n .c-object-layout--panel .c-object-layout__header { border-top-right-radius: inherit; }\n .c-object-layout--own-scroll .c-object-layout__split { overflow-y: auto; overscroll-behavior: none; }\n}\n";
|
|
11
|
+
|
|
12
|
+
// The sheet and its cards share one color. A card that keeps the raised color of the theme takes
|
|
13
|
+
// --object-layout-card-surface, and its rows take --object-layout-divider.
|
|
14
|
+
var FLAT_CSS = (0, _styledComponents.css)(["--object-layout-card-surface:var(--surface-raised);--object-layout-divider:var(--border-raised);--shadow-float:var(--shadow-float-flat);@supports (color:light-dark(red,red)){--surface-sheet:light-dark(var(--surface-raised),var(--page-paper-main));--object-layout-divider:light-dark( var(--color-theme-300),color-mix(in srgb,var(--border-raised) 50%,var(--page-paper-main)) );> *{--surface-raised:light-dark( var(--object-layout-card-surface),var(--page-paper-main) );}}"]);
|
|
11
15
|
var StyledObjectLayout = exports.StyledObjectLayout = _styledComponents.default.div.withConfig({
|
|
12
16
|
displayName: "Styles__StyledObjectLayout",
|
|
13
17
|
componentId: "sc-hmqt3m-0"
|
|
14
|
-
})(["--c-object-layout-gap:", ";", " container-type:inline-size;display:flex;flex-direction:column;width:100%;", " border-radius:inherit;color:var(--color-theme-900);background-color:var(--surface-sheet);"], function (_ref) {
|
|
18
|
+
})(["--c-object-layout-gap:", ";", " ", " container-type:inline-size;display:flex;flex-direction:column;width:100%;", " border-radius:inherit;color:var(--color-theme-900);background-color:var(--surface-sheet);"], function (_ref) {
|
|
15
19
|
var $gap = _ref.$gap;
|
|
16
20
|
return $gap === undefined ? "initial" : "".concat($gap, "px");
|
|
17
21
|
}, function (_ref2) {
|
|
18
22
|
var $softShadow = _ref2.$softShadow;
|
|
19
23
|
return $softShadow && "--shadow-float: var(--shadow-float-soft);";
|
|
20
24
|
}, function (_ref3) {
|
|
21
|
-
var $
|
|
25
|
+
var $flat = _ref3.$flat;
|
|
26
|
+
return $flat && FLAT_CSS;
|
|
27
|
+
}, function (_ref4) {
|
|
28
|
+
var $fill = _ref4.$fill;
|
|
22
29
|
return $fill ? "height: 100%;" : "min-height: 100%;";
|
|
23
30
|
});
|
|
24
31
|
var StyledHeader = exports.StyledHeader = _styledComponents.default.div.withConfig({
|
|
25
32
|
displayName: "Styles__StyledHeader",
|
|
26
33
|
componentId: "sc-hmqt3m-1"
|
|
27
|
-
})(["border-top-left-radius:inherit;", ""], function (
|
|
28
|
-
var $panel =
|
|
34
|
+
})(["border-top-left-radius:inherit;", ""], function (_ref5) {
|
|
35
|
+
var $panel = _ref5.$panel;
|
|
29
36
|
return !$panel && "border-top-right-radius: inherit;";
|
|
30
37
|
});
|
|
31
38
|
var StyledTopBar = exports.StyledTopBar = _styledComponents.default.div.withConfig({
|
|
@@ -47,8 +54,8 @@ var StyledLeft = exports.StyledLeft = _styledComponents.default.div.withConfig({
|
|
|
47
54
|
var StyledMain = exports.StyledMain = _styledComponents.default.div.withConfig({
|
|
48
55
|
displayName: "Styles__StyledMain",
|
|
49
56
|
componentId: "sc-hmqt3m-6"
|
|
50
|
-
})(["order:1;display:flex;flex-direction:column;gap:var(--c-object-layout-gap,24px);min-width:0;", ""], function (
|
|
51
|
-
var $padded =
|
|
57
|
+
})(["order:1;display:flex;flex-direction:column;gap:var(--c-object-layout-gap,24px);min-width:0;", ""], function (_ref6) {
|
|
58
|
+
var $padded = _ref6.$padded;
|
|
52
59
|
return $padded && "padding-bottom: 24px;";
|
|
53
60
|
});
|
|
54
61
|
var StyledStream = exports.StyledStream = _styledComponents.default.div.withConfig({
|
|
@@ -62,8 +69,8 @@ var StyledRail = exports.StyledRail = _styledComponents.default.div.withConfig({
|
|
|
62
69
|
var StyledSplit = exports.StyledSplit = _styledComponents.default.div.withConfig({
|
|
63
70
|
displayName: "Styles__StyledSplit",
|
|
64
71
|
componentId: "sc-hmqt3m-9"
|
|
65
|
-
})(["display:flex;flex:1 1 0%;flex-direction:column;", ""], function (
|
|
66
|
-
var $ownScroll =
|
|
72
|
+
})(["display:flex;flex:1 1 0%;flex-direction:column;", ""], function (_ref7) {
|
|
73
|
+
var $ownScroll = _ref7.$ownScroll;
|
|
67
74
|
return $ownScroll && "min-height: 0;";
|
|
68
75
|
});
|
|
69
76
|
var StyledPart = exports.StyledPart = _styledComponents.default.div.withConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["_styledComponents","
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["_styledComponents","_interopRequireWildcard","require","_ResizeHandle","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CONTAINER_CSS","exports","FLAT_CSS","css","StyledObjectLayout","styled","div","withConfig","displayName","componentId","_ref","$gap","undefined","concat","_ref2","$softShadow","_ref3","$flat","_ref4","$fill","StyledHeader","_ref5","$panel","StyledTopBar","StyledBand","StyledColumns","StyledLeft","StyledMain","_ref6","$padded","StyledStream","StyledRail","StyledSplit","_ref7","$ownScroll","StyledPart","StyledPartColumns","StyledProperties","StyledPanel","StyledPanelHandle","ResizeHandle"],"sources":["../../../../src/components/ObjectLayout/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { ResizeHandle } from \"../ResizeHandle\";\n\nexport const CONTAINER_CSS = `\n@container (min-width: 900px) {\n .c-object-layout .c-object-layout__header,\n .c-object-layout .c-object-layout__band {\n position: sticky;\n z-index: 6;\n background-color: var(--surface-sheet);\n }\n .c-object-layout .c-object-layout__header { top: 0; }\n .c-object-layout .c-object-layout__band { top: 41px; padding: 8px 32px 16px; }\n .c-object-layout .c-object-layout__columns {\n grid-template-columns: minmax(0, 1fr) 300px;\n column-gap: 32px;\n padding-top: 0;\n padding-left: 32px;\n }\n .c-object-layout--single .c-object-layout__columns {\n grid-template-columns: minmax(0, 1fr);\n padding-right: 32px;\n }\n .c-object-layout .c-object-layout__left {\n display: flex;\n flex-direction: column;\n align-self: stretch;\n gap: var(--c-object-layout-gap, 16px);\n min-width: 0;\n min-height: var(--opening-rail-height);\n }\n .c-object-layout .c-object-layout__rail { padding-bottom: 24px; }\n .c-object-layout .c-object-layout__split {\n display: grid;\n grid-template-columns: minmax(0, 1fr) min(var(--panel-width), calc(100% - var(--main-min)));\n }\n .c-object-layout--own-scroll .c-object-layout__split { grid-template-rows: minmax(0, 1fr); }\n .c-object-layout--own-scroll .c-object-layout__part { min-height: 0; overflow-y: auto; overscroll-behavior: none; }\n .c-object-layout .c-object-layout__part-columns { padding: 0 32px; }\n .c-object-layout .c-object-layout__panel { padding: 0; }\n .c-object-layout .c-object-layout__handle { display: block; }\n}\n@container (max-width: 899px) {\n .c-object-layout .c-object-layout__columns { align-content: start; }\n .c-object-layout--panel .c-object-layout__header { border-top-right-radius: inherit; }\n .c-object-layout--own-scroll .c-object-layout__split { overflow-y: auto; overscroll-behavior: none; }\n}\n`;\n\n// The sheet and its cards share one color. A card that keeps the raised color of the theme takes\n// --object-layout-card-surface, and its rows take --object-layout-divider.\nconst FLAT_CSS = css`\n --object-layout-card-surface: var(--surface-raised);\n --object-layout-divider: var(--border-raised);\n --shadow-float: var(--shadow-float-flat);\n\n @supports (color: light-dark(red, red)) {\n --surface-sheet: light-dark(var(--surface-raised), var(--page-paper-main));\n --object-layout-divider: light-dark(\n var(--color-theme-300),\n color-mix(in srgb, var(--border-raised) 50%, var(--page-paper-main))\n );\n\n > * {\n --surface-raised: light-dark(\n var(--object-layout-card-surface),\n var(--page-paper-main)\n );\n }\n }\n`;\n\nexport const StyledObjectLayout = styled.div<{\n $fill: boolean;\n $gap?: number;\n $softShadow: boolean;\n $flat: boolean;\n}>`\n /* Initial keeps the gap of an outer layout out, so each part falls back to its own default. */\n --c-object-layout-gap: ${({ $gap }) =>\n $gap === undefined ? \"initial\" : `${$gap}px`};\n ${({ $softShadow }) =>\n $softShadow && \"--shadow-float: var(--shadow-float-soft);\"}\n ${({ $flat }) => $flat && FLAT_CSS}\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n width: 100%;\n ${({ $fill }) => ($fill ? \"height: 100%;\" : \"min-height: 100%;\")}\n border-radius: inherit;\n color: var(--color-theme-900);\n background-color: var(--surface-sheet);\n`;\n\nexport const StyledHeader = styled.div<{ $panel: boolean }>`\n border-top-left-radius: inherit;\n ${({ $panel }) => !$panel && \"border-top-right-radius: inherit;\"}\n`;\n\nexport const StyledTopBar = styled.div`\n padding: 9px 12px 0;\n`;\n\nexport const StyledBand = styled.div`\n min-width: 0;\n padding: 16px 16px 0;\n`;\n\nexport const StyledColumns = styled.div`\n display: grid;\n flex: 1 1 0%;\n grid-template-columns: repeat(1, minmax(0, 1fr));\n align-items: start;\n row-gap: var(--c-object-layout-gap, 24px);\n padding: 16px 16px 0;\n`;\n\nexport const StyledLeft = styled.div`\n display: contents;\n`;\n\nexport const StyledMain = styled.div<{ $padded: boolean }>`\n order: 1;\n display: flex;\n flex-direction: column;\n gap: var(--c-object-layout-gap, 24px);\n min-width: 0;\n ${({ $padded }) => $padded && \"padding-bottom: 24px;\"}\n`;\n\nexport const StyledStream = styled.div`\n display: contents;\n`;\n\nexport const StyledRail = styled.div`\n order: 2;\n display: flex;\n flex-direction: column;\n gap: var(--c-object-layout-gap, 16px);\n min-width: 0;\n`;\n\nexport const StyledSplit = styled.div<{ $ownScroll: boolean }>`\n display: flex;\n flex: 1 1 0%;\n flex-direction: column;\n ${({ $ownScroll }) => $ownScroll && \"min-height: 0;\"}\n`;\n\nexport const StyledPart = styled.div`\n display: flex;\n flex-direction: column;\n min-width: 0;\n`;\n\nexport const StyledPartColumns = styled.div`\n display: flex;\n flex-direction: column;\n gap: var(--c-object-layout-gap, 16px);\n min-width: 0;\n padding: 16px 16px 0;\n`;\n\nexport const StyledProperties = styled.div`\n min-width: 0;\n`;\n\nexport const StyledPanel = styled.div`\n position: relative;\n min-width: 0;\n padding: 0 16px;\n`;\n\nexport const StyledPanelHandle = styled(ResizeHandle)`\n display: none;\n z-index: 7;\n`;\n"],"mappings":";;;;;;AAAA,IAAAA,iBAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,aAAA,GAAAD,OAAA;AAA+C,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,wBAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,cAAAM,EAAA,IAAAd,CAAA,gBAAAc,EAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,EAAA,OAAAP,CAAA,IAAAD,CAAA,GAAAW,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,EAAAc,EAAA,OAAAP,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAM,EAAA,EAAAP,CAAA,IAAAC,CAAA,CAAAM,EAAA,IAAAd,C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BAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+GAM1C;AAEM,IAAM4B,gBAAgB,GAAApC,OAAA,CAAAoC,gBAAA,GAAGhC,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,oBAEzC;AAEM,IAAM6B,WAAW,GAAArC,OAAA,CAAAqC,WAAA,GAAGjC,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qDAIpC;AAEM,IAAM8B,iBAAiB,GAAAtC,OAAA,CAAAsC,iBAAA,GAAG,IAAAlC,yBAAM,EAACmC,0BAAY,CAAC,CAAAjC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,+BAGpD","ignoreList":[]}
|
|
@@ -11,7 +11,7 @@ var _useContainerCss = require("../../utils/useContainerCss");
|
|
|
11
11
|
var _Icons = require("../Icons");
|
|
12
12
|
var _TicketPerforation = require("../TicketPerforation");
|
|
13
13
|
var _excluded = ["aside", "asideProps", "className", "children"],
|
|
14
|
-
_excluded2 = ["density", "disabled", "layout", "cells", "header", "footer", "cellsProps", "footerProps", "tearProps", "perforationProps", "className", "children"],
|
|
14
|
+
_excluded2 = ["density", "disabled", "layout", "cells", "header", "footer", "cellsProps", "footerProps", "tearProps", "perforationProps", "solid", "roomy", "notches", "className", "children"],
|
|
15
15
|
_excluded3 = ["icon", "label", "value", "action", "tone", "readOnly", "chevron", "disabled", "parts", "aside", "wrap", "footer", "labelProps", "caretProps", "className", "children"],
|
|
16
16
|
_excluded4 = ["expanded", "disabled", "className", "children"],
|
|
17
17
|
_excluded5 = ["position"];
|
|
@@ -95,6 +95,12 @@ var PropertyList = exports.PropertyList = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
95
95
|
footerProps = _ref4.footerProps,
|
|
96
96
|
tearProps = _ref4.tearProps,
|
|
97
97
|
perforationProps = _ref4.perforationProps,
|
|
98
|
+
_ref4$solid = _ref4.solid,
|
|
99
|
+
solid = _ref4$solid === void 0 ? false : _ref4$solid,
|
|
100
|
+
_ref4$roomy = _ref4.roomy,
|
|
101
|
+
roomy = _ref4$roomy === void 0 ? false : _ref4$roomy,
|
|
102
|
+
_ref4$notches = _ref4.notches,
|
|
103
|
+
notches = _ref4$notches === void 0 ? true : _ref4$notches,
|
|
98
104
|
className = _ref4.className,
|
|
99
105
|
children = _ref4.children,
|
|
100
106
|
rest = _objectWithoutProperties(_ref4, _excluded2);
|
|
@@ -104,6 +110,7 @@ var PropertyList = exports.PropertyList = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
104
110
|
var parts = _react.Children.toArray(children).filter(Boolean);
|
|
105
111
|
(0, _useContainerCss.useContainerCss)("c-property-list-container", _Styles.CONTAINER_CSS);
|
|
106
112
|
var ticket = /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, header ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, header, /*#__PURE__*/_react.default.createElement(_TicketPerforation.TicketPerforation, _extends({}, perforationProps, {
|
|
113
|
+
notches: notches,
|
|
107
114
|
line: cells === "row" ? "primary" : "raised"
|
|
108
115
|
}))) : null, /*#__PURE__*/_react.default.createElement(_Styles.StyledPropertyListCells, _extends({}, cellsProps, {
|
|
109
116
|
$cells: cells,
|
|
@@ -114,11 +121,13 @@ var PropertyList = exports.PropertyList = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
114
121
|
}, renderCell(part), index < parts.length - 1 ? /*#__PURE__*/_react.default.createElement(_Styles.StyledPropertyListTear, _extends({}, tearProps, {
|
|
115
122
|
className: (0, _classnames.default)("c-property-list__tear", tearProps === null || tearProps === void 0 ? void 0 : tearProps.className)
|
|
116
123
|
}), /*#__PURE__*/_react.default.createElement(_TicketPerforation.TicketPerforation, _extends({}, perforationProps, {
|
|
124
|
+
notches: notches,
|
|
117
125
|
line: "raised"
|
|
118
126
|
}))) : null);
|
|
119
127
|
}) : parts), footer ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Styles.StyledPropertyListFooterTear, {
|
|
120
128
|
"aria-hidden": "true"
|
|
121
129
|
}, /*#__PURE__*/_react.default.createElement(_TicketPerforation.TicketPerforation, _extends({}, perforationProps, {
|
|
130
|
+
notches: notches,
|
|
122
131
|
line: "raised"
|
|
123
132
|
}))), /*#__PURE__*/_react.default.createElement(_Styles.StyledPropertyListFooter, _extends({}, footerProps, {
|
|
124
133
|
className: (0, _classnames.default)("c-property-list__footer", footerProps === null || footerProps === void 0 ? void 0 : footerProps.className)
|
|
@@ -140,6 +149,8 @@ var PropertyList = exports.PropertyList = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
140
149
|
shadow: isTicket || density === "page",
|
|
141
150
|
$disabled: disabled,
|
|
142
151
|
$ticket: isTicket ? cells : undefined,
|
|
152
|
+
$solid: solid,
|
|
153
|
+
$roomy: roomy,
|
|
143
154
|
"aria-disabled": disabled || undefined,
|
|
144
155
|
className: (0, _classnames.default)("c-property-list", {
|
|
145
156
|
"c-property-list--ticket": isTicket
|