@bug-on/md3-react 2.0.3 → 3.0.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/.turbo/turbo-build.log +42 -0
- package/CHANGELOG.md +69 -0
- package/dist/index.css +178 -0
- package/dist/index.css.d.ts +2 -0
- package/dist/index.d.mts +6135 -0
- package/dist/index.d.ts +6135 -71
- package/dist/index.js +1688 -631
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1600 -564
- package/dist/index.mjs.map +1 -1
- package/dist/material-symbols-cdn.css.d.ts +2 -0
- package/dist/material-symbols-self-hosted.css.d.ts +2 -0
- package/dist/plugin.d.mts +1 -0
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.js +13 -0
- package/dist/plugin.js.map +1 -0
- package/dist/plugin.mjs +3 -0
- package/dist/plugin.mjs.map +1 -0
- package/dist/typography.css.d.ts +2 -0
- package/package.json +28 -19
- package/scripts/copy-assets.js +115 -0
- package/src/assets/fonts/GoogleSansFlex-VariableFont.woff2 +0 -0
- package/src/assets/fonts/MaterialSymbolsOutlined-VariableFont_FILL,GRAD,opsz,wght.ttf +0 -0
- package/src/assets/fonts/MaterialSymbolsRounded-VariableFont_FILL,GRAD,opsz,wght.ttf +0 -0
- package/src/assets/fonts/MaterialSymbolsSharp-VariableFont_FILL,GRAD,opsz,wght.ttf +0 -0
- package/src/assets/loading-indicator.svg +19 -0
- package/src/assets/material-symbols-cdn.css +65 -0
- package/src/assets/material-symbols-self-hosted.css +90 -0
- package/src/css.d.ts +20 -0
- package/src/hooks/useClickOutside.ts +37 -0
- package/src/hooks/useMediaQuery.ts +28 -0
- package/src/hooks/useRipple.ts +88 -0
- package/src/index.css +23 -0
- package/src/index.ts +349 -0
- package/src/lib/material-symbols-preconnect.tsx +82 -0
- package/src/lib/theme-utils.ts +195 -0
- package/src/lib/utils.ts +6 -0
- package/src/plugin.ts +12 -0
- package/src/test/button.test.tsx +59 -0
- package/src/test/icon.test.tsx +91 -0
- package/src/test/loading-indicator.test.tsx +128 -0
- package/src/test/progress-indicator.test.tsx +306 -0
- package/src/test/setup.ts +80 -0
- package/src/test/typography.test.tsx +206 -0
- package/src/types/index.ts +7 -0
- package/src/types/md3.ts +31 -0
- package/src/ui/Text.tsx +60 -0
- package/src/ui/__snapshots__/divider.test.tsx.snap +63 -0
- package/src/ui/app-bar/app-bar-column.tsx +99 -0
- package/src/ui/app-bar/app-bar-item-button.tsx +71 -0
- package/src/ui/app-bar/app-bar-items.test.tsx +89 -0
- package/src/ui/app-bar/app-bar-overflow-indicator.tsx +108 -0
- package/src/ui/app-bar/app-bar-row.tsx +104 -0
- package/src/ui/app-bar/app-bar.test.tsx +87 -0
- package/src/ui/app-bar/app-bar.tokens.ts +223 -0
- package/src/ui/app-bar/app-bar.types.ts +441 -0
- package/src/ui/app-bar/bottom-app-bar.test.tsx +42 -0
- package/src/ui/app-bar/bottom-app-bar.tsx +84 -0
- package/src/ui/app-bar/docked-toolbar.test.tsx +34 -0
- package/src/ui/app-bar/docked-toolbar.tsx +54 -0
- package/src/ui/app-bar/flexible-app-bar.test.tsx +75 -0
- package/src/ui/app-bar/hooks/use-app-bar-scroll.ts +110 -0
- package/src/ui/app-bar/hooks/use-flexible-app-bar.ts +123 -0
- package/{dist/ui/app-bar/index.d.ts → src/ui/app-bar/index.ts} +35 -2
- package/src/ui/app-bar/large-flexible-app-bar.tsx +165 -0
- package/src/ui/app-bar/medium-flexible-app-bar.tsx +167 -0
- package/src/ui/app-bar/search-app-bar.test.tsx +49 -0
- package/src/ui/app-bar/search-app-bar.tsx +176 -0
- package/src/ui/app-bar/search-view.tsx +227 -0
- package/src/ui/app-bar/small-app-bar.test.tsx +48 -0
- package/src/ui/app-bar/small-app-bar.tsx +203 -0
- package/src/ui/badge.test.tsx +345 -0
- package/src/ui/badge.tsx +282 -0
- package/src/ui/button-group.test.tsx +71 -0
- package/src/ui/button-group.tsx +350 -0
- package/src/ui/button.test.tsx +306 -0
- package/src/ui/button.tsx +665 -0
- package/src/ui/card.test.tsx +187 -0
- package/src/ui/card.tsx +259 -0
- package/src/ui/checkbox.test.tsx +423 -0
- package/src/ui/checkbox.tsx +525 -0
- package/src/ui/chip.test.tsx +292 -0
- package/src/ui/chip.tsx +548 -0
- package/src/ui/code-block.tsx +219 -0
- package/src/ui/dialog.test.tsx +300 -0
- package/src/ui/dialog.tsx +384 -0
- package/src/ui/divider.test.tsx +314 -0
- package/src/ui/divider.tsx +412 -0
- package/src/ui/drawer.tsx +240 -0
- package/src/ui/fab-menu.test.tsx +494 -0
- package/src/ui/fab-menu.tsx +739 -0
- package/src/ui/fab.test.tsx +232 -0
- package/src/ui/fab.tsx +505 -0
- package/src/ui/icon-button.test.tsx +515 -0
- package/src/ui/icon-button.tsx +525 -0
- package/src/ui/icon.test.tsx +197 -0
- package/src/ui/icon.tsx +179 -0
- package/src/ui/loading-indicator.test.tsx +73 -0
- package/src/ui/loading-indicator.tsx +312 -0
- package/src/ui/menu/context-menu.tsx +275 -0
- package/src/ui/menu/index.ts +77 -0
- package/src/ui/menu/menu-animations.ts +102 -0
- package/src/ui/menu/menu-context.tsx +99 -0
- package/src/ui/menu/menu-divider.tsx +47 -0
- package/src/ui/menu/menu-group.tsx +200 -0
- package/src/ui/menu/menu-item.tsx +294 -0
- package/src/ui/menu/menu-tokens.ts +208 -0
- package/src/ui/menu/menu-types.ts +313 -0
- package/src/ui/menu/menu.test.tsx +624 -0
- package/src/ui/menu/menu.tsx +289 -0
- package/src/ui/menu/sub-menu.tsx +223 -0
- package/src/ui/menu/vertical-menu.tsx +382 -0
- package/src/ui/navigation-rail.test.tsx +404 -0
- package/src/ui/navigation-rail.tsx +607 -0
- package/src/ui/progress-indicator/circular.tsx +248 -0
- package/src/ui/progress-indicator/hooks.ts +51 -0
- package/{dist/ui/progress-indicator/index.d.ts → src/ui/progress-indicator/index.tsx} +20 -2
- package/src/ui/progress-indicator/linear-flat.tsx +83 -0
- package/src/ui/progress-indicator/linear-wavy.tsx +243 -0
- package/src/ui/progress-indicator/linear.tsx +143 -0
- package/src/ui/progress-indicator/types.ts +158 -0
- package/src/ui/progress-indicator/utils.ts +73 -0
- package/src/ui/radio-button.test.tsx +407 -0
- package/src/ui/radio-button.tsx +551 -0
- package/src/ui/ripple.test.tsx +72 -0
- package/src/ui/ripple.tsx +234 -0
- package/src/ui/scroll-area.test.tsx +58 -0
- package/src/ui/scroll-area.tsx +139 -0
- package/src/ui/search/animated-placeholder.tsx +145 -0
- package/src/ui/search/hooks/use-search-keyboard.test.ts +202 -0
- package/src/ui/search/hooks/use-search-keyboard.ts +104 -0
- package/src/ui/search/hooks/use-search-view-focus.test.ts +96 -0
- package/src/ui/search/hooks/use-search-view-focus.ts +24 -0
- package/src/ui/search/index.ts +44 -0
- package/src/ui/search/search-bar.tsx +220 -0
- package/src/ui/search/search-context.tsx +42 -0
- package/src/ui/search/search-view-docked.tsx +194 -0
- package/src/ui/search/search-view-fullscreen.tsx +247 -0
- package/src/ui/search/search.test.tsx +233 -0
- package/src/ui/search/search.tokens.ts +134 -0
- package/src/ui/search/search.tsx +131 -0
- package/src/ui/search/search.types.ts +154 -0
- package/src/ui/search/trailing-action.tsx +49 -0
- package/src/ui/shared/constants.ts +135 -0
- package/{dist/ui/shared/touch-target.d.ts → src/ui/shared/touch-target.tsx} +13 -1
- package/src/ui/slider/hooks/useSliderMath.ts +195 -0
- package/{dist/ui/slider/index.d.ts → src/ui/slider/index.ts} +12 -1
- package/src/ui/slider/range-slider.tsx +561 -0
- package/src/ui/slider/slider-thumb.tsx +379 -0
- package/src/ui/slider/slider-track.tsx +912 -0
- package/src/ui/slider/slider.tokens.ts +189 -0
- package/src/ui/slider/slider.tsx +259 -0
- package/src/ui/slider/slider.types.ts +288 -0
- package/src/ui/snackbar/index.ts +20 -0
- package/src/ui/snackbar/snackbar.test.tsx +338 -0
- package/src/ui/snackbar/snackbar.tsx +476 -0
- package/{dist/ui/switch/index.d.ts → src/ui/switch/index.ts} +1 -0
- package/src/ui/switch/switch.stories.tsx +309 -0
- package/src/ui/switch/switch.test.tsx +243 -0
- package/src/ui/switch/switch.tokens.ts +89 -0
- package/src/ui/switch/switch.tsx +504 -0
- package/src/ui/switch/switch.types.ts +62 -0
- package/{dist/ui/tabs/index.d.ts → src/ui/tabs/index.ts} +8 -1
- package/src/ui/tabs/tab.tsx +407 -0
- package/src/ui/tabs/tabs-content.tsx +89 -0
- package/src/ui/tabs/tabs-list.tsx +146 -0
- package/src/ui/tabs/tabs.test.tsx +290 -0
- package/src/ui/tabs/tabs.tokens.ts +121 -0
- package/src/ui/tabs/tabs.tsx +229 -0
- package/src/ui/tabs/tabs.types.ts +185 -0
- package/{dist/ui/text-field/index.d.ts → src/ui/text-field/index.ts} +8 -1
- package/src/ui/text-field/subcomponents/active-indicator.tsx +67 -0
- package/src/ui/text-field/subcomponents/floating-label.tsx +161 -0
- package/src/ui/text-field/subcomponents/leading-icon.tsx +46 -0
- package/src/ui/text-field/subcomponents/outline-container.tsx +170 -0
- package/src/ui/text-field/subcomponents/prefix-suffix.tsx +59 -0
- package/src/ui/text-field/subcomponents/supporting-text.tsx +145 -0
- package/src/ui/text-field/subcomponents/trailing-icon.tsx +199 -0
- package/src/ui/text-field/text-field.test.tsx +454 -0
- package/src/ui/text-field/text-field.tokens.ts +104 -0
- package/src/ui/text-field/text-field.tsx +548 -0
- package/src/ui/text-field/text-field.types.ts +180 -0
- package/src/ui/theme-provider/index.tsx +215 -0
- package/src/ui/toc.test.tsx +108 -0
- package/src/ui/toc.tsx +172 -0
- package/src/ui/tooltip/plain-tooltip.tsx +63 -0
- package/src/ui/tooltip/rich-tooltip.tsx +94 -0
- package/src/ui/tooltip/tooltip-box.tsx +266 -0
- package/src/ui/tooltip/tooltip-caret-shape.tsx +68 -0
- package/src/ui/tooltip/tooltip.tokens.ts +26 -0
- package/src/ui/tooltip/tooltip.types.ts +70 -0
- package/src/ui/tooltip/use-tooltip-position.ts +208 -0
- package/src/ui/tooltip/use-tooltip-state.ts +41 -0
- package/src/ui/typography/__tests__/typography.test.tsx +170 -0
- package/{dist/ui/typography/index.d.ts → src/ui/typography/index.ts} +21 -3
- package/src/ui/typography/type-scale-tokens.ts +205 -0
- package/src/ui/typography/typography-key-tokens.ts +43 -0
- package/src/ui/typography/typography-tokens.ts +360 -0
- package/src/ui/typography/typography.css +22 -0
- package/src/ui/typography/typography.tsx +559 -0
- package/test-render.tsx +4 -0
- package/test-shadow.html +26 -0
- package/test_output.txt +164 -0
- package/test_output_v2.txt +5 -0
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +18 -0
- package/tsup.config.ts +20 -0
- package/vitest.config.ts +11 -0
- package/dist/hooks/useClickOutside.d.ts +0 -8
- package/dist/hooks/useMediaQuery.d.ts +0 -11
- package/dist/hooks/useRipple.d.ts +0 -26
- package/dist/lib/material-symbols-preconnect.d.ts +0 -42
- package/dist/lib/theme-utils.d.ts +0 -63
- package/dist/lib/utils.d.ts +0 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/md3.d.ts +0 -14
- package/dist/ui/app-bar/app-bar-column.d.ts +0 -28
- package/dist/ui/app-bar/app-bar-item-button.d.ts +0 -16
- package/dist/ui/app-bar/app-bar-overflow-indicator.d.ts +0 -18
- package/dist/ui/app-bar/app-bar-row.d.ts +0 -36
- package/dist/ui/app-bar/app-bar.tokens.d.ts +0 -184
- package/dist/ui/app-bar/app-bar.types.d.ts +0 -392
- package/dist/ui/app-bar/bottom-app-bar.d.ts +0 -31
- package/dist/ui/app-bar/docked-toolbar.d.ts +0 -25
- package/dist/ui/app-bar/hooks/use-app-bar-scroll.d.ts +0 -42
- package/dist/ui/app-bar/hooks/use-flexible-app-bar.d.ts +0 -37
- package/dist/ui/app-bar/large-flexible-app-bar.d.ts +0 -26
- package/dist/ui/app-bar/medium-flexible-app-bar.d.ts +0 -28
- package/dist/ui/app-bar/search-app-bar.d.ts +0 -43
- package/dist/ui/app-bar/search-view.d.ts +0 -54
- package/dist/ui/app-bar/small-app-bar.d.ts +0 -37
- package/dist/ui/badge.d.ts +0 -125
- package/dist/ui/button-group.d.ts +0 -59
- package/dist/ui/button.d.ts +0 -148
- package/dist/ui/card.d.ts +0 -62
- package/dist/ui/checkbox.d.ts +0 -82
- package/dist/ui/chip.d.ts +0 -110
- package/dist/ui/code-block.d.ts +0 -14
- package/dist/ui/dialog.d.ts +0 -111
- package/dist/ui/divider.d.ts +0 -164
- package/dist/ui/drawer.d.ts +0 -39
- package/dist/ui/dropdown.d.ts +0 -29
- package/dist/ui/fab-menu.d.ts +0 -204
- package/dist/ui/fab.d.ts +0 -162
- package/dist/ui/icon-button.d.ts +0 -131
- package/dist/ui/icon.d.ts +0 -88
- package/dist/ui/loading-indicator.d.ts +0 -42
- package/dist/ui/navigation-rail.d.ts +0 -29
- package/dist/ui/progress-indicator/circular.d.ts +0 -3
- package/dist/ui/progress-indicator/hooks.d.ts +0 -3
- package/dist/ui/progress-indicator/linear-flat.d.ts +0 -10
- package/dist/ui/progress-indicator/linear-wavy.d.ts +0 -18
- package/dist/ui/progress-indicator/linear.d.ts +0 -3
- package/dist/ui/progress-indicator/types.d.ts +0 -151
- package/dist/ui/progress-indicator/utils.d.ts +0 -3
- package/dist/ui/radio-button.d.ts +0 -106
- package/dist/ui/ripple.d.ts +0 -126
- package/dist/ui/scroll-area.d.ts +0 -27
- package/dist/ui/search/animated-placeholder.d.ts +0 -54
- package/dist/ui/search/hooks/use-search-keyboard.d.ts +0 -32
- package/dist/ui/search/hooks/use-search-view-focus.d.ts +0 -6
- package/dist/ui/search/index.d.ts +0 -27
- package/dist/ui/search/search-bar.d.ts +0 -32
- package/dist/ui/search/search-context.d.ts +0 -24
- package/dist/ui/search/search-view-docked.d.ts +0 -25
- package/dist/ui/search/search-view-fullscreen.d.ts +0 -36
- package/dist/ui/search/search.d.ts +0 -50
- package/dist/ui/search/search.tokens.d.ts +0 -112
- package/dist/ui/search/search.types.d.ts +0 -131
- package/dist/ui/search/trailing-action.d.ts +0 -9
- package/dist/ui/shared/constants.d.ts +0 -86
- package/dist/ui/slider/hooks/useSliderMath.d.ts +0 -101
- package/dist/ui/slider/range-slider.d.ts +0 -47
- package/dist/ui/slider/slider-thumb.d.ts +0 -33
- package/dist/ui/slider/slider-track.d.ts +0 -25
- package/dist/ui/slider/slider.d.ts +0 -60
- package/dist/ui/slider/slider.tokens.d.ts +0 -151
- package/dist/ui/slider/slider.types.d.ts +0 -259
- package/dist/ui/snackbar/index.d.ts +0 -6
- package/dist/ui/snackbar/snackbar.d.ts +0 -197
- package/dist/ui/switch/switch.d.ts +0 -30
- package/dist/ui/switch/switch.stories.d.ts +0 -48
- package/dist/ui/switch/switch.tokens.d.ts +0 -67
- package/dist/ui/switch/switch.types.d.ts +0 -59
- package/dist/ui/tabs/tab.d.ts +0 -43
- package/dist/ui/tabs/tabs-content.d.ts +0 -36
- package/dist/ui/tabs/tabs-list.d.ts +0 -40
- package/dist/ui/tabs/tabs.d.ts +0 -60
- package/dist/ui/tabs/tabs.tokens.d.ts +0 -94
- package/dist/ui/tabs/tabs.types.d.ts +0 -172
- package/dist/ui/text-field/subcomponents/active-indicator.d.ts +0 -24
- package/dist/ui/text-field/subcomponents/floating-label.d.ts +0 -43
- package/dist/ui/text-field/subcomponents/leading-icon.d.ts +0 -23
- package/dist/ui/text-field/subcomponents/outline-container.d.ts +0 -42
- package/dist/ui/text-field/subcomponents/prefix-suffix.d.ts +0 -24
- package/dist/ui/text-field/subcomponents/supporting-text.d.ts +0 -37
- package/dist/ui/text-field/subcomponents/trailing-icon.d.ts +0 -41
- package/dist/ui/text-field/text-field.d.ts +0 -49
- package/dist/ui/text-field/text-field.tokens.d.ts +0 -76
- package/dist/ui/text-field/text-field.types.d.ts +0 -126
- package/dist/ui/theme-provider/index.d.ts +0 -48
- package/dist/ui/toc.d.ts +0 -80
- package/dist/ui/tooltip/plain-tooltip.d.ts +0 -2
- package/dist/ui/tooltip/rich-tooltip.d.ts +0 -2
- package/dist/ui/tooltip/tooltip-box.d.ts +0 -2
- package/dist/ui/tooltip/tooltip-caret-shape.d.ts +0 -9
- package/dist/ui/tooltip/tooltip.tokens.d.ts +0 -26
- package/dist/ui/tooltip/tooltip.types.d.ts +0 -56
- package/dist/ui/tooltip/use-tooltip-position.d.ts +0 -8
- package/dist/ui/tooltip/use-tooltip-state.d.ts +0 -2
- package/dist/ui/typography/type-scale-tokens.d.ts +0 -162
- package/dist/ui/typography/typography-key-tokens.d.ts +0 -40
- package/dist/ui/typography/typography-tokens.d.ts +0 -220
- package/dist/ui/typography/typography.d.ts +0 -265
- /package/{dist/hooks/index.d.ts → src/hooks/index.ts} +0 -0
- /package/{dist/ui/tooltip/index.d.ts → src/ui/tooltip/index.ts} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @bug-on/md3-react@3.0.1 build /Users/stark/Documents/GitHub/bug-on-md3-expressive/packages/react
|
|
4
|
+
> tsup
|
|
5
|
+
|
|
6
|
+
CLI Building entry: src/index.ts, src/plugin.ts
|
|
7
|
+
CLI Using tsconfig: tsconfig.json
|
|
8
|
+
CLI tsup v8.5.1
|
|
9
|
+
CLI Using tsup config: /Users/stark/Documents/GitHub/bug-on-md3-expressive/packages/react/tsup.config.ts
|
|
10
|
+
CLI Target: es2017
|
|
11
|
+
CJS Build start
|
|
12
|
+
ESM Build start
|
|
13
|
+
DTS Build start
|
|
14
|
+
ESM dist/plugin.mjs 119.00 B
|
|
15
|
+
ESM dist/plugin.mjs.map 91.00 B
|
|
16
|
+
ESM dist/index.mjs 481.27 KB
|
|
17
|
+
ESM dist/index.mjs.map 1.11 MB
|
|
18
|
+
ESM ⚡️ Build success in 1434ms
|
|
19
|
+
CJS dist/plugin.js 337.00 B
|
|
20
|
+
CJS dist/plugin.js.map 90.00 B
|
|
21
|
+
CJS dist/index.js 500.12 KB
|
|
22
|
+
CJS dist/index.js.map 1.11 MB
|
|
23
|
+
CJS ⚡️ Build success in 1434ms
|
|
24
|
+
Copying assets to dist...
|
|
25
|
+
✅ Copied src/assets to dist/assets
|
|
26
|
+
✅ Copied typography.css to dist/typography.css
|
|
27
|
+
✅ Bundled colors.css from md3-tokens into index.css
|
|
28
|
+
✅ Bundled shape.css from md3-tokens into index.css
|
|
29
|
+
✅ Built bundled index.css (tokens + component base) to dist/index.css
|
|
30
|
+
✅ Copied material-symbols-cdn.css to dist/material-symbols-cdn.css
|
|
31
|
+
✅ Copied material-symbols-self-hosted.css to dist/material-symbols-self-hosted.css
|
|
32
|
+
✅ Generated index.css.d.ts
|
|
33
|
+
✅ Generated typography.css.d.ts
|
|
34
|
+
✅ Generated material-symbols-cdn.css.d.ts
|
|
35
|
+
✅ Generated material-symbols-self-hosted.css.d.ts
|
|
36
|
+
✅ Prepended "use client" to index.js
|
|
37
|
+
✅ Prepended "use client" to index.mjs
|
|
38
|
+
DTS ⚡️ Build success in 5446ms
|
|
39
|
+
DTS dist/plugin.d.ts 48.00 B
|
|
40
|
+
DTS dist/index.d.ts 234.14 KB
|
|
41
|
+
DTS dist/plugin.d.mts 48.00 B
|
|
42
|
+
DTS dist/index.d.mts 234.14 KB
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# @bug-on/md3-react
|
|
2
|
+
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- - **React**: Automatically bundle CSS tokens into `index.css` for easier setup.
|
|
8
|
+
- **React**: Re-export Tailwind plugin via `@bug-on/md3-react/plugin`.
|
|
9
|
+
- **React**: Add `@bug-on/md3-tailwind` and `@bug-on/md3-tokens` as direct dependencies.
|
|
10
|
+
- **Tokens**: Fix build warning when `index.css` is missing in src.
|
|
11
|
+
- **Tailwind**: Improved compatibility for Tailwind v3 and v4.
|
|
12
|
+
- **Build**: Optimized build process using native tsup features.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
- @bug-on/md3-tailwind@3.0.1
|
|
15
|
+
- @bug-on/md3-tokens@3.0.1
|
|
16
|
+
|
|
17
|
+
## 3.0.0
|
|
18
|
+
|
|
19
|
+
### Major Changes
|
|
20
|
+
|
|
21
|
+
- e170496: Fix types tokens, tailwind, add menu component ver 1
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Fix Menu component to correctly handle and pass the variant and menuVariant props to MenuProvider, ensuring expressive features like shape morphing work as intended.
|
|
26
|
+
- Updated dependencies [e170496]
|
|
27
|
+
- @bug-on/md3-tokens@3.0.0
|
|
28
|
+
|
|
29
|
+
## 2.0.3
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 86381df: Add Search UI, demo
|
|
34
|
+
|
|
35
|
+
## 2.0.2
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- c5ad43d: Added App Bars.
|
|
40
|
+
|
|
41
|
+
## 2.0.1
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 1b6bb5c: Implement Material Design 3 Expressive Sliders and update all documentation to English.
|
|
46
|
+
|
|
47
|
+
## 2.0.0
|
|
48
|
+
|
|
49
|
+
### Major Changes
|
|
50
|
+
|
|
51
|
+
- 039d035: Update docs, readme, optimize lints
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [039d035]
|
|
56
|
+
- @bug-on/md3-tokens@2.0.0
|
|
57
|
+
|
|
58
|
+
## 1.0.0
|
|
59
|
+
|
|
60
|
+
### Major Changes
|
|
61
|
+
|
|
62
|
+
- 0845e7b: update READMEs with English instructions for3 packages
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- 4901a01: update READMEs with English instructions.
|
|
67
|
+
- Updated dependencies [4901a01]
|
|
68
|
+
- Updated dependencies [0845e7b]
|
|
69
|
+
- @bug-on/md3-tokens@1.0.0
|
package/dist/index.css
CHANGED
|
@@ -1,3 +1,181 @@
|
|
|
1
|
+
/* @bug-on/md3-tokens — MD3 System Color Tokens */
|
|
2
|
+
/* MD3 System Color Tokens — Light Theme (Baseline Scheme)
|
|
3
|
+
*
|
|
4
|
+
* Mapping: PaletteTokens → ColorLightTokens → CSS variable
|
|
5
|
+
* Reference: ColorLightTokens.kt, ColorDarkTokens.kt, PaletteTokens.kt
|
|
6
|
+
*/
|
|
7
|
+
:root {
|
|
8
|
+
/* ── Primary ─────────────────────────────────────────────────────────── */
|
|
9
|
+
--md-sys-color-primary: #6750a4; /* Primary40 */
|
|
10
|
+
--md-sys-color-on-primary: #ffffff; /* Primary100 */
|
|
11
|
+
--md-sys-color-primary-container: #eaddff; /* Primary90 */
|
|
12
|
+
--md-sys-color-on-primary-container: #21005d; /* Primary10 */
|
|
13
|
+
--md-sys-color-inverse-primary: #d0bcff; /* Primary80 */
|
|
14
|
+
|
|
15
|
+
/* ── Primary Fixed (stable across light/dark) ────────────────────────── */
|
|
16
|
+
--md-sys-color-primary-fixed: #eaddff; /* Primary90 */
|
|
17
|
+
--md-sys-color-primary-fixed-dim: #d0bcff; /* Primary80 */
|
|
18
|
+
--md-sys-color-on-primary-fixed: #21005d; /* Primary10 */
|
|
19
|
+
--md-sys-color-on-primary-fixed-variant: #4f378b; /* Primary30 */
|
|
20
|
+
|
|
21
|
+
/* ── Secondary ───────────────────────────────────────────────────────── */
|
|
22
|
+
--md-sys-color-secondary: #625b71; /* Secondary40 */
|
|
23
|
+
--md-sys-color-on-secondary: #ffffff; /* Secondary100 */
|
|
24
|
+
--md-sys-color-secondary-container: #e8def8; /* Secondary90 */
|
|
25
|
+
--md-sys-color-on-secondary-container: #1d192b; /* Secondary10 */
|
|
26
|
+
|
|
27
|
+
/* ── Secondary Fixed (stable across light/dark) ──────────────────────── */
|
|
28
|
+
--md-sys-color-secondary-fixed: #e8def8; /* Secondary90 */
|
|
29
|
+
--md-sys-color-secondary-fixed-dim: #ccc2dc; /* Secondary80 */
|
|
30
|
+
--md-sys-color-on-secondary-fixed: #1d192b; /* Secondary10 */
|
|
31
|
+
--md-sys-color-on-secondary-fixed-variant: #4a4458; /* Secondary30 */
|
|
32
|
+
|
|
33
|
+
/* ── Tertiary ────────────────────────────────────────────────────────── */
|
|
34
|
+
--md-sys-color-tertiary: #7d5260; /* Tertiary40 */
|
|
35
|
+
--md-sys-color-on-tertiary: #ffffff; /* Tertiary100 */
|
|
36
|
+
--md-sys-color-tertiary-container: #ffd8e4; /* Tertiary90 */
|
|
37
|
+
--md-sys-color-on-tertiary-container: #31111d; /* Tertiary10 */
|
|
38
|
+
|
|
39
|
+
/* ── Tertiary Fixed (stable across light/dark) ───────────────────────── */
|
|
40
|
+
--md-sys-color-tertiary-fixed: #ffd8e4; /* Tertiary90 */
|
|
41
|
+
--md-sys-color-tertiary-fixed-dim: #efb8c8; /* Tertiary80 */
|
|
42
|
+
--md-sys-color-on-tertiary-fixed: #31111d; /* Tertiary10 */
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: #633b48; /* Tertiary30 */
|
|
44
|
+
|
|
45
|
+
/* ── Error ───────────────────────────────────────────────────────────── */
|
|
46
|
+
--md-sys-color-error: #b3261e; /* Error40 */
|
|
47
|
+
--md-sys-color-on-error: #ffffff; /* Error100 */
|
|
48
|
+
--md-sys-color-error-container: #f9dedc; /* Error90 */
|
|
49
|
+
--md-sys-color-on-error-container: #410e0b; /* Error10 */
|
|
50
|
+
|
|
51
|
+
/* ── Surface ─────────────────────────────────────────────────────────── */
|
|
52
|
+
--md-sys-color-surface: #fef7ff; /* Neutral98 */
|
|
53
|
+
--md-sys-color-on-surface: #1c1b1f; /* Neutral10 */
|
|
54
|
+
--md-sys-color-surface-variant: #e7e0eb; /* NeutralVariant90 */
|
|
55
|
+
--md-sys-color-on-surface-variant: #49454f; /* NeutralVariant30 */
|
|
56
|
+
--md-sys-color-surface-dim: #ded8e1; /* Neutral87 */
|
|
57
|
+
--md-sys-color-surface-bright: #fef7ff; /* Neutral98 */
|
|
58
|
+
--md-sys-color-surface-tint: #6750a4; /* = primary */
|
|
59
|
+
--md-sys-color-surface-container-lowest: #ffffff; /* Neutral100 */
|
|
60
|
+
--md-sys-color-surface-container-low: #f7f2fa; /* Neutral96 */
|
|
61
|
+
--md-sys-color-surface-container: #f3edf7; /* Neutral94 */
|
|
62
|
+
--md-sys-color-surface-container-high: #ece6f0; /* Neutral92 */
|
|
63
|
+
--md-sys-color-surface-container-highest: #e6e0e9; /* Neutral90 */
|
|
64
|
+
|
|
65
|
+
/* ── Inverse Surface ─────────────────────────────────────────────────── */
|
|
66
|
+
--md-sys-color-inverse-surface: #313033; /* Neutral20 */
|
|
67
|
+
--md-sys-color-inverse-on-surface: #f4eff4; /* Neutral95 */
|
|
68
|
+
|
|
69
|
+
/* ── Background ──────────────────────────────────────────────────────── */
|
|
70
|
+
--md-sys-color-background: #fef7ff; /* Neutral98 — same as surface */
|
|
71
|
+
--md-sys-color-on-background: #1c1b1f; /* Neutral10 */
|
|
72
|
+
|
|
73
|
+
/* ── Outline ─────────────────────────────────────────────────────────── */
|
|
74
|
+
--md-sys-color-outline: #79747e; /* NeutralVariant50 */
|
|
75
|
+
--md-sys-color-outline-variant: #cac4d0; /* NeutralVariant80 */
|
|
76
|
+
|
|
77
|
+
/* ── Utility ─────────────────────────────────────────────────────────── */
|
|
78
|
+
--md-sys-color-scrim: #000000; /* Neutral0 */
|
|
79
|
+
--md-sys-color-shadow: #000000; /* Neutral0 */
|
|
80
|
+
|
|
81
|
+
/* ── Indicator tokens — Loading & Progress ───────────────────────────── */
|
|
82
|
+
--md-sys-color-indicator-active: var(--md-sys-color-primary);
|
|
83
|
+
--md-sys-color-indicator-container: var(--md-sys-color-secondary-container);
|
|
84
|
+
--md-sys-color-indicator-contained-active: var(
|
|
85
|
+
--md-sys-color-on-primary-container
|
|
86
|
+
);
|
|
87
|
+
--md-sys-color-indicator-contained-container: var(
|
|
88
|
+
--md-sys-color-primary-container
|
|
89
|
+
);
|
|
90
|
+
--md-sys-color-indicator-track: var(--md-sys-color-surface-variant);
|
|
91
|
+
--md-sys-color-indicator-stop: var(--md-sys-color-primary);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Dark Theme overrides
|
|
95
|
+
* Mapping: PaletteTokens → ColorDarkTokens → CSS variable
|
|
96
|
+
*/
|
|
97
|
+
[data-theme="dark"],
|
|
98
|
+
.dark {
|
|
99
|
+
/* ── Primary ─────────────────────────────────────────────────────────── */
|
|
100
|
+
--md-sys-color-primary: #d0bcff; /* Primary80 */
|
|
101
|
+
--md-sys-color-on-primary: #381e72; /* Primary20 */
|
|
102
|
+
--md-sys-color-primary-container: #4f378b; /* Primary30 */
|
|
103
|
+
--md-sys-color-on-primary-container: #eaddff; /* Primary90 */
|
|
104
|
+
--md-sys-color-inverse-primary: #6750a4; /* Primary40 */
|
|
105
|
+
|
|
106
|
+
/* ── Secondary ───────────────────────────────────────────────────────── */
|
|
107
|
+
--md-sys-color-secondary: #ccc2dc; /* Secondary80 */
|
|
108
|
+
--md-sys-color-on-secondary: #332d41; /* Secondary20 */
|
|
109
|
+
--md-sys-color-secondary-container: #4a4458; /* Secondary30 */
|
|
110
|
+
--md-sys-color-on-secondary-container: #e8def8; /* Secondary90 */
|
|
111
|
+
|
|
112
|
+
/* ── Tertiary ────────────────────────────────────────────────────────── */
|
|
113
|
+
--md-sys-color-tertiary: #efb8c8; /* Tertiary80 */
|
|
114
|
+
--md-sys-color-on-tertiary: #492532; /* Tertiary20 */
|
|
115
|
+
--md-sys-color-tertiary-container: #633b48; /* Tertiary30 */
|
|
116
|
+
--md-sys-color-on-tertiary-container: #ffd8e4; /* Tertiary90 */
|
|
117
|
+
|
|
118
|
+
/* ── Error ───────────────────────────────────────────────────────────── */
|
|
119
|
+
--md-sys-color-error: #f2b8b5; /* Error80 */
|
|
120
|
+
--md-sys-color-on-error: #601410; /* Error20 */
|
|
121
|
+
--md-sys-color-error-container: #8c1d18; /* Error30 */
|
|
122
|
+
--md-sys-color-on-error-container: #f9dedc; /* Error90 */
|
|
123
|
+
|
|
124
|
+
/* ── Surface ─────────────────────────────────────────────────────────── */
|
|
125
|
+
--md-sys-color-surface: #141218; /* Neutral6 */
|
|
126
|
+
--md-sys-color-on-surface: #e6e1e5; /* Neutral90 */
|
|
127
|
+
--md-sys-color-surface-variant: #49454f; /* NeutralVariant30 */
|
|
128
|
+
--md-sys-color-on-surface-variant: #cac4d0; /* NeutralVariant80 */
|
|
129
|
+
--md-sys-color-surface-dim: #141218; /* Neutral6 */
|
|
130
|
+
--md-sys-color-surface-bright: #3b383e; /* Neutral24 */
|
|
131
|
+
--md-sys-color-surface-tint: #d0bcff; /* = primary (dark) */
|
|
132
|
+
--md-sys-color-surface-container-lowest: #0f0d13; /* Neutral4 */
|
|
133
|
+
--md-sys-color-surface-container-low: #1d1b20; /* Neutral10 */
|
|
134
|
+
--md-sys-color-surface-container: #211f26; /* Neutral12 */
|
|
135
|
+
--md-sys-color-surface-container-high: #2b2930; /* Neutral17 */
|
|
136
|
+
--md-sys-color-surface-container-highest: #36343b; /* Neutral22 */
|
|
137
|
+
|
|
138
|
+
/* ── Inverse Surface ─────────────────────────────────────────────────── */
|
|
139
|
+
--md-sys-color-inverse-surface: #e6e1e5; /* Neutral90 */
|
|
140
|
+
--md-sys-color-inverse-on-surface: #313033; /* Neutral20 */
|
|
141
|
+
|
|
142
|
+
/* ── Background ──────────────────────────────────────────────────────── */
|
|
143
|
+
--md-sys-color-background: #141218; /* Neutral6 — same as dark surface */
|
|
144
|
+
--md-sys-color-on-background: #e6e1e5; /* Neutral90 */
|
|
145
|
+
|
|
146
|
+
/* ── Outline ─────────────────────────────────────────────────────────── */
|
|
147
|
+
--md-sys-color-outline: #938f99; /* NeutralVariant60 */
|
|
148
|
+
--md-sys-color-outline-variant: #49454f; /* NeutralVariant30 */
|
|
149
|
+
|
|
150
|
+
/* ── Utility ─────────────────────────────────────────────────────────── */
|
|
151
|
+
--md-sys-color-scrim: #000000;
|
|
152
|
+
--md-sys-color-shadow: #000000;
|
|
153
|
+
|
|
154
|
+
/* ── Indicator tokens — Dark ─────────────────────────────────────────── */
|
|
155
|
+
--md-sys-color-indicator-active: var(--md-sys-color-primary);
|
|
156
|
+
--md-sys-color-indicator-container: var(--md-sys-color-secondary-container);
|
|
157
|
+
--md-sys-color-indicator-contained-active: var(
|
|
158
|
+
--md-sys-color-on-primary-container
|
|
159
|
+
);
|
|
160
|
+
--md-sys-color-indicator-contained-container: var(
|
|
161
|
+
--md-sys-color-primary-container
|
|
162
|
+
);
|
|
163
|
+
--md-sys-color-indicator-track: var(--md-sys-color-surface-variant);
|
|
164
|
+
--md-sys-color-indicator-stop: var(--md-sys-color-primary);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:root {
|
|
168
|
+
--md-sys-shape-corner-none: 0px;
|
|
169
|
+
--md-sys-shape-corner-extra-small: 4px;
|
|
170
|
+
--md-sys-shape-corner-small: 8px;
|
|
171
|
+
--md-sys-shape-corner-medium: 12px;
|
|
172
|
+
--md-sys-shape-corner-large: 16px;
|
|
173
|
+
--md-sys-shape-corner-extra-large: 28px;
|
|
174
|
+
--md-sys-shape-corner-full: 9999px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
/* @bug-on/md3-react — Component Base Reset */
|
|
1
179
|
/* @bug-on/md3-react - Base Reset Styles */
|
|
2
180
|
|
|
3
181
|
/**
|