@once-ui-system/core 1.8.5 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/ai/catalog.json +166 -78
- package/ai/components/Accordion.json +1 -1
- package/ai/components/BarChart.json +34 -3
- package/ai/components/Book.json +128 -0
- package/ai/components/Button.json +1 -1
- package/ai/components/Card.json +1 -0
- package/ai/components/Carousel.json +1 -1
- package/ai/components/ChartHeader.json +2 -1
- package/ai/components/ChartStatus.json +2 -1
- package/ai/components/Checkbox.json +2 -2
- package/ai/components/CodeBlock.json +23 -2
- package/ai/components/ColorInput.json +1 -1
- package/ai/components/DataTooltip.json +3 -2
- package/ai/components/DatePicker.json +2 -2
- package/ai/components/Dialog.json +1 -1
- package/ai/components/DropdownWrapper.json +6 -4
- package/ai/components/Effect.json +133 -0
- package/ai/components/Fade.json +1 -1
- package/ai/components/Feedback.json +1 -1
- package/ai/components/IconButton.json +1 -1
- package/ai/components/InfoTip.json +125 -0
- package/ai/components/Input.json +5 -4
- package/ai/components/Legend.json +2 -1
- package/ai/components/LineBarChart.json +34 -3
- package/ai/components/LineChart.json +39 -3
- package/ai/components/LinearGauge.json +3 -2
- package/ai/components/LinearGradient.json +2 -1
- package/ai/components/Logo.json +2 -2
- package/ai/components/Media.json +1 -1
- package/ai/components/MediaUpload.json +21 -2
- package/ai/components/Modal.json +1 -1
- package/ai/components/NavGroup.json +130 -0
- package/ai/components/NavIcon.json +1 -1
- package/ai/components/NavItem.json +14 -0
- package/ai/components/Option.json +2 -2
- package/ai/components/Particle.json +1 -1
- package/ai/components/PieChart.json +32 -3
- package/ai/components/ProgressBar.json +1 -1
- package/ai/components/Pulse.json +1 -1
- package/ai/components/RadialGauge.json +4 -3
- package/ai/components/RadialGradient.json +2 -1
- package/ai/components/RadioButton.json +1 -1
- package/ai/components/RevealFx.json +1 -1
- package/ai/components/Scrubber.json +136 -0
- package/ai/components/SegmentedControl.json +3 -3
- package/ai/components/Setting.json +128 -0
- package/ai/components/SettingAxes.json +127 -0
- package/ai/components/SettingGroup.json +129 -0
- package/ai/components/ShineFx.json +1 -1
- package/ai/components/Skeleton.json +2 -3
- package/ai/components/SplitView.json +2 -0
- package/ai/components/StylePanel.json +4 -2
- package/ai/components/Swatch.json +11 -0
- package/ai/components/Swiper.json +1 -1
- package/ai/components/Switch.json +1 -1
- package/ai/components/Tag.json +1 -1
- package/ai/components/Textarea.json +6 -5
- package/ai/components/ThemeSwitcher.json +3 -0
- package/ai/components/Toast.json +1 -1
- package/ai/components/ToggleButton.json +2 -1
- package/ai/eval-tasks.md +10 -1
- package/ai/examples/app-shell.tsx +111 -0
- package/ai/examples/auth.tsx +2 -3
- package/ai/examples/blocks/Dashboard1.tsx +25 -36
- package/ai/examples/blocks/Feed3.tsx +8 -8
- package/ai/examples/blocks/Footer1.tsx +5 -3
- package/ai/examples/blocks/Footer2.tsx +3 -3
- package/ai/examples/blocks/Footer3.tsx +1 -1
- package/ai/examples/blocks/Footer4.tsx +6 -5
- package/ai/examples/blocks/Header1.tsx +7 -6
- package/ai/examples/blocks/Header2.tsx +1 -1
- package/ai/examples/blocks/Header3.tsx +7 -7
- package/ai/examples/blocks/Header4.tsx +6 -7
- package/ai/examples/blocks/Productivity1.tsx +1 -1
- package/ai/examples/blocks/Roadmap1.tsx +3 -3
- package/ai/examples/blocks/Sidebar1.tsx +1 -1
- package/ai/examples/blocks/Sidebar2.tsx +1 -1
- package/ai/examples/blocks/Sidebar4.tsx +1 -1
- package/ai/examples/blocks/Streaming1.tsx +4 -4
- package/ai/examples/blocks/Table1.tsx +9 -9
- package/ai/examples/blocks/Waitlist1.tsx +5 -5
- package/ai/examples/blocks/content/resources.ts +3 -1
- package/ai/examples/dashboard.tsx +13 -14
- package/ai/examples/marketing-hero.tsx +4 -4
- package/ai/examples/pricing.tsx +7 -8
- package/ai/examples/settings.tsx +7 -7
- package/ai/gotchas.json +99 -25
- package/ai/layouts.md +154 -0
- package/ai/manifest.json +3 -2
- package/ai/recipes.md +50 -5
- package/ai/rules.compact.md +26 -5
- package/ai/rules.md +84 -14
- package/ai/spec.json +634 -176
- package/ai/tasks/settings.json +1 -1
- package/dist/AGENTS.md +1 -1
- package/dist/ai/catalog.json +166 -78
- package/dist/ai/components/Accordion.json +1 -1
- package/dist/ai/components/BarChart.json +34 -3
- package/dist/ai/components/Book.json +128 -0
- package/dist/ai/components/Button.json +1 -1
- package/dist/ai/components/Card.json +1 -0
- package/dist/ai/components/Carousel.json +1 -1
- package/dist/ai/components/ChartHeader.json +2 -1
- package/dist/ai/components/ChartStatus.json +2 -1
- package/dist/ai/components/Checkbox.json +2 -2
- package/dist/ai/components/CodeBlock.json +23 -2
- package/dist/ai/components/ColorInput.json +1 -1
- package/dist/ai/components/DataTooltip.json +3 -2
- package/dist/ai/components/DatePicker.json +2 -2
- package/dist/ai/components/Dialog.json +1 -1
- package/dist/ai/components/DropdownWrapper.json +6 -4
- package/dist/ai/components/Effect.json +133 -0
- package/dist/ai/components/Fade.json +1 -1
- package/dist/ai/components/Feedback.json +1 -1
- package/dist/ai/components/IconButton.json +1 -1
- package/dist/ai/components/InfoTip.json +125 -0
- package/dist/ai/components/Input.json +5 -4
- package/dist/ai/components/Legend.json +2 -1
- package/dist/ai/components/LineBarChart.json +34 -3
- package/dist/ai/components/LineChart.json +39 -3
- package/dist/ai/components/LinearGauge.json +3 -2
- package/dist/ai/components/LinearGradient.json +2 -1
- package/dist/ai/components/Logo.json +2 -2
- package/dist/ai/components/Media.json +1 -1
- package/dist/ai/components/MediaUpload.json +21 -2
- package/dist/ai/components/Modal.json +1 -1
- package/dist/ai/components/NavGroup.json +130 -0
- package/dist/ai/components/NavIcon.json +1 -1
- package/dist/ai/components/NavItem.json +14 -0
- package/dist/ai/components/Option.json +2 -2
- package/dist/ai/components/Particle.json +1 -1
- package/dist/ai/components/PieChart.json +32 -3
- package/dist/ai/components/ProgressBar.json +1 -1
- package/dist/ai/components/Pulse.json +1 -1
- package/dist/ai/components/RadialGauge.json +4 -3
- package/dist/ai/components/RadialGradient.json +2 -1
- package/dist/ai/components/RadioButton.json +1 -1
- package/dist/ai/components/RevealFx.json +1 -1
- package/dist/ai/components/Scrubber.json +136 -0
- package/dist/ai/components/SegmentedControl.json +3 -3
- package/dist/ai/components/Setting.json +128 -0
- package/dist/ai/components/SettingAxes.json +127 -0
- package/dist/ai/components/SettingGroup.json +129 -0
- package/dist/ai/components/ShineFx.json +1 -1
- package/dist/ai/components/Skeleton.json +2 -3
- package/dist/ai/components/SplitView.json +2 -0
- package/dist/ai/components/StylePanel.json +4 -2
- package/dist/ai/components/Swatch.json +11 -0
- package/dist/ai/components/Swiper.json +1 -1
- package/dist/ai/components/Switch.json +1 -1
- package/dist/ai/components/Tag.json +1 -1
- package/dist/ai/components/Textarea.json +6 -5
- package/dist/ai/components/ThemeSwitcher.json +3 -0
- package/dist/ai/components/Toast.json +1 -1
- package/dist/ai/components/ToggleButton.json +2 -1
- package/dist/ai/eval-tasks.md +10 -1
- package/dist/ai/gotchas.json +99 -25
- package/dist/ai/layouts.md +154 -0
- package/dist/ai/manifest.json +3 -2
- package/dist/ai/recipes.md +50 -5
- package/dist/ai/rules.compact.md +26 -5
- package/dist/ai/rules.md +84 -14
- package/dist/ai/spec.json +634 -176
- package/dist/ai/tasks/settings.json +1 -1
- package/dist/components/Accordion.d.ts +2 -1
- package/dist/components/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion.js.map +1 -1
- package/dist/components/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Avatar.js.map +1 -1
- package/dist/components/Background.d.ts +6 -6
- package/dist/components/Background.d.ts.map +1 -1
- package/dist/components/Book.d.ts +28 -0
- package/dist/components/Book.d.ts.map +1 -0
- package/dist/components/Book.js +24 -0
- package/dist/components/Book.js.map +1 -0
- package/dist/components/Book.module.scss +45 -0
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +4 -4
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Card.d.ts +8 -0
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Card.js +10 -2
- package/dist/components/Card.js.map +1 -1
- package/dist/components/Card.module.scss +11 -1
- package/dist/components/Carousel.d.ts +7 -1
- package/dist/components/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel.js +7 -7
- package/dist/components/Carousel.js.map +1 -1
- package/dist/components/Carousel.module.scss +1 -8
- package/dist/components/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox.js +5 -5
- package/dist/components/Checkbox.js.map +1 -1
- package/dist/components/ClientFlex.d.ts.map +1 -1
- package/dist/components/ClientFlex.js +5 -10
- package/dist/components/ClientFlex.js.map +1 -1
- package/dist/components/ClientGrid.d.ts.map +1 -1
- package/dist/components/ClientGrid.js +2 -7
- package/dist/components/ClientGrid.js.map +1 -1
- package/dist/components/ColorInput.d.ts +1 -1
- package/dist/components/ColorInput.d.ts.map +1 -1
- package/dist/components/ColorInput.js +7 -13
- package/dist/components/ColorInput.js.map +1 -1
- package/dist/components/CompareImage.d.ts.map +1 -1
- package/dist/components/CompareImage.js +2 -2
- package/dist/components/CompareImage.js.map +1 -1
- package/dist/components/DateInput.d.ts.map +1 -1
- package/dist/components/DateInput.js +10 -1
- package/dist/components/DateInput.js.map +1 -1
- package/dist/components/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker.js +21 -14
- package/dist/components/DatePicker.js.map +1 -1
- package/dist/components/DateRangeInput.js +3 -3
- package/dist/components/DateRangeInput.js.map +1 -1
- package/dist/components/Dialog.d.ts +1 -1
- package/dist/components/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog.js +14 -14
- package/dist/components/Dialog.js.map +1 -1
- package/dist/components/DropdownWrapper.d.ts +8 -3
- package/dist/components/DropdownWrapper.d.ts.map +1 -1
- package/dist/components/DropdownWrapper.js +17 -6
- package/dist/components/DropdownWrapper.js.map +1 -1
- package/dist/components/Effect.d.ts +41 -0
- package/dist/components/Effect.d.ts.map +1 -0
- package/dist/components/Effect.js +30 -0
- package/dist/components/Effect.js.map +1 -0
- package/dist/components/ElementType.d.ts +2 -1
- package/dist/components/ElementType.d.ts.map +1 -1
- package/dist/components/ElementType.js +4 -2
- package/dist/components/ElementType.js.map +1 -1
- package/dist/components/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker.js +1 -1
- package/dist/components/EmojiPicker.js.map +1 -1
- package/dist/components/Feedback.d.ts +1 -1
- package/dist/components/Feedback.d.ts.map +1 -1
- package/dist/components/Feedback.js +2 -2
- package/dist/components/Feedback.js.map +1 -1
- package/dist/components/Flex.d.ts.map +1 -1
- package/dist/components/Flex.js +46 -5
- package/dist/components/Flex.js.map +1 -1
- package/dist/components/Icon.d.ts.map +1 -1
- package/dist/components/Icon.js.map +1 -1
- package/dist/components/IconButton.d.ts +1 -1
- package/dist/components/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton.js +4 -4
- package/dist/components/IconButton.js.map +1 -1
- package/dist/components/InfoTip.d.ts +17 -0
- package/dist/components/InfoTip.d.ts.map +1 -0
- package/dist/components/InfoTip.js +12 -0
- package/dist/components/InfoTip.js.map +1 -0
- package/dist/components/Input.d.ts +11 -5
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +32 -16
- package/dist/components/Input.js.map +1 -1
- package/dist/components/Input.module.scss +313 -1
- package/dist/components/InteractiveDetails.d.ts.map +1 -1
- package/dist/components/InteractiveDetails.js +1 -1
- package/dist/components/InteractiveDetails.js.map +1 -1
- package/dist/components/Kbd.d.ts.map +1 -1
- package/dist/components/Kbd.js +4 -1
- package/dist/components/Kbd.js.map +1 -1
- package/dist/components/Logo.d.ts +16 -4
- package/dist/components/Logo.d.ts.map +1 -1
- package/dist/components/Logo.js +32 -14
- package/dist/components/Logo.js.map +1 -1
- package/dist/components/Media.d.ts +9 -2
- package/dist/components/Media.d.ts.map +1 -1
- package/dist/components/Media.js +25 -16
- package/dist/components/Media.js.map +1 -1
- package/dist/components/MediaAudioPlayer.d.ts +29 -0
- package/dist/components/MediaAudioPlayer.d.ts.map +1 -0
- package/dist/components/MediaAudioPlayer.js +115 -0
- package/dist/components/MediaAudioPlayer.js.map +1 -0
- package/dist/components/MediaAudioPlayer.module.scss +38 -0
- package/dist/components/Modal.d.ts +1 -1
- package/dist/components/Modal.d.ts.map +1 -1
- package/dist/components/Modal.js +10 -10
- package/dist/components/Modal.js.map +1 -1
- package/dist/components/NavGroup.d.ts +33 -0
- package/dist/components/NavGroup.d.ts.map +1 -0
- package/dist/components/NavGroup.js +27 -0
- package/dist/components/NavGroup.js.map +1 -0
- package/dist/components/NavIcon.d.ts +1 -1
- package/dist/components/NavIcon.d.ts.map +1 -1
- package/dist/components/NavIcon.js +2 -2
- package/dist/components/NavIcon.js.map +1 -1
- package/dist/components/NavItem.d.ts +24 -0
- package/dist/components/NavItem.d.ts.map +1 -0
- package/dist/components/NavItem.js +18 -0
- package/dist/components/NavItem.js.map +1 -0
- package/dist/components/NumberInput.js +1 -1
- package/dist/components/NumberInput.js.map +1 -1
- package/dist/components/OgCard.d.ts.map +1 -1
- package/dist/components/OgCard.js +7 -4
- package/dist/components/OgCard.js.map +1 -1
- package/dist/components/Option.d.ts +3 -3
- package/dist/components/Option.d.ts.map +1 -1
- package/dist/components/Option.js +2 -2
- package/dist/components/Option.js.map +1 -1
- package/dist/components/Particle.d.ts +2 -2
- package/dist/components/Particle.d.ts.map +1 -1
- package/dist/components/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput.js +2 -2
- package/dist/components/PasswordInput.js.map +1 -1
- package/dist/components/ProgressBar.d.ts +1 -1
- package/dist/components/ProgressBar.d.ts.map +1 -1
- package/dist/components/ProgressBar.js +2 -2
- package/dist/components/ProgressBar.js.map +1 -1
- package/dist/components/Pulse.d.ts +1 -1
- package/dist/components/Pulse.d.ts.map +1 -1
- package/dist/components/Pulse.js +2 -2
- package/dist/components/Pulse.js.map +1 -1
- package/dist/components/RadioButton.d.ts +2 -2
- package/dist/components/RadioButton.d.ts.map +1 -1
- package/dist/components/RadioButton.js +1 -1
- package/dist/components/RadioButton.js.map +1 -1
- package/dist/components/RevealFx.d.ts +2 -1
- package/dist/components/RevealFx.d.ts.map +1 -1
- package/dist/components/RevealFx.js +8 -8
- package/dist/components/RevealFx.js.map +1 -1
- package/dist/components/ScrollContainer.d.ts.map +1 -1
- package/dist/components/ScrollContainer.js +1 -1
- package/dist/components/ScrollContainer.js.map +1 -1
- package/dist/components/Scrubber.d.ts +70 -0
- package/dist/components/Scrubber.d.ts.map +1 -0
- package/dist/components/Scrubber.js +161 -0
- package/dist/components/Scrubber.js.map +1 -0
- package/dist/components/SegmentedControl.d.ts +4 -4
- package/dist/components/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl.js +11 -11
- package/dist/components/SegmentedControl.js.map +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/Select.js +48 -15
- package/dist/components/Select.js.map +1 -1
- package/dist/components/ServerFlex.d.ts +0 -1
- package/dist/components/ServerFlex.d.ts.map +1 -1
- package/dist/components/ServerFlex.js +99 -52
- package/dist/components/ServerFlex.js.map +1 -1
- package/dist/components/ServerGrid.d.ts +0 -1
- package/dist/components/ServerGrid.d.ts.map +1 -1
- package/dist/components/ServerGrid.js +11 -9
- package/dist/components/ServerGrid.js.map +1 -1
- package/dist/components/Setting.d.ts +50 -0
- package/dist/components/Setting.d.ts.map +1 -0
- package/dist/components/Setting.js +43 -0
- package/dist/components/Setting.js.map +1 -0
- package/dist/components/ShineFx.d.ts +1 -0
- package/dist/components/ShineFx.d.ts.map +1 -1
- package/dist/components/ShineFx.js +2 -2
- package/dist/components/ShineFx.js.map +1 -1
- package/dist/components/Skeleton.d.ts +16 -3
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.js +2 -2
- package/dist/components/Skeleton.js.map +1 -1
- package/dist/components/Skeleton.module.scss +14 -51
- package/dist/components/SplitView.d.ts +23 -3
- package/dist/components/SplitView.d.ts.map +1 -1
- package/dist/components/SplitView.js +90 -58
- package/dist/components/SplitView.js.map +1 -1
- package/dist/components/StyleOverlay.d.ts.map +1 -1
- package/dist/components/StyleOverlay.js +1 -1
- package/dist/components/StyleOverlay.js.map +1 -1
- package/dist/components/StylePanel.d.ts +47 -6
- package/dist/components/StylePanel.d.ts.map +1 -1
- package/dist/components/StylePanel.js +16 -189
- package/dist/components/StylePanel.js.map +1 -1
- package/dist/components/StylePanel.module.scss +6 -1
- package/dist/components/StylePanelSections.d.ts +117 -0
- package/dist/components/StylePanelSections.d.ts.map +1 -0
- package/dist/components/StylePanelSections.js +175 -0
- package/dist/components/StylePanelSections.js.map +1 -0
- package/dist/components/Swiper.d.ts +7 -1
- package/dist/components/Swiper.d.ts.map +1 -1
- package/dist/components/Swiper.js +7 -7
- package/dist/components/Swiper.js.map +1 -1
- package/dist/components/Switch.d.ts +2 -2
- package/dist/components/Switch.d.ts.map +1 -1
- package/dist/components/Switch.js +4 -4
- package/dist/components/Switch.js.map +1 -1
- package/dist/components/Table.d.ts.map +1 -1
- package/dist/components/Table.js +4 -4
- package/dist/components/Table.js.map +1 -1
- package/dist/components/Tag.d.ts +1 -1
- package/dist/components/Tag.d.ts.map +1 -1
- package/dist/components/Tag.js +2 -2
- package/dist/components/Tag.js.map +1 -1
- package/dist/components/Textarea.d.ts +15 -5
- package/dist/components/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea.js +31 -17
- package/dist/components/Textarea.js.map +1 -1
- package/dist/components/ThemeSwitcher.d.ts +14 -1
- package/dist/components/ThemeSwitcher.d.ts.map +1 -1
- package/dist/components/ThemeSwitcher.js +19 -9
- package/dist/components/ThemeSwitcher.js.map +1 -1
- package/dist/components/ThemeSwitcher.module.scss +54 -0
- package/dist/components/Toast.d.ts +1 -1
- package/dist/components/Toast.d.ts.map +1 -1
- package/dist/components/Toast.js +2 -2
- package/dist/components/Toast.js.map +1 -1
- package/dist/components/ToggleButton.d.ts +9 -2
- package/dist/components/ToggleButton.d.ts.map +1 -1
- package/dist/components/ToggleButton.js +5 -5
- package/dist/components/ToggleButton.js.map +1 -1
- package/dist/components/User.js +1 -1
- package/dist/components/User.js.map +1 -1
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -0
- package/dist/components/index.js.map +1 -1
- package/dist/contexts/AdapterProvider.d.ts +50 -0
- package/dist/contexts/AdapterProvider.d.ts.map +1 -0
- package/dist/contexts/AdapterProvider.js +91 -0
- package/dist/contexts/AdapterProvider.js.map +1 -0
- package/dist/contexts/IconProvider.d.ts +2 -2
- package/dist/contexts/IconProvider.d.ts.map +1 -1
- package/dist/contexts/IconProvider.js +2 -2
- package/dist/contexts/IconProvider.js.map +1 -1
- package/dist/contexts/LayoutProvider.d.ts +0 -2
- package/dist/contexts/LayoutProvider.d.ts.map +1 -1
- package/dist/contexts/LayoutProvider.js +15 -10
- package/dist/contexts/LayoutProvider.js.map +1 -1
- package/dist/contexts/ThemeProvider.d.ts +29 -1
- package/dist/contexts/ThemeProvider.d.ts.map +1 -1
- package/dist/contexts/ThemeProvider.js +42 -15
- package/dist/contexts/ThemeProvider.js.map +1 -1
- package/dist/contexts/index.d.ts +3 -2
- package/dist/contexts/index.d.ts.map +1 -1
- package/dist/contexts/index.js +3 -2
- package/dist/contexts/index.js.map +1 -1
- package/dist/css/styles.css +1 -1
- package/dist/css/tokens.css +1 -1
- package/dist/data/emoji-data.json +8 -10
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/icons/ATTRIBUTION.md +19 -0
- package/dist/icons/data.d.ts +1919 -0
- package/dist/icons/data.d.ts.map +1 -0
- package/dist/icons/data.js +102 -0
- package/dist/icons/data.js.map +1 -0
- package/dist/icons/renderIcon.d.ts +26 -0
- package/dist/icons/renderIcon.d.ts.map +1 -0
- package/dist/icons/renderIcon.js +22 -0
- package/dist/icons/renderIcon.js.map +1 -0
- package/dist/icons.d.ts +35 -4
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +13 -60
- package/dist/icons.js.map +1 -1
- package/dist/modules/code/CodeBlock.impl.d.ts +2 -1
- package/dist/modules/code/CodeBlock.impl.d.ts.map +1 -1
- package/dist/modules/code/CodeBlock.impl.js +7 -2
- package/dist/modules/code/CodeBlock.impl.js.map +1 -1
- package/dist/modules/data/ChartHeader.d.ts.map +1 -1
- package/dist/modules/data/ChartHeader.js +1 -1
- package/dist/modules/data/ChartHeader.js.map +1 -1
- package/dist/modules/data/DataTooltip.d.ts +1 -1
- package/dist/modules/data/DataTooltip.d.ts.map +1 -1
- package/dist/modules/data/DataTooltip.js +2 -2
- package/dist/modules/data/DataTooltip.js.map +1 -1
- package/dist/modules/data/LinearGauge.d.ts +3 -2
- package/dist/modules/data/LinearGauge.d.ts.map +1 -1
- package/dist/modules/data/LinearGauge.js +1 -1
- package/dist/modules/data/LinearGauge.js.map +1 -1
- package/dist/modules/data/PieChart.impl.d.ts +1 -1
- package/dist/modules/data/PieChart.impl.d.ts.map +1 -1
- package/dist/modules/data/PieChart.impl.js +4 -1
- package/dist/modules/data/PieChart.impl.js.map +1 -1
- package/dist/modules/data/RadialGauge.d.ts +3 -2
- package/dist/modules/data/RadialGauge.d.ts.map +1 -1
- package/dist/modules/data/RadialGauge.js +1 -1
- package/dist/modules/data/RadialGauge.js.map +1 -1
- package/dist/modules/data/interfaces.d.ts +12 -3
- package/dist/modules/data/interfaces.d.ts.map +1 -1
- package/dist/modules/index.d.ts +1 -4
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +9 -3
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/media/MediaUpload.impl.d.ts +1 -1
- package/dist/modules/media/MediaUpload.impl.d.ts.map +1 -1
- package/dist/modules/media/MediaUpload.impl.js +1 -1
- package/dist/modules/media/MediaUpload.impl.js.map +1 -1
- package/dist/modules/navigation/Kbar.d.ts +5 -4
- package/dist/modules/navigation/Kbar.d.ts.map +1 -1
- package/dist/modules/navigation/Kbar.js +32 -35
- package/dist/modules/navigation/Kbar.js.map +1 -1
- package/dist/modules/navigation/MegaMenu.d.ts +5 -3
- package/dist/modules/navigation/MegaMenu.d.ts.map +1 -1
- package/dist/modules/navigation/MegaMenu.js +24 -12
- package/dist/modules/navigation/MegaMenu.js.map +1 -1
- package/dist/modules/navigation/MobileMegaMenu.d.ts +3 -2
- package/dist/modules/navigation/MobileMegaMenu.d.ts.map +1 -1
- package/dist/modules/navigation/MobileMegaMenu.js +1 -1
- package/dist/modules/navigation/MobileMegaMenu.js.map +1 -1
- package/dist/modules/seo/Meta.d.ts +40 -2
- package/dist/modules/seo/Meta.d.ts.map +1 -1
- package/dist/modules/seo/Meta.js.map +1 -1
- package/dist/modules/seo/Schema.d.ts.map +1 -1
- package/dist/modules/seo/Schema.js +1 -2
- package/dist/modules/seo/Schema.js.map +1 -1
- package/dist/next/index.d.ts +35 -0
- package/dist/next/index.d.ts.map +1 -0
- package/dist/next/index.js +56 -0
- package/dist/next/index.js.map +1 -0
- package/dist/package.json +52 -7
- package/dist/scripts/init-agent.js +156 -0
- package/dist/scripts/validate-ai-code.js +431 -0
- package/dist/server/og-utils.d.ts +9 -3
- package/dist/server/og-utils.d.ts.map +1 -1
- package/dist/server/og-utils.js +15 -9
- package/dist/server/og-utils.js.map +1 -1
- package/dist/styles/breakpoints.scss +16 -5
- package/dist/test/setup.js +21 -0
- package/dist/test/setup.js.map +1 -1
- package/dist/types.d.ts +13 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/colorScheme.d.ts +35 -0
- package/dist/utils/colorScheme.d.ts.map +1 -0
- package/dist/utils/colorScheme.js +140 -0
- package/dist/utils/colorScheme.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/navMatch.d.ts +21 -0
- package/dist/utils/navMatch.d.ts.map +1 -0
- package/dist/utils/navMatch.js +26 -0
- package/dist/utils/navMatch.js.map +1 -0
- package/package.json +66 -11
- package/scripts/validate-ai-code.js +309 -27
- package/dist/css/styles.css.map +0 -1
- package/dist/css/tokens.css.map +0 -1
- package/dist/hooks/useResponsiveClasses.d.ts +0 -9
- package/dist/hooks/useResponsiveClasses.d.ts.map +0 -1
- package/dist/hooks/useResponsiveClasses.js +0 -293
- package/dist/hooks/useResponsiveClasses.js.map +0 -1
- package/dist/styles/background.scss +0 -423
- package/dist/styles/border.scss +0 -546
- package/dist/styles/color.scss +0 -183
- package/dist/styles/display.scss +0 -391
- package/dist/styles/flex.scss +0 -518
- package/dist/styles/global.scss +0 -36
- package/dist/styles/grid.scss +0 -293
- package/dist/styles/index.scss +0 -14
- package/dist/styles/position.scss +0 -1549
- package/dist/styles/shadow.scss +0 -19
- package/dist/styles/size.scss +0 -53
- package/dist/styles/spacing.scss +0 -1505
- package/dist/styles/typography.scss +0 -223
- package/dist/styles/utilities.scss +0 -23
- package/dist/tokens/border.scss +0 -95
- package/dist/tokens/data.scss +0 -107
- package/dist/tokens/function.scss +0 -742
- package/dist/tokens/index.scss +0 -8
- package/dist/tokens/layout.scss +0 -275
- package/dist/tokens/scheme.scss +0 -352
- package/dist/tokens/shadow.scss +0 -7
- package/dist/tokens/theme.scss +0 -657
- package/dist/tokens/typography.scss +0 -118
- package/next-env.d.ts +0 -5
- package/scripts/copy-files.js +0 -103
- package/scripts/generate-ai-spec.js +0 -464
- package/scripts/generate-emoji-data.js +0 -128
- package/scss.d.ts +0 -4
- package/tsconfig.vitest.json +0 -20
- package/vitest.config.ts +0 -19
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import React from "react";
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Card,
|
|
8
|
-
Heading,
|
|
9
|
-
Text,
|
|
10
|
-
Grid,
|
|
11
|
-
Avatar,
|
|
12
|
-
Button,
|
|
13
|
-
Scroller,
|
|
14
|
-
StatusIndicator,
|
|
15
|
-
Icon,
|
|
16
|
-
LineChart
|
|
17
|
-
} from "@once-ui-system/core";
|
|
4
|
+
import { Column, Row, Card, Heading, Text, Grid, Avatar, Button, Scroller, StatusIndicator, Icon } from "@once-ui-system/core";
|
|
5
|
+
import type { IconName } from "@once-ui-system/core";
|
|
6
|
+
import { LineChart } from "@once-ui-system/core/data";
|
|
18
7
|
import { Sidebar1 } from "./Sidebar1";
|
|
19
8
|
import { Header1 } from "./Header1";
|
|
20
9
|
import { Table1 } from "./Table1";
|
|
@@ -48,7 +37,7 @@ const StatCard: React.FC<StatCardProps> = ({ title, value, change, positive = tr
|
|
|
48
37
|
}, [positive]);
|
|
49
38
|
|
|
50
39
|
return (
|
|
51
|
-
<Card minWidth={12} href={href} paddingX="20" paddingTop="20" paddingBottom="80" radius="l" fillWidth direction="column" border
|
|
40
|
+
<Card minWidth={12} href={href} paddingX="20" paddingTop="20" paddingBottom="80" radius="l" fillWidth direction="column" border background="transparent">
|
|
52
41
|
<LineChart
|
|
53
42
|
pointerEvents="none"
|
|
54
43
|
position="absolute"
|
|
@@ -89,11 +78,11 @@ interface ActivityItemProps {
|
|
|
89
78
|
action: string;
|
|
90
79
|
time: string;
|
|
91
80
|
href?: string;
|
|
92
|
-
icon:
|
|
81
|
+
icon: IconName;
|
|
93
82
|
}
|
|
94
83
|
|
|
95
84
|
const ActivityItem: React.FC<ActivityItemProps> = ({ avatar, action, time, href, icon }) => (
|
|
96
|
-
<Row fillWidth borderBottom
|
|
85
|
+
<Row fillWidth borderBottom>
|
|
97
86
|
<Card direction="column" fitHeight href={href} background="transparent" border="transparent" fillWidth>
|
|
98
87
|
<Row fillWidth horizontal="between" paddingX="24" height="64" vertical="center">
|
|
99
88
|
<Column fillWidth gap="8">
|
|
@@ -117,11 +106,11 @@ interface StatusItemProps {
|
|
|
117
106
|
name: string;
|
|
118
107
|
status: string;
|
|
119
108
|
href?: string;
|
|
120
|
-
icon:
|
|
109
|
+
icon: IconName;
|
|
121
110
|
}
|
|
122
111
|
|
|
123
112
|
const StatusItem: React.FC<StatusItemProps> = ({ name, status, icon, href = "#" }) => (
|
|
124
|
-
<Row fillWidth borderBottom
|
|
113
|
+
<Row fillWidth borderBottom>
|
|
125
114
|
<Card direction="column" background="transparent" href={href} border="transparent" fillWidth>
|
|
126
115
|
<Row fillWidth horizontal="between" height="64" vertical="center" paddingX="24">
|
|
127
116
|
<Row vertical="center" gap="12">
|
|
@@ -251,7 +240,7 @@ export const Dashboard1: React.FC = () => {
|
|
|
251
240
|
|
|
252
241
|
<LineChart
|
|
253
242
|
minHeight={20}
|
|
254
|
-
border
|
|
243
|
+
border
|
|
255
244
|
axis="x"
|
|
256
245
|
grid="y"
|
|
257
246
|
title="Revenue growth"
|
|
@@ -288,7 +277,7 @@ export const Dashboard1: React.FC = () => {
|
|
|
288
277
|
/>
|
|
289
278
|
|
|
290
279
|
<Grid columns="2" m={{columns: 1}} gap="m" fillWidth>
|
|
291
|
-
<Column fillWidth border
|
|
280
|
+
<Column fillWidth border radius="l" overflow="hidden" height={20}>
|
|
292
281
|
<Row vertical="center" horizontal="between" fillWidth paddingLeft="24" paddingRight="12" paddingY="12" gap="m" wrap>
|
|
293
282
|
<Heading wrap="nowrap" variant="heading-strong-s">
|
|
294
283
|
Project status
|
|
@@ -306,14 +295,14 @@ export const Dashboard1: React.FC = () => {
|
|
|
306
295
|
</Row>
|
|
307
296
|
</Row>
|
|
308
297
|
|
|
309
|
-
<Column fillWidth border
|
|
298
|
+
<Column fillWidth border topRadius="l" overflowY="auto">
|
|
310
299
|
{[
|
|
311
|
-
{ name: "Mobile App Development", status: "At Risk", icon: "code" },
|
|
312
|
-
{ name: "Marketing Campaign", status: "On Track", icon: "sparkle" },
|
|
313
|
-
{ name: "Database Migration", status: "On Track", icon: "code" },
|
|
314
|
-
{ name: "Website Redesign", status: "On Track", icon: "sparkle" },
|
|
315
|
-
{ name: "Product Launch", status: "Delayed", icon: "sparkle" },
|
|
316
|
-
{ name: "Server Upgrade", status: "Delayed", icon: "code" },
|
|
300
|
+
{ name: "Mobile App Development", status: "At Risk", icon: "code" as IconName },
|
|
301
|
+
{ name: "Marketing Campaign", status: "On Track", icon: "sparkle" as IconName },
|
|
302
|
+
{ name: "Database Migration", status: "On Track", icon: "code" as IconName },
|
|
303
|
+
{ name: "Website Redesign", status: "On Track", icon: "sparkle" as IconName },
|
|
304
|
+
{ name: "Product Launch", status: "Delayed", icon: "sparkle" as IconName },
|
|
305
|
+
{ name: "Server Upgrade", status: "Delayed", icon: "code" as IconName },
|
|
317
306
|
].map((project, index) => (
|
|
318
307
|
<StatusItem
|
|
319
308
|
key={index}
|
|
@@ -325,7 +314,7 @@ export const Dashboard1: React.FC = () => {
|
|
|
325
314
|
</Column>
|
|
326
315
|
</Column>
|
|
327
316
|
|
|
328
|
-
<Column border
|
|
317
|
+
<Column border radius="l" fillWidth overflow="hidden" height={20}>
|
|
329
318
|
<Row fillWidth vertical="center" horizontal="between" paddingLeft="24" paddingRight="12" paddingY="12" gap="16" wrap>
|
|
330
319
|
<Heading wrap="nowrap" variant="heading-strong-s">
|
|
331
320
|
Recent activity
|
|
@@ -334,43 +323,43 @@ export const Dashboard1: React.FC = () => {
|
|
|
334
323
|
View all
|
|
335
324
|
</Button>
|
|
336
325
|
</Row>
|
|
337
|
-
<Column fillWidth border
|
|
326
|
+
<Column fillWidth border topRadius="l" overflowY="auto">
|
|
338
327
|
{[
|
|
339
328
|
{
|
|
340
329
|
avatar: "/images/creators/lorant.jpg",
|
|
341
330
|
action: "Completed the Website Redesign task",
|
|
342
331
|
time: "2 hours ago",
|
|
343
|
-
icon: "check"
|
|
332
|
+
icon: "check" as IconName
|
|
344
333
|
},
|
|
345
334
|
{
|
|
346
335
|
avatar: "/images/creators/vincent.jpg",
|
|
347
336
|
action: "Commented on Mobile App Development",
|
|
348
337
|
time: "4 hours ago",
|
|
349
|
-
icon: "
|
|
338
|
+
icon: "edit" as IconName
|
|
350
339
|
},
|
|
351
340
|
{
|
|
352
341
|
avatar: "/images/creators/zsofia.jpg",
|
|
353
342
|
action: "Created a new task in Marketing Campaign",
|
|
354
343
|
time: "Yesterday",
|
|
355
|
-
icon: "plus"
|
|
344
|
+
icon: "plus" as IconName
|
|
356
345
|
},
|
|
357
346
|
{
|
|
358
347
|
avatar: "/images/creators/texz.jpg",
|
|
359
348
|
action: "Completed 3 tasks in Product Launch",
|
|
360
349
|
time: "Yesterday",
|
|
361
|
-
icon: "check"
|
|
350
|
+
icon: "check" as IconName
|
|
362
351
|
},
|
|
363
352
|
{
|
|
364
353
|
avatar: "/images/creators/justin.jpg",
|
|
365
354
|
action: "Created a new task in Marketing Campaign",
|
|
366
355
|
time: "2 days ago",
|
|
367
|
-
icon: "plus"
|
|
356
|
+
icon: "plus" as IconName
|
|
368
357
|
},
|
|
369
358
|
{
|
|
370
359
|
avatar: "/images/creators/zsofia.jpg",
|
|
371
360
|
action: "Completed 3 tasks in Product Launch",
|
|
372
361
|
time: "4 days ago",
|
|
373
|
-
icon: "check"
|
|
362
|
+
icon: "check" as IconName
|
|
374
363
|
}
|
|
375
364
|
].map((activity, index) => (
|
|
376
365
|
<ActivityItem
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { Avatar, Button, Column, EmojiPickerDropdown, IconButton, Media, OgCard, Row, Text, Textarea } from "@once-ui-system/core";
|
|
4
|
+
import type { IconName } from "@once-ui-system/core";
|
|
4
5
|
import { useState } from "react";
|
|
5
6
|
import { chatMessages } from "./content/chat1content";
|
|
6
7
|
|
|
@@ -33,7 +34,7 @@ export const Feed3: React.FC<React.ComponentProps<typeof Column>> = ({ ...flex }
|
|
|
33
34
|
|
|
34
35
|
return (
|
|
35
36
|
<Column fill {...flex}>
|
|
36
|
-
<Row fillWidth paddingX="24" paddingY="8" background="surface" borderBottom
|
|
37
|
+
<Row fillWidth paddingX="24" paddingY="8" background="surface" borderBottom vertical="center" gap="12">
|
|
37
38
|
<Text variant="label-default-s">👋 | intro</Text>
|
|
38
39
|
<Row minWidth="4" minHeight="4" background="neutral-strong" radius="full"/>
|
|
39
40
|
<Text variant="body-default-xs" onBackground="neutral-weak">Let us know a bit about you!</Text>
|
|
@@ -64,7 +65,7 @@ export const Feed3: React.FC<React.ComponentProps<typeof Column>> = ({ ...flex }
|
|
|
64
65
|
key={aIdx}
|
|
65
66
|
maxWidth={20}
|
|
66
67
|
src={att.media}
|
|
67
|
-
border
|
|
68
|
+
border
|
|
68
69
|
radius="l"
|
|
69
70
|
sizes="320px"
|
|
70
71
|
/>
|
|
@@ -74,9 +75,9 @@ export const Feed3: React.FC<React.ComponentProps<typeof Column>> = ({ ...flex }
|
|
|
74
75
|
) : (
|
|
75
76
|
messages.attachments[0]?.media && (
|
|
76
77
|
messages.attachments[0].media.includes("youtube.com") || messages.attachments[0].media.includes("youtu.be") ? (
|
|
77
|
-
<Media maxWidth={32} border
|
|
78
|
+
<Media maxWidth={32} border aspectRatio="16/9" marginTop="16" src={messages.attachments[0].media} radius="l" sizes="320px"/>
|
|
78
79
|
) : (messages.attachments[0].media.match(/\.(png|jpg|jpeg|gif|webp)$/i)) ? (
|
|
79
|
-
<Media maxWidth={32} border
|
|
80
|
+
<Media maxWidth={32} border marginTop="16" src={messages.attachments[0].media} radius="l" sizes="320px"/>
|
|
80
81
|
) : (
|
|
81
82
|
<Row maxWidth={24} marginTop="16">
|
|
82
83
|
<OgCard url={messages.attachments[0].media} description={false} />
|
|
@@ -114,9 +115,8 @@ export const Feed3: React.FC<React.ComponentProps<typeof Column>> = ({ ...flex }
|
|
|
114
115
|
id="comment-input"
|
|
115
116
|
placeholder="Message 👋 | intro"
|
|
116
117
|
style={{padding: "0.75rem"}}
|
|
117
|
-
lines="auto"
|
|
118
118
|
value={message}
|
|
119
|
-
|
|
119
|
+
prefix={
|
|
120
120
|
<EmojiPickerDropdown
|
|
121
121
|
onSelect={(emoji) => setMessage(message + emoji)}
|
|
122
122
|
trigger={
|
|
@@ -126,12 +126,12 @@ export const Feed3: React.FC<React.ComponentProps<typeof Column>> = ({ ...flex }
|
|
|
126
126
|
}
|
|
127
127
|
/>
|
|
128
128
|
}
|
|
129
|
-
|
|
129
|
+
suffix={
|
|
130
130
|
<Row
|
|
131
131
|
style={{ opacity: message.length > 0 ? 1 : 0, marginRight: "-0.25rem" }}
|
|
132
132
|
transition="micro-medium">
|
|
133
133
|
<IconButton
|
|
134
|
-
icon={isSubmitting ? "
|
|
134
|
+
icon={isSubmitting ? "refresh" : "send"}
|
|
135
135
|
size="m"
|
|
136
136
|
onClick={handleSubmitMessage}
|
|
137
137
|
disabled={!message || isSubmitting}
|
|
@@ -19,9 +19,11 @@ export const Footer1: React.FC<React.ComponentProps<typeof Row>> = ({ ...flex })
|
|
|
19
19
|
<Text onBackground="neutral-weak">/ All rights reserved</Text>
|
|
20
20
|
</Text>
|
|
21
21
|
<Row gap="16">
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<IconButton size="s" variant="ghost" href="#" icon="
|
|
22
|
+
{/* Brand marks are not part of Once UI — register the ones you need on
|
|
23
|
+
IconProvider and declare their names, then use them here as usual. */}
|
|
24
|
+
<IconButton size="s" variant="ghost" href="#" icon="link" tooltip="GitHub" />
|
|
25
|
+
<IconButton size="s" variant="ghost" href="#" icon="link" tooltip="LinkedIn" />
|
|
26
|
+
<IconButton size="s" variant="ghost" href="#" icon="link" tooltip="Threads" />
|
|
25
27
|
</Row>
|
|
26
28
|
</Row>
|
|
27
29
|
<Row hide height="80" s={{hide: false}}/>
|
|
@@ -83,9 +83,9 @@ export const Footer2: React.FC<React.ComponentProps<typeof Row>> = ({ ...flex })
|
|
|
83
83
|
<Row paddingX="4" marginBottom="8">
|
|
84
84
|
Social
|
|
85
85
|
</Row>
|
|
86
|
-
<Button href="#" size="s" variant="secondary" weight="default"
|
|
87
|
-
<Button href="#" size="s" variant="secondary" weight="default"
|
|
88
|
-
<Button href="#" size="s" variant="secondary" weight="default"
|
|
86
|
+
<Button href="#" size="s" variant="secondary" weight="default" label="GitHub" />
|
|
87
|
+
<Button href="#" size="s" variant="secondary" weight="default" label="LinkedIn" />
|
|
88
|
+
<Button href="#" size="s" variant="secondary" weight="default" label="Threads" />
|
|
89
89
|
</Column>
|
|
90
90
|
</Row>
|
|
91
91
|
<Row fillWidth textVariant="label-default-s" gap="12">
|
|
@@ -83,7 +83,7 @@ export const Footer3 = (flex: React.ComponentProps<typeof Column>) => {
|
|
|
83
83
|
{item.label}
|
|
84
84
|
</Text>
|
|
85
85
|
{item.tag && (
|
|
86
|
-
<Tag style={{ transform: "scale(0.9)" }}
|
|
86
|
+
<Tag style={{ transform: "scale(0.9)" }} scheme="brand" size="s">
|
|
87
87
|
{item.tag}
|
|
88
88
|
</Tag>
|
|
89
89
|
)}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Avatar, Background, Button, Column, IconButton, Logo, Mask, Particle, Row, SmartLink, Tag, Text, TypeFx } from "@once-ui-system/core";
|
|
2
|
+
import type { IconName } from "@once-ui-system/core";
|
|
2
3
|
|
|
3
|
-
const social = [
|
|
4
|
+
const social: { icon: IconName; label: string; href: string }[] = [
|
|
4
5
|
{
|
|
5
|
-
icon: "
|
|
6
|
+
icon: "link",
|
|
6
7
|
label: "Discord",
|
|
7
8
|
href: "https://discord.com/invite/5EyAQ4eNdS" },
|
|
8
9
|
{
|
|
9
|
-
icon: "
|
|
10
|
+
icon: "link",
|
|
10
11
|
label: "GitHub",
|
|
11
12
|
href: "https://github.com/once-ui-system",
|
|
12
13
|
},
|
|
13
14
|
{
|
|
14
|
-
icon: "
|
|
15
|
+
icon: "mail",
|
|
15
16
|
label: "Email",
|
|
16
17
|
href: "mailto:demo@email.com",
|
|
17
18
|
},
|
|
@@ -293,7 +294,7 @@ export const Footer4 = (flex: React.ComponentProps<typeof Column>) => {
|
|
|
293
294
|
{item.label}
|
|
294
295
|
</Text>
|
|
295
296
|
{item.tag && (
|
|
296
|
-
<Tag style={{ transform: "scale(0.9)" }}
|
|
297
|
+
<Tag style={{ transform: "scale(0.9)" }} scheme="brand" size="s">
|
|
297
298
|
{item.tag}
|
|
298
299
|
</Tag>
|
|
299
300
|
)}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
ToggleButton,
|
|
18
18
|
UserMenu,
|
|
19
19
|
} from "@once-ui-system/core";
|
|
20
|
+
import type { KbarItem, MenuGroup } from "@once-ui-system/core";
|
|
20
21
|
import { usePathname } from "next/navigation";
|
|
21
22
|
import React, { useState } from "react";
|
|
22
23
|
|
|
@@ -29,7 +30,7 @@ export const Header1: React.FC<HeaderProps> = ({ authenticated, avatar, ...flex
|
|
|
29
30
|
const pathname = usePathname() ?? "";
|
|
30
31
|
const isMac = typeof window !== "undefined" && /Mac/i.test(navigator.platform);
|
|
31
32
|
|
|
32
|
-
const kbar = [
|
|
33
|
+
const kbar: KbarItem[] = [
|
|
33
34
|
{
|
|
34
35
|
id: "dashboard",
|
|
35
36
|
name: "Dashboard",
|
|
@@ -68,7 +69,7 @@ export const Header1: React.FC<HeaderProps> = ({ authenticated, avatar, ...flex
|
|
|
68
69
|
},
|
|
69
70
|
];
|
|
70
71
|
|
|
71
|
-
const nav = [
|
|
72
|
+
const nav: MenuGroup[] = [
|
|
72
73
|
{
|
|
73
74
|
id: "products",
|
|
74
75
|
label: "Products",
|
|
@@ -257,7 +258,7 @@ export const Header1: React.FC<HeaderProps> = ({ authenticated, avatar, ...flex
|
|
|
257
258
|
>
|
|
258
259
|
<Row gap="4" vertical="center" maxWidth={10}>
|
|
259
260
|
<NavIcon
|
|
260
|
-
|
|
261
|
+
active={isActive}
|
|
261
262
|
onClick={handleClick}
|
|
262
263
|
aria-label="Toggle navigation menu"
|
|
263
264
|
aria-expanded={isActive}
|
|
@@ -303,10 +304,10 @@ export const Header1: React.FC<HeaderProps> = ({ authenticated, avatar, ...flex
|
|
|
303
304
|
}}
|
|
304
305
|
dropdown={
|
|
305
306
|
<Column padding="4" gap="2" minWidth={10}>
|
|
306
|
-
<Option
|
|
307
|
-
<Option
|
|
307
|
+
<Option prefix={<Icon onBackground="neutral-weak" size="s" name="person" />} label="Profile" value="profile" />
|
|
308
|
+
<Option prefix={<Icon onBackground="neutral-weak" size="s" name="settings" />} label="Settings" value="settings" />
|
|
308
309
|
<Line marginY="2" />
|
|
309
|
-
<Option
|
|
310
|
+
<Option prefix={<Icon onBackground="neutral-weak" size="s" name="logout" />} label="Log out" value="logout" />
|
|
310
311
|
</Column>
|
|
311
312
|
}
|
|
312
313
|
/>
|
|
@@ -81,13 +81,13 @@ export const Header3: React.FC<React.ComponentProps<typeof Row>> = ({ ...flex })
|
|
|
81
81
|
<Option
|
|
82
82
|
label="Profile 1"
|
|
83
83
|
value="profile"
|
|
84
|
-
|
|
84
|
+
prefix={
|
|
85
85
|
<Avatar src="/images/creators/justin.jpg"/>
|
|
86
86
|
}/>
|
|
87
87
|
<Option
|
|
88
88
|
label="Profile 2"
|
|
89
89
|
value="profile"
|
|
90
|
-
|
|
90
|
+
prefix={
|
|
91
91
|
<Avatar src="/images/creators/light.jpg"/>
|
|
92
92
|
}/>
|
|
93
93
|
</Column>
|
|
@@ -96,29 +96,29 @@ export const Header3: React.FC<React.ComponentProps<typeof Row>> = ({ ...flex })
|
|
|
96
96
|
<Option
|
|
97
97
|
label="Account"
|
|
98
98
|
value="account"
|
|
99
|
-
|
|
99
|
+
prefix={
|
|
100
100
|
<Icon padding="4" margin="2" size="s" name="person" onBackground="neutral-weak"/>
|
|
101
101
|
} />
|
|
102
102
|
<Option
|
|
103
103
|
label="Settings"
|
|
104
104
|
value="settings"
|
|
105
|
-
|
|
105
|
+
prefix={
|
|
106
106
|
<Icon padding="4" margin="2" size="s" name="settings" onBackground="neutral-weak"/>
|
|
107
107
|
} />
|
|
108
108
|
<Option
|
|
109
109
|
label="Subscription"
|
|
110
110
|
value="subscription"
|
|
111
|
-
|
|
111
|
+
prefix={
|
|
112
112
|
<Icon padding="4" margin="2" size="s" name="payment" onBackground="neutral-weak"/>
|
|
113
113
|
} />
|
|
114
114
|
<Option label="Help" value="help"
|
|
115
|
-
|
|
115
|
+
prefix={
|
|
116
116
|
<Icon padding="4" margin="2" size="s" name="help" onBackground="neutral-weak"/>
|
|
117
117
|
} />
|
|
118
118
|
</Column>
|
|
119
119
|
<Line />
|
|
120
120
|
<Column fillWidth padding="4">
|
|
121
|
-
<Option padding="4" label="Log out" value="logout"
|
|
121
|
+
<Option padding="4" label="Log out" value="logout" prefix={
|
|
122
122
|
<Icon padding="4" margin="2" size="s" name="logout" onBackground="neutral-weak"/>
|
|
123
123
|
} />
|
|
124
124
|
</Column>
|
|
@@ -39,8 +39,7 @@ export const Header4: React.FC<HeaderProps> = ({ cartCount = 0, ...flex }) => {
|
|
|
39
39
|
<Row
|
|
40
40
|
data-scaling="90"
|
|
41
41
|
position="absolute"
|
|
42
|
-
|
|
43
|
-
horizontal="center"
|
|
42
|
+
center
|
|
44
43
|
textVariant="body-default-xs"
|
|
45
44
|
solid="brand-strong"
|
|
46
45
|
onSolid="brand-strong"
|
|
@@ -66,7 +65,7 @@ export const Header4: React.FC<HeaderProps> = ({ cartCount = 0, ...flex }) => {
|
|
|
66
65
|
key="cart-option"
|
|
67
66
|
label="Cart"
|
|
68
67
|
value="cart"
|
|
69
|
-
|
|
68
|
+
prefix={
|
|
70
69
|
<Icon
|
|
71
70
|
size="xs"
|
|
72
71
|
onBackground="neutral-weak"
|
|
@@ -79,7 +78,7 @@ export const Header4: React.FC<HeaderProps> = ({ cartCount = 0, ...flex }) => {
|
|
|
79
78
|
key="order-history-option"
|
|
80
79
|
label="Order history"
|
|
81
80
|
value="orders"
|
|
82
|
-
|
|
81
|
+
prefix={
|
|
83
82
|
<Icon size="xs" onBackground="neutral-weak" name="payment" />
|
|
84
83
|
}
|
|
85
84
|
/>
|
|
@@ -87,7 +86,7 @@ export const Header4: React.FC<HeaderProps> = ({ cartCount = 0, ...flex }) => {
|
|
|
87
86
|
key="returned-orders-option"
|
|
88
87
|
label="Returned orders"
|
|
89
88
|
value="returns"
|
|
90
|
-
|
|
89
|
+
prefix={
|
|
91
90
|
<Icon size="xs" onBackground="neutral-weak" name="return" />
|
|
92
91
|
}
|
|
93
92
|
/>
|
|
@@ -95,7 +94,7 @@ export const Header4: React.FC<HeaderProps> = ({ cartCount = 0, ...flex }) => {
|
|
|
95
94
|
<Option
|
|
96
95
|
key="settings-option"
|
|
97
96
|
label="Settings"
|
|
98
|
-
|
|
97
|
+
prefix={
|
|
99
98
|
<Icon size="xs" onBackground="neutral-weak" name="settings" />
|
|
100
99
|
}
|
|
101
100
|
value="settings"
|
|
@@ -103,7 +102,7 @@ export const Header4: React.FC<HeaderProps> = ({ cartCount = 0, ...flex }) => {
|
|
|
103
102
|
<Option
|
|
104
103
|
key="help-option"
|
|
105
104
|
label="Help"
|
|
106
|
-
|
|
105
|
+
prefix={<Icon size="xs" onBackground="neutral-weak" name="help" />}
|
|
107
106
|
value="help"
|
|
108
107
|
/>
|
|
109
108
|
<Line key="line-3" marginY="2" />
|
|
@@ -79,7 +79,7 @@ export function Roadmap1() {
|
|
|
79
79
|
|
|
80
80
|
<Row gap="4" fillWidth overflowX="auto" paddingBottom="16">
|
|
81
81
|
{product.columns.map((column, columnIndex) => (
|
|
82
|
-
<Column key={columnIndex} padding="4" gap="4" radius="s-4" border
|
|
82
|
+
<Column key={columnIndex} padding="4" gap="4" radius="s-4" border background="overlay" fillWidth minWidth={20}>
|
|
83
83
|
<Row fillWidth vertical="center" gap="8" paddingY="8" paddingX="16">
|
|
84
84
|
<Text variant="label-default-m">
|
|
85
85
|
{column.title}
|
|
@@ -99,7 +99,7 @@ export function Roadmap1() {
|
|
|
99
99
|
return typedTask.href ? (
|
|
100
100
|
<Card
|
|
101
101
|
onBackground="neutral-strong"
|
|
102
|
-
border
|
|
102
|
+
border
|
|
103
103
|
fillWidth
|
|
104
104
|
radius="s"
|
|
105
105
|
key={taskIndex}
|
|
@@ -111,7 +111,7 @@ export function Roadmap1() {
|
|
|
111
111
|
) : (
|
|
112
112
|
<Column
|
|
113
113
|
onBackground="neutral-strong"
|
|
114
|
-
border
|
|
114
|
+
border
|
|
115
115
|
fillWidth
|
|
116
116
|
radius="s"
|
|
117
117
|
key={taskIndex}
|
|
@@ -4,7 +4,7 @@ import { Column, Text, ToggleButton } from "@once-ui-system/core";
|
|
|
4
4
|
|
|
5
5
|
/** Productivity sidebar — minimal stub for Productivity1 reference */
|
|
6
6
|
export const Sidebar2: React.FC<React.ComponentProps<typeof Column>> = ({ ...flex }) => (
|
|
7
|
-
<Column fillHeight maxWidth={18} background="surface" borderRight
|
|
7
|
+
<Column fillHeight maxWidth={18} background="surface" borderRight padding="8" gap="4" {...flex}>
|
|
8
8
|
<Text variant="label-default-s" onBackground="neutral-weak" padding="12">
|
|
9
9
|
Workspace
|
|
10
10
|
</Text>
|
|
@@ -13,7 +13,7 @@ export const Sidebar4: React.FC<React.ComponentProps<typeof Column> & {
|
|
|
13
13
|
return (
|
|
14
14
|
<Column fillHeight maxWidth={18} background="surface" {...flex}>
|
|
15
15
|
<Row fillWidth aspectRatio="2/1">
|
|
16
|
-
<Media src="/images/blocks/vibe-coding-dark.jpg"
|
|
16
|
+
<Media src="/images/blocks/vibe-coding-dark.jpg" stretch sizes="240px"/>
|
|
17
17
|
<Fade position="absolute" top="0" to="bottom" fillWidth height={6} opacity={70}/>
|
|
18
18
|
<Row fillWidth paddingY="12" paddingX="24" position="absolute" top="0" textVariant="label-strong-s" horizontal="center" align="center">
|
|
19
19
|
Design Engineers Club
|
|
@@ -75,7 +75,7 @@ const MediaList = ({ image, progress, title, description, categories }: { image:
|
|
|
75
75
|
ref={referenceRef}
|
|
76
76
|
>
|
|
77
77
|
<Media aspectRatio="16/9" src={image} alt={title} sizes="400px" radius="l" />
|
|
78
|
-
{progress > 0 && <ProgressBar
|
|
78
|
+
{progress > 0 && <ProgressBar showLabel={false} value={progress} paddingX="l" />}
|
|
79
79
|
|
|
80
80
|
{(portalContainer && (isHovered || isVisible)) && (
|
|
81
81
|
createPortal(
|
|
@@ -104,7 +104,7 @@ const MediaList = ({ image, progress, title, description, categories }: { image:
|
|
|
104
104
|
}}
|
|
105
105
|
>
|
|
106
106
|
<Media aspectRatio="16/9" src={image} alt={title} sizes="400px" radius="l" />
|
|
107
|
-
{progress > 0 && <ProgressBar
|
|
107
|
+
{progress > 0 && <ProgressBar showLabel={false} value={progress} paddingX="l" />}
|
|
108
108
|
<Column fillWidth paddingX="16" paddingBottom="20" paddingTop="8" gap="8">
|
|
109
109
|
<Row fillWidth horizontal="between" paddingBottom="12">
|
|
110
110
|
<Row gap="8" data-border="rounded">
|
|
@@ -287,7 +287,7 @@ export const Streaming1: React.FC = () => {
|
|
|
287
287
|
<Column fillWidth style={{marginTop: "calc(-1 * var(--static-space-64))"}}>
|
|
288
288
|
<Row fillWidth style={{height: "80vh"}} paddingBottom="xl">
|
|
289
289
|
<Carousel
|
|
290
|
-
|
|
290
|
+
stretch
|
|
291
291
|
border="transparent"
|
|
292
292
|
radius="none"
|
|
293
293
|
position="absolute"
|
|
@@ -306,7 +306,7 @@ export const Streaming1: React.FC = () => {
|
|
|
306
306
|
pattern={{ display: true, size: "2" }}
|
|
307
307
|
/>
|
|
308
308
|
<Carousel
|
|
309
|
-
|
|
309
|
+
stretch
|
|
310
310
|
pointerEvents="none"
|
|
311
311
|
border="transparent"
|
|
312
312
|
radius="none"
|
|
@@ -94,7 +94,7 @@ export const Table1: React.FC<Table1Props> = ({
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
return (
|
|
97
|
-
<Column fillWidth radius="l" border
|
|
97
|
+
<Column fillWidth radius="l" border {...flex}>
|
|
98
98
|
<Row fillWidth horizontal="between" paddingY="12" paddingRight="12" paddingLeft="24" gap="16" vertical="center" s={{direction: "column",}}>
|
|
99
99
|
<Row fillWidth gap="12" vertical="center" horizontal="between">
|
|
100
100
|
{selectable && someCurrentSelected ? (
|
|
@@ -112,25 +112,25 @@ export const Table1: React.FC<Table1Props> = ({
|
|
|
112
112
|
{showSearch && (
|
|
113
113
|
<Row maxWidth={16}>
|
|
114
114
|
<Input
|
|
115
|
-
|
|
115
|
+
size="s"
|
|
116
116
|
id="search"
|
|
117
117
|
placeholder="Search..."
|
|
118
118
|
value={search}
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
prefix={<Icon name="search" size="s" onBackground="neutral-weak"/>}
|
|
120
|
+
suffix={search.length > 0 && <IconButton tooltip="Clear" tooltipPosition="left" icon="close" size="s" variant="ghost" onClick={() => setSearch("")}/>}
|
|
121
121
|
onChange={(e) => setSearch(e.target.value)}
|
|
122
122
|
/>
|
|
123
123
|
</Row>
|
|
124
124
|
)}
|
|
125
125
|
</Row>
|
|
126
126
|
<Column fillWidth overflowX="auto">
|
|
127
|
-
<Column fillWidth radius="l" border
|
|
128
|
-
<Row fillWidth gap="16" paddingX="24" paddingY="12" borderBottom
|
|
127
|
+
<Column fillWidth radius="l" border overflow="hidden">
|
|
128
|
+
<Row fillWidth gap="16" paddingX="24" paddingY="12" borderBottom>
|
|
129
129
|
{selectable && (
|
|
130
130
|
<Row textVariant="label-default-s" vertical="center" gap="16">
|
|
131
131
|
<Checkbox
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
checked={allCurrentSelected || (someCurrentSelected && !allCurrentSelected)}
|
|
133
|
+
indeterminate={someCurrentSelected && !allCurrentSelected}
|
|
134
134
|
onToggle={toggleSelectAllCurrent}
|
|
135
135
|
/>
|
|
136
136
|
</Row>
|
|
@@ -161,7 +161,7 @@ export const Table1: React.FC<Table1Props> = ({
|
|
|
161
161
|
<Row vertical="center" gap="16">
|
|
162
162
|
<Checkbox
|
|
163
163
|
key={`cb-${id}`}
|
|
164
|
-
|
|
164
|
+
checked={isSelected(id)}
|
|
165
165
|
onToggle={() => toggleSelect(id)}
|
|
166
166
|
/>
|
|
167
167
|
</Row>
|