@trellixio/roaster-react 2.0.0 → 2.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/README.md +10 -8
- package/cjs/components/ActionList/components/ActionListDropdown.js +11 -4
- package/cjs/components/ActionList/components/ActionListDropdown.js.map +1 -1
- package/cjs/components/DropdownCard/components/DropdownCardDropdown.js +8 -5
- package/cjs/components/DropdownCard/components/DropdownCardDropdown.js.map +1 -1
- package/cjs/components/Modal/Modal.js +7 -1
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Sidebar/Sidebar.js +35 -22
- package/cjs/components/Sidebar/Sidebar.js.map +1 -1
- package/cjs/components/Table/Table.js +4 -1
- package/cjs/components/Table/Table.js.map +1 -1
- package/cjs/components/Table/components/TableCell.js +3 -1
- package/cjs/components/Table/components/TableCell.js.map +1 -1
- package/cjs/components/Table/components/TableHeadCell.js +2 -2
- package/cjs/components/Table/components/TableHeadCell.js.map +1 -1
- package/cjs/tokens/tokens.js +3 -0
- package/cjs/tokens/tokens.js.map +1 -1
- package/cjs/utils/useMediaQuery/index.js +41 -0
- package/cjs/utils/useMediaQuery/index.js.map +1 -0
- package/esm/components/ActionList/components/ActionListDropdown.js +10 -3
- package/esm/components/ActionList/components/ActionListDropdown.js.map +1 -1
- package/esm/components/DropdownCard/components/DropdownCardDropdown.js +6 -3
- package/esm/components/DropdownCard/components/DropdownCardDropdown.js.map +1 -1
- package/esm/components/Modal/Modal.js +7 -1
- package/esm/components/Modal/Modal.js.map +1 -1
- package/esm/components/Sidebar/Sidebar.js +35 -22
- package/esm/components/Sidebar/Sidebar.js.map +1 -1
- package/esm/components/Table/Table.js +4 -1
- package/esm/components/Table/Table.js.map +1 -1
- package/esm/components/Table/components/TableCell.js +3 -1
- package/esm/components/Table/components/TableCell.js.map +1 -1
- package/esm/components/Table/components/TableHeadCell.js +2 -2
- package/esm/components/Table/components/TableHeadCell.js.map +1 -1
- package/esm/tokens/tokens.js +3 -0
- package/esm/tokens/tokens.js.map +1 -1
- package/esm/utils/useMediaQuery/index.js +25 -0
- package/esm/utils/useMediaQuery/index.js.map +1 -0
- package/fonts/jetbrains-mono/LICENSE +93 -0
- package/fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/lib/components/ActionList/ActionList.d.ts +1 -1
- package/lib/components/ActionList/components/ActionListDropdown.d.ts +10 -2
- package/lib/components/ActionList/components/ActionListDropdown.d.ts.map +1 -1
- package/lib/components/DropdownCard/components/DropdownCardDropdown.d.ts +7 -0
- package/lib/components/DropdownCard/components/DropdownCardDropdown.d.ts.map +1 -1
- package/lib/components/Modal/Modal.d.ts.map +1 -1
- package/lib/components/Modal/types/index.d.ts +6 -0
- package/lib/components/Modal/types/index.d.ts.map +1 -1
- package/lib/components/Modal/utils/reducer.d.ts +1 -0
- package/lib/components/Modal/utils/reducer.d.ts.map +1 -1
- package/lib/components/Sidebar/Sidebar.d.ts +6 -3
- package/lib/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/lib/components/Table/Table.d.ts +4 -2
- package/lib/components/Table/Table.d.ts.map +1 -1
- package/lib/components/Table/Table.types.d.ts +9 -0
- package/lib/components/Table/Table.types.d.ts.map +1 -1
- package/lib/components/Table/components/TableCell.d.ts +3 -1
- package/lib/components/Table/components/TableCell.d.ts.map +1 -1
- package/lib/components/Table/components/TableHeadCell.d.ts +3 -1
- package/lib/components/Table/components/TableHeadCell.d.ts.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/tokens/tokens.d.ts +3 -0
- package/lib/tokens/tokens.d.ts.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/useMediaQuery/index.d.ts +8 -0
- package/lib/utils/useMediaQuery/index.d.ts.map +1 -0
- package/package.json +8 -4
- package/roaster.css +1 -0
- package/themes/azoth.css +1 -0
- package/themes/azoth.css.d.ts +2 -0
- package/themes/coffee.css +1 -0
- package/themes/coffee.css.d.ts +2 -0
- package/themes/scalar.css +1 -0
- package/themes/scalar.css.d.ts +2 -0
- package/theme.css +0 -1
- /package/{theme.css.d.ts → roaster.css.d.ts} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
http://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created
|
|
78
|
+
using the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
Binary file
|
|
@@ -14,7 +14,7 @@ export interface ActionListProps extends UseDropdownOptions {
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const ActionList: (({ children, ...options }: ActionListProps) => React.JSX.Element) & {
|
|
16
16
|
Trigger: React.ForwardRefExoticComponent<import("../..").DropdownTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
17
|
-
Dropdown: React.ForwardRefExoticComponent<
|
|
17
|
+
Dropdown: React.ForwardRefExoticComponent<import("./components/ActionListDropdown").ActionListDropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
Group: React.ForwardRefExoticComponent<import("./components/ActionListGroup").ActionListGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
Divider: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & React.RefAttributes<HTMLHRElement>>;
|
|
20
20
|
Item: React.ForwardRefExoticComponent<import("./components/ActionListItem").ActionListItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/** Every native `<div>` prop (`aria-label`, `className`, `style`...) is accepted and forwarded to the menu. */
|
|
3
|
-
export
|
|
3
|
+
export interface ActionListDropdownProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* On a phone (480px wide at most), the menu rises from the window's bottom as a sheet, its full width, over the
|
|
6
|
+
* dimmed page; on a wider screen it opens under its trigger as usual. Guidance: keep a menu beside its trigger; a
|
|
7
|
+
* sheet suits a long one, such as a list of filters with a search.
|
|
8
|
+
* @defaultValue false
|
|
9
|
+
*/
|
|
10
|
+
sheet?: boolean;
|
|
11
|
+
}
|
|
4
12
|
/** The menu: its groups, dividers and items. Rendered while the action list is open. */
|
|
5
|
-
export declare const ActionListDropdown: React.ForwardRefExoticComponent<
|
|
13
|
+
export declare const ActionListDropdown: React.ForwardRefExoticComponent<ActionListDropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
14
|
//# sourceMappingURL=ActionListDropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionListDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActionList/components/ActionListDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,+GAA+G;AAC/G,MAAM,
|
|
1
|
+
{"version":3,"file":"ActionListDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/ActionList/components/ActionListDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,+GAA+G;AAC/G,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACpF;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wFAAwF;AACxF,eAAO,MAAM,kBAAkB,gGA8C9B,CAAC"}
|
|
@@ -6,6 +6,13 @@ export interface DropdownCardDropdownProps extends React.ComponentPropsWithoutRe
|
|
|
6
6
|
* content, with DropdownCard.Tabs.
|
|
7
7
|
*/
|
|
8
8
|
variant?: 'default' | 'compact' | 'tabs';
|
|
9
|
+
/**
|
|
10
|
+
* On a phone (480px wide at most), the card rises from the window's bottom as a sheet, its full width, over the
|
|
11
|
+
* dimmed page; on a wider screen it opens under its trigger as usual. Guidance: a sheet suits a large card, such as
|
|
12
|
+
* filters or a date; a small one (`compact`) stays beside its trigger.
|
|
13
|
+
* @defaultValue false
|
|
14
|
+
*/
|
|
15
|
+
sheet?: boolean;
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
11
18
|
* The card: its content and actions. Rendered while the dropdown card is open, after its trigger, so Tab goes from one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownCardDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/DropdownCard/components/DropdownCardDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,+GAA+G;AAC/G,MAAM,WAAW,yBAA0B,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACtF;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DropdownCardDropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/DropdownCard/components/DropdownCardDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,+GAA+G;AAC/G,MAAM,WAAW,yBAA0B,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACtF;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IACzC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,kGA+BhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAe,UAAU,EAAE,MAAM,SAAS,CAAC;AAelD;;;;GAIG;AACH,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAe,UAAU,EAAE,MAAM,SAAS,CAAC;AAelD;;;;GAIG;AACH,eAAO,MAAM,KAAK,sFAkGhB,CAAC"}
|
|
@@ -24,6 +24,12 @@ export interface ModalProps extends Omit<React.ComponentPropsWithoutRef<'dialog'
|
|
|
24
24
|
* @defaultValue 'small'
|
|
25
25
|
*/
|
|
26
26
|
size?: 'small' | 'medium' | 'large';
|
|
27
|
+
/**
|
|
28
|
+
* On a phone (480px wide at most), the dialog rises from the window's bottom as a sheet, its full width; on a wider
|
|
29
|
+
* screen it is centered as usual. Guidance: a sheet suits a tall dialog that a phone's width would cramp.
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*/
|
|
32
|
+
sheet?: boolean;
|
|
27
33
|
/** The footer, for the actions. */
|
|
28
34
|
footer?: React.ReactNode;
|
|
29
35
|
/** The text of the modal, in English by default. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{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E,WAAW,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACrE,sEAAsE;IACtE,YAAY,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACtE,uEAAuE;IACvE,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACjC;AAED,2FAA2F;AAC3F,MAAM,MAAM,aAAa,GAAG,OAAO,CACjC,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC,CAC9F,GACC,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,GAAG;IACzC,6DAA6D;IAC7D,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB,yDAAyD;IACzD,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,GAAG,aAAa,CAAC,CAAC;CAC/C,CAAC;AAEJ,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,aAAa,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAEpE,MAAM,WAAW,iBAAiB;IAChC,qEAAqE;IACrE,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB,qEAAqE;IACrE,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,gDAAgD;IAChD,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,eAAe;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4DAA4D;IAC5D,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B"}
|
|
@@ -302,6 +302,7 @@ export declare function getModalProviderFooterProps(props: ModalSettings): {
|
|
|
302
302
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDialogElement> | undefined;
|
|
303
303
|
footer?: import("react").ReactNode;
|
|
304
304
|
size?: "small" | "medium" | "large" | undefined;
|
|
305
|
+
sheet?: boolean | undefined;
|
|
305
306
|
key?: import("react").Key | null | undefined;
|
|
306
307
|
description?: import("react").ReactNode;
|
|
307
308
|
closedby?: "any" | "closerequest" | "none" | undefined | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/utils/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,+GAA+G;AAC/G,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,CAe1G;AAED,kHAAkH;AAClH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,aAAa
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Modal/utils/reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAErD,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,+GAA+G;AAC/G,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,EAAE,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,IAAI,CAe1G;AAED,kHAAkH;AAClH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB/D"}
|
|
@@ -22,8 +22,10 @@ export interface SidebarSection {
|
|
|
22
22
|
export interface SidebarLabels {
|
|
23
23
|
/** The name of the navigation, read by screen readers. */
|
|
24
24
|
navigation: string;
|
|
25
|
-
/** The name of the button that opens the sidebar
|
|
25
|
+
/** The name of the button that opens the sidebar where it is a drawer (up to 1024px). */
|
|
26
26
|
open: string;
|
|
27
|
+
/** The name of the button that closes it there. */
|
|
28
|
+
close: string;
|
|
27
29
|
}
|
|
28
30
|
/** Every native `<aside>` prop (`id`, `aria-*`, `data-*`, ...) is accepted and forwarded to it. */
|
|
29
31
|
export interface SidebarProps extends React.ComponentPropsWithoutRef<'aside'> {
|
|
@@ -33,7 +35,7 @@ export interface SidebarProps extends React.ComponentPropsWithoutRef<'aside'> {
|
|
|
33
35
|
footer?: React.ReactNode;
|
|
34
36
|
/** The path of the current page: its item gets `aria-current="page"`, and its sub-menu starts open. */
|
|
35
37
|
activePath?: string;
|
|
36
|
-
/** Next to the button that opens the sidebar
|
|
38
|
+
/** Next to the button that opens the sidebar where it is a drawer, such as the logo. */
|
|
37
39
|
mobileHeader?: React.ReactNode;
|
|
38
40
|
/**
|
|
39
41
|
* The items. An array of items is a group, set apart from the next by a line or room; a section (`{ title, items }`)
|
|
@@ -50,7 +52,8 @@ export interface SidebarProps extends React.ComponentPropsWithoutRef<'aside'> {
|
|
|
50
52
|
/**
|
|
51
53
|
* The navigation of an application: a header (the logo, or the account button with a Sidebar.Back under it), groups
|
|
52
54
|
* of items with sub-menus (`<details>`), labeled sections, and a footer. The current
|
|
53
|
-
* page's item has `aria-current="page"`.
|
|
55
|
+
* page's item has `aria-current="page"`. Up to a tablet's width (1024px), it is a drawer (a popover) that a bar at the
|
|
56
|
+
* top opens, with a close button beside it.
|
|
54
57
|
*/
|
|
55
58
|
export declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLElement>> & {
|
|
56
59
|
Section: React.ForwardRefExoticComponent<import("./components/Section").SectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,qFAAqF;AACrF,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,SAAS,CAAC;IACnF,4BAA4B;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,gHAAgH;IAChH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAC9B;AAED,6FAA6F;AAC7F,MAAM,WAAW,cAAc;IAC7B,iCAAiC;IACjC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,wEAAwE;IACxE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,gCAAgC;IAChC,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAKD,oDAAoD;AACpD,MAAM,WAAW,aAAa;IAC5B,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/Sidebar/Sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KA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,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3D,sDAAsD;IACtD,MAAM,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACjC;AA+JD;;;;;GAKG;AACH,eAAO,MAAM,OAAO;;;;;;;CAA2E,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PaginationProps } from '../Pagination';
|
|
3
3
|
import { TablePaginationProps } from './components/TablePagination';
|
|
4
|
+
import type { TableColumn } from './Table.types';
|
|
4
5
|
import { TableProviderProps } from './utils/table';
|
|
5
6
|
import { TableLabels } from './labels';
|
|
6
7
|
export type { TableLabels } from './labels';
|
|
@@ -27,9 +28,10 @@ export interface NativeTableProps extends Omit<React.ComponentPropsWithoutRef<'t
|
|
|
27
28
|
labels?: Partial<TableLabels>;
|
|
28
29
|
/**
|
|
29
30
|
* The columns' widths, in order, in pixels or any CSS length: kept exactly, the table scrolling sideways when they
|
|
30
|
-
* add up to more than its width.
|
|
31
|
+
* add up to more than its width. With a selection column, the first is its own. A column can be `{ width, priority }`:
|
|
32
|
+
* `priority: 'secondary'` hides it on a phone (its cells take the same `priority`).
|
|
31
33
|
*/
|
|
32
|
-
columns?: (number | string)[];
|
|
34
|
+
columns?: (number | string | TableColumn)[];
|
|
33
35
|
/** Reaches the edges of a full-width page, its rows from edge to edge. */
|
|
34
36
|
bleed?: boolean;
|
|
35
37
|
/** Shorter rows, such as a short list in a card. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAQ1D,OAAO,EAAmB,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGrF,OAAO,EAAE,kBAAkB,EAA4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9E,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,kFAAkF;IAClF,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,oEAAoE;IACpE,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,wEAAwE;IACxE,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,KAAK,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,0BAA0B,CAAC;AAmHlF,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,kBAAkB,CAAC;AAE7D;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,UAAkB,EAClB,SAAS,EACT,kBAAsB,EACtB,iBAAiB,EACjB,GAAG,cAAc,EAClB,EAAE,UAAU,qBAWZ;yBAlBe,KAAK"}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
1
|
/** The possible types of data that can be displayed in a table cell. */
|
|
2
2
|
export type TableDataType = 'link' | 'enum' | 'object' | 'block' | 'actions' | 'numeric' | 'selector' | 'thumbnail' | 'paragraph' | 'text' | 'currency' | 'date' | 'tag';
|
|
3
|
+
/** `secondary`: a column a phone can do without, hidden there (480px wide at most), such as an identifier or a date. */
|
|
4
|
+
export type TableColumnPriority = 'secondary';
|
|
5
|
+
/** A column of `Table`'s `columns`: its width, and whether a phone hides it. */
|
|
6
|
+
export interface TableColumn {
|
|
7
|
+
/** The width, in pixels or any CSS length; left out, the column takes the room the others leave. */
|
|
8
|
+
width?: number | string;
|
|
9
|
+
/** `secondary`: hidden on a phone. Give its cells the same `priority`. */
|
|
10
|
+
priority?: TableColumnPriority;
|
|
11
|
+
}
|
|
3
12
|
//# sourceMappingURL=Table.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.types.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,SAAS,GACT,UAAU,GACV,WAAW,GACX,WAAW,GACX,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"Table.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/Table.types.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,SAAS,GACT,UAAU,GACV,WAAW,GACX,WAAW,GACX,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,CAAC;AAEV,wHAAwH;AACxH,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,gFAAgF;AAChF,MAAM,WAAW,WAAW;IAC1B,oGAAoG;IACpG,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { TableDataType } from '../Table.types';
|
|
2
|
+
import type { TableColumnPriority, TableDataType } from '../Table.types';
|
|
3
3
|
/** Every native `<td>` prop is accepted and forwarded to it. */
|
|
4
4
|
export interface TableCellProps extends React.ComponentPropsWithoutRef<'td'> {
|
|
5
5
|
/** The column's kind of data, which aligns and wraps the cell (`data-type`). */
|
|
6
6
|
type: TableDataType;
|
|
7
7
|
/** The value. A `paragraph` is clamped to four lines. */
|
|
8
8
|
children?: React.ReactNode;
|
|
9
|
+
/** `secondary`: hidden on a phone, with its column (give the column the same priority in `Table`'s `columns`). */
|
|
10
|
+
priority?: TableColumnPriority;
|
|
9
11
|
}
|
|
10
12
|
/** A cell, typed by its column's kind of data. */
|
|
11
13
|
export declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/components/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/components/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEzE,gEAAgE;AAChE,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC;IAC1E,gFAAgF;IAChF,IAAI,EAAE,aAAa,CAAC;IACpB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kHAAkH;IAClH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,kDAAkD;AAClD,eAAO,MAAM,SAAS,6FAMrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TooltipProps } from '../../Tooltip';
|
|
3
|
-
import type { TableDataType } from '../Table.types';
|
|
3
|
+
import type { TableColumnPriority, TableDataType } from '../Table.types';
|
|
4
4
|
/** Every native `<th>` prop is accepted and forwarded to it. */
|
|
5
5
|
export interface TableHeadCellBaseProps extends Omit<React.ComponentPropsWithoutRef<'th'>, 'title'> {
|
|
6
6
|
/** The column's kind of data, which aligns its cells (`data-type`). */
|
|
@@ -11,6 +11,8 @@ export interface TableHeadCellBaseProps extends Omit<React.ComponentPropsWithout
|
|
|
11
11
|
tooltipProps?: Omit<TooltipProps, 'children' | 'label'>;
|
|
12
12
|
/** How the column sorts the rows (`aria-sort`), with an arrow after its Table.SortButton's title. */
|
|
13
13
|
sort?: 'ascending' | 'descending';
|
|
14
|
+
/** `secondary`: hidden on a phone, with its column (give the column the same priority in `Table`'s `columns`). */
|
|
15
|
+
priority?: TableColumnPriority;
|
|
14
16
|
}
|
|
15
17
|
export interface TableHeadCellPropsWithChildren extends TableHeadCellBaseProps {
|
|
16
18
|
/** The title of the column. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeadCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/components/TableHeadCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAW,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableHeadCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/components/TableHeadCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAW,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIzE,gEAAgE;AAChE,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACjG,uEAAuE;IACvE,IAAI,EAAE,aAAa,CAAC;IACpB,6EAA6E;IAC7E,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,sDAAsD;IACtD,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,UAAU,GAAG,OAAO,CAAC,CAAC;IACxD,qGAAqG;IACrG,IAAI,CAAC,EAAE,WAAW,GAAG,YAAY,CAAC;IAClC,kHAAkH;IAClH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC;AAED,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC5E,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,MAAM,WAAW,2BAA4B,SAAQ,sBAAsB;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB;AAED,MAAM,MAAM,kBAAkB,GAAG,8BAA8B,GAAG,2BAA2B,CAAC;AAE9F,wFAAwF;AACxF,eAAO,MAAM,aAAa,iGAoBzB,CAAC;AAMF,oEAAoE;AACpE,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC;IACpF,0BAA0B;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,gGAU3B,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export type { StatCardGroupProps, StatCardLabels, StatCardProps } from './compon
|
|
|
109
109
|
export { Table } from './components/Table/Table';
|
|
110
110
|
export type { TableBaseProps, TableLabels, TableProps } from './components/Table/Table';
|
|
111
111
|
export type { TableSortButtonProps } from './components/Table/components/TableHeadCell';
|
|
112
|
-
export type { TableDataType } from './components/Table/Table.types';
|
|
112
|
+
export type { TableColumn, TableColumnPriority, TableDataType } from './components/Table/Table.types';
|
|
113
113
|
export type { TableBodyProps } from './components/Table/components/TableBody';
|
|
114
114
|
export type { TableGroupProps } from './components/Table/components/TableGroup';
|
|
115
115
|
export type { TableCellProps } from './components/Table/components/TableCell';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":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AM,qCAAqC,CAAC;AAC9E,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAG5F,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
|
package/lib/tokens/tokens.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ export declare const tokens: {
|
|
|
18
18
|
readonly search: {
|
|
19
19
|
readonly height: "var(--roaster-action-list-search-height)";
|
|
20
20
|
};
|
|
21
|
+
readonly divider: {
|
|
22
|
+
readonly 'margin-block': "var(--roaster-action-list-divider-margin-block)";
|
|
23
|
+
};
|
|
21
24
|
};
|
|
22
25
|
readonly 'action-card': {
|
|
23
26
|
readonly 'link-icon': "var(--roaster-action-card-link-icon)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/tokens/tokens.ts"],"names":[],"mappings":"AAEA,2HAA2H;AAC3H,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/tokens/tokens.ts"],"names":[],"mappings":"AAEA,2HAA2H;AAC3H,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAw/CT,CAAC"}
|
package/lib/utils/index.d.ts
CHANGED
package/lib/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** A phone's width, where the CSS stacks the page and a sheet rises from the window's bottom. */
|
|
2
|
+
export declare const PHONE_QUERY = "(max-width: 480px)";
|
|
3
|
+
/**
|
|
4
|
+
* Whether the window matches a media query, such as `PHONE_QUERY`, kept up to date as it changes. False where it
|
|
5
|
+
* can't be known: on the server, or in a test environment without `matchMedia`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useMediaQuery(query: string): boolean;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/useMediaQuery/index.ts"],"names":[],"mappings":"AAEA,iGAAiG;AACjG,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAIhD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAepD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trellixio/roaster-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Accessible React components on the Roaster design system: native HTML, design tokens, and whole themes, light or dark, switched by one class on <html>.",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -49,9 +49,13 @@
|
|
|
49
49
|
"import": "./esm/index.js",
|
|
50
50
|
"require": "./cjs/index.js"
|
|
51
51
|
},
|
|
52
|
-
"./
|
|
53
|
-
"types": "./
|
|
54
|
-
"default": "./
|
|
52
|
+
"./roaster.css": {
|
|
53
|
+
"types": "./roaster.css.d.ts",
|
|
54
|
+
"default": "./roaster.css"
|
|
55
|
+
},
|
|
56
|
+
"./themes/*.css": {
|
|
57
|
+
"types": "./themes/*.css.d.ts",
|
|
58
|
+
"default": "./themes/*.css"
|
|
55
59
|
},
|
|
56
60
|
"./package.json": "./package.json"
|
|
57
61
|
}
|