@matekit/react 0.0.0-stage → 0.1.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/CHANGELOG.md +102 -0
- package/LICENSE +202 -0
- package/NOTICE +56 -0
- package/README.md +115 -2
- package/dist/atoms/Divider/Divider.d.ts +49 -0
- package/dist/atoms/Divider/Divider.js +29 -0
- package/dist/atoms/FocusRing/FocusRing.d.ts +16 -0
- package/dist/atoms/FocusRing/FocusRing.js +16 -0
- package/dist/atoms/Group/Group.d.ts +38 -0
- package/dist/atoms/Group/Group.js +34 -0
- package/dist/atoms/Icon/Icon.d.ts +23 -0
- package/dist/atoms/Icon/Icon.js +19 -0
- package/dist/atoms/Interactive/Interactive.d.ts +98 -0
- package/dist/atoms/Interactive/Interactive.js +87 -0
- package/dist/atoms/Ripple/Ripple.d.ts +14 -0
- package/dist/atoms/Ripple/Ripple.js +63 -0
- package/dist/atoms/Shape/Shape.d.ts +24 -0
- package/dist/atoms/Shape/Shape.js +19 -0
- package/dist/atoms/Shape/shapes.d.ts +8 -0
- package/dist/atoms/Shape/shapes.js +40 -0
- package/dist/atoms/Stack/Stack.d.ts +58 -0
- package/dist/atoms/Stack/Stack.js +33 -0
- package/dist/atoms/StateLayer/StateLayer.d.ts +17 -0
- package/dist/atoms/StateLayer/StateLayer.js +17 -0
- package/dist/atoms/index.d.ts +10 -0
- package/dist/atoms/index.js +10 -0
- package/dist/fonts/roboto-flex/OFL.txt +93 -0
- package/dist/fonts/roboto-flex/roboto-flex-cyrillic-ext.woff2 +0 -0
- package/dist/fonts/roboto-flex/roboto-flex-cyrillic.woff2 +0 -0
- package/dist/fonts/roboto-flex/roboto-flex-greek.woff2 +0 -0
- package/dist/fonts/roboto-flex/roboto-flex-latin-ext.woff2 +0 -0
- package/dist/fonts/roboto-flex/roboto-flex-latin.woff2 +0 -0
- package/dist/fonts/roboto-flex/roboto-flex-vietnamese.woff2 +0 -0
- package/dist/icons/icons.d.ts +89 -0
- package/dist/icons/icons.js +186 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +12 -0
- package/dist/internal/accessible-name.d.ts +17 -0
- package/dist/internal/accessible-name.js +33 -0
- package/dist/internal/anchor-position.d.ts +99 -0
- package/dist/internal/anchor-position.js +159 -0
- package/dist/internal/anchored-drag.d.ts +25 -0
- package/dist/internal/anchored-drag.js +106 -0
- package/dist/internal/dev.d.ts +2 -0
- package/dist/internal/dev.js +18 -0
- package/dist/internal/diagnostics.d.ts +46 -0
- package/dist/internal/diagnostics.js +125 -0
- package/dist/internal/group-label.d.ts +22 -0
- package/dist/internal/group-label.js +50 -0
- package/dist/internal/interactive.d.ts +28 -0
- package/dist/internal/interactive.js +18 -0
- package/dist/internal/layout-element.d.ts +21 -0
- package/dist/internal/layout-element.js +33 -0
- package/dist/internal/merge-refs.d.ts +13 -0
- package/dist/internal/merge-refs.js +35 -0
- package/dist/internal/modal-dialog.d.ts +63 -0
- package/dist/internal/modal-dialog.js +267 -0
- package/dist/internal/navigation-count.d.ts +38 -0
- package/dist/internal/navigation-count.js +60 -0
- package/dist/internal/navigation-item.d.ts +14 -0
- package/dist/internal/navigation-item.js +17 -0
- package/dist/internal/nearest-scroller.d.ts +4 -0
- package/dist/internal/nearest-scroller.js +17 -0
- package/dist/internal/open-state.d.ts +15 -0
- package/dist/internal/open-state.js +42 -0
- package/dist/internal/roving-focus.d.ts +41 -0
- package/dist/internal/roving-focus.js +126 -0
- package/dist/internal/settle-animations.d.ts +33 -0
- package/dist/internal/settle-animations.js +48 -0
- package/dist/internal/time-period.d.ts +10 -0
- package/dist/internal/time-period.js +26 -0
- package/dist/internal/time.d.ts +23 -0
- package/dist/internal/time.js +69 -0
- package/dist/internal/typeahead.d.ts +17 -0
- package/dist/internal/typeahead.js +35 -0
- package/dist/molecules/Badge/Badge.d.ts +25 -0
- package/dist/molecules/Badge/Badge.js +16 -0
- package/dist/molecules/Button/Button.d.ts +48 -0
- package/dist/molecules/Button/Button.js +34 -0
- package/dist/molecules/Card/Card.d.ts +159 -0
- package/dist/molecules/Card/Card.js +119 -0
- package/dist/molecules/Checkbox/Checkbox.d.ts +26 -0
- package/dist/molecules/Checkbox/Checkbox.js +40 -0
- package/dist/molecules/Chip/AssistChip.d.ts +23 -0
- package/dist/molecules/Chip/AssistChip.js +22 -0
- package/dist/molecules/Chip/ChipGroup.d.ts +85 -0
- package/dist/molecules/Chip/ChipGroup.js +92 -0
- package/dist/molecules/Chip/FilterChip.d.ts +33 -0
- package/dist/molecules/Chip/FilterChip.js +30 -0
- package/dist/molecules/Chip/InputChip.d.ts +60 -0
- package/dist/molecules/Chip/InputChip.js +107 -0
- package/dist/molecules/Chip/SuggestionChip.d.ts +24 -0
- package/dist/molecules/Chip/SuggestionChip.js +17 -0
- package/dist/molecules/Chip/chip-content.d.ts +39 -0
- package/dist/molecules/Chip/chip-content.js +95 -0
- package/dist/molecules/Chip/chip-element.d.ts +14 -0
- package/dist/molecules/Chip/chip-element.js +14 -0
- package/dist/molecules/Chip/strings.d.ts +8 -0
- package/dist/molecules/Chip/strings.js +5 -0
- package/dist/molecules/Fab/Fab.d.ts +78 -0
- package/dist/molecules/Fab/Fab.js +52 -0
- package/dist/molecules/IconButton/IconButton.d.ts +59 -0
- package/dist/molecules/IconButton/IconButton.js +36 -0
- package/dist/molecules/LoadingIndicator/LoadingIndicator.d.ts +38 -0
- package/dist/molecules/LoadingIndicator/LoadingIndicator.js +25 -0
- package/dist/molecules/LoadingIndicator/determinate.d.ts +3 -0
- package/dist/molecules/LoadingIndicator/determinate.js +47 -0
- package/dist/molecules/LoadingIndicator/loading-indicator-data.d.ts +21 -0
- package/dist/molecules/LoadingIndicator/loading-indicator-data.js +72 -0
- package/dist/molecules/ProgressIndicator/CircularProgressIndicator.d.ts +35 -0
- package/dist/molecules/ProgressIndicator/CircularProgressIndicator.js +30 -0
- package/dist/molecules/ProgressIndicator/LinearProgressIndicator.d.ts +43 -0
- package/dist/molecules/ProgressIndicator/LinearProgressIndicator.js +28 -0
- package/dist/molecules/ProgressIndicator/circular-wavy-data.d.ts +5 -0
- package/dist/molecules/ProgressIndicator/circular-wavy-data.js +19 -0
- package/dist/molecules/ProgressIndicator/progress.d.ts +24 -0
- package/dist/molecules/ProgressIndicator/progress.js +60 -0
- package/dist/molecules/RadioButton/RadioButton.d.ts +27 -0
- package/dist/molecules/RadioButton/RadioButton.js +70 -0
- package/dist/molecules/RadioButton/RadioGroup.d.ts +73 -0
- package/dist/molecules/RadioButton/RadioGroup.js +82 -0
- package/dist/molecules/ScrollField/ScrollField.d.ts +61 -0
- package/dist/molecules/ScrollField/ScrollField.js +352 -0
- package/dist/molecules/Slider/RangeSlider.d.ts +60 -0
- package/dist/molecules/Slider/RangeSlider.js +169 -0
- package/dist/molecules/Slider/Slider.d.ts +54 -0
- package/dist/molecules/Slider/Slider.js +71 -0
- package/dist/molecules/Slider/slider-shared.d.ts +26 -0
- package/dist/molecules/Slider/slider-shared.js +98 -0
- package/dist/molecules/Switch/Switch.d.ts +22 -0
- package/dist/molecules/Switch/Switch.js +20 -0
- package/dist/molecules/TextField/TextField.d.ts +83 -0
- package/dist/molecules/TextField/TextField.js +146 -0
- package/dist/molecules/TextField/TextFieldSlots.d.ts +22 -0
- package/dist/molecules/TextField/TextFieldSlots.js +24 -0
- package/dist/molecules/TimeInput/TimeInput.d.ts +108 -0
- package/dist/molecules/TimeInput/TimeInput.js +347 -0
- package/dist/molecules/TimeInput/strings.d.ts +13 -0
- package/dist/molecules/TimeInput/strings.js +10 -0
- package/dist/molecules/TimeScroll/TimeScroll.d.ts +106 -0
- package/dist/molecules/TimeScroll/TimeScroll.js +213 -0
- package/dist/molecules/TimeScroll/strings.d.ts +13 -0
- package/dist/molecules/TimeScroll/strings.js +12 -0
- package/dist/molecules/index.d.ts +27 -0
- package/dist/molecules/index.js +25 -0
- package/dist/organisms/BottomSheet/BottomSheet.d.ts +128 -0
- package/dist/organisms/BottomSheet/BottomSheet.js +432 -0
- package/dist/organisms/BottomSheet/BottomSheetSlots.d.ts +17 -0
- package/dist/organisms/BottomSheet/BottomSheetSlots.js +16 -0
- package/dist/organisms/BottomSheet/StandardBottomSheet.d.ts +37 -0
- package/dist/organisms/BottomSheet/StandardBottomSheet.js +206 -0
- package/dist/organisms/BottomSheet/bottom-sheet-context.d.ts +31 -0
- package/dist/organisms/BottomSheet/bottom-sheet-context.js +12 -0
- package/dist/organisms/BottomSheet/sheet-drag.d.ts +1 -0
- package/dist/organisms/BottomSheet/sheet-drag.js +4 -0
- package/dist/organisms/BottomSheet/strings.d.ts +9 -0
- package/dist/organisms/BottomSheet/strings.js +8 -0
- package/dist/organisms/ButtonGroup/ButtonGroup.d.ts +97 -0
- package/dist/organisms/ButtonGroup/ButtonGroup.js +242 -0
- package/dist/organisms/ButtonGroup/ButtonGroupItem.d.ts +36 -0
- package/dist/organisms/ButtonGroup/ButtonGroupItem.js +47 -0
- package/dist/organisms/Dialog/Dialog.d.ts +186 -0
- package/dist/organisms/Dialog/Dialog.js +193 -0
- package/dist/organisms/Dialog/DialogSlots.d.ts +60 -0
- package/dist/organisms/Dialog/DialogSlots.js +54 -0
- package/dist/organisms/Dialog/strings.d.ts +5 -0
- package/dist/organisms/Dialog/strings.js +5 -0
- package/dist/organisms/FabMenu/FabMenu.d.ts +104 -0
- package/dist/organisms/FabMenu/FabMenu.js +142 -0
- package/dist/organisms/FabMenu/strings.d.ts +9 -0
- package/dist/organisms/FabMenu/strings.js +5 -0
- package/dist/organisms/List/List.d.ts +190 -0
- package/dist/organisms/List/List.js +148 -0
- package/dist/organisms/Menu/Menu.d.ts +313 -0
- package/dist/organisms/Menu/Menu.js +865 -0
- package/dist/organisms/Menu/MenuSlots.d.ts +35 -0
- package/dist/organisms/Menu/MenuSlots.js +36 -0
- package/dist/organisms/NavigationBar/NavigationBar.d.ts +96 -0
- package/dist/organisms/NavigationBar/NavigationBar.js +77 -0
- package/dist/organisms/NavigationRail/ModalNavigationRail.d.ts +105 -0
- package/dist/organisms/NavigationRail/ModalNavigationRail.js +272 -0
- package/dist/organisms/NavigationRail/NavigationRail.d.ts +148 -0
- package/dist/organisms/NavigationRail/NavigationRail.js +114 -0
- package/dist/organisms/NavigationRail/NavigationRailSection.d.ts +54 -0
- package/dist/organisms/NavigationRail/NavigationRailSection.js +96 -0
- package/dist/organisms/NavigationRail/strings.d.ts +7 -0
- package/dist/organisms/NavigationRail/strings.js +7 -0
- package/dist/organisms/NavigationSuite/NavigationSuite.d.ts +109 -0
- package/dist/organisms/NavigationSuite/NavigationSuite.js +86 -0
- package/dist/organisms/PaneScaffold/PaneScaffold.d.ts +118 -0
- package/dist/organisms/PaneScaffold/PaneScaffold.js +132 -0
- package/dist/organisms/Search/Search.d.ts +213 -0
- package/dist/organisms/Search/Search.js +783 -0
- package/dist/organisms/Search/SearchSlots.d.ts +18 -0
- package/dist/organisms/Search/SearchSlots.js +19 -0
- package/dist/organisms/Search/strings.d.ts +21 -0
- package/dist/organisms/Search/strings.js +12 -0
- package/dist/organisms/Select/Select.d.ts +186 -0
- package/dist/organisms/Select/Select.js +597 -0
- package/dist/organisms/Select/SelectSlots.d.ts +12 -0
- package/dist/organisms/Select/SelectSlots.js +12 -0
- package/dist/organisms/SideSheet/SideSheet.d.ts +88 -0
- package/dist/organisms/SideSheet/SideSheet.js +109 -0
- package/dist/organisms/SideSheet/SideSheetSlots.d.ts +35 -0
- package/dist/organisms/SideSheet/SideSheetSlots.js +37 -0
- package/dist/organisms/SideSheet/strings.d.ts +7 -0
- package/dist/organisms/SideSheet/strings.js +6 -0
- package/dist/organisms/Snackbar/Snackbar.d.ts +46 -0
- package/dist/organisms/Snackbar/Snackbar.js +36 -0
- package/dist/organisms/Snackbar/SnackbarHost.d.ts +57 -0
- package/dist/organisms/Snackbar/SnackbarHost.js +221 -0
- package/dist/organisms/Snackbar/snackbar-queue.d.ts +81 -0
- package/dist/organisms/Snackbar/snackbar-queue.js +114 -0
- package/dist/organisms/Snackbar/strings.d.ts +8 -0
- package/dist/organisms/Snackbar/strings.js +5 -0
- package/dist/organisms/SplitButton/SplitButton.d.ts +73 -0
- package/dist/organisms/SplitButton/SplitButton.js +77 -0
- package/dist/organisms/SplitButton/strings.d.ts +9 -0
- package/dist/organisms/SplitButton/strings.js +5 -0
- package/dist/organisms/Tabs/TabLink.d.ts +27 -0
- package/dist/organisms/Tabs/TabLink.js +25 -0
- package/dist/organisms/Tabs/TabNav.d.ts +19 -0
- package/dist/organisms/Tabs/TabNav.js +55 -0
- package/dist/organisms/Tabs/Tabs.d.ts +147 -0
- package/dist/organisms/Tabs/Tabs.js +223 -0
- package/dist/organisms/Tabs/tab-content.d.ts +23 -0
- package/dist/organisms/Tabs/tab-content.js +105 -0
- package/dist/organisms/Tabs/tab-fit.d.ts +4 -0
- package/dist/organisms/Tabs/tab-fit.js +65 -0
- package/dist/organisms/Tabs/tab-motion.d.ts +2 -0
- package/dist/organisms/Tabs/tab-motion.js +68 -0
- package/dist/organisms/TimePickerDialog/TimePickerDialog.d.ts +26 -0
- package/dist/organisms/TimePickerDialog/TimePickerDialog.js +34 -0
- package/dist/organisms/Toolbar/Toolbar.d.ts +75 -0
- package/dist/organisms/Toolbar/Toolbar.js +84 -0
- package/dist/organisms/Toolbar/ToolbarLayout.d.ts +44 -0
- package/dist/organisms/Toolbar/ToolbarLayout.js +90 -0
- package/dist/organisms/Toolbar/ToolbarScroll.d.ts +8 -0
- package/dist/organisms/Toolbar/ToolbarScroll.js +222 -0
- package/dist/organisms/Tooltip/RichTooltip.d.ts +73 -0
- package/dist/organisms/Tooltip/RichTooltip.js +250 -0
- package/dist/organisms/Tooltip/Tooltip.d.ts +52 -0
- package/dist/organisms/Tooltip/Tooltip.js +99 -0
- package/dist/organisms/Tooltip/tooltip-behavior.d.ts +43 -0
- package/dist/organisms/Tooltip/tooltip-behavior.js +307 -0
- package/dist/organisms/TopAppBar/TopAppBar.d.ts +107 -0
- package/dist/organisms/TopAppBar/TopAppBar.js +78 -0
- package/dist/organisms/TopAppBar/TopAppBarScroll.d.ts +7 -0
- package/dist/organisms/TopAppBar/TopAppBarScroll.js +155 -0
- package/dist/organisms/index.d.ts +36 -0
- package/dist/organisms/index.js +36 -0
- package/dist/palettes/blue.css +275 -0
- package/dist/palettes/green.css +275 -0
- package/dist/palettes/index.css +823 -0
- package/dist/palettes/orange.css +275 -0
- package/dist/shapes.css +115 -0
- package/dist/strings/index.d.ts +35 -0
- package/dist/strings/index.js +39 -0
- package/dist/styles-no-fonts.css +12025 -0
- package/dist/styles.css +12123 -0
- package/dist/stylesheet.d.ts +2 -0
- package/dist/tokens/breakpoints.d.ts +33 -0
- package/dist/tokens/breakpoints.js +31 -0
- package/dist/tokens/space.d.ts +26 -0
- package/dist/tokens/space.js +26 -0
- package/package.json +110 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Width breakpoints of the Material 3 window size classes (Compose
|
|
3
|
+
* `WindowSizeClass`, BREAKPOINTS_V2): the lower bound of each class, in px. Compact is whatever
|
|
4
|
+
* is below `medium`. It is an "at least": the expanded class is `width >= expanded`.
|
|
5
|
+
*
|
|
6
|
+
* Only for page layout (how many panes, bar or rail): components adapt to the space of their
|
|
7
|
+
* container with container queries, not to the window.
|
|
8
|
+
*
|
|
9
|
+
* `@media` and `@container` conditions do not accept `var()`, so in CSS they are written as
|
|
10
|
+
* literals, in rem (base 16, like the rest of matekit): 37.5rem, 52.5rem, 75rem and 100rem.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* const twoPanes = matchMedia(`(min-width: ${WINDOW_WIDTH.expanded / 16}rem)`) // 52.5rem
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const WINDOW_WIDTH: {
|
|
17
|
+
readonly medium: 600;
|
|
18
|
+
readonly expanded: 840;
|
|
19
|
+
readonly large: 1200;
|
|
20
|
+
readonly extraLarge: 1600;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Height breakpoints of the window size classes (lower bound, in px): compact below 480 (a phone
|
|
24
|
+
* in landscape: two panes do not fit) and expanded from 900. In CSS: 30rem and 56.25rem.
|
|
25
|
+
*/
|
|
26
|
+
export declare const WINDOW_HEIGHT: {
|
|
27
|
+
readonly medium: 480;
|
|
28
|
+
readonly expanded: 900;
|
|
29
|
+
};
|
|
30
|
+
/** A window width class with its own lower bound (compact is the one below). */
|
|
31
|
+
export type WindowWidthClass = keyof typeof WINDOW_WIDTH;
|
|
32
|
+
/** A window height class with its own lower bound. */
|
|
33
|
+
export type WindowHeightClass = keyof typeof WINDOW_HEIGHT;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Generado por scripts/build-tokens.ts desde tokens/. No editar a mano.
|
|
2
|
+
// Fuente: tokens/breakpoints.json (ADR-0016).
|
|
3
|
+
/**
|
|
4
|
+
* Width breakpoints of the Material 3 window size classes (Compose
|
|
5
|
+
* `WindowSizeClass`, BREAKPOINTS_V2): the lower bound of each class, in px. Compact is whatever
|
|
6
|
+
* is below `medium`. It is an "at least": the expanded class is `width >= expanded`.
|
|
7
|
+
*
|
|
8
|
+
* Only for page layout (how many panes, bar or rail): components adapt to the space of their
|
|
9
|
+
* container with container queries, not to the window.
|
|
10
|
+
*
|
|
11
|
+
* `@media` and `@container` conditions do not accept `var()`, so in CSS they are written as
|
|
12
|
+
* literals, in rem (base 16, like the rest of matekit): 37.5rem, 52.5rem, 75rem and 100rem.
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* const twoPanes = matchMedia(`(min-width: ${WINDOW_WIDTH.expanded / 16}rem)`) // 52.5rem
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export const WINDOW_WIDTH = {
|
|
19
|
+
medium: 600,
|
|
20
|
+
expanded: 840,
|
|
21
|
+
large: 1200,
|
|
22
|
+
extraLarge: 1600,
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Height breakpoints of the window size classes (lower bound, in px): compact below 480 (a phone
|
|
26
|
+
* in landscape: two panes do not fit) and expanded from 900. In CSS: 30rem and 56.25rem.
|
|
27
|
+
*/
|
|
28
|
+
export const WINDOW_HEIGHT = {
|
|
29
|
+
medium: 480,
|
|
30
|
+
expanded: 900,
|
|
31
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Material 3 spacing scale: step → px. The step is the token number
|
|
3
|
+
* (`--md-sys-space-200` = 16 px), in hundredths of 8: not px.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SPACE: {
|
|
6
|
+
readonly 0: 0;
|
|
7
|
+
readonly 25: 2;
|
|
8
|
+
readonly 50: 4;
|
|
9
|
+
readonly 75: 6;
|
|
10
|
+
readonly 100: 8;
|
|
11
|
+
readonly 125: 10;
|
|
12
|
+
readonly 150: 12;
|
|
13
|
+
readonly 175: 14;
|
|
14
|
+
readonly 200: 16;
|
|
15
|
+
readonly 250: 20;
|
|
16
|
+
readonly 300: 24;
|
|
17
|
+
readonly 400: 32;
|
|
18
|
+
readonly 450: 36;
|
|
19
|
+
readonly 500: 40;
|
|
20
|
+
readonly 600: 48;
|
|
21
|
+
readonly 700: 56;
|
|
22
|
+
readonly 800: 64;
|
|
23
|
+
readonly 900: 72;
|
|
24
|
+
};
|
|
25
|
+
/** A step of the spacing scale (`0`, `25`, `50`… `900`). */
|
|
26
|
+
export type SpaceStep = keyof typeof SPACE;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generado por scripts/build-tokens.ts desde tokens/. No editar a mano.
|
|
2
|
+
// Fuente: tokens/space.json (ADR-0016).
|
|
3
|
+
/**
|
|
4
|
+
* Material 3 spacing scale: step → px. The step is the token number
|
|
5
|
+
* (`--md-sys-space-200` = 16 px), in hundredths of 8: not px.
|
|
6
|
+
*/
|
|
7
|
+
export const SPACE = {
|
|
8
|
+
0: 0,
|
|
9
|
+
25: 2,
|
|
10
|
+
50: 4,
|
|
11
|
+
75: 6,
|
|
12
|
+
100: 8,
|
|
13
|
+
125: 10,
|
|
14
|
+
150: 12,
|
|
15
|
+
175: 14,
|
|
16
|
+
200: 16,
|
|
17
|
+
250: 20,
|
|
18
|
+
300: 24,
|
|
19
|
+
400: 32,
|
|
20
|
+
450: 36,
|
|
21
|
+
500: 40,
|
|
22
|
+
600: 48,
|
|
23
|
+
700: 56,
|
|
24
|
+
800: 64,
|
|
25
|
+
900: 72,
|
|
26
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,113 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matekit/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "React components for Material 3 Expressive: accessible, themeable, with universal (server) and client components.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"react-components",
|
|
8
|
+
"material",
|
|
9
|
+
"material-3",
|
|
10
|
+
"material-you",
|
|
11
|
+
"material-design",
|
|
12
|
+
"expressive",
|
|
13
|
+
"design-system",
|
|
14
|
+
"ui",
|
|
15
|
+
"components",
|
|
16
|
+
"accessibility",
|
|
17
|
+
"server-components"
|
|
18
|
+
],
|
|
19
|
+
"license": "Apache-2.0",
|
|
20
|
+
"homepage": "https://jrodrigopuca.github.io/matekit/",
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/jrodrigopuca/matekit.git"
|
|
24
|
+
},
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/jrodrigopuca/matekit/issues"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./styles.css": {
|
|
35
|
+
"types": "./dist/stylesheet.d.ts",
|
|
36
|
+
"default": "./dist/styles.css"
|
|
37
|
+
},
|
|
38
|
+
"./styles-no-fonts.css": {
|
|
39
|
+
"types": "./dist/stylesheet.d.ts",
|
|
40
|
+
"default": "./dist/styles-no-fonts.css"
|
|
41
|
+
},
|
|
42
|
+
"./shapes.css": {
|
|
43
|
+
"types": "./dist/stylesheet.d.ts",
|
|
44
|
+
"default": "./dist/shapes.css"
|
|
45
|
+
},
|
|
46
|
+
"./palettes/*.css": {
|
|
47
|
+
"types": "./dist/stylesheet.d.ts",
|
|
48
|
+
"default": "./dist/palettes/*.css"
|
|
49
|
+
},
|
|
50
|
+
"./fonts/roboto-flex/*": "./dist/fonts/roboto-flex/*",
|
|
51
|
+
"./package.json": "./package.json"
|
|
52
|
+
},
|
|
53
|
+
"types": "./dist/index.d.ts",
|
|
54
|
+
"files": [
|
|
55
|
+
"dist",
|
|
56
|
+
"!dist/docs",
|
|
57
|
+
"README.md",
|
|
58
|
+
"CHANGELOG.md",
|
|
59
|
+
"LICENSE",
|
|
60
|
+
"NOTICE"
|
|
61
|
+
],
|
|
62
|
+
"sideEffects": [
|
|
63
|
+
"**/*.css"
|
|
64
|
+
],
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@types/react": "^19.0.0",
|
|
67
|
+
"react": "^19.0.0",
|
|
68
|
+
"react-dom": "^19.0.0"
|
|
69
|
+
},
|
|
70
|
+
"peerDependenciesMeta": {
|
|
71
|
+
"@types/react": {
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=22.12"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@material/material-color-utilities": "0.4.0",
|
|
83
|
+
"@types/node": "26.6.7",
|
|
84
|
+
"@types/react": "19.3.0",
|
|
85
|
+
"@types/react-dom": "19.3.0",
|
|
86
|
+
"@vitejs/plugin-react": "6.3.0",
|
|
87
|
+
"@vitest/browser-playwright": "5.1.0",
|
|
88
|
+
"axe-core": "4.14.0",
|
|
89
|
+
"playwright": "1.65.0",
|
|
90
|
+
"react": "19.3.1",
|
|
91
|
+
"react-dom": "19.3.1",
|
|
92
|
+
"typescript": "7.0.2",
|
|
93
|
+
"vite": "8.3.7",
|
|
94
|
+
"vitest": "5.1.0"
|
|
95
|
+
},
|
|
96
|
+
"scripts": {
|
|
97
|
+
"dev": "vite --config playground/vite.config.ts",
|
|
98
|
+
"build": "node scripts/build-package.ts",
|
|
99
|
+
"check-package": "node scripts/check-package.ts",
|
|
100
|
+
"tokens": "node scripts/build-tokens.ts",
|
|
101
|
+
"icons": "node scripts/build-icons.ts",
|
|
102
|
+
"shapes": "node scripts/build-shapes.ts",
|
|
103
|
+
"docs:api": "node scripts/build-api.ts",
|
|
104
|
+
"docs:build": "MK_DOCS_BASE=/matekit/ vite build --config playground/vite.config.ts",
|
|
105
|
+
"icons:fetch": "node scripts/fetch-icons.ts && node scripts/build-icons.ts",
|
|
106
|
+
"fonts:fetch": "node scripts/fetch-fonts.ts",
|
|
107
|
+
"typecheck": "tsc -p .",
|
|
108
|
+
"lint:css": "node scripts/lint-css.ts",
|
|
109
|
+
"test": "pnpm test:tokens && pnpm test:browser",
|
|
110
|
+
"test:tokens": "node --test \"tests/**/*.test.ts\"",
|
|
111
|
+
"test:browser": "vitest run"
|
|
112
|
+
}
|
|
6
113
|
}
|