create-pmos 0.636.0 → 0.638.0
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/bin/create-pmos.js +15 -1
- package/package.json +27 -27
- package/payload/KIT-VERSION +1 -1
- package/payload/README.md +1 -1
- package/payload/design-system/README.md +31 -84
- package/payload/design-system/brand/README.md +46 -0
- package/payload/design-system/brand/tokens.css +4 -0
- package/{workspace/design-system → payload/design-system/brand}/tokens.json +6 -154
- package/payload/design-system/charts/README.md +75 -0
- package/payload/design-system/charts/components/Bar/README.md +48 -0
- package/payload/design-system/charts/components/Bar/preview.html +11 -0
- package/payload/design-system/charts/components/BarGoal/README.md +45 -0
- package/payload/design-system/charts/components/BarGoal/preview.html +11 -0
- package/payload/design-system/charts/components/Controls/README.md +12 -0
- package/payload/design-system/charts/components/Controls/preview.html +11 -0
- package/payload/design-system/charts/components/DateRanges/README.md +61 -0
- package/payload/design-system/charts/components/DateRanges/preview.html +11 -0
- package/payload/design-system/charts/components/Flow/README.md +50 -0
- package/payload/design-system/charts/components/Flow/preview.html +11 -0
- package/payload/design-system/charts/components/HorizontalBar/README.md +43 -0
- package/payload/design-system/charts/components/HorizontalBar/preview.html +11 -0
- package/payload/design-system/charts/components/InBlock/README.md +10 -0
- package/payload/design-system/charts/components/InBlock/preview.html +11 -0
- package/payload/design-system/charts/components/Labels/README.md +13 -0
- package/payload/design-system/charts/components/Labels/preview.html +11 -0
- package/payload/design-system/charts/components/Line/README.md +114 -0
- package/payload/design-system/charts/components/Line/preview.html +11 -0
- package/payload/design-system/charts/components/Marks/README.md +12 -0
- package/payload/design-system/charts/components/Marks/preview.html +11 -0
- package/payload/design-system/charts/components/Media/README.md +20 -0
- package/payload/design-system/charts/components/Media/preview.html +11 -0
- package/payload/design-system/charts/components/Meter/README.md +32 -0
- package/payload/design-system/charts/components/Meter/preview.html +11 -0
- package/payload/design-system/charts/components/OnPage/README.md +12 -0
- package/payload/design-system/charts/components/OnPage/preview.html +11 -0
- package/payload/design-system/charts/components/OnSlide/README.md +11 -0
- package/payload/design-system/charts/components/OnSlide/preview.html +11 -0
- package/payload/design-system/charts/components/Roles/README.md +21 -0
- package/payload/design-system/charts/components/Roles/preview.html +11 -0
- package/payload/design-system/charts/components/Sparkline/README.md +43 -0
- package/payload/design-system/charts/components/Sparkline/preview.html +11 -0
- package/payload/design-system/charts/components/StackedBar/README.md +60 -0
- package/payload/design-system/charts/components/StackedBar/preview.html +11 -0
- package/payload/design-system/charts/components/Swimlane/README.md +81 -0
- package/payload/design-system/charts/components/Swimlane/preview.html +11 -0
- package/payload/design-system/charts/components/Timeline/README.md +50 -0
- package/payload/design-system/charts/components/Timeline/preview.html +11 -0
- package/payload/design-system/charts/components/bundle.css +116 -0
- package/payload/design-system/charts/components/bundle.js +225 -0
- package/payload/design-system/charts/interaction.md +38 -0
- package/payload/design-system/charts/spec.md +30 -0
- package/payload/design-system/charts/tokens.css +4 -0
- package/payload/design-system/charts/tokens.json +248 -0
- package/payload/design-system/documents/README.md +79 -0
- package/payload/design-system/documents/components/Asks/README.md +7 -0
- package/payload/design-system/documents/components/Asks/preview.html +11 -0
- package/payload/design-system/documents/components/Brief/README.md +19 -0
- package/payload/design-system/documents/components/Brief/preview.html +11 -0
- package/payload/design-system/documents/components/Callout/README.md +16 -0
- package/payload/design-system/documents/components/Callout/preview.html +11 -0
- package/payload/design-system/documents/components/Changes/README.md +7 -0
- package/payload/design-system/documents/components/Changes/preview.html +11 -0
- package/payload/design-system/documents/components/Checklist/README.md +7 -0
- package/payload/design-system/documents/components/Checklist/preview.html +11 -0
- package/payload/design-system/documents/components/Contents/README.md +7 -0
- package/payload/design-system/documents/components/Contents/preview.html +11 -0
- package/payload/design-system/documents/components/Decision/README.md +10 -0
- package/payload/design-system/documents/components/Decision/preview.html +11 -0
- package/payload/design-system/documents/components/Email/README.md +13 -0
- package/payload/design-system/documents/components/Email/preview.html +12 -0
- package/payload/design-system/documents/components/Figure/README.md +11 -0
- package/payload/design-system/documents/components/Figure/preview.html +11 -0
- package/payload/design-system/documents/components/Headings/README.md +10 -0
- package/payload/design-system/documents/components/Headings/preview.html +11 -0
- package/payload/design-system/documents/components/LongRead/README.md +7 -0
- package/payload/design-system/documents/components/LongRead/preview.html +11 -0
- package/payload/design-system/documents/components/Marks/README.md +10 -0
- package/payload/design-system/documents/components/Marks/preview.html +11 -0
- package/payload/design-system/documents/components/MeetingNotes/README.md +17 -0
- package/payload/design-system/documents/components/MeetingNotes/preview.html +11 -0
- package/payload/design-system/documents/components/MetaStrip/README.md +7 -0
- package/payload/design-system/documents/components/MetaStrip/preview.html +11 -0
- package/payload/design-system/documents/components/Notification/README.md +12 -0
- package/payload/design-system/documents/components/Notification/preview.html +12 -0
- package/payload/design-system/documents/components/OnePager/README.md +7 -0
- package/payload/design-system/documents/components/OnePager/preview.html +11 -0
- package/payload/design-system/documents/components/PRD/README.md +22 -0
- package/payload/design-system/documents/components/PRD/preview.html +11 -0
- package/payload/design-system/documents/components/Page/README.md +14 -0
- package/payload/design-system/documents/components/Page/preview.html +11 -0
- package/payload/design-system/documents/components/Quote/README.md +7 -0
- package/payload/design-system/documents/components/Quote/preview.html +11 -0
- package/payload/design-system/documents/components/Reading/README.md +11 -0
- package/payload/design-system/documents/components/Reading/preview.html +11 -0
- package/payload/design-system/documents/components/Report/README.md +18 -0
- package/payload/design-system/documents/components/Report/preview.html +11 -0
- package/payload/design-system/documents/components/SamplePRD/README.md +7 -0
- package/payload/design-system/documents/components/SamplePRD/preview.html +11 -0
- package/payload/design-system/documents/components/SampleWeeklyUpdate/README.md +7 -0
- package/payload/design-system/documents/components/SampleWeeklyUpdate/preview.html +11 -0
- package/payload/design-system/documents/components/SharedLink/README.md +11 -0
- package/payload/design-system/documents/components/SharedLink/preview.html +11 -0
- package/payload/design-system/documents/components/SlackPost/README.md +12 -0
- package/payload/design-system/documents/components/SlackPost/preview.html +13 -0
- package/payload/design-system/documents/components/Summary/README.md +11 -0
- package/payload/design-system/documents/components/Summary/preview.html +11 -0
- package/payload/design-system/documents/components/Table/README.md +12 -0
- package/payload/design-system/documents/components/Table/preview.html +11 -0
- package/payload/design-system/documents/components/Text/README.md +12 -0
- package/payload/design-system/documents/components/Text/preview.html +11 -0
- package/payload/design-system/documents/components/TypeScale/README.md +20 -0
- package/payload/design-system/documents/components/TypeScale/preview.html +11 -0
- package/payload/design-system/documents/components/WeeklyUpdate/README.md +19 -0
- package/payload/design-system/documents/components/WeeklyUpdate/preview.html +11 -0
- package/payload/design-system/documents/components/bundle.css +152 -0
- package/payload/design-system/documents/components/bundle.js +36 -0
- package/payload/design-system/documents/messages.md +25 -0
- package/payload/design-system/documents/print.md +20 -0
- package/payload/design-system/documents/tokens.css +4 -0
- package/payload/design-system/documents/tokens.json +221 -0
- package/payload/design-system/slides/README.md +84 -0
- package/payload/design-system/slides/built-pmos.md +45 -0
- package/payload/design-system/slides/components/Answer/README.md +11 -0
- package/payload/design-system/slides/components/Answer/preview.html +8 -0
- package/payload/design-system/slides/components/AppendixLayout/README.md +9 -0
- package/payload/design-system/slides/components/AppendixLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Asks/README.md +11 -0
- package/payload/design-system/slides/components/Asks/preview.html +8 -0
- package/payload/design-system/slides/components/BigNumber/README.md +12 -0
- package/payload/design-system/slides/components/BigNumber/preview.html +8 -0
- package/payload/design-system/slides/components/Callout/README.md +10 -0
- package/payload/design-system/slides/components/Callout/preview.html +8 -0
- package/payload/design-system/slides/components/Chart/README.md +15 -0
- package/payload/design-system/slides/components/Chart/preview.html +8 -0
- package/payload/design-system/slides/components/Checklist/README.md +11 -0
- package/payload/design-system/slides/components/Checklist/preview.html +8 -0
- package/payload/design-system/slides/components/Compare/README.md +11 -0
- package/payload/design-system/slides/components/Compare/preview.html +8 -0
- package/payload/design-system/slides/components/DecideDeck/README.md +15 -0
- package/payload/design-system/slides/components/DecideDeck/preview.html +13 -0
- package/payload/design-system/slides/components/Diagram/README.md +12 -0
- package/payload/design-system/slides/components/Diagram/preview.html +8 -0
- package/payload/design-system/slides/components/Evidence/README.md +11 -0
- package/payload/design-system/slides/components/Evidence/preview.html +8 -0
- package/payload/design-system/slides/components/Flow/README.md +11 -0
- package/payload/design-system/slides/components/Flow/preview.html +8 -0
- package/payload/design-system/slides/components/Footer/README.md +11 -0
- package/payload/design-system/slides/components/Footer/preview.html +8 -0
- package/payload/design-system/slides/components/FullLayout/README.md +9 -0
- package/payload/design-system/slides/components/FullLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Grid/README.md +12 -0
- package/payload/design-system/slides/components/Grid/preview.html +8 -0
- package/payload/design-system/slides/components/HalvesLayout/README.md +9 -0
- package/payload/design-system/slides/components/HalvesLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Headline/README.md +11 -0
- package/payload/design-system/slides/components/Headline/preview.html +8 -0
- package/payload/design-system/slides/components/Icon/README.md +11 -0
- package/payload/design-system/slides/components/Icon/preview.html +8 -0
- package/payload/design-system/slides/components/ImageFrame/README.md +11 -0
- package/payload/design-system/slides/components/ImageFrame/preview.html +16 -0
- package/payload/design-system/slides/components/ImageLayout/README.md +9 -0
- package/payload/design-system/slides/components/ImageLayout/preview.html +18 -0
- package/payload/design-system/slides/components/LearnDeck/README.md +15 -0
- package/payload/design-system/slides/components/LearnDeck/preview.html +13 -0
- package/payload/design-system/slides/components/LineChart/README.md +11 -0
- package/payload/design-system/slides/components/LineChart/preview.html +13 -0
- package/payload/design-system/slides/components/List/README.md +11 -0
- package/payload/design-system/slides/components/List/preview.html +8 -0
- package/payload/design-system/slides/components/Log/README.md +11 -0
- package/payload/design-system/slides/components/Log/preview.html +8 -0
- package/payload/design-system/slides/components/Mark/README.md +10 -0
- package/payload/design-system/slides/components/Mark/preview.html +8 -0
- package/payload/design-system/slides/components/NumberRow/README.md +10 -0
- package/payload/design-system/slides/components/NumberRow/preview.html +8 -0
- package/payload/design-system/slides/components/Numbers/README.md +11 -0
- package/payload/design-system/slides/components/Numbers/preview.html +8 -0
- package/payload/design-system/slides/components/Plan/README.md +11 -0
- package/payload/design-system/slides/components/Plan/preview.html +8 -0
- package/payload/design-system/slides/components/Quote/README.md +10 -0
- package/payload/design-system/slides/components/Quote/preview.html +8 -0
- package/payload/design-system/slides/components/Risks/README.md +11 -0
- package/payload/design-system/slides/components/Risks/preview.html +8 -0
- package/payload/design-system/slides/components/SampleDeck/README.md +10 -0
- package/payload/design-system/slides/components/SampleDeck/preview.html +27 -0
- package/payload/design-system/slides/components/SectionLayout/README.md +9 -0
- package/payload/design-system/slides/components/SectionLayout/preview.html +10 -0
- package/payload/design-system/slides/components/SourceLine/README.md +11 -0
- package/payload/design-system/slides/components/SourceLine/preview.html +8 -0
- package/payload/design-system/slides/components/SplitLayout/README.md +9 -0
- package/payload/design-system/slides/components/SplitLayout/preview.html +8 -0
- package/payload/design-system/slides/components/StackAndMeter/README.md +11 -0
- package/payload/design-system/slides/components/StackAndMeter/preview.html +8 -0
- package/payload/design-system/slides/components/StartDeck/README.md +15 -0
- package/payload/design-system/slides/components/StartDeck/preview.html +13 -0
- package/payload/design-system/slides/components/StatementLayout/README.md +9 -0
- package/payload/design-system/slides/components/StatementLayout/preview.html +8 -0
- package/payload/design-system/slides/components/Status/README.md +11 -0
- package/payload/design-system/slides/components/Status/preview.html +8 -0
- package/payload/design-system/slides/components/Table/README.md +12 -0
- package/payload/design-system/slides/components/Table/preview.html +10 -0
- package/payload/design-system/slides/components/TimelineStrip/README.md +11 -0
- package/payload/design-system/slides/components/TimelineStrip/preview.html +9 -0
- package/payload/design-system/slides/components/TitleLayout/README.md +9 -0
- package/payload/design-system/slides/components/TitleLayout/preview.html +13 -0
- package/payload/design-system/slides/components/TypeScale/README.md +11 -0
- package/payload/design-system/slides/components/TypeScale/preview.html +8 -0
- package/payload/design-system/slides/components/UpdateDeck/README.md +15 -0
- package/payload/design-system/slides/components/UpdateDeck/preview.html +13 -0
- package/payload/design-system/slides/components/Voices/README.md +11 -0
- package/payload/design-system/slides/components/Voices/preview.html +8 -0
- package/payload/design-system/slides/components/bundle.css +167 -0
- package/payload/design-system/slides/components/bundle.js +48 -0
- package/payload/design-system/slides/research.md +71 -0
- package/payload/design-system/slides/tokens.css +4 -0
- package/payload/design-system/slides/tokens.json +172 -0
- package/payload/design-system/ui/README.md +98 -0
- package/payload/design-system/ui/tokens.css +9 -0
- package/payload/design-system/ui/tokens.json +159 -0
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +26 -0
- package/workspace/ci-checks.sh +5 -3
- package/workspace/design-system/README.md +31 -84
- package/workspace/design-system/brand/README.md +46 -0
- package/workspace/design-system/brand/tokens.css +4 -0
- package/{payload/design-system → workspace/design-system/brand}/tokens.json +6 -154
- package/workspace/design-system/charts/README.md +75 -0
- package/workspace/design-system/charts/components/Bar/README.md +48 -0
- package/workspace/design-system/charts/components/Bar/preview.html +11 -0
- package/workspace/design-system/charts/components/BarGoal/README.md +45 -0
- package/workspace/design-system/charts/components/BarGoal/preview.html +11 -0
- package/workspace/design-system/charts/components/Controls/README.md +12 -0
- package/workspace/design-system/charts/components/Controls/preview.html +11 -0
- package/workspace/design-system/charts/components/DateRanges/README.md +61 -0
- package/workspace/design-system/charts/components/DateRanges/preview.html +11 -0
- package/workspace/design-system/charts/components/Flow/README.md +50 -0
- package/workspace/design-system/charts/components/Flow/preview.html +11 -0
- package/workspace/design-system/charts/components/HorizontalBar/README.md +43 -0
- package/workspace/design-system/charts/components/HorizontalBar/preview.html +11 -0
- package/workspace/design-system/charts/components/InBlock/README.md +10 -0
- package/workspace/design-system/charts/components/InBlock/preview.html +11 -0
- package/workspace/design-system/charts/components/Labels/README.md +13 -0
- package/workspace/design-system/charts/components/Labels/preview.html +11 -0
- package/workspace/design-system/charts/components/Line/README.md +114 -0
- package/workspace/design-system/charts/components/Line/preview.html +11 -0
- package/workspace/design-system/charts/components/Marks/README.md +12 -0
- package/workspace/design-system/charts/components/Marks/preview.html +11 -0
- package/workspace/design-system/charts/components/Media/README.md +20 -0
- package/workspace/design-system/charts/components/Media/preview.html +11 -0
- package/workspace/design-system/charts/components/Meter/README.md +32 -0
- package/workspace/design-system/charts/components/Meter/preview.html +11 -0
- package/workspace/design-system/charts/components/OnPage/README.md +12 -0
- package/workspace/design-system/charts/components/OnPage/preview.html +11 -0
- package/workspace/design-system/charts/components/OnSlide/README.md +11 -0
- package/workspace/design-system/charts/components/OnSlide/preview.html +11 -0
- package/workspace/design-system/charts/components/Roles/README.md +21 -0
- package/workspace/design-system/charts/components/Roles/preview.html +11 -0
- package/workspace/design-system/charts/components/Sparkline/README.md +43 -0
- package/workspace/design-system/charts/components/Sparkline/preview.html +11 -0
- package/workspace/design-system/charts/components/StackedBar/README.md +60 -0
- package/workspace/design-system/charts/components/StackedBar/preview.html +11 -0
- package/workspace/design-system/charts/components/Swimlane/README.md +81 -0
- package/workspace/design-system/charts/components/Swimlane/preview.html +11 -0
- package/workspace/design-system/charts/components/Timeline/README.md +50 -0
- package/workspace/design-system/charts/components/Timeline/preview.html +11 -0
- package/workspace/design-system/charts/components/bundle.css +116 -0
- package/workspace/design-system/charts/components/bundle.js +225 -0
- package/workspace/design-system/charts/interaction.md +38 -0
- package/workspace/design-system/charts/spec.md +30 -0
- package/workspace/design-system/charts/tokens.css +4 -0
- package/workspace/design-system/charts/tokens.json +248 -0
- package/workspace/design-system/documents/README.md +79 -0
- package/workspace/design-system/documents/components/Asks/README.md +7 -0
- package/workspace/design-system/documents/components/Asks/preview.html +11 -0
- package/workspace/design-system/documents/components/Brief/README.md +19 -0
- package/workspace/design-system/documents/components/Brief/preview.html +11 -0
- package/workspace/design-system/documents/components/Callout/README.md +16 -0
- package/workspace/design-system/documents/components/Callout/preview.html +11 -0
- package/workspace/design-system/documents/components/Changes/README.md +7 -0
- package/workspace/design-system/documents/components/Changes/preview.html +11 -0
- package/workspace/design-system/documents/components/Checklist/README.md +7 -0
- package/workspace/design-system/documents/components/Checklist/preview.html +11 -0
- package/workspace/design-system/documents/components/Contents/README.md +7 -0
- package/workspace/design-system/documents/components/Contents/preview.html +11 -0
- package/workspace/design-system/documents/components/Decision/README.md +10 -0
- package/workspace/design-system/documents/components/Decision/preview.html +11 -0
- package/workspace/design-system/documents/components/Email/README.md +13 -0
- package/workspace/design-system/documents/components/Email/preview.html +12 -0
- package/workspace/design-system/documents/components/Figure/README.md +11 -0
- package/workspace/design-system/documents/components/Figure/preview.html +11 -0
- package/workspace/design-system/documents/components/Headings/README.md +10 -0
- package/workspace/design-system/documents/components/Headings/preview.html +11 -0
- package/workspace/design-system/documents/components/LongRead/README.md +7 -0
- package/workspace/design-system/documents/components/LongRead/preview.html +11 -0
- package/workspace/design-system/documents/components/Marks/README.md +10 -0
- package/workspace/design-system/documents/components/Marks/preview.html +11 -0
- package/workspace/design-system/documents/components/MeetingNotes/README.md +17 -0
- package/workspace/design-system/documents/components/MeetingNotes/preview.html +11 -0
- package/workspace/design-system/documents/components/MetaStrip/README.md +7 -0
- package/workspace/design-system/documents/components/MetaStrip/preview.html +11 -0
- package/workspace/design-system/documents/components/Notification/README.md +12 -0
- package/workspace/design-system/documents/components/Notification/preview.html +12 -0
- package/workspace/design-system/documents/components/OnePager/README.md +7 -0
- package/workspace/design-system/documents/components/OnePager/preview.html +11 -0
- package/workspace/design-system/documents/components/PRD/README.md +22 -0
- package/workspace/design-system/documents/components/PRD/preview.html +11 -0
- package/workspace/design-system/documents/components/Page/README.md +14 -0
- package/workspace/design-system/documents/components/Page/preview.html +11 -0
- package/workspace/design-system/documents/components/Quote/README.md +7 -0
- package/workspace/design-system/documents/components/Quote/preview.html +11 -0
- package/workspace/design-system/documents/components/Reading/README.md +11 -0
- package/workspace/design-system/documents/components/Reading/preview.html +11 -0
- package/workspace/design-system/documents/components/Report/README.md +18 -0
- package/workspace/design-system/documents/components/Report/preview.html +11 -0
- package/workspace/design-system/documents/components/SamplePRD/README.md +7 -0
- package/workspace/design-system/documents/components/SamplePRD/preview.html +11 -0
- package/workspace/design-system/documents/components/SampleWeeklyUpdate/README.md +7 -0
- package/workspace/design-system/documents/components/SampleWeeklyUpdate/preview.html +11 -0
- package/workspace/design-system/documents/components/SharedLink/README.md +11 -0
- package/workspace/design-system/documents/components/SharedLink/preview.html +11 -0
- package/workspace/design-system/documents/components/SlackPost/README.md +12 -0
- package/workspace/design-system/documents/components/SlackPost/preview.html +13 -0
- package/workspace/design-system/documents/components/Summary/README.md +11 -0
- package/workspace/design-system/documents/components/Summary/preview.html +11 -0
- package/workspace/design-system/documents/components/Table/README.md +12 -0
- package/workspace/design-system/documents/components/Table/preview.html +11 -0
- package/workspace/design-system/documents/components/Text/README.md +12 -0
- package/workspace/design-system/documents/components/Text/preview.html +11 -0
- package/workspace/design-system/documents/components/TypeScale/README.md +20 -0
- package/workspace/design-system/documents/components/TypeScale/preview.html +11 -0
- package/workspace/design-system/documents/components/WeeklyUpdate/README.md +19 -0
- package/workspace/design-system/documents/components/WeeklyUpdate/preview.html +11 -0
- package/workspace/design-system/documents/components/bundle.css +152 -0
- package/workspace/design-system/documents/components/bundle.js +36 -0
- package/workspace/design-system/documents/messages.md +25 -0
- package/workspace/design-system/documents/print.md +20 -0
- package/workspace/design-system/documents/tokens.css +4 -0
- package/workspace/design-system/documents/tokens.json +221 -0
- package/workspace/design-system/slides/README.md +84 -0
- package/workspace/design-system/slides/built-pmos.md +45 -0
- package/workspace/design-system/slides/components/Answer/README.md +11 -0
- package/workspace/design-system/slides/components/Answer/preview.html +8 -0
- package/workspace/design-system/slides/components/AppendixLayout/README.md +9 -0
- package/workspace/design-system/slides/components/AppendixLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Asks/README.md +11 -0
- package/workspace/design-system/slides/components/Asks/preview.html +8 -0
- package/workspace/design-system/slides/components/BigNumber/README.md +12 -0
- package/workspace/design-system/slides/components/BigNumber/preview.html +8 -0
- package/workspace/design-system/slides/components/Callout/README.md +10 -0
- package/workspace/design-system/slides/components/Callout/preview.html +8 -0
- package/workspace/design-system/slides/components/Chart/README.md +15 -0
- package/workspace/design-system/slides/components/Chart/preview.html +8 -0
- package/workspace/design-system/slides/components/Checklist/README.md +11 -0
- package/workspace/design-system/slides/components/Checklist/preview.html +8 -0
- package/workspace/design-system/slides/components/Compare/README.md +11 -0
- package/workspace/design-system/slides/components/Compare/preview.html +8 -0
- package/workspace/design-system/slides/components/DecideDeck/README.md +15 -0
- package/workspace/design-system/slides/components/DecideDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/Diagram/README.md +12 -0
- package/workspace/design-system/slides/components/Diagram/preview.html +8 -0
- package/workspace/design-system/slides/components/Evidence/README.md +11 -0
- package/workspace/design-system/slides/components/Evidence/preview.html +8 -0
- package/workspace/design-system/slides/components/Flow/README.md +11 -0
- package/workspace/design-system/slides/components/Flow/preview.html +8 -0
- package/workspace/design-system/slides/components/Footer/README.md +11 -0
- package/workspace/design-system/slides/components/Footer/preview.html +8 -0
- package/workspace/design-system/slides/components/FullLayout/README.md +9 -0
- package/workspace/design-system/slides/components/FullLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Grid/README.md +12 -0
- package/workspace/design-system/slides/components/Grid/preview.html +8 -0
- package/workspace/design-system/slides/components/HalvesLayout/README.md +9 -0
- package/workspace/design-system/slides/components/HalvesLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Headline/README.md +11 -0
- package/workspace/design-system/slides/components/Headline/preview.html +8 -0
- package/workspace/design-system/slides/components/Icon/README.md +11 -0
- package/workspace/design-system/slides/components/Icon/preview.html +8 -0
- package/workspace/design-system/slides/components/ImageFrame/README.md +11 -0
- package/workspace/design-system/slides/components/ImageFrame/preview.html +16 -0
- package/workspace/design-system/slides/components/ImageLayout/README.md +9 -0
- package/workspace/design-system/slides/components/ImageLayout/preview.html +18 -0
- package/workspace/design-system/slides/components/LearnDeck/README.md +15 -0
- package/workspace/design-system/slides/components/LearnDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/LineChart/README.md +11 -0
- package/workspace/design-system/slides/components/LineChart/preview.html +13 -0
- package/workspace/design-system/slides/components/List/README.md +11 -0
- package/workspace/design-system/slides/components/List/preview.html +8 -0
- package/workspace/design-system/slides/components/Log/README.md +11 -0
- package/workspace/design-system/slides/components/Log/preview.html +8 -0
- package/workspace/design-system/slides/components/Mark/README.md +10 -0
- package/workspace/design-system/slides/components/Mark/preview.html +8 -0
- package/workspace/design-system/slides/components/NumberRow/README.md +10 -0
- package/workspace/design-system/slides/components/NumberRow/preview.html +8 -0
- package/workspace/design-system/slides/components/Numbers/README.md +11 -0
- package/workspace/design-system/slides/components/Numbers/preview.html +8 -0
- package/workspace/design-system/slides/components/Plan/README.md +11 -0
- package/workspace/design-system/slides/components/Plan/preview.html +8 -0
- package/workspace/design-system/slides/components/Quote/README.md +10 -0
- package/workspace/design-system/slides/components/Quote/preview.html +8 -0
- package/workspace/design-system/slides/components/Risks/README.md +11 -0
- package/workspace/design-system/slides/components/Risks/preview.html +8 -0
- package/workspace/design-system/slides/components/SampleDeck/README.md +10 -0
- package/workspace/design-system/slides/components/SampleDeck/preview.html +27 -0
- package/workspace/design-system/slides/components/SectionLayout/README.md +9 -0
- package/workspace/design-system/slides/components/SectionLayout/preview.html +10 -0
- package/workspace/design-system/slides/components/SourceLine/README.md +11 -0
- package/workspace/design-system/slides/components/SourceLine/preview.html +8 -0
- package/workspace/design-system/slides/components/SplitLayout/README.md +9 -0
- package/workspace/design-system/slides/components/SplitLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/StackAndMeter/README.md +11 -0
- package/workspace/design-system/slides/components/StackAndMeter/preview.html +8 -0
- package/workspace/design-system/slides/components/StartDeck/README.md +15 -0
- package/workspace/design-system/slides/components/StartDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/StatementLayout/README.md +9 -0
- package/workspace/design-system/slides/components/StatementLayout/preview.html +8 -0
- package/workspace/design-system/slides/components/Status/README.md +11 -0
- package/workspace/design-system/slides/components/Status/preview.html +8 -0
- package/workspace/design-system/slides/components/Table/README.md +12 -0
- package/workspace/design-system/slides/components/Table/preview.html +10 -0
- package/workspace/design-system/slides/components/TimelineStrip/README.md +11 -0
- package/workspace/design-system/slides/components/TimelineStrip/preview.html +9 -0
- package/workspace/design-system/slides/components/TitleLayout/README.md +9 -0
- package/workspace/design-system/slides/components/TitleLayout/preview.html +13 -0
- package/workspace/design-system/slides/components/TypeScale/README.md +11 -0
- package/workspace/design-system/slides/components/TypeScale/preview.html +8 -0
- package/workspace/design-system/slides/components/UpdateDeck/README.md +15 -0
- package/workspace/design-system/slides/components/UpdateDeck/preview.html +13 -0
- package/workspace/design-system/slides/components/Voices/README.md +11 -0
- package/workspace/design-system/slides/components/Voices/preview.html +8 -0
- package/workspace/design-system/slides/components/bundle.css +167 -0
- package/workspace/design-system/slides/components/bundle.js +48 -0
- package/workspace/design-system/slides/research.md +71 -0
- package/workspace/design-system/slides/tokens.css +4 -0
- package/workspace/design-system/slides/tokens.json +172 -0
- package/workspace/design-system/ui/README.md +98 -0
- package/workspace/design-system/ui/tokens.css +9 -0
- package/workspace/design-system/ui/tokens.json +159 -0
- package/workspace/guide/agent-capabilities.md +1 -1
- package/workspace/guide/layout.md +12 -2
- package/workspace/guide/reports.md +1 -1
- package/workspace/guide/routine.md +3 -1
- package/workspace/lib/core-docs.js +9 -0
- package/workspace/lib/design-system.js +235 -76
- package/workspace/lib/live-round.js +2 -2
- package/workspace/lib/routes-report-design.js +9 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/brand.css +8 -0
- package/workspace/public/pm/charts.css +130 -0
- package/workspace/public/pm/cozy-events-view.js +26 -26
- package/workspace/public/pm/cozy-events.css +124 -123
- package/workspace/public/pm/cozy-events.js +3 -3
- package/workspace/public/pm/cozy-routine.css +77 -64
- package/workspace/public/pm/cozy-routine.js +18 -14
- package/workspace/public/pm/documents.css +170 -0
- package/workspace/public/pm/komorebi.css +7 -10
- package/workspace/public/pm/slides.css +169 -0
- package/workspace/public/premium-events.html +16 -13
- package/workspace/public/premium-routine.html +11 -7
- package/workspace/test-lists/design-system.json +1 -1
- package/payload/design-system/tokens.css +0 -9
- package/workspace/design-system/tokens.css +0 -9
- /package/payload/design-system/{components → ui/components}/Badge/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Badge/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Button/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Button/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Calendar/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Calendar/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Chart/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Chart/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Conversation/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Conversation/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Detail/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Detail/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Document/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Document/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Event/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Event/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Field/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Field/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Icon/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Icon/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Input/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Input/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/List/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/List/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/ListRow/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/ListRow/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/MainItem/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/MainItem/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/MainSide/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/MainSide/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Menu/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Menu/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Navigation/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Navigation/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Number/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Number/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Settings/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Settings/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/SingleColumn/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/SingleColumn/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Stage/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Stage/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Suggestion/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Suggestion/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Summary/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Summary/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Switch/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Switch/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Table/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Table/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Tabs/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Tabs/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Timeline/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Timeline/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/Toast/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/Toast/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/TodayPage/README.md +0 -0
- /package/payload/design-system/{components → ui/components}/TodayPage/preview.html +0 -0
- /package/payload/design-system/{components → ui/components}/bundle.css +0 -0
- /package/payload/design-system/{interactions.md → ui/interactions.md} +0 -0
- /package/payload/design-system/{pages.md → ui/pages.md} +0 -0
- /package/workspace/design-system/{components → ui/components}/Badge/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Badge/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Button/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Button/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Calendar/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Calendar/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Chart/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Chart/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Conversation/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Conversation/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Detail/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Detail/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Document/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Document/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Event/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Event/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Field/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Field/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Icon/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Icon/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Input/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Input/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/List/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/List/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/ListRow/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/ListRow/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/MainItem/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/MainItem/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/MainSide/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/MainSide/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Menu/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Menu/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Navigation/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Navigation/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Number/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Number/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Settings/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Settings/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/SingleColumn/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/SingleColumn/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Stage/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Stage/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Suggestion/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Suggestion/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Summary/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Summary/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Switch/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Switch/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Table/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Table/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Tabs/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Tabs/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Timeline/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Timeline/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/Toast/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/Toast/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/TodayPage/README.md +0 -0
- /package/workspace/design-system/{components → ui/components}/TodayPage/preview.html +0 -0
- /package/workspace/design-system/{components → ui/components}/bundle.css +0 -0
- /package/workspace/design-system/{interactions.md → ui/interactions.md} +0 -0
- /package/workspace/design-system/{pages.md → ui/pages.md} +0 -0
|
@@ -1,34 +1,65 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
/* design-system.js — the PMOS
|
|
3
|
-
* (Wawan 2026-11-19: "differentiate between the UI design system and slide design system"), so nothing here is about decks.
|
|
2
|
+
/* design-system.js — the PMOS design system family as code can use it (agreed 2026-11-20, /mnt/project-files/design-system/family-build-spec.md).
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
4
|
+
* workspace/design-system/ holds five systems and an index README:
|
|
5
|
+
* brand/ the root: colour (light, dark, ground by time of day), font families, motion speeds and easing, voice and icon rules
|
|
6
|
+
* charts/ PMOS Charts, under brand: the ONLY owner of the chart-* and diagram-* tokens
|
|
7
|
+
* ui/ PMOS Komorebi, the UI system: type sizes, space, corners, shadow and its 29 parts
|
|
8
|
+
* documents/ PMOS Documents: reading and print sizes, the page, the parts, and the Messages rules (messages.md)
|
|
9
|
+
* slides/ PMOS Slides: the 1920 x 1080 grid, slide sizes, blocks and deck patterns
|
|
10
|
+
* ui, documents and slides import brand and charts by name and never redefine their tokens. A token two systems share (a shadow, a corner)
|
|
11
|
+
* has one value. design-system.test.js holds all of this (the drift check).
|
|
12
|
+
*
|
|
13
|
+
* Each system's tokens.json makes its tokens.css (written here, never by hand). Each system makes one workspace sheet in public/pm:
|
|
14
|
+
* brand.css, charts.css, komorebi.css (ui), documents.css, slides.css — loaded in that order: brand, charts, then the system's own.
|
|
15
|
+
* Every rule is scoped: ui to .pm-ds, documents to .pmd-ds, slides to .pms-ds; brand and charts to any of them (charts alone: .pmc-ds).
|
|
16
|
+
* A page changes only when it puts the class on its root. The fonts are the self-hosted ones in public/vendor (no network).
|
|
17
|
+
*
|
|
18
|
+
* The family travels three ways, all from that one folder:
|
|
19
|
+
* 1. the workspace: the generated sheets (above), and public/pm/komorebi.js for the UI parts' behaviour.
|
|
20
|
+
* 2. PMOS makers: designSystemFor(kind, roots) gives a maker the sheets and rules for what it makes (prototype runs, the report design job,
|
|
21
|
+
* the document drafts). A product's own brand/ wins; the other four come from PMOS's own copy when there is one.
|
|
13
22
|
* 3. other projects: kit/build-kit.sh copies the folder into every kit as pmos/design-system/ (create-pmos KERNEL).
|
|
14
23
|
*
|
|
15
|
-
* node lib/design-system.js --write regenerate public/pm
|
|
16
|
-
* node lib/design-system.js --check exit 1 when
|
|
24
|
+
* node lib/design-system.js --write regenerate every tokens.css and public/pm sheet after a change to the system's files
|
|
25
|
+
* node lib/design-system.js --check exit 1 when any of them is not what the files make (design-system.test.js)
|
|
17
26
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
27
|
+
* KINDS · SYSTEMS · designSystemFor(kind, roots) → { kind, systems, css, rules, from, ds } · writingRulesFor(kind, roots) → the content rules only
|
|
28
|
+
* dirOf(roots) → the first <root>/{pmos/design-system, design-system, workspace/design-system} that holds the family, or null
|
|
29
|
+
* scaffoldOf(roots) → designSystemFor('prototype') from roots only (no fallback to PMOS's own): empty when no root has the family
|
|
30
|
+
* tokensCss(json, name) PURE · sheetOf(system, tokensBySystem, bundle) PURE · generated(dir) → { path: text }
|
|
21
31
|
*/
|
|
22
32
|
const fs = require('fs');
|
|
23
33
|
const path = require('path');
|
|
24
34
|
|
|
25
35
|
const OWN = path.join(__dirname, '..', 'design-system');
|
|
26
|
-
const
|
|
36
|
+
const PUBLIC = path.join(__dirname, '..', 'public', 'pm');
|
|
37
|
+
const SHEET = path.join(PUBLIC, 'komorebi.css');
|
|
27
38
|
const SCOPE = '.pm-ds';
|
|
28
|
-
// where a product keeps the
|
|
39
|
+
// where a product keeps the family: the kit's copy first (create-pmos), then a folder of its own, then PMOS-self's
|
|
29
40
|
const PLACES = ['pmos/design-system', 'design-system', 'workspace/design-system'];
|
|
41
|
+
const FAMILY = ':is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds)';
|
|
42
|
+
|
|
43
|
+
/** The five systems. scope: the class a page puts on its root. roots: the selectors the system's own files use for the page root (they
|
|
44
|
+
* become the scope). sheet: the generated file in public/pm. use: how a maker wraps its output in the unscoped sheet. */
|
|
45
|
+
const SYSTEMS = Object.freeze({
|
|
46
|
+
brand: { title: 'PMOS Brand', sheet: 'brand.css', scope: FAMILY, roots: [] },
|
|
47
|
+
charts: { title: 'PMOS Charts', sheet: 'charts.css', scope: FAMILY, roots: ['.pcx'], use: 'Charts and diagrams are PMOS Charts parts (pc-* classes; the roles chart-read, chart-done, chart-plan, chart-risk, chart-rest).' },
|
|
48
|
+
ui: { title: 'PMOS Komorebi', sheet: 'komorebi.css', scope: SCOPE, roots: ['.pm'], types: true, use: 'Wrap the page in <body class="pm">.' },
|
|
49
|
+
documents: { title: 'PMOS Documents', sheet: 'documents.css', scope: '.pmd-ds', roots: ['.pd'], use: 'Wrap the document in <body class="pd"> and put it in <article class="pd-doc">; build only from the pd-* classes.' },
|
|
50
|
+
slides: { title: 'PMOS Slides', sheet: 'slides.css', scope: '.pms-ds', roots: ['.ps'], use: 'Wrap the deck in <body class="ps">; one <section class="ps-slide"> per slide, drawn at 1920 x 1080 and scaled; build only from the ps-* classes.' },
|
|
51
|
+
});
|
|
52
|
+
const ORDER = ['brand', 'charts', 'ui', 'documents', 'slides'];
|
|
30
53
|
|
|
31
|
-
/**
|
|
54
|
+
/** What each kind of output is made with (family-build-spec.md, "Picking the system"). messages: the rules only, no sheet. */
|
|
55
|
+
const KINDS = Object.freeze({
|
|
56
|
+
page: ['ui', 'charts'], prototype: ['ui', 'charts'],
|
|
57
|
+
prd: ['documents', 'charts'], brief: ['documents', 'charts'], report: ['documents', 'charts'], notes: ['documents', 'charts'], 'shared-link': ['documents', 'charts'],
|
|
58
|
+
deck: ['slides', 'charts'],
|
|
59
|
+
email: ['messages'], slack: ['messages'], notification: ['messages'],
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** The short form of ui/README.md that a prototype run follows (the whole README is in the folder for a person or a long session). */
|
|
32
63
|
const RULES = [
|
|
33
64
|
'Follow the PMOS design system (the stylesheet below is its tokens and parts):',
|
|
34
65
|
'- Wrap the page in <body class="pm">. Build only from the system\'s classes: pm-btn, pm-input, pm-badge, pm-li, pm-tabs, pm-field, pm-toast, pm-menu, pm-sug, pm-ev, pm-block, pm-table, pm-num, pm-cal, pm-chart, pm-leg, pm-tip, pm-pick, pm-doc, pm-stage, pm-rail; type classes title, heading, body, small. If you need something no part does, add an option to a part, not a new look.',
|
|
@@ -39,39 +70,65 @@ const RULES = [
|
|
|
39
70
|
'- Write from the person\'s side in short plain sentences ("Moved to tomorrow", not "Success"). The assistant is PMOS, never "Claude".',
|
|
40
71
|
].join('\n');
|
|
41
72
|
|
|
42
|
-
|
|
73
|
+
const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
|
|
74
|
+
const readJson = (f) => { try { return JSON.parse(fs.readFileSync(f, 'utf8')); } catch { return null; } };
|
|
75
|
+
const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, '').replace(/\n\s*\n+/g, '\n').trim();
|
|
76
|
+
// the systems load their fonts from Google Fonts; a maker is sandboxed with no network and the workspace self-hosts them
|
|
77
|
+
const dropImports = (css) => String(css || '').replace(/^@import\b.*$\n?/gm, ''); // the whole line: a font URL can hold a ';'
|
|
78
|
+
const has = (d, sys) => !!d && fs.existsSync(path.join(d, sys, 'tokens.json'));
|
|
79
|
+
|
|
80
|
+
/** The first folder under roots that holds the family (its ui system and brand), or null. */
|
|
43
81
|
function dirOf(roots) {
|
|
44
82
|
for (const r of roots || []) {
|
|
45
83
|
if (!r) continue;
|
|
46
|
-
for (const p of PLACES) {
|
|
47
|
-
const d = path.join(r, p);
|
|
48
|
-
if (fs.existsSync(path.join(d, 'tokens.css')) && fs.existsSync(path.join(d, 'components', 'bundle.css'))) return d;
|
|
49
|
-
}
|
|
84
|
+
for (const p of PLACES) { const d = path.join(r, p); if (has(d, 'brand') && fs.existsSync(path.join(d, 'ui', 'components', 'bundle.css'))) return d; }
|
|
50
85
|
}
|
|
51
86
|
return null;
|
|
52
87
|
}
|
|
88
|
+
const dirsOf = (roots) => (roots || []).filter(Boolean).flatMap((r) => PLACES.map((p) => path.join(r, p))).filter((d) => has(d, 'brand') || has(d, 'ui'));
|
|
53
89
|
|
|
54
|
-
|
|
55
|
-
// the system loads its fonts from Google Fonts; a prototype is sandboxed with no network and the workspace self-hosts them
|
|
56
|
-
const dropImports = (css) => String(css || '').replace(/^@import[^;]*;\s*/gm, '');
|
|
57
|
-
const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
|
|
90
|
+
/* ── tokens ── */
|
|
58
91
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
92
|
+
const SECTIONS = ['color', 'shadow', 'spacing', 'radius', 'duration', 'easing'];
|
|
93
|
+
/** Every token a system's tokens.json defines: name → value (a string, or { light, dark }). The font families become font-sans / font-mono. */
|
|
94
|
+
function tokensOf(json) {
|
|
95
|
+
const out = new Map();
|
|
96
|
+
for (const s of SECTIONS) for (const t of ((json && json[s]) || {}).tokens || []) out.set(t.name, t.value);
|
|
97
|
+
const fam = json && json.type && json.type.families;
|
|
98
|
+
if (fam) for (const [k, v] of Object.entries(fam)) out.set('font-' + k, v);
|
|
99
|
+
return out;
|
|
63
100
|
}
|
|
64
101
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
102
|
+
// a token can name another one: "{blue}" is the brand's blue, so the chart role follows the brand in both themes
|
|
103
|
+
const valueOf = (v) => String(v).replace(/\{([a-z0-9-]+)\}/g, 'var(--$1)');
|
|
104
|
+
/** PURE. A system's tokens.json → its tokens.css: the themed tokens (light, then dark), the rest, and (ui only) the type classes. */
|
|
105
|
+
function tokensCss(json, name) {
|
|
106
|
+
const light = [], dark = [], rest = [];
|
|
107
|
+
const themed = new Set(['color', 'shadow']);
|
|
108
|
+
for (const s of SECTIONS) {
|
|
109
|
+
for (const t of ((json && json[s]) || {}).tokens || []) {
|
|
110
|
+
const v = t.value;
|
|
111
|
+
if (v && typeof v === 'object') { light.push(`--${t.name}:${valueOf(v.light)}`); dark.push(`--${t.name}:${valueOf(v.dark)}`); }
|
|
112
|
+
else (themed.has(s) ? light : rest).push(`--${t.name}:${valueOf(v)}`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
const fam = json && json.type && json.type.families;
|
|
116
|
+
if (fam) for (const [k, v] of Object.entries(fam)) rest.push(`--font-${k}:${v}`);
|
|
117
|
+
const L = [`/* ${(SYSTEMS[name] || {}).title || name} tokens. GENERATED from tokens.json by lib/design-system.js: do not edit; run \`node lib/design-system.js --write\`. */`];
|
|
118
|
+
if (light.length) L.push(`:root, [data-theme="light"] {${light.join(';')}}`);
|
|
119
|
+
if (dark.length) L.push(`[data-theme="dark"] {${dark.join(';')}}`);
|
|
120
|
+
if (rest.length) L.push(`:root {${rest.join(';')}}`);
|
|
121
|
+
if ((SYSTEMS[name] || {}).types) {
|
|
122
|
+
for (const g of ((json && json.type) || {}).groups || []) {
|
|
123
|
+
for (const st of g.styles || []) L.push(`.${st.name}{font-family:var(--font-${st.family || g.family || 'sans'});font-size:${st.fontSize};line-height:${st.lineHeight};font-weight:${st.fontWeight}}`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return L.join('\n') + '\n';
|
|
70
127
|
}
|
|
71
128
|
|
|
72
|
-
/* ── the workspace
|
|
129
|
+
/* ── the workspace sheets ── */
|
|
73
130
|
|
|
74
|
-
/** Split CSS into top-level pieces: {
|
|
131
|
+
/** Split CSS into top-level pieces: { sel, body } for a rule or a block at-rule, { raw } for a statement. */
|
|
75
132
|
function pieces(css) {
|
|
76
133
|
const out = [], s = stripComments(css);
|
|
77
134
|
let i = 0;
|
|
@@ -89,57 +146,159 @@ function pieces(css) {
|
|
|
89
146
|
return out;
|
|
90
147
|
}
|
|
91
148
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
if (t === '[data-theme="
|
|
97
|
-
if (t === '
|
|
98
|
-
if (t === '*') return `${
|
|
99
|
-
|
|
149
|
+
const darkOf = (S) => `${S}.dark, html.dark ${S}, :root[data-theme="dark"] ${S}`;
|
|
150
|
+
/** One selector, scoped: the page-root selectors become the scope, everything else sits inside it. */
|
|
151
|
+
function scopeSel(sel, sys) {
|
|
152
|
+
const S = sys.scope, t = sel.trim();
|
|
153
|
+
if (t === ':root' || t === '[data-theme="light"]' || t === 'body') return S;
|
|
154
|
+
if (t === '[data-theme="dark"]') return darkOf(S);
|
|
155
|
+
if (t === '*') return `${S} *`;
|
|
156
|
+
for (const r of sys.roots || []) {
|
|
157
|
+
if (t === r) return S;
|
|
158
|
+
const m = new RegExp('^' + r.replace(/\./g, '\\.') + '(?=[\\s:>+~\\[.])').exec(t);
|
|
159
|
+
if (m) return S + t.slice(r.length);
|
|
160
|
+
}
|
|
161
|
+
return `${S} ${t}`;
|
|
100
162
|
}
|
|
101
|
-
const
|
|
163
|
+
const splitSel = (s) => s.split(/,\s*(?![^()]*\))/); // a comma inside :is(…) or :not(…) does not split
|
|
164
|
+
const scopeList = (sels, sys) => [...new Set(splitSel(splitSel(sels).map((x) => scopeSel(x, sys)).join(', ')))].join(', ');
|
|
165
|
+
|
|
166
|
+
const FONTS = [
|
|
167
|
+
"@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
|
|
168
|
+
"@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
|
|
169
|
+
];
|
|
170
|
+
// the workspace's own glue for pm/komorebi.js (the UI parts' behaviour): the tooltip is placed through two custom properties, never an
|
|
171
|
+
// inline style, and a legend swatch takes its colour from its role class
|
|
172
|
+
const UI_GLUE = [
|
|
173
|
+
`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`,
|
|
174
|
+
...['blue', 'leaf', 'muted', 'alert'].map((r) => `${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`),
|
|
175
|
+
`${SCOPE} .pm-chart-head:empty{display:none}`,
|
|
176
|
+
];
|
|
102
177
|
|
|
103
|
-
/** PURE.
|
|
104
|
-
function sheetOf(tokens, bundle) {
|
|
178
|
+
/** PURE. One system's workspace sheet from its tokens.css and components/bundle.css. */
|
|
179
|
+
function sheetOf(name, tokens, bundle) {
|
|
180
|
+
const sys = SYSTEMS[name];
|
|
105
181
|
const L = [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
' * nothing until a page puts class
|
|
109
|
-
"@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
|
|
110
|
-
"@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
|
|
182
|
+
`/* ${sys.sheet}: ${sys.title}, from the PMOS design system family, for the workspace. GENERATED from workspace/design-system/${name}/ by`,
|
|
183
|
+
` * lib/design-system.js: do not edit; change the system's files and run \`node lib/design-system.js --write\`. Every rule is scoped to ${sys.scope},`,
|
|
184
|
+
' * so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system\'s own sheet. */',
|
|
111
185
|
];
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
186
|
+
if (name === 'brand') L.push(...FONTS);
|
|
187
|
+
// brand and charts sit inside another system's page: their own page-level rules (body, the preview root) are that system's job
|
|
188
|
+
const shared = sys.scope === FAMILY;
|
|
189
|
+
const pageLevel = (x) => { const t = x.trim(); return t === 'body' || t === ':root' || t === '*' || (sys.roots || []).some((r) => t === r || t === r + ' *'); };
|
|
190
|
+
const emit = (list, indent, bundled) => {
|
|
191
|
+
for (const p0 of list) {
|
|
192
|
+
let p = p0;
|
|
193
|
+
if (shared && bundled && p.sel && !/^@/.test(p.sel)) {
|
|
194
|
+
const keep = splitSel(p.sel).filter((x) => !pageLevel(x));
|
|
195
|
+
if (!keep.length) continue;
|
|
196
|
+
p = { sel: keep.join(','), body: p.body };
|
|
197
|
+
}
|
|
198
|
+
if (p.raw) continue; // @import (the network fonts): brand.css's @font-face lines stand in for it
|
|
199
|
+
if (/^@page/.test(p.sel)) continue; // print pages belong to a printed document, not to a workspace page
|
|
200
|
+
if (/^@media|^@supports/.test(p.sel)) { L.push(`${indent}${p.sel} {`); emit(pieces(p.body), indent + ' ', bundled); L.push(`${indent}}`); continue; }
|
|
116
201
|
if (/^@keyframes/.test(p.sel)) { L.push(`${indent}${p.sel}{${p.body.replace(/\s+/g, ' ')}}`); continue; }
|
|
117
|
-
//
|
|
118
|
-
if (
|
|
119
|
-
L.push(`${indent}${scopeList(p.sel)}{${p.body}}`);
|
|
202
|
+
// a preview wrapper's own layout (padding, a column of cards) is for the system's previews, not for a workspace page
|
|
203
|
+
if ((sys.roots || []).includes(p.sel) && /padding/.test(p.body)) continue;
|
|
204
|
+
L.push(`${indent}${scopeList(p.sel, sys)}{${p.body}}`);
|
|
120
205
|
}
|
|
121
206
|
};
|
|
122
|
-
emit(pieces(tokens), '');
|
|
123
|
-
emit(pieces(bundle), '');
|
|
124
|
-
|
|
125
|
-
// inline style, and a legend swatch takes its colour from its role class
|
|
126
|
-
L.push(`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`);
|
|
127
|
-
for (const r of ['blue', 'leaf', 'muted', 'alert']) L.push(`${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`);
|
|
128
|
-
L.push(`${SCOPE} .pm-chart-head:empty{display:none}`);
|
|
207
|
+
emit(pieces(dropImports(tokens)), '', false);
|
|
208
|
+
emit(pieces(dropImports(bundle)), '', true);
|
|
209
|
+
if (name === 'ui') L.push(...UI_GLUE);
|
|
129
210
|
return L.join('\n') + '\n';
|
|
130
211
|
}
|
|
131
212
|
|
|
132
|
-
|
|
133
|
-
|
|
213
|
+
/** Every file the family generates: <sys>/tokens.css in the folder, and (for PMOS's own folder) the public/pm sheets. → { abs path: text } */
|
|
214
|
+
function generated(dir = OWN, pub = PUBLIC) {
|
|
215
|
+
const out = {};
|
|
216
|
+
for (const name of ORDER) {
|
|
217
|
+
const d = path.join(dir, name);
|
|
218
|
+
const json = readJson(path.join(d, 'tokens.json'));
|
|
219
|
+
if (!json) continue;
|
|
220
|
+
const tokens = tokensCss(json, name);
|
|
221
|
+
out[path.join(d, 'tokens.css')] = tokens;
|
|
222
|
+
if (pub) out[path.join(pub, SYSTEMS[name].sheet)] = sheetOf(name, tokens, read(path.join(d, 'components', 'bundle.css')));
|
|
223
|
+
}
|
|
224
|
+
return out;
|
|
225
|
+
}
|
|
226
|
+
/** The workspace's UI sheet (public/pm/komorebi.css), as the files make it. */
|
|
227
|
+
const sheetFromDir = (dir = OWN) => generated(dir)[SHEET];
|
|
228
|
+
|
|
229
|
+
/* ── picking the system ── */
|
|
230
|
+
|
|
231
|
+
/** One ## section of a markdown file, without its heading. */
|
|
232
|
+
function sectionOf(md, heading) {
|
|
233
|
+
const lines = String(md || '').split('\n');
|
|
234
|
+
const at = lines.findIndex((l) => l.trim() === '## ' + heading);
|
|
235
|
+
if (at < 0) return '';
|
|
236
|
+
const end = lines.findIndex((l, i) => i > at && /^#{1,2} /.test(l));
|
|
237
|
+
return lines.slice(at + 1, end < 0 ? lines.length : end).join('\n').trim();
|
|
238
|
+
}
|
|
239
|
+
const bodyOf = (md) => String(md || '').replace(/^---\n[\s\S]*?\n---\n/, '').trim();
|
|
240
|
+
|
|
241
|
+
/** The rules a maker follows for one system: the content rules of its README, after how to use its classes. */
|
|
242
|
+
function rulesOf(name, dir) {
|
|
243
|
+
if (name === 'ui') return RULES;
|
|
244
|
+
if (name === 'messages') return `Follow the PMOS Messages rules (PMOS Documents):\n${bodyOf(read(path.join(dir, 'documents', 'messages.md'))).replace(/^# .*\n+/, '')}`;
|
|
245
|
+
const sys = SYSTEMS[name];
|
|
246
|
+
const rules = sectionOf(read(path.join(dir, name, 'README.md')), 'Content rules');
|
|
247
|
+
return [`Follow ${sys.title} (the stylesheet below is its tokens and parts):`, `- ${sys.use}`, rules].filter(Boolean).join('\n');
|
|
134
248
|
}
|
|
135
249
|
|
|
250
|
+
/** The sheet a maker pastes: brand, charts, then the system's own tokens and parts, comments and the font @import removed. */
|
|
251
|
+
function cssOf(dirs, systems) {
|
|
252
|
+
return stripComments(dropImports(systems.map((s) => read(path.join(dirs[s], s, 'tokens.css')) + '\n' + read(path.join(dirs[s], s, 'components', 'bundle.css'))).join('\n')));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** The family for one kind of output. roots: folders to look in, the product's first. A product's brand/ wins; every other system comes
|
|
256
|
+
* from the LAST root that has it (PMOS's own copy, when the caller passes it), so a product overrides brand only.
|
|
257
|
+
* opts.fallback (default true): PMOS's own folder is the last root. → { kind, systems, css, rules, from, ds } (empty css and rules when
|
|
258
|
+
* nothing has the family). */
|
|
259
|
+
function designSystemFor(kind, roots, { fallback = true } = {}) {
|
|
260
|
+
const want = KINDS[kind];
|
|
261
|
+
if (!want) throw new Error(`designSystemFor: unknown kind "${kind}" (one of ${Object.keys(KINDS).join(', ')})`);
|
|
262
|
+
const found = dirsOf(roots);
|
|
263
|
+
if (fallback && fs.existsSync(path.join(OWN, 'brand', 'tokens.json')) && !found.includes(OWN)) found.push(OWN);
|
|
264
|
+
const empty = { kind, systems: [], css: '', rules: '', from: [] };
|
|
265
|
+
if (!found.length) return empty;
|
|
266
|
+
const msg = want[0] === 'messages';
|
|
267
|
+
const systems = msg ? ['documents'] : ['brand', 'charts', ...want.filter((s) => s !== 'charts')];
|
|
268
|
+
const dirs = {};
|
|
269
|
+
for (const s of systems) dirs[s] = s === 'brand' ? found.find((d) => has(d, s)) : [...found].reverse().find((d) => has(d, s));
|
|
270
|
+
if (systems.some((s) => !dirs[s])) return empty;
|
|
271
|
+
const main = msg ? 'messages' : want[0];
|
|
272
|
+
const rules = [rulesOf(main, dirs[msg ? 'documents' : main]), ...(!msg && main !== 'charts' ? [rulesOf('charts', dirs.charts).replace(/^Follow PMOS Charts \(the stylesheet below is its tokens and parts\):/, 'Charts and diagrams follow PMOS Charts:')] : [])].join('\n');
|
|
273
|
+
if (msg) return { kind, systems: ['documents'], css: '', rules, from: [path.join(dirs.documents, 'documents', 'messages.md')], ds: dirs.documents };
|
|
274
|
+
const from = systems.flatMap((s) => [path.join(dirs[s], s, 'tokens.css'), ...(s === 'brand' ? [] : [path.join(dirs[s], s, 'components', 'bundle.css')])]);
|
|
275
|
+
return { kind, systems, css: cssOf(dirs, systems), rules, from, ds: dirs[main] };
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** The content rules alone (the system's README section), for a maker that writes markdown and so needs no sheet: a core document. */
|
|
279
|
+
function writingRulesFor(kind, roots) {
|
|
280
|
+
const want = KINDS[kind];
|
|
281
|
+
if (!want) throw new Error(`writingRulesFor: unknown kind "${kind}"`);
|
|
282
|
+
const main = want[0] === 'messages' ? 'documents' : want[0];
|
|
283
|
+
const dir = [...dirsOf(roots), OWN].find((d) => has(d, main));
|
|
284
|
+
if (!dir) return '';
|
|
285
|
+
if (want[0] === 'messages') return rulesOf('messages', dir);
|
|
286
|
+
const rules = sectionOf(read(path.join(dir, main, 'README.md')), 'Content rules');
|
|
287
|
+
return rules ? `Follow the content rules of ${SYSTEMS[main].title}:\n${rules}` : '';
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** The scaffold a prototype run gets from roots only (no fallback): { css, rules, from, ds }, empty when no root has the family. */
|
|
291
|
+
const scaffoldOf = (roots) => designSystemFor('prototype', roots, { fallback: false });
|
|
292
|
+
|
|
136
293
|
if (require.main === module) {
|
|
137
|
-
const want =
|
|
138
|
-
if (process.argv.includes('--write')) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
294
|
+
const want = generated();
|
|
295
|
+
if (process.argv.includes('--write')) {
|
|
296
|
+
for (const [f, t] of Object.entries(want)) { fs.writeFileSync(f, t); console.log('✓ wrote ' + path.relative(process.cwd(), f)); }
|
|
297
|
+
} else if (process.argv.includes('--check')) {
|
|
298
|
+
const stale = Object.entries(want).filter(([f, t]) => read(f) !== t).map(([f]) => path.relative(process.cwd(), f));
|
|
299
|
+
if (stale.length) { console.error(`✗ not what workspace/design-system/ makes: ${stale.join(', ')}. Run: node lib/design-system.js --write`); process.exit(1); }
|
|
300
|
+
console.log(`✓ ${Object.keys(want).length} generated files match workspace/design-system/`);
|
|
142
301
|
} else { console.log('usage: node lib/design-system.js --write | --check'); process.exit(2); }
|
|
143
302
|
}
|
|
144
303
|
|
|
145
|
-
module.exports = { OWN, SHEET, SCOPE, PLACES, RULES, dirOf,
|
|
304
|
+
module.exports = { OWN, PUBLIC, SHEET, SCOPE, FAMILY, PLACES, SYSTEMS, ORDER, KINDS, RULES, dirOf, tokensOf, tokensCss, pieces, sheetOf, generated, sheetFromDir, sectionOf, rulesOf, designSystemFor, writingRulesFor, scaffoldOf };
|
|
@@ -226,9 +226,9 @@ const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, ''
|
|
|
226
226
|
function scaffoldOf(roots) {
|
|
227
227
|
// the PMOS design system first (Wawan 2026-11-19: "when a user create a prototype on PMOS, it also use a proper design system that is
|
|
228
228
|
// provided by the PMOS"): the product's copy of it (pmos/design-system/ from the kit), then the product's own token sheet, then PMOS's own
|
|
229
|
+
// the product's copy may change brand only: its brand/ wins, the other systems come from PMOS's own copy when the roots include it
|
|
229
230
|
const [prod, ...rest] = (roots || []).filter(Boolean);
|
|
230
|
-
const own = DS.scaffoldOf([prod]);
|
|
231
|
-
if (own.css) return own;
|
|
231
|
+
if (DS.dirOf([prod])) { const own = DS.scaffoldOf([prod, ...rest]); if (own.css) return own; }
|
|
232
232
|
const theirs = tokensOf([prod]);
|
|
233
233
|
if (theirs.css) return theirs;
|
|
234
234
|
const ds = DS.scaffoldOf(rest);
|
|
@@ -51,6 +51,7 @@ const RDraft = require('./report-draft.js');
|
|
|
51
51
|
const RP = require('./report-pyramid.js');
|
|
52
52
|
const RE = require('./report-engine.js');
|
|
53
53
|
const headless = require('./headless.js');
|
|
54
|
+
const DS = require('./design-system.js');
|
|
54
55
|
|
|
55
56
|
const text = (v) => (typeof v === 'string' ? v : '');
|
|
56
57
|
const bad = (status, error) => ({ status, body: { ok: false, error } });
|
|
@@ -103,6 +104,13 @@ function promptFor(skill, { mode, root, cadence, setup, st, turnText, points, cy
|
|
|
103
104
|
const format = (mode === 'turn' ? st.format : null) || (cur && cur.format) || st.format || 'deck';
|
|
104
105
|
lines.push(`- Format: ${format === 'doc' ? 'doc (a document of pmos-sec sections)' : 'deck (pmos-slide slides on 1280 x 720)'}`);
|
|
105
106
|
lines.push(`- Description: ${st.description ? st.description.replace(/\s+/g, ' ') : 'none'}`);
|
|
107
|
+
// the standard look is the PMOS design system for the format (PMOS Slides for a deck, PMOS Documents for a document, PMOS Charts for
|
|
108
|
+
// their charts): the product's brand first. A look the PM set (the description, a sample, the previous or reference version) wins.
|
|
109
|
+
const ds = DS.designSystemFor(format === 'doc' ? 'report' : 'deck', [abs]);
|
|
110
|
+
if (ds.css) {
|
|
111
|
+
lines.push(`- Standard look: when the description, the samples and the previous version set no look, draw in the PMOS design system. Copy these files, in this order and without their @import lines, into your one <style> block: ${ds.from.join(', ')}. Keep the ${format === 'doc' ? 'pmos-sec' : 'pmos-slide'} sections and put the system's classes inside them.`);
|
|
112
|
+
lines.push(...ds.rules.split('\n').map((l) => ' ' + l));
|
|
113
|
+
}
|
|
106
114
|
const samples = [...st.samples.values()];
|
|
107
115
|
if (mode === 'turn') {
|
|
108
116
|
lines.push(samples.length ? '- Samples:' : '- Samples: none');
|
|
@@ -629,4 +637,4 @@ async function handle(req, res, url, ctx) {
|
|
|
629
637
|
return send(bad(404, 'no such route'));
|
|
630
638
|
}
|
|
631
639
|
|
|
632
|
-
module.exports = { prefixes: ['/api/report-design', '/api/report-notes'], handle, attach, sweep, startCycle, resultJson, _jobs: jobs, _fetches: fetches, startFetch };
|
|
640
|
+
module.exports = { prefixes: ['/api/report-design', '/api/report-notes'], handle, attach, sweep, startCycle, resultJson, _promptFor: promptFor, _jobs: jobs, _fetches: fetches, startFetch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.638.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.638.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* brand.css: PMOS Brand, from the PMOS design system family, for the workspace. GENERATED from workspace/design-system/brand/ by
|
|
2
|
+
* lib/design-system.js: do not edit; change the system's files and run `node lib/design-system.js --write`. Every rule is scoped to :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds),
|
|
3
|
+
* so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system's own sheet. */
|
|
4
|
+
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }
|
|
5
|
+
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }
|
|
6
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds){--ground:#EFE8E3;--ground-morning:#EEF3F8;--ground-afternoon:#F5EEE2;--ground-evening:#EFE8E3;--ground-night:#1B1D21;--card:#FFFFFF;--well:#F4F2EE;--line:rgba(42,46,53,.12);--ink:#2A2E35;--muted:#646A74;--blue:#2F5FB3;--on-blue:#FFFFFF;--blue-tint:#ECF1F8;--leaf:#5F7A45;--leaf-tint:#F2F4F0;--alert:#A4461A;--alert-tint:#F7EEEA}
|
|
7
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds).dark, html.dark :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds), :root[data-theme="dark"] :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds){--ground:#1B1D21;--card:#24262B;--well:#1B1D21;--line:rgba(236,238,241,.12);--ink:#ECEEF1;--muted:#9EA4AD;--blue:#6AAAF0;--on-blue:#14161A;--blue-tint:#2A323D;--leaf:#A9C48C;--leaf-tint:#2F3333;--alert:#E8A07A;--alert-tint:#363132}
|
|
8
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds){--duration-quick:120ms;--duration-enter:200ms;--duration-leaf:600ms;--duration-light:20min;--ease-out:cubic-bezier(.2, .7, .2, 1);--ease-drift:cubic-bezier(.4, 0, .2, 1);--font-sans:"Plus Jakarta Sans", system-ui, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, monospace}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* charts.css: PMOS Charts, from the PMOS design system family, for the workspace. GENERATED from workspace/design-system/charts/ by
|
|
2
|
+
* lib/design-system.js: do not edit; change the system's files and run `node lib/design-system.js --write`. Every rule is scoped to :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds),
|
|
3
|
+
* so the sheet changes nothing until a page puts the class on its root. Load brand.css, then charts.css, then the system's own sheet. */
|
|
4
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds){--chart-read:var(--blue);--chart-done:var(--leaf);--chart-plan:var(--muted);--chart-risk:var(--alert);--chart-rest:#C9CDD3;--chart-grid:var(--line);--diagram-step:var(--card);--diagram-edge:var(--muted);--diagram-lane:var(--well);--diagram-now:var(--leaf);--raise:0 1px 2px rgba(42,46,53,.08), 0 4px 14px -6px rgba(70,80,50,.14);--lift:0 10px 28px -10px rgba(42,46,53,.28);--glow:0 0 0 2px #5F7A45, 0 0 0 5px rgba(95,122,69,.10)}
|
|
5
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds).dark, html.dark :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds), :root[data-theme="dark"] :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds){--chart-rest:#4A4F57;--raise:0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(169,196,140,.08);--lift:0 10px 28px -10px rgba(0,0,0,.6);--glow:0 0 0 2px #A9C48C, 0 0 0 5px rgba(169,196,140,.12)}
|
|
6
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds){--chart-h-spark:32px;--chart-h-compact:120px;--chart-h-standard:180px;--chart-h-tall:240px;--chart-w-slide:1408px;--chart-w-page:642px;--chart-max-bars:12;--chart-max-series:3;--diagram-max-steps:6;--radius-mark:4px;--radius-step:16px;--radius-lane:10px}
|
|
7
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc *{box-sizing:border-box}
|
|
8
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc{margin:0;display:flex;flex-direction:column;gap:8px;font-family:var(--font-sans);color:var(--ink);min-width:0}
|
|
9
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
|
|
10
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-answer{margin:0;font-weight:600;font-size:18px;line-height:24px;text-wrap:balance}
|
|
11
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-src, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-range{margin:0;font-size:13px;line-height:20px;color:var(--muted)}
|
|
12
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-pick{margin:0;font-size:13px;line-height:20px;color:var(--muted);min-height:20px}
|
|
13
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot{position:relative;min-width:0;border-radius:6px;outline:none}
|
|
14
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot:focus-visible{box-shadow:var(--glow)}
|
|
15
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot.pc-fade{animation:pcFade var(--duration-enter,200ms) var(--ease-out,ease-out)}
|
|
16
|
+
@keyframes pcFade{from{opacity:.25}to{opacity:1}}
|
|
17
|
+
@media (prefers-reduced-motion:reduce) {
|
|
18
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot.pc-fade{animation:none}
|
|
19
|
+
}
|
|
20
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-read{fill:var(--chart-read)}
|
|
21
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-read{stroke:var(--chart-read)}
|
|
22
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-done{fill:var(--chart-done)}
|
|
23
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-done{stroke:var(--chart-done)}
|
|
24
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-plan{fill:var(--chart-plan)}
|
|
25
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-plan{stroke:var(--chart-plan)}
|
|
26
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-risk{fill:var(--chart-risk)}
|
|
27
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-risk{stroke:var(--chart-risk)}
|
|
28
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-rest{fill:var(--chart-rest)}
|
|
29
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-rest{stroke:var(--chart-rest)}
|
|
30
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-track{fill:var(--well)}
|
|
31
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-grid{stroke:var(--chart-grid);stroke-width:1}
|
|
32
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-cross{stroke:var(--muted);stroke-width:1;stroke-dasharray:2 3}
|
|
33
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .f-edge{fill:var(--diagram-edge)}
|
|
34
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .s-edge{stroke:var(--diagram-edge)}
|
|
35
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot .pc-hl{filter:brightness(1.08)}
|
|
36
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot .pc-sel{stroke:var(--chart-done);stroke-width:3;paint-order:stroke}
|
|
37
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-l{fill:var(--muted);font-family:var(--font-sans)}
|
|
38
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-ink{fill:var(--ink)}
|
|
39
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-v{fill:var(--ink);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
|
|
40
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tip{position:absolute;z-index:2;pointer-events:none;white-space:nowrap;background:var(--card);color:var(--ink);font-size:13px;line-height:20px;padding:4px 10px;border-radius:var(--radius-md,10px);box-shadow:var(--lift);font-variant-numeric:tabular-nums}
|
|
41
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tabs{display:inline-flex;gap:2px;padding:3px;background:var(--well);border-radius:var(--radius-md,10px)}
|
|
42
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tabs button{font:inherit;font-size:13px;line-height:20px;border:0;background:none;color:var(--muted);padding:3px 10px;border-radius:var(--radius-sm,6px);cursor:pointer}
|
|
43
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tabs button[aria-selected="true"]{background:var(--card);color:var(--ink);font-weight:600;box-shadow:var(--raise)}
|
|
44
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog{display:flex;gap:6px;flex-wrap:wrap}
|
|
45
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog button{font:inherit;font-size:13px;line-height:20px;display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--card);color:var(--ink);padding:2px 10px;border-radius:999px;cursor:pointer}
|
|
46
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog button[aria-pressed="false"]{color:var(--muted);background:none;border-style:dashed}
|
|
47
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog button[aria-pressed="false"] i{opacity:.3}
|
|
48
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog i{width:10px;height:10px;border-radius:3px;display:inline-block}
|
|
49
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog i.f-read{background:var(--chart-read)}
|
|
50
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog i.f-done{background:var(--chart-done)}
|
|
51
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog i.f-plan{background:var(--chart-plan)}
|
|
52
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog i.f-risk{background:var(--chart-risk)}
|
|
53
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog i.f-rest{background:var(--chart-rest)}
|
|
54
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) button:focus-visible{outline:none;box-shadow:var(--glow)}
|
|
55
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-flow{display:flex;align-items:stretch;gap:28px;flex-wrap:wrap}
|
|
56
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-flow>.pc-step, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-flow>.pc-group{position:relative}
|
|
57
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-flow>*+*::before{content:"";position:absolute;left:-22px;top:50%;width:16px;height:2px;background:var(--diagram-edge)}
|
|
58
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-flow>*+*::after{content:"";position:absolute;left:-10px;top:calc(50% - 4px);border:5px solid transparent;border-left:6px solid var(--diagram-edge);border-right:0}
|
|
59
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step{font:inherit;text-align:left;display:flex;flex-direction:column;gap:2px;min-width:120px;flex:1 1 120px;max-width:240px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-card,16px);background:var(--diagram-step);color:var(--ink);font-size:13px;line-height:20px}
|
|
60
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) button.pc-step{cursor:pointer}
|
|
61
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) button.pc-step:hover{background:var(--well)}
|
|
62
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step b{font-weight:600;font-size:15px;line-height:22px}
|
|
63
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step span{color:var(--muted)}
|
|
64
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step em{font-style:normal;color:var(--alert)}
|
|
65
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step time{color:var(--muted);font-variant-numeric:tabular-nums}
|
|
66
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step.pc-now{box-shadow:var(--glow);background:var(--leaf-tint)}
|
|
67
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step.pc-done{color:var(--muted)}
|
|
68
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step.pc-done b{color:var(--muted);font-weight:600}
|
|
69
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step.pc-late, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step.pc-risk{border-color:var(--alert)}
|
|
70
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step.pc-on{outline:2px solid var(--diagram-now);outline-offset:2px}
|
|
71
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-group{border:1.5px dashed var(--line);border-radius:var(--radius-panel,24px);padding:8px 12px 12px;display:flex;flex-direction:column;gap:6px}
|
|
72
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-gname{margin:0;font-size:13px;color:var(--muted);font-weight:600}
|
|
73
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tl{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px;position:relative}
|
|
74
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tl::before{content:"";position:absolute;left:8px;right:8px;top:7px;height:2px;background:var(--line)}
|
|
75
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp{position:relative;display:flex;flex-direction:column;gap:8px}
|
|
76
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp>i{width:16px;height:16px;border-radius:50%;background:var(--card);border:2px solid var(--chart-plan);position:relative}
|
|
77
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp.pc-done>i{background:var(--chart-plan)}
|
|
78
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp.pc-now>i{border-color:var(--diagram-now);box-shadow:0 0 0 4px var(--leaf-tint)}
|
|
79
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp.pc-late>i{border-color:var(--alert)}
|
|
80
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp .pc-step{min-width:0;max-width:none;border:0;padding:0;background:none;box-shadow:none}
|
|
81
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp .pc-step.pc-now{box-shadow:none;background:none}
|
|
82
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-swx{overflow-x:auto;padding:4px 14px;margin:0 -14px}
|
|
83
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-sw{min-width:620px;position:relative;display:grid;gap:10px 28px;align-items:center}
|
|
84
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-lane{grid-column:1;font-size:13px;font-weight:600;color:var(--muted);padding-right:4px;white-space:nowrap}
|
|
85
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-laneband{background:var(--diagram-lane);border-radius:var(--radius-md,10px);align-self:stretch;margin:-5px -14px}
|
|
86
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-cell{position:relative;z-index:1;display:flex}
|
|
87
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-cell .pc-step{max-width:none}
|
|
88
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-edges{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
|
|
89
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rg{display:grid;grid-template-columns:auto repeat(var(--n),minmax(0,1fr));gap:8px 0;align-items:center;font-size:13px}
|
|
90
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgc{color:var(--muted);text-align:center;padding-bottom:4px;border-bottom:1px solid var(--line)}
|
|
91
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgc.pc-today{color:var(--ink);font-weight:600}
|
|
92
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgn{font-weight:600;padding-right:16px;white-space:nowrap}
|
|
93
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgt{position:relative;height:30px}
|
|
94
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgb{font:inherit;position:absolute;top:2px;height:26px;border:0;border-radius:var(--radius-sm,6px);padding:0 8px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:26px;background:var(--chart-rest);color:var(--ink)}
|
|
95
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgb.pc-done{background:var(--well);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
|
|
96
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgb.pc-now{background:var(--chart-read);color:var(--on-blue)}
|
|
97
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgb.pc-late, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-rgb.pc-risk{background:var(--alert-tint);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--alert)}
|
|
98
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) button.pc-rgb{cursor:pointer}
|
|
99
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-todayline{position:absolute;top:-6px;bottom:-6px;width:2px;background:var(--diagram-now);border-radius:2px}
|
|
100
|
+
@media (max-width:560px) {
|
|
101
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-flow{flex-direction:column}
|
|
102
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-flow>*+*::before{left:24px;top:-20px;width:2px;height:14px}
|
|
103
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-flow>*+*::after{left:20px;top:-9px;border:5px solid transparent;border-top:6px solid var(--diagram-edge);border-bottom:0}
|
|
104
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-flow .pc-step{max-width:none;flex:none}
|
|
105
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-tl{grid-auto-flow:row;grid-template-columns:none}
|
|
106
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-tl::before{left:7px;right:auto;top:8px;bottom:8px;width:2px;height:auto}
|
|
107
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-tp{flex-direction:row}
|
|
108
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-screen .pc-tp>i{flex:none}
|
|
109
|
+
}
|
|
110
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-slide{--u:calc(100cqw/1408);gap:calc(24*var(--u))}
|
|
111
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-slideframe{container-type:inline-size;position:relative;aspect-ratio:16/9;background:var(--card);border-radius:6px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
|
|
112
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-slideframe>.pcx-in{--u:calc(100cqw/1920);position:absolute;inset:0;padding:calc(96*var(--u)) calc(112*var(--u)) calc(128*var(--u));display:flex;flex-direction:column;gap:calc(32*var(--u))}
|
|
113
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-slideframe h2{margin:0;font-size:calc(56*var(--u));line-height:calc(68*var(--u));font-weight:600;text-wrap:balance}
|
|
114
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-slideframe .pc-src{position:absolute;left:calc(112*var(--u));bottom:calc(48*var(--u));font-size:calc(20*var(--u));line-height:1.4}
|
|
115
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-in .pc-slide .pc-step{font-size:calc(24*var(--u));padding:calc(16*var(--u)) calc(24*var(--u));border-radius:calc(24*var(--u));min-width:0}
|
|
116
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-in .pc-slide .pc-step b{font-size:calc(30*var(--u));line-height:1.3}
|
|
117
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-in .pc-slide .pc-flow{gap:calc(56*var(--u));flex-wrap:nowrap}
|
|
118
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page{gap:6px}
|
|
119
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-answer{font-size:14px;line-height:20px}
|
|
120
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-src, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-range{font-size:12px;line-height:17px}
|
|
121
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-step{font-size:12px;line-height:17px;padding:6px 10px;border-radius:10px;min-width:0;box-shadow:none}
|
|
122
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-step b{font-size:13px;line-height:18px}
|
|
123
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-step.pc-now{outline:2px solid var(--diagram-now);outline-offset:-2px;background:none}
|
|
124
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-rg, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-rgb{font-size:12px}
|
|
125
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-page .pc-rgb.pc-now{background:var(--chart-read);color:var(--on-blue)}
|
|
126
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pcx-paper{background:var(--card);color:var(--ink);padding:28px 34px;border-radius:4px;box-shadow:0 0 0 1px var(--line);max-width:642px}
|
|
127
|
+
@media print {
|
|
128
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tip, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tabs, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tog, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-pick{display:none!important}
|
|
129
|
+
:is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-step, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tp, :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-sw{break-inside:avoid}
|
|
130
|
+
}
|