@jack.winter/pancake-ui 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.
Files changed (57) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/LICENSE +21 -0
  3. package/README.md +93 -2
  4. package/dist/components/Button/Button.d.ts +7 -0
  5. package/dist/components/Button/ButtonLink.d.ts +8 -0
  6. package/dist/components/Button/IconButton.d.ts +7 -0
  7. package/dist/components/Checkbox/Checkbox.d.ts +6 -0
  8. package/dist/components/Dialog/Dialog.d.ts +9 -0
  9. package/dist/components/Disclosure/Disclosure.d.ts +17 -0
  10. package/dist/components/DropdownMenu/DropdownMenu.d.ts +25 -0
  11. package/dist/components/DropdownMenu/menuKeyboard.d.ts +3 -0
  12. package/dist/components/FileField/FileField.d.ts +7 -0
  13. package/dist/components/Pagination/Pagination.d.ts +22 -0
  14. package/dist/components/Pagination/paginationPages.d.ts +5 -0
  15. package/dist/components/Popover/Popover.d.ts +7 -0
  16. package/dist/components/RadioGroup/RadioGroup.d.ts +18 -0
  17. package/dist/components/Select/Select.d.ts +9 -0
  18. package/dist/components/Surface/Surface.d.ts +3 -0
  19. package/dist/components/Switch/Switch.d.ts +6 -0
  20. package/dist/components/Table/Table.d.ts +6 -0
  21. package/dist/components/Tabs/Tabs.d.ts +17 -0
  22. package/dist/components/TextField/TextField.d.ts +8 -0
  23. package/dist/components/Textarea/Textarea.d.ts +7 -0
  24. package/dist/components/Tooltip/Tooltip.d.ts +7 -0
  25. package/dist/components/Tooltip/useTooltip.d.ts +12 -0
  26. package/dist/components/feedback/BannerToast.d.ts +8 -0
  27. package/dist/components/feedback/EmptyState.d.ts +8 -0
  28. package/dist/components/feedback/StatusChip.d.ts +6 -0
  29. package/dist/components/identity/Avatar.d.ts +9 -0
  30. package/dist/components/identity/AvatarGroup.d.ts +13 -0
  31. package/dist/components/layout/Inline.d.ts +5 -0
  32. package/dist/components/layout/Stack.d.ts +10 -0
  33. package/dist/components/layout/Text.d.ts +8 -0
  34. package/dist/components/layout/layout.shared.d.ts +16 -0
  35. package/dist/components/navigation/AppHeader.d.ts +11 -0
  36. package/dist/components/navigation/BottomNavigation.d.ts +12 -0
  37. package/dist/components/navigation/SectionHeader.d.ts +11 -0
  38. package/dist/components/navigation/SegmentedControl.d.ts +15 -0
  39. package/dist/components/navigation/StepProgress.d.ts +6 -0
  40. package/dist/components/progress/LoadingIndicator.d.ts +5 -0
  41. package/dist/components/progress/Progress.d.ts +8 -0
  42. package/dist/fonts/Inter-Bold.ttf +0 -0
  43. package/dist/fonts/Inter-Regular.ttf +0 -0
  44. package/dist/fonts/Inter-SemiBold.ttf +0 -0
  45. package/dist/fonts/OFL.txt +92 -0
  46. package/dist/fonts/inter-4.1.provenance.json +41 -0
  47. package/dist/fonts.css +21 -0
  48. package/dist/foundations/tokens.d.ts +168 -0
  49. package/dist/index.d.ts +36 -0
  50. package/dist/index.js +1121 -0
  51. package/dist/styles.css +3 -0
  52. package/dist/theme.css +97 -0
  53. package/docs/components.md +182 -0
  54. package/docs/installation.md +145 -0
  55. package/docs/styling.md +92 -0
  56. package/docs/verification.md +80 -0
  57. package/package.json +107 -4
Binary file
Binary file
Binary file
@@ -0,0 +1,92 @@
1
+ Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
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
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+ -----------------------------------------------------------
10
+
11
+ PREAMBLE
12
+ The goals of the Open Font License (OFL) are to stimulate worldwide
13
+ development of collaborative font projects, to support the font creation
14
+ efforts of academic and linguistic communities, and to provide a free and
15
+ open framework in which fonts may be shared and improved in partnership
16
+ with others.
17
+
18
+ The OFL allows the licensed fonts to be used, studied, modified and
19
+ redistributed freely as long as they are not sold by themselves. The
20
+ fonts, including any derivative works, can be bundled, embedded,
21
+ redistributed and/or sold with any software provided that any reserved
22
+ names are not used by derivative works. The fonts and derivatives,
23
+ however, cannot be released under any other type of license. The
24
+ requirement for fonts to remain under this license does not apply
25
+ to any document created using the fonts or their derivatives.
26
+
27
+ DEFINITIONS
28
+ "Font Software" refers to the set of files released by the Copyright
29
+ Holder(s) under this license and clearly marked as such. This may
30
+ include source files, build scripts and documentation.
31
+
32
+ "Reserved Font Name" refers to any names specified as such after the
33
+ copyright statement(s).
34
+
35
+ "Original Version" refers to the collection of Font Software components as
36
+ distributed by the Copyright Holder(s).
37
+
38
+ "Modified Version" refers to any derivative made by adding to, deleting,
39
+ or substituting -- in part or in whole -- any of the components of the
40
+ Original Version, by changing formats or by porting the Font Software to a
41
+ new environment.
42
+
43
+ "Author" refers to any designer, engineer, programmer, technical
44
+ writer or other person who contributed to the Font Software.
45
+
46
+ PERMISSION AND CONDITIONS
47
+ Permission is hereby granted, free of charge, to any person obtaining
48
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
49
+ redistribute, and sell modified and unmodified copies of the Font
50
+ Software, subject to the following conditions:
51
+
52
+ 1) Neither the Font Software nor any of its individual components,
53
+ in Original or Modified Versions, may be sold by itself.
54
+
55
+ 2) Original or Modified Versions of the Font Software may be bundled,
56
+ redistributed and/or sold with any software, provided that each copy
57
+ contains the above copyright notice and this license. These can be
58
+ included either as stand-alone text files, human-readable headers or
59
+ in the appropriate machine-readable metadata fields within text or
60
+ binary files as long as those fields can be easily viewed by the user.
61
+
62
+ 3) No Modified Version of the Font Software may use the Reserved Font
63
+ Name(s) unless explicit written permission is granted by the corresponding
64
+ Copyright Holder. This restriction only applies to the primary font name as
65
+ presented to the users.
66
+
67
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
68
+ Software shall not be used to promote, endorse or advertise any
69
+ Modified Version, except to acknowledge the contribution(s) of the
70
+ Copyright Holder(s) and the Author(s) or with their explicit written
71
+ permission.
72
+
73
+ 5) The Font Software, modified or unmodified, in part or in whole,
74
+ must be distributed entirely under this license, and must not be
75
+ distributed under any other license. The requirement for fonts to
76
+ remain under this license does not apply to any document created
77
+ using the Font Software.
78
+
79
+ TERMINATION
80
+ This license becomes null and void if any of the above conditions are
81
+ not met.
82
+
83
+ DISCLAIMER
84
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
85
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
86
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
87
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
88
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
89
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
90
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
91
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
92
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,41 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "family": "Inter",
4
+ "version": "4.1",
5
+ "license": "SIL Open Font License 1.1",
6
+ "licenseFile": "assets/fonts/OFL.txt",
7
+ "officialRepository": "https://github.com/rsms/inter",
8
+ "officialRelease": "https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip",
9
+ "googleFontsMetadata": "https://github.com/google/fonts/blob/main/ofl/inter/METADATA.pb",
10
+ "googleFontsSourceCommit": "66647c0bbbe41a850d79d9c76fb13add3378940f",
11
+ "archiveSha256": "9883fdd4a49d4fb66bd8177ba6625ef9a64aa45899767dde3d36aa425756b11e",
12
+ "assets": [
13
+ {
14
+ "path": "assets/fonts/Inter-Regular.ttf",
15
+ "sourcePath": "extras/ttf/Inter-Regular.ttf",
16
+ "runtimeFamily": "Inter_400Regular",
17
+ "postScriptName": "Inter-Regular",
18
+ "weight": 400,
19
+ "style": "normal",
20
+ "sha256": "40d692fce188e4471e2b3cba937be967878f631ad3ebbbdcd587687c7ebe0c82"
21
+ },
22
+ {
23
+ "path": "assets/fonts/Inter-SemiBold.ttf",
24
+ "sourcePath": "extras/ttf/Inter-SemiBold.ttf",
25
+ "runtimeFamily": "Inter_600SemiBold",
26
+ "postScriptName": "Inter-SemiBold",
27
+ "weight": 600,
28
+ "style": "normal",
29
+ "sha256": "78a843fade9d4612a5567302fb595b56976eb5fcebf4fea5a5912d638bafcde3"
30
+ },
31
+ {
32
+ "path": "assets/fonts/Inter-Bold.ttf",
33
+ "sourcePath": "extras/ttf/Inter-Bold.ttf",
34
+ "runtimeFamily": "Inter_700Bold",
35
+ "postScriptName": "Inter-Bold",
36
+ "weight": 700,
37
+ "style": "normal",
38
+ "sha256": "288316099b1e0a47a4716d159098005eef7c0066921f34e3200393dbdb01947f"
39
+ }
40
+ ]
41
+ }
package/dist/fonts.css ADDED
@@ -0,0 +1,21 @@
1
+ @font-face {
2
+ font-family: Inter;
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ font-display: swap;
6
+ src: url("./fonts/Inter-Regular.ttf") format("truetype");
7
+ }
8
+ @font-face {
9
+ font-family: Inter;
10
+ font-style: normal;
11
+ font-weight: 600;
12
+ font-display: swap;
13
+ src: url("./fonts/Inter-SemiBold.ttf") format("truetype");
14
+ }
15
+ @font-face {
16
+ font-family: Inter;
17
+ font-style: normal;
18
+ font-weight: 700;
19
+ font-display: swap;
20
+ src: url("./fonts/Inter-Bold.ttf") format("truetype");
21
+ }
@@ -0,0 +1,168 @@
1
+ export declare const colors: Readonly<{
2
+ readonly accent: "#ade533";
3
+ readonly accentDisabledLayer: "rgba(173, 229, 51, 0.8)";
4
+ readonly border: "#edede8";
5
+ readonly canvas: "#fbf8f0";
6
+ readonly controlBorder: "#7e8c70";
7
+ readonly controlFocus: "#647a45";
8
+ readonly errorStrong: "#a34c3e";
9
+ readonly danger: "#ffd6d6";
10
+ readonly dangerHover: "#ffc2c2";
11
+ readonly deep: "#384540";
12
+ readonly info: "#d6edfa";
13
+ readonly ink: "#0e1716";
14
+ readonly muted: "#636b6e";
15
+ readonly olive: "#636657";
16
+ readonly surface: "#ffffff";
17
+ readonly surfaceAccent: "#d1f28a";
18
+ readonly surfaceMuted: "#f0f0eb";
19
+ readonly textSecondary: "#3b4742";
20
+ readonly transparent: "transparent";
21
+ readonly warning: "#ffeb9e";
22
+ readonly focusRing: "#ADE533";
23
+ }>;
24
+ export type ColorToken = keyof typeof colors;
25
+ export declare const spacing: Readonly<{
26
+ readonly space0: 0;
27
+ readonly space12: 12;
28
+ readonly space16: 16;
29
+ readonly space20: 20;
30
+ readonly space24: 24;
31
+ readonly space32: 32;
32
+ readonly space4: 4;
33
+ readonly space40: 40;
34
+ readonly space8: 8;
35
+ }>;
36
+ export type SpacingToken = keyof typeof spacing;
37
+ export declare const radii: Readonly<{
38
+ readonly radius12: 12;
39
+ readonly radius16: 16;
40
+ readonly radius20: 20;
41
+ readonly radius28: 28;
42
+ readonly radius36: 36;
43
+ readonly radius8: 8;
44
+ readonly radiusFull: 999;
45
+ }>;
46
+ export type RadiusToken = keyof typeof radii;
47
+ /** Fixed UI geometry on the shared four-point grid. */
48
+ export declare const sizing: Readonly<{
49
+ readonly size0: 0;
50
+ readonly size4: 4;
51
+ readonly size8: 8;
52
+ readonly size12: 12;
53
+ readonly size16: 16;
54
+ readonly size20: 20;
55
+ readonly size24: 24;
56
+ readonly size28: 28;
57
+ readonly size32: 32;
58
+ readonly size36: 36;
59
+ readonly size40: 40;
60
+ readonly size44: 44;
61
+ readonly size48: 48;
62
+ readonly size52: 52;
63
+ readonly size56: 56;
64
+ readonly size64: 64;
65
+ readonly size72: 72;
66
+ readonly size76: 76;
67
+ readonly size80: 80;
68
+ readonly size88: 88;
69
+ readonly size92: 92;
70
+ readonly size104: 104;
71
+ readonly size112: 112;
72
+ readonly size320: 320;
73
+ readonly size560: 560;
74
+ }>;
75
+ export type SizingToken = keyof typeof sizing;
76
+ export declare const borders: Readonly<{
77
+ readonly borderDefault: 1;
78
+ readonly focusRingWidth: 2;
79
+ }>;
80
+ export type BorderToken = keyof typeof borders;
81
+ export declare const opacity: Readonly<{
82
+ readonly opacityDisabled: 0.4;
83
+ readonly opacityOverlay: 0.5;
84
+ }>;
85
+ export type OpacityToken = keyof typeof opacity;
86
+ export type FoundationTextStyle = Readonly<{
87
+ fontFamily: "Inter, sans-serif";
88
+ fontSize: number;
89
+ fontWeight: "400" | "600" | "700";
90
+ fontStyle: "normal";
91
+ lineHeight: `${number}px`;
92
+ letterSpacing: number;
93
+ }>;
94
+ export declare const typography: Readonly<{
95
+ readonly body: Readonly<{
96
+ fontFamily: "Inter, sans-serif";
97
+ fontSize: number;
98
+ fontWeight: "400";
99
+ fontStyle: "normal";
100
+ lineHeight: "16.8px";
101
+ letterSpacing: number;
102
+ }>;
103
+ readonly bodyStrong: Readonly<{
104
+ fontFamily: "Inter, sans-serif";
105
+ fontSize: number;
106
+ fontWeight: "600";
107
+ fontStyle: "normal";
108
+ lineHeight: "18px";
109
+ letterSpacing: number;
110
+ }>;
111
+ readonly caption: Readonly<{
112
+ fontFamily: "Inter, sans-serif";
113
+ fontSize: number;
114
+ fontWeight: "400";
115
+ fontStyle: "normal";
116
+ lineHeight: "13.2px";
117
+ letterSpacing: number;
118
+ }>;
119
+ readonly display: Readonly<{
120
+ fontFamily: "Inter, sans-serif";
121
+ fontSize: number;
122
+ fontWeight: "700";
123
+ fontStyle: "normal";
124
+ lineHeight: "33.6px";
125
+ letterSpacing: number;
126
+ }>;
127
+ readonly heading: Readonly<{
128
+ fontFamily: "Inter, sans-serif";
129
+ fontSize: number;
130
+ fontWeight: "700";
131
+ fontStyle: "normal";
132
+ lineHeight: "21.6px";
133
+ letterSpacing: number;
134
+ }>;
135
+ readonly label: Readonly<{
136
+ fontFamily: "Inter, sans-serif";
137
+ fontSize: number;
138
+ fontWeight: "600";
139
+ fontStyle: "normal";
140
+ lineHeight: "14.4px";
141
+ letterSpacing: number;
142
+ }>;
143
+ readonly micro: Readonly<{
144
+ fontFamily: "Inter, sans-serif";
145
+ fontSize: number;
146
+ fontWeight: "600";
147
+ fontStyle: "normal";
148
+ lineHeight: "12px";
149
+ letterSpacing: number;
150
+ }>;
151
+ readonly section: Readonly<{
152
+ fontFamily: "Inter, sans-serif";
153
+ fontSize: number;
154
+ fontWeight: "700";
155
+ fontStyle: "normal";
156
+ lineHeight: "24px";
157
+ letterSpacing: number;
158
+ }>;
159
+ readonly title: Readonly<{
160
+ fontFamily: "Inter, sans-serif";
161
+ fontSize: number;
162
+ fontWeight: "700";
163
+ fontStyle: "normal";
164
+ lineHeight: "30px";
165
+ letterSpacing: number;
166
+ }>;
167
+ }>;
168
+ export type TypographyToken = keyof typeof typography;
@@ -0,0 +1,36 @@
1
+ import "./styles.css";
2
+ export { colors, spacing, radii, sizing, borders, opacity, typography, type ColorToken, type SpacingToken, type RadiusToken, type SizingToken, type BorderToken, type OpacityToken, type FoundationTextStyle, type TypographyToken, } from "./foundations/tokens";
3
+ export { Surface, type SurfaceProps } from "./components/Surface/Surface";
4
+ export { Button, type ButtonProps } from "./components/Button/Button";
5
+ export { Checkbox, type CheckboxProps } from "./components/Checkbox/Checkbox";
6
+ export { TextField, type TextFieldProps, } from "./components/TextField/TextField";
7
+ export { Stack, type StackProps } from "./components/layout/Stack";
8
+ export { Inline, type InlineProps } from "./components/layout/Inline";
9
+ export { Text, type TextProps } from "./components/layout/Text";
10
+ export { Avatar, type AvatarProps, type AvatarSize, } from "./components/identity/Avatar";
11
+ export { AvatarGroup, type AvatarGroupProps, type AvatarGroupItem, } from "./components/identity/AvatarGroup";
12
+ export { StatusChip, type StatusChipProps, type StatusChipTone, } from "./components/feedback/StatusChip";
13
+ export { BannerToast, type BannerToastProps, } from "./components/feedback/BannerToast";
14
+ export { EmptyState, type EmptyStateProps, } from "./components/feedback/EmptyState";
15
+ export { SectionHeader, type SectionHeaderProps, } from "./components/navigation/SectionHeader";
16
+ export { AppHeader, type AppHeaderProps, } from "./components/navigation/AppHeader";
17
+ export { BottomNavigation, type BottomNavigationProps, type NavigationItem, } from "./components/navigation/BottomNavigation";
18
+ export { SegmentedControl, type SegmentedControlProps, type SegmentOption, } from "./components/navigation/SegmentedControl";
19
+ export { StepProgress, type StepProgressProps, } from "./components/navigation/StepProgress";
20
+ export { Textarea, type TextareaProps } from "./components/Textarea/Textarea";
21
+ export { Select, type SelectProps } from "./components/Select/Select";
22
+ export { IconButton, type IconButtonProps, } from "./components/Button/IconButton";
23
+ export { ButtonLink, type ButtonLinkProps, } from "./components/Button/ButtonLink";
24
+ export { Dialog, type DialogProps } from "./components/Dialog/Dialog";
25
+ export { RadioGroup, type RadioGroupProps, type RadioOption, } from "./components/RadioGroup/RadioGroup";
26
+ export { Switch, type SwitchProps } from "./components/Switch/Switch";
27
+ export { Tabs, type TabsProps, type TabItem } from "./components/Tabs/Tabs";
28
+ export { Disclosure, type DisclosureProps, } from "./components/Disclosure/Disclosure";
29
+ export { Progress, type ProgressProps } from "./components/progress/Progress";
30
+ export { LoadingIndicator, type LoadingIndicatorProps, } from "./components/progress/LoadingIndicator";
31
+ export { FileField, type FileFieldProps, } from "./components/FileField/FileField";
32
+ export { Popover, type PopoverProps } from "./components/Popover/Popover";
33
+ export { DropdownMenu, type DropdownMenuProps, type DropdownMenuItem, } from "./components/DropdownMenu/DropdownMenu";
34
+ export { Tooltip, type TooltipProps } from "./components/Tooltip/Tooltip";
35
+ export { Table, type TableProps } from "./components/Table/Table";
36
+ export { Pagination, type PaginationProps, } from "./components/Pagination/Pagination";