@protonradio/proton-ui 0.11.0-beta.21 → 0.11.0-beta.22

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 (49) hide show
  1. package/README.md +115 -35
  2. package/dist/breakpoint-9y1_8U_b.mjs +10 -0
  3. package/dist/breakpoint-9y1_8U_b.mjs.map +1 -0
  4. package/dist/breakpoint-DtqbboOa.js +2 -0
  5. package/dist/breakpoint-DtqbboOa.js.map +1 -0
  6. package/dist/constants.cjs.js +1 -1
  7. package/dist/constants.cjs.js.map +1 -1
  8. package/dist/constants.d.ts +4 -149
  9. package/dist/constants.es.js +7 -19
  10. package/dist/constants.es.js.map +1 -1
  11. package/dist/darkTheme-DUWn6YJ-.mjs +345 -0
  12. package/dist/darkTheme-DUWn6YJ-.mjs.map +1 -0
  13. package/dist/darkTheme-ann6VTfq.js +2 -0
  14. package/dist/darkTheme-ann6VTfq.js.map +1 -0
  15. package/dist/hooks.cjs.js +1 -1
  16. package/dist/hooks.cjs.js.map +1 -1
  17. package/dist/hooks.d.ts +34 -5
  18. package/dist/hooks.es.js +36 -4
  19. package/dist/hooks.es.js.map +1 -1
  20. package/dist/image-BlhKzTx8.js +2 -0
  21. package/dist/image-BlhKzTx8.js.map +1 -0
  22. package/dist/image-C8M6y5Op.mjs +205 -0
  23. package/dist/image-C8M6y5Op.mjs.map +1 -0
  24. package/dist/index.cjs.js +12 -12
  25. package/dist/index.cjs.js.map +1 -1
  26. package/dist/index.d.ts +501 -408
  27. package/dist/index.es.js +9513 -11164
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/navigation-BB0MBIiR.js +2 -0
  30. package/dist/navigation-BB0MBIiR.js.map +1 -0
  31. package/dist/navigation-Bj7Pex9j.mjs +43 -0
  32. package/dist/navigation-Bj7Pex9j.mjs.map +1 -0
  33. package/dist/style.css +1 -1
  34. package/dist/theme-DQsfWeLo.mjs +12 -0
  35. package/dist/theme-DQsfWeLo.mjs.map +1 -0
  36. package/dist/theme-Dc0Ahjq9.js +2 -0
  37. package/dist/theme-Dc0Ahjq9.js.map +1 -0
  38. package/dist/{useBreakpoint-DA-JqOu3.js → useBreakpoint-CA9tMMV8.js} +2 -2
  39. package/dist/{useBreakpoint-DA-JqOu3.js.map → useBreakpoint-CA9tMMV8.js.map} +1 -1
  40. package/dist/utils.cjs.js +1 -1
  41. package/dist/utils.cjs.js.map +1 -1
  42. package/dist/utils.d.ts +26 -45
  43. package/dist/utils.es.js +17 -457
  44. package/dist/utils.es.js.map +1 -1
  45. package/package.json +10 -4
  46. package/dist/palettes-D006-kxf.mjs +0 -174
  47. package/dist/palettes-D006-kxf.mjs.map +0 -1
  48. package/dist/palettes-DfloGKJz.js +0 -2
  49. package/dist/palettes-DfloGKJz.js.map +0 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Proton UI
1
+ # ProtonUI
2
2
 
3
3
  ![](./.readme.gif)
4
4
 
@@ -6,68 +6,148 @@
6
6
  npm run storybook
7
7
  ```
8
8
 
9
- ### Publishing Updates to NPM
9
+ ## Installation
10
10
 
11
- ```
12
- npm run build
13
- npm version <new_version> // increment version in package.json accordingly using semver
14
- npm publish
11
+ ### Prerequisites
12
+
13
+ 1. Ensure you have access to `@protonradio/proton-ui` [npm package](https://www.npmjs.com/package/@protonradio/proton-ui)
14
+ 2. Login using `npm login`
15
+
16
+ ### Install
17
+
18
+ ```bash
19
+ npm install @protonradio/proton-ui --save
15
20
  ```
16
21
 
17
- ### Themes
22
+ ### Import Styles
18
23
 
19
- This library supports themes for the various applications that use it. Ideally, we would unify our app designs, but until then themes is a way to support different design patterns using the same api.
24
+ Import the styles into your main CSS file:
20
25
 
21
- #### Adding a Theme
26
+ ```css
27
+ @import "@protonradio/proton-ui/styles";
28
+ ```
22
29
 
23
- The current supported themes can be found in the `src/themes/config.ts`. To add a new theme, create a new attribute on the `THEMES` object following the pattern `[themeName]: [themeClassName]`.
30
+ ### Setup ThemeProvider
24
31
 
25
- #### Styling for a theme
32
+ Wrap your application with the `ThemeProvider` to enable theming:
26
33
 
27
- To apply theme specific styles in a component, we set theme specific css variables in the `src/themes/config.ts` file, in `generateThemeCssVariables` function. If you need more control, you can add either use the `useTheme` hook to manipulate the DOM, or you can use css selectors that reference the wrapping theme class.
34
+ ```jsx
35
+ import { ThemeProvider, THEMES } from "@protonradio/proton-ui";
28
36
 
29
- For example, to apply a style to the dark theme, you can use the following css.
30
- ```css
31
- .proton-ui__theme--dark .myComponent {
32
- background-color: red;
37
+ function MyApp({ Component, pageProps }) {
38
+ return (
39
+ <ThemeProvider theme={THEMES.DARK}>
40
+ <Component {...pageProps} />
41
+ </ThemeProvider>
42
+ );
33
43
  }
34
44
  ```
35
45
 
36
- ### Implementing in your application
46
+ ### Custom Color Palettes
47
+
48
+ Each theme has a `ProtonPalette` with colors tailored for UI design. Palettes are made up of `ProtonColorScale`s that have shades from super_light to super_dark:
37
49
 
38
- #### Prerequisites
50
+ - **Primary Scale**
51
+ - **Secondary Scale**
52
+ - **Brand Colors** [Partial ProtonColorScale]
53
+ - **Gray Scale**
54
+ - **Semantic Colors**
55
+ - Success
56
+ - Warning
57
+ - Error
39
58
 
40
- 1. Ensure you have access to Proton's `proton-ui` npm package
41
- 2. Login to npm using `npm login`
59
+ When you pass a custom palette to the ThemeProvider, these five scales are updated with colors based on the background image you gave it. This is useful for designing UIs around individual releases, labels and artists. All generated scales are designed with accessibility in mind, ensuring proper contrast ratios and visual hierarchy.
42
60
 
43
- #### Install
61
+ To generate a new palette, use the `usePalette` hook:
62
+
63
+ ```jsx
64
+ import { ThemeProvider, usePalette, THEMES } from "@protonradio/proton-ui";
65
+
66
+ function AppWithCustomPalette(props) {
67
+ const customPalette = usePalette(
68
+ `https://example.com/${props.imgUrl}.jpg`,
69
+ THEMES.DARK
70
+ );
44
71
 
72
+ return (
73
+ <ThemeProvider theme={THEMES.DARK} palette={customPalette}>
74
+ <YourApp />
75
+ </ThemeProvider>
76
+ );
77
+ }
45
78
  ```
46
- npm install @protonradio/proton-ui --save
79
+
80
+ ## Best Styling Practices
81
+
82
+ Components use standardized _control_ variables defined in the theme config stylesheets for consistent styling across the design system:
83
+
84
+ ```typescript
85
+ export interface ProtonStyleSheet {
86
+ "--proton-control__background-color": string;
87
+ "--proton-control__background-color-light": string;
88
+ "--proton-control__text-color": string;
89
+ "--proton-control__title-color": string;
90
+ "--proton-control__border-color": string;
91
+ "--proton-control__shadow-color": string;
92
+ // ... etc
47
93
  ```
48
94
 
49
- #### Import the styles
50
- Then import the styles into your main.css file.
95
+ These control variables unify the styling system while powering theme-specific CSS customization, and follow the pattern `--proton-control__{style}-{property}`:
51
96
 
52
97
  ```css
53
- @import "@protonradio/proton-ui/styles";
98
+ .myComponent {
99
+ background-color: var(--proton-control__background-color);
100
+ }
101
+ ```
102
+
103
+ For more advanced theme overrides we utilize the theme class names. The `ThemeProvider` applies the appropriate theme class to its container, making it available to all child components. Theme class names follow the pattern `proton-ui__theme--{themeName}`:
104
+
105
+ ```css
106
+ .proton-ui__theme--dark .myComponent[active] {
107
+ background-color: var(--proton-control__interactive-color);
108
+ }
54
109
  ```
55
110
 
56
- #### Setup the theme provider
57
- When applying to a project, you can import available themes using `THEMES` from this library and apply the theme an outer div on the application. See below for an example.
111
+ Palettes can also be accessed in JSX via the `useTheme` hook for more advanced use cases:
112
+
58
113
 
59
114
  ```jsx
60
- import { ThemeProvider, THEMES } from "@protonradio/proton-ui";
115
+ import { useTheme } from "@protonradio/proton-ui";
61
116
 
62
- function MyApp({ Component, pageProps }) {
63
- return (
64
- <ThemeProvider theme={THEMES.DARK}>
65
- <Component {...pageProps} />
66
- </ThemeProvider>
67
- );
117
+ function MyComponent() {
118
+ const { palette } = useTheme();
119
+
120
+ // Prefer CSS selectors over programmatic styling
121
+ return <Icon color={palette.BRAND.PRIMARY} />;
68
122
  }
69
123
  ```
70
124
 
71
- ### Recommended Reading
125
+ ## Publishing Updates to NPM
126
+
127
+ We follow semantic versioning and use automated CI/CD for releases:
128
+
129
+ **For Beta Releases (Testing):**
130
+
131
+ ```bash
132
+ npm run build
133
+ npm run publish-beta # Automated versioning with beta tag
134
+ ```
135
+
136
+ **For Production Releases:**
137
+
138
+ ```bash
139
+ npm run build
140
+ npm version <patch|minor|major> # Semantic versioning
141
+ npm publish
142
+ ```
143
+
144
+ **Best Practices:**
145
+
146
+ - Always publish beta releases first for testing across platforms
147
+ - Test on all supported environments before production release
148
+ - Use semantic versioning (patch for bug fixes, minor for features, major for breaking changes)
149
+ - Our GitHub Actions [NPM Version](https://github.com/protonradio/proton-ui/actions/workflows/npm_release.yml) tool automatically handles versioning and deployment workflows
150
+
151
+ ## Recommended Reading
72
152
 
73
153
  - https://www.gabe.pizza/notes-on-component-libraries/
@@ -0,0 +1,10 @@
1
+ const A = {
2
+ SMALL: 576,
3
+ MEDIUM: 768,
4
+ LARGE: 992,
5
+ X_LARGE: 1200
6
+ };
7
+ export {
8
+ A as B
9
+ };
10
+ //# sourceMappingURL=breakpoint-9y1_8U_b.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoint-9y1_8U_b.mjs","sources":["../src/constants/breakpoint.ts"],"sourcesContent":["export const BREAKPOINTS = {\r\n SMALL: 576,\r\n MEDIUM: 768,\r\n LARGE: 992,\r\n X_LARGE: 1200,\r\n};\r\n\r\nexport type Breakpoint = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS];\r\n"],"names":["BREAKPOINTS"],"mappings":"AAAO,MAAMA,IAAc;AAAA,EACzB,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AACX;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const A={SMALL:576,MEDIUM:768,LARGE:992,X_LARGE:1200};exports.BREAKPOINTS=A;
2
+ //# sourceMappingURL=breakpoint-DtqbboOa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoint-DtqbboOa.js","sources":["../src/constants/breakpoint.ts"],"sourcesContent":["export const BREAKPOINTS = {\r\n SMALL: 576,\r\n MEDIUM: 768,\r\n LARGE: 992,\r\n X_LARGE: 1200,\r\n};\r\n\r\nexport type Breakpoint = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS];\r\n"],"names":["BREAKPOINTS"],"mappings":"aAAO,MAAMA,EAAc,CACzB,MAAO,IACP,OAAQ,IACR,MAAO,IACP,QAAS,IACX"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./palettes-DfloGKJz.js"),o={DARK:"dark",CUSTOM_DARK:"custom-dark",LIGHT:"light"},e=["bottom","bottom left","bottom right","bottom start","bottom end","top","top left","top right","top start","top end","left","left top","left bottom","start","start top","start bottom","right","right top","right bottom","end","end top","end bottom"],r={SMALL:576,MEDIUM:768,LARGE:992,X_LARGE:1200};exports.COLORS=t.colors;exports.DARK_MODE=t.DARK_MODE;exports.DEFAULT_BLACK_BACKGROUND=t.DEFAULT_BLACK_BACKGROUND;exports.DEFAULT_WHITE_BACKGROUND=t.DEFAULT_WHITE_BACKGROUND;exports.LIGHT_MODE=t.LIGHT_MODE;exports.BREAKPOINTS=r;exports.THEMES=o;exports.placements=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./breakpoint-DtqbboOa.js"),t=require("./theme-Dc0Ahjq9.js"),e=["bottom","bottom left","bottom right","bottom start","bottom end","top","top left","top right","top start","top end","left","left top","left bottom","start","start top","start bottom","right","right top","right bottom","end","end top","end bottom"];exports.BREAKPOINTS=o.BREAKPOINTS;exports.THEMES=t.THEMES;exports.THEME_CLASSES=t.THEME_CLASSES;exports.placements=e;
2
2
  //# sourceMappingURL=constants.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs.js","sources":["../src/constants/index.ts"],"sourcesContent":["import { Placement } from \"react-aria\";\r\n\r\nexport * as COLORS from \"./colors\";\r\n\r\nexport * from \"./palettes\";\r\n\r\nexport const THEMES = {\r\n DARK: \"dark\",\r\n CUSTOM_DARK: \"custom-dark\",\r\n LIGHT: \"light\",\r\n} as const;\r\n\r\nexport type Theme = (typeof THEMES)[keyof typeof THEMES];\r\n\r\nexport const placements: Placement[] = [\r\n \"bottom\",\r\n \"bottom left\",\r\n \"bottom right\",\r\n \"bottom start\",\r\n \"bottom end\",\r\n \"top\",\r\n \"top left\",\r\n \"top right\",\r\n \"top start\",\r\n \"top end\",\r\n \"left\",\r\n \"left top\",\r\n \"left bottom\",\r\n \"start\",\r\n \"start top\",\r\n \"start bottom\",\r\n \"right\",\r\n \"right top\",\r\n \"right bottom\",\r\n \"end\",\r\n \"end top\",\r\n \"end bottom\",\r\n];\r\n\r\nexport const BREAKPOINTS = {\r\n SMALL: 576,\r\n MEDIUM: 768,\r\n LARGE: 992,\r\n X_LARGE: 1200,\r\n};\r\n\r\nexport type Breakpoint = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS];\r\n"],"names":["THEMES","placements","BREAKPOINTS"],"mappings":"0HAMaA,EAAS,CACpB,KAAM,OACN,YAAa,cACb,MAAO,OACT,EAIaC,EAA0B,CACrC,SACA,cACA,eACA,eACA,aACA,MACA,WACA,YACA,YACA,UACA,OACA,WACA,cACA,QACA,YACA,eACA,QACA,YACA,eACA,MACA,UACA,YACF,EAEaC,EAAc,CACzB,MAAO,IACP,OAAQ,IACR,MAAO,IACP,QAAS,IACX"}
1
+ {"version":3,"file":"constants.cjs.js","sources":["../src/constants/placement.ts"],"sourcesContent":["import { Placement } from \"react-aria\";\r\n\r\nexport const placements: Placement[] = [\r\n \"bottom\",\r\n \"bottom left\",\r\n \"bottom right\",\r\n \"bottom start\",\r\n \"bottom end\",\r\n \"top\",\r\n \"top left\",\r\n \"top right\",\r\n \"top start\",\r\n \"top end\",\r\n \"left\",\r\n \"left top\",\r\n \"left bottom\",\r\n \"start\",\r\n \"start top\",\r\n \"start bottom\",\r\n \"right\",\r\n \"right top\",\r\n \"right bottom\",\r\n \"end\",\r\n \"end top\",\r\n \"end bottom\",\r\n];\r\n"],"names":["placements"],"mappings":"6JAEaA,EAA0B,CACrC,SACA,cACA,eACA,eACA,aACA,MACA,WACA,YACA,YACA,UACA,OACA,WACA,cACA,QACA,YACA,eACA,QACA,YACA,eACA,MACA,UACA,YACF"}
@@ -1,12 +1,5 @@
1
1
  import { Placement } from 'react-aria';
2
2
 
3
- declare const BRAND: {
4
- PRIMARY: string;
5
- PRIMARY_LIGHT: string;
6
- PRIMARY_SUPER_LIGHT: string;
7
- SECONDARY: string;
8
- };
9
-
10
3
  export declare type Breakpoint = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS];
11
4
 
12
5
  export declare const BREAKPOINTS: {
@@ -16,156 +9,18 @@ export declare const BREAKPOINTS: {
16
9
  X_LARGE: number;
17
10
  };
18
11
 
19
- export declare namespace COLORS {
20
- export {
21
- BRAND,
22
- DANGER,
23
- WARNING,
24
- SUCCESS,
25
- GRAYSCALE,
26
- SECONDARY,
27
- DARK_GRAYSCALE,
28
- DARK_SECONDARY
29
- }
30
- }
31
-
32
- declare const DANGER: {
33
- SUPER_DARK: string;
34
- DARK: string;
35
- MEDIUM: string;
36
- LIGHT: string;
37
- SUPER_LIGHT: string;
38
- };
39
-
40
- declare const DARK_GRAYSCALE: {
41
- GRAY_SUPER_DARK: string;
42
- GRAY_DARK: string;
43
- GRAY_MEDIUM: string;
44
- GRAY_MEDIUM_LIGHT: string;
45
- GRAY_LIGHT: string;
46
- GRAY_LIGHTEST: string;
47
- GRAY_SUPER_LIGHT: string;
48
- WHITE: string;
49
- BORDER: string;
50
- ELEVATION: string;
51
- };
52
-
53
- export declare const DARK_MODE: Palette;
54
-
55
- declare const DARK_SECONDARY: {
56
- SECONDARY_SUPER_DARK: string;
57
- SECONDARY_DARK: string;
58
- SECONDARY_MEDIUM: string;
59
- SECONDARY_MEDIUM_LIGHT: string;
60
- SECONDARY_LIGHT: string;
61
- SECONDARY_LIGHTEST: string;
62
- SECONDARY_SUPER_LIGHT: string;
63
- };
64
-
65
- export declare const DEFAULT_BLACK_BACKGROUND = "#121212";
66
-
67
- export declare const DEFAULT_WHITE_BACKGROUND = "#ffffff";
68
-
69
- declare const GRAYSCALE: {
70
- GRAY_SUPER_DARK: string;
71
- GRAY_DARK: string;
72
- GRAY_MEDIUM: string;
73
- GRAY_MEDIUM_LIGHT: string;
74
- GRAY_LIGHT: string;
75
- GRAY_LIGHTEST: string;
76
- GRAY_SUPER_LIGHT: string;
77
- WHITE: string;
78
- BORDER: string;
79
- ELEVATION: string;
80
- };
81
-
82
- export declare const LIGHT_MODE: Palette;
83
-
84
- export declare type Palette = {
85
- BASE_COLOR: string;
86
- BRAND: {
87
- PRIMARY: string;
88
- PRIMARY_LIGHT: string;
89
- PRIMARY_SUPER_LIGHT: string;
90
- SECONDARY: string;
91
- };
92
- PRIMARY: {
93
- PRIMARY_SUPER_DARK: string;
94
- PRIMARY_DARK: string;
95
- PRIMARY_MEDIUM: string;
96
- PRIMARY_MEDIUM_LIGHT: string;
97
- PRIMARY_LIGHT: string;
98
- PRIMARY_LIGHTEST: string;
99
- PRIMARY_SUPER_LIGHT: string;
100
- };
101
- SECONDARY: {
102
- SECONDARY_SUPER_DARK: string;
103
- SECONDARY_DARK: string;
104
- SECONDARY_MEDIUM: string;
105
- SECONDARY_MEDIUM_LIGHT: string;
106
- SECONDARY_LIGHT: string;
107
- SECONDARY_LIGHTEST: string;
108
- SECONDARY_SUPER_LIGHT: string;
109
- };
110
- SUCCESS: {
111
- SUCCESS_DARK: string;
112
- SUCCESS_MEDIUM: string;
113
- SUCCESS_LIGHT: string;
114
- SUCCESS_SUPER_LIGHT: string;
115
- };
116
- WARNING: {
117
- WARNING_DARK: string;
118
- WARNING_MEDIUM: string;
119
- WARNING_LIGHT: string;
120
- WARNING_SUPER_LIGHT: string;
121
- };
122
- DANGER: {
123
- DANGER_SUPER_DARK: string;
124
- DANGER_DARK: string;
125
- DANGER_MEDIUM: string;
126
- DANGER_LIGHT: string;
127
- DANGER_SUPER_LIGHT: string;
128
- };
129
- };
130
-
131
12
  export declare const placements: Placement[];
132
13
 
133
- declare const SECONDARY: {
134
- SUPER_DARK: string;
135
- DARK: string;
136
- MEDIUM: string;
137
- MEDIUM_LIGHT: string;
138
- LIGHT: string;
139
- LIGHTEST: string;
140
- SUPER_LIGHT: string;
141
- WHITE: string;
142
- };
14
+ export declare type Theme = (typeof THEMES)[keyof typeof THEMES];
143
15
 
144
- declare const SUCCESS: {
145
- DARK: string;
146
- MEDIUM: string;
147
- LIGHT: string;
148
- SUPER_LIGHT: string;
16
+ export declare const THEME_CLASSES: {
17
+ dark: string;
18
+ light: string;
149
19
  };
150
20
 
151
- export declare type Theme = (typeof THEMES)[keyof typeof THEMES];
152
-
153
21
  export declare const THEMES: {
154
22
  readonly DARK: "dark";
155
- readonly CUSTOM_DARK: "custom-dark";
156
23
  readonly LIGHT: "light";
157
24
  };
158
25
 
159
- declare const WARNING: {
160
- DARK: string;
161
- MEDIUM: string;
162
- LIGHT: string;
163
- SUPER_LIGHT: string;
164
- };
165
-
166
26
  export { }
167
-
168
-
169
- declare namespace ButtonGroup {
170
- var Option: (props: ButtonGroupOptionProps) => import("react/jsx-runtime").JSX.Element;
171
- }
@@ -1,9 +1,6 @@
1
- import { c as e, b as m, a as p, D as A, L as D } from "./palettes-D006-kxf.mjs";
2
- const t = {
3
- DARK: "dark",
4
- CUSTOM_DARK: "custom-dark",
5
- LIGHT: "light"
6
- }, o = [
1
+ import { B as r } from "./breakpoint-9y1_8U_b.mjs";
2
+ import { T as m, a } from "./theme-DQsfWeLo.mjs";
3
+ const t = [
7
4
  "bottom",
8
5
  "bottom left",
9
6
  "bottom right",
@@ -26,20 +23,11 @@ const t = {
26
23
  "end",
27
24
  "end top",
28
25
  "end bottom"
29
- ], r = {
30
- SMALL: 576,
31
- MEDIUM: 768,
32
- LARGE: 992,
33
- X_LARGE: 1200
34
- };
26
+ ];
35
27
  export {
36
28
  r as BREAKPOINTS,
37
- e as COLORS,
38
- m as DARK_MODE,
39
- p as DEFAULT_BLACK_BACKGROUND,
40
- A as DEFAULT_WHITE_BACKGROUND,
41
- D as LIGHT_MODE,
42
- t as THEMES,
43
- o as placements
29
+ m as THEMES,
30
+ a as THEME_CLASSES,
31
+ t as placements
44
32
  };
45
33
  //# sourceMappingURL=constants.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.es.js","sources":["../src/constants/index.ts"],"sourcesContent":["import { Placement } from \"react-aria\";\r\n\r\nexport * as COLORS from \"./colors\";\r\n\r\nexport * from \"./palettes\";\r\n\r\nexport const THEMES = {\r\n DARK: \"dark\",\r\n CUSTOM_DARK: \"custom-dark\",\r\n LIGHT: \"light\",\r\n} as const;\r\n\r\nexport type Theme = (typeof THEMES)[keyof typeof THEMES];\r\n\r\nexport const placements: Placement[] = [\r\n \"bottom\",\r\n \"bottom left\",\r\n \"bottom right\",\r\n \"bottom start\",\r\n \"bottom end\",\r\n \"top\",\r\n \"top left\",\r\n \"top right\",\r\n \"top start\",\r\n \"top end\",\r\n \"left\",\r\n \"left top\",\r\n \"left bottom\",\r\n \"start\",\r\n \"start top\",\r\n \"start bottom\",\r\n \"right\",\r\n \"right top\",\r\n \"right bottom\",\r\n \"end\",\r\n \"end top\",\r\n \"end bottom\",\r\n];\r\n\r\nexport const BREAKPOINTS = {\r\n SMALL: 576,\r\n MEDIUM: 768,\r\n LARGE: 992,\r\n X_LARGE: 1200,\r\n};\r\n\r\nexport type Breakpoint = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS];\r\n"],"names":["THEMES","placements","BREAKPOINTS"],"mappings":";AAMO,MAAMA,IAAS;AAAA,EACpB,MAAM;AAAA,EACN,aAAa;AAAA,EACb,OAAO;AACT,GAIaC,IAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAc;AAAA,EACzB,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,SAAS;AACX;"}
1
+ {"version":3,"file":"constants.es.js","sources":["../src/constants/placement.ts"],"sourcesContent":["import { Placement } from \"react-aria\";\r\n\r\nexport const placements: Placement[] = [\r\n \"bottom\",\r\n \"bottom left\",\r\n \"bottom right\",\r\n \"bottom start\",\r\n \"bottom end\",\r\n \"top\",\r\n \"top left\",\r\n \"top right\",\r\n \"top start\",\r\n \"top end\",\r\n \"left\",\r\n \"left top\",\r\n \"left bottom\",\r\n \"start\",\r\n \"start top\",\r\n \"start bottom\",\r\n \"right\",\r\n \"right top\",\r\n \"right bottom\",\r\n \"end\",\r\n \"end top\",\r\n \"end bottom\",\r\n];\r\n"],"names":["placements"],"mappings":";;AAEO,MAAMA,IAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}