@frontile/theme 0.17.0-beta.15 → 0.17.0-beta.17
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 +33 -1
- package/declarations/plugin/default.d.ts +9 -0
- package/declarations/plugin/resolve.d.ts +2 -4
- package/declarations/plugin/safelist.d.ts +1 -3
- package/declarations/plugin.d.ts +0 -1
- package/dist/plugin/default.js +10 -0
- package/dist/plugin/default.js.map +1 -0
- package/dist/plugin.js +23 -39
- package/dist/plugin.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,13 +16,15 @@ ember install @frontile/theme
|
|
|
16
16
|
|
|
17
17
|
### Styles
|
|
18
18
|
|
|
19
|
+
#### Tailwind CSS v3
|
|
20
|
+
|
|
19
21
|
```js
|
|
20
22
|
// tailwind.config.js
|
|
21
23
|
|
|
22
24
|
const { frontile, safelist } = require('@frontile/theme/plugin');
|
|
23
25
|
|
|
24
26
|
module.exports = {
|
|
25
|
-
content: [
|
|
27
|
+
content: [
|
|
26
28
|
'./app/**/*.{html,js,ts,hbs,gts,gjs}',
|
|
27
29
|
'./node_modules/@frontile/theme/dist/**/*.js',
|
|
28
30
|
],
|
|
@@ -38,6 +40,36 @@ module.exports = {
|
|
|
38
40
|
};
|
|
39
41
|
```
|
|
40
42
|
|
|
43
|
+
#### Tailwind CSS v4
|
|
44
|
+
|
|
45
|
+
##### Using Default Theme
|
|
46
|
+
|
|
47
|
+
For the default theme, add this to your `app/styles/app.css`:
|
|
48
|
+
|
|
49
|
+
```css
|
|
50
|
+
@import "tailwindcss" source("../../");
|
|
51
|
+
@plugin "@frontile/theme/plugin/default";
|
|
52
|
+
@source '../../node_modules/@frontile';
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
##### Customizing Frontile Theme
|
|
56
|
+
|
|
57
|
+
To customize the frontile theme, create a file in the root of your project named `frontile.js` with the following content:
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
const { frontile } = require('@frontile/theme/plugin');
|
|
61
|
+
|
|
62
|
+
module.exports = frontile({ /* your config */ });
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Then update your `app/styles/app.css` to use the custom configuration:
|
|
66
|
+
|
|
67
|
+
```css
|
|
68
|
+
@import "tailwindcss" source("../../");
|
|
69
|
+
@plugin "./../../frontile.js";
|
|
70
|
+
@source '../../node_modules/@frontile';
|
|
71
|
+
```
|
|
72
|
+
|
|
41
73
|
## Documentation
|
|
42
74
|
|
|
43
75
|
Visit [frontile.dev](https://frontile.dev/) to read the docs
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This export provides the Frontile plugin in a format compatible with
|
|
3
|
+
* Tailwind CSS v4's @plugin directive using default Frontile config, no overwrites.
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: {
|
|
6
|
+
handler: import("tailwindcss/types/config").PluginCreator;
|
|
7
|
+
config?: Partial<import("tailwindcss/types/config").Config>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -6,10 +6,8 @@ interface ResolvedConfig {
|
|
|
6
6
|
definition: string[];
|
|
7
7
|
}[];
|
|
8
8
|
utilities: CSSRuleObject | CSSRuleObject[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
opacityVariable: string;
|
|
12
|
-
}) => string>;
|
|
9
|
+
base: CSSRuleObject | CSSRuleObject[];
|
|
10
|
+
colors: Record<string, string>;
|
|
13
11
|
}
|
|
14
12
|
declare function resolveThemes(themes: ConfigThemes | undefined, defaultTheme: DefaultThemeType, prefix: string): ResolvedConfig;
|
|
15
13
|
export declare const isBaseTheme: (theme: string) => boolean;
|
package/declarations/plugin.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { frontile } from '../plugin.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This export provides the Frontile plugin in a format compatible with
|
|
5
|
+
* Tailwind CSS v4's @plugin directive using default Frontile config, no overwrites.
|
|
6
|
+
*/
|
|
7
|
+
var _default = frontile();
|
|
8
|
+
|
|
9
|
+
export { _default as default };
|
|
10
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sources":["../../src/plugin/default.ts"],"sourcesContent":["import { frontile } from '../plugin';\n\n/**\n * This export provides the Frontile plugin in a format compatible with\n * Tailwind CSS v4's @plugin directive using default Frontile config, no overwrites.\n */\nexport default frontile();\n"],"names":["frontile"],"mappings":";;AAEA;AACA;AACA;AACA;AACA,eAAeA,QAAQ,EAAE;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -38,6 +38,7 @@ function resolveThemes(themes = {}, defaultTheme, prefix) {
|
|
|
38
38
|
const resolved = {
|
|
39
39
|
variants: [],
|
|
40
40
|
utilities: {},
|
|
41
|
+
base: {},
|
|
41
42
|
colors: {}
|
|
42
43
|
};
|
|
43
44
|
for (const [themeName, {
|
|
@@ -45,12 +46,13 @@ function resolveThemes(themes = {}, defaultTheme, prefix) {
|
|
|
45
46
|
layout,
|
|
46
47
|
colors
|
|
47
48
|
}] of Object.entries(themes)) {
|
|
48
|
-
|
|
49
|
+
const cssSelector = `.${themeName}`;
|
|
50
|
+
let baseSelector = '';
|
|
49
51
|
const scheme = themeName === 'light' || themeName === 'dark' ? themeName : extend;
|
|
50
52
|
|
|
51
53
|
// if the theme is the default theme, add the selector to the root element
|
|
52
54
|
if (themeName === defaultTheme) {
|
|
53
|
-
|
|
55
|
+
baseSelector = `:root, ${cssSelector}`;
|
|
54
56
|
}
|
|
55
57
|
let themeRules = scheme ? {
|
|
56
58
|
'color-scheme': scheme
|
|
@@ -72,32 +74,13 @@ function resolveThemes(themes = {}, defaultTheme, prefix) {
|
|
|
72
74
|
parsedColorsCache[colorValue] = parsedColor;
|
|
73
75
|
const [h, s, l, defaultAlphaValue] = parsedColor;
|
|
74
76
|
const colorVariable = `--${prefix}-${colorName}`;
|
|
75
|
-
const customOpacityVariable = `--${prefix}-${colorName}-opacity`;
|
|
76
77
|
themeRules = {
|
|
77
78
|
...themeRules,
|
|
78
79
|
[colorVariable]: `${h} ${s}% ${l}%`
|
|
79
80
|
};
|
|
80
|
-
if (typeof defaultAlphaValue === 'number') {
|
|
81
|
-
themeRules = {
|
|
82
|
-
...themeRules,
|
|
83
|
-
[customOpacityVariable]: defaultAlphaValue.toFixed(2)
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
81
|
|
|
87
82
|
// set the dynamic color in tailwind config theme.colors
|
|
88
|
-
resolved.colors[colorName] = ({
|
|
89
|
-
opacityVariable,
|
|
90
|
-
opacityValue
|
|
91
|
-
}) => {
|
|
92
|
-
// if the opacity is set with a slash (e.g. bg-primary/90), use the provided value
|
|
93
|
-
if (!isNaN(+opacityValue)) {
|
|
94
|
-
return `hsl(var(${colorVariable}) / ${opacityValue})`;
|
|
95
|
-
}
|
|
96
|
-
if (opacityVariable) {
|
|
97
|
-
return `hsl(var(${colorVariable}) / var(${customOpacityVariable}, var(${opacityVariable})))`;
|
|
98
|
-
}
|
|
99
|
-
return `hsl(var(${colorVariable}) / var(${customOpacityVariable}, 1))`;
|
|
100
|
-
};
|
|
83
|
+
resolved.colors[colorName] = `hsl(var(${colorVariable}) / ${defaultAlphaValue ?? '<alpha-value>'})`;
|
|
101
84
|
} catch (error) {
|
|
102
85
|
// eslint-disable-next-line no-console
|
|
103
86
|
console.log('error', error);
|
|
@@ -127,10 +110,17 @@ function resolveThemes(themes = {}, defaultTheme, prefix) {
|
|
|
127
110
|
};
|
|
128
111
|
}
|
|
129
112
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
113
|
+
if (baseSelector) {
|
|
114
|
+
resolved.base = {
|
|
115
|
+
...resolved.base,
|
|
116
|
+
[baseSelector]: themeRules
|
|
117
|
+
};
|
|
118
|
+
} else {
|
|
119
|
+
resolved.utilities = {
|
|
120
|
+
...resolved.utilities,
|
|
121
|
+
[cssSelector]: themeRules
|
|
122
|
+
};
|
|
123
|
+
}
|
|
134
124
|
}
|
|
135
125
|
return resolved;
|
|
136
126
|
}
|
|
@@ -316,17 +306,7 @@ function addTransitions(addComponents, baseSelector, transitions) {
|
|
|
316
306
|
});
|
|
317
307
|
}
|
|
318
308
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
const safelist = [{
|
|
322
|
-
pattern: /^notification-transition/
|
|
323
|
-
}, {
|
|
324
|
-
pattern: /^overlay/
|
|
325
|
-
}, {
|
|
326
|
-
pattern: /^modal/
|
|
327
|
-
}, {
|
|
328
|
-
pattern: /^drawer/
|
|
329
|
-
}];
|
|
309
|
+
const safelist = ['js-focus-visible', 'sr-only', 'notification-transition--slide-from-top-left-enter-to', 'notification-transition--slide-from-top-left-leave', 'notification-transition--slide-from-top-left-leave-to', 'notification-transition--slide-from-top-center-enter', 'notification-transition--slide-from-top-center-enter-to', 'notification-transition--slide-from-top-center-leave', 'notification-transition--slide-from-top-center-leave-to', 'notification-transition--slide-from-top-right-enter', 'notification-transition--slide-from-top-right-enter-to', 'notification-transition--slide-from-top-right-leave', 'notification-transition--slide-from-top-right-leave-to', 'notification-transition--slide-from-bottom-left-enter', 'notification-transition--slide-from-bottom-left-enter-to', 'notification-transition--slide-from-bottom-left-leave', 'notification-transition--slide-from-bottom-left-leave-to', 'notification-transition--slide-from-bottom-center-enter', 'notification-transition--slide-from-bottom-center-enter-to', 'notification-transition--slide-from-bottom-center-leave', 'notification-transition--slide-from-bottom-center-leave-to', 'notification-transition--slide-from-bottom-right-enter', 'notification-transition--slide-from-bottom-right-enter-to', 'notification-transition--slide-from-bottom-right-leave', 'notification-transition--slide-from-bottom-right-leave-to', 'overlay-transition--fade-enter', 'overlay-transition--fade-enter-to', 'overlay-transition--fade-leave', 'overlay-transition--fade-leave-to', 'overlay-transition--fade-enter-active', 'overlay-transition--fade-leave-active', 'overlay-transition--zoom-enter', 'overlay-transition--zoom-enter-to', 'overlay-transition--zoom-leave', 'overlay-transition--zoom-leave-to', 'overlay-transition--zoom-enter-active', 'overlay-transition--zoom-leave-active', 'overlay-transition--slide-from-left-enter', 'overlay-transition--slide-from-left-enter-to', 'overlay-transition--slide-from-left-leave', 'overlay-transition--slide-from-left-leave-to', 'overlay-transition--slide-from-left-enter-active', 'overlay-transition--slide-from-left-leave-active', 'overlay-transition--slide-from-right-enter', 'overlay-transition--slide-from-right-enter-to', 'overlay-transition--slide-from-right-leave', 'overlay-transition--slide-from-right-leave-to', 'overlay-transition--slide-from-right-enter-active', 'overlay-transition--slide-from-right-leave-active', 'overlay-transition--slide-from-top-enter', 'overlay-transition--slide-from-top-enter-to', 'overlay-transition--slide-from-top-leave', 'overlay-transition--slide-from-top-leave-to', 'overlay-transition--slide-from-top-enter-active', 'overlay-transition--slide-from-top-leave-active', 'overlay-transition--slide-from-bottom-enter', 'overlay-transition--slide-from-bottom-enter-to', 'overlay-transition--slide-from-bottom-leave', 'overlay-transition--slide-from-bottom-leave-to', 'overlay-transition--slide-from-bottom-enter-active', 'overlay-transition--slide-from-bottom-leave-active', 'overlay-transition--scale-enter', 'overlay-transition--scale-enter-to', 'overlay-transition--scale-leave', 'overlay-transition--scale-leave-to', 'overlay-transition--scale-enter-active', 'overlay-transition--scale-leave-active', 'drawer--vertical-xs', 'drawer--horizontal-xs', 'drawer--vertical-sm', 'drawer--horizontal-sm', 'drawer--vertical-md', 'drawer--horizontal-md', 'drawer--vertical-lg', 'drawer--horizontal-lg', 'drawer--vertical-xl', 'drawer--horizontal-xl', 'drawer--vertical-full', 'drawer--horizontal-full', 'modal--xs', 'modal--sm', 'modal--md', 'modal--lg', 'modal--xl', 'modal--full', 'ember-power-select-trigger', 'ember-power-select-trigger--active', 'ember-power-select-placeholder', 'ember-power-select-status-icon', 'ember-power-select-dropdown', 'ember-power-select-options', 'ember-power-select-option', 'ember-power-select-clear-btn', 'ember-power-select-search', 'ember-power-select-search-input', 'ember-power-select-search-input--active', 'ember-power-select-group', 'ember-power-select-group-name', 'ember-power-select-trigger-multiple-input', 'ember-power-select-trigger-multiple-input--active', 'ember-power-select-multiple-options', 'ember-power-select-multiple-option', 'ember-power-select-multiple-remove-btn', 'ember-power-select-trigger-sm', 'ember-power-select-trigger-lg'];
|
|
330
310
|
|
|
331
311
|
function frontile(config = {}) {
|
|
332
312
|
const c = resolveConfig(config);
|
|
@@ -335,9 +315,13 @@ function frontile(config = {}) {
|
|
|
335
315
|
addComponents,
|
|
336
316
|
theme,
|
|
337
317
|
addVariant,
|
|
338
|
-
addBase
|
|
318
|
+
addBase,
|
|
319
|
+
addUtilities
|
|
339
320
|
}) => {
|
|
340
321
|
addBase({
|
|
322
|
+
...resolved?.base
|
|
323
|
+
});
|
|
324
|
+
addUtilities({
|
|
341
325
|
...resolved?.utilities
|
|
342
326
|
});
|
|
343
327
|
resolved?.variants.forEach(variant => {
|
|
@@ -407,5 +391,5 @@ function frontile(config = {}) {
|
|
|
407
391
|
const checkboxIcon = `<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M5.125 7.666a1.304 1.304 0 00-.882-.328 1.3 1.3 0 00-.876.343c-.232.216-.364.51-.367.816-.003.307.124.602.352.822l2.508 2.339c.235.219.554.342.886.342.333 0 .651-.123.887-.342l5.015-4.677c.228-.22.355-.516.352-.822a1.132 1.132 0 00-.367-.817A1.301 1.301 0 0011.757 5a1.304 1.304 0 00-.882.328l-4.129 3.85-1.621-1.512z"/></svg>`;
|
|
408
392
|
const radioIcon = `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="6" stroke="white" stroke-width="3" fill="none" /></svg>`;
|
|
409
393
|
|
|
410
|
-
export { frontile
|
|
394
|
+
export { frontile, safelist };
|
|
411
395
|
//# sourceMappingURL=plugin.js.map
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../src/plugin/default-config.ts","../src/plugin/resolve.ts","../src/plugin/overlays.ts","../src/plugin/power-select.ts","../src/plugin/transitions.ts","../src/plugin/safelist.ts","../src/plugin.ts"],"sourcesContent":["import { semanticColors } from '../colors/semantic';\nimport type { LayoutTheme } from '../types';\n\nconst baseLayout: LayoutTheme = {\n disabledOpacity: '.5'\n};\n\nconst defaultConfig = {\n defaultTheme: 'light',\n prefix: 'frontile',\n themes: {\n light: {\n colors: semanticColors.light,\n layout: { ...baseLayout, hoverOpacity: '.8' }\n },\n dark: {\n colors: semanticColors.dark,\n layout: { ...baseLayout, hoverOpacity: '.7' }\n }\n }\n};\n\nexport { defaultConfig };\n","import { flatten } from 'flat';\nimport kebabCase from 'lodash.kebabcase';\nimport mapKeys from 'lodash.mapkeys';\nimport Color from 'color';\nimport deepMerge from 'deepmerge';\n\nimport type {\n ConfigThemes,\n DefaultThemeType,\n PluginConfig,\n ConfigTheme\n} from '../types';\nimport type { CSSRuleObject } from 'tailwindcss/types/config';\nimport { defaultConfig } from './default-config';\n\nconst parsedColorsCache: Record<string, number[]> = {};\n\ninterface ResolvedConfig {\n variants: { name: string; definition: string[] }[];\n utilities: CSSRuleObject | CSSRuleObject[];\n colors: Record<\n string,\n ({\n opacityValue,\n opacityVariable\n }: {\n opacityValue: string;\n opacityVariable: string;\n }) => string\n >;\n}\n\nfunction resolveThemes(\n themes: ConfigThemes = {},\n defaultTheme: DefaultThemeType,\n prefix: string\n): ResolvedConfig {\n const resolved: ResolvedConfig = {\n variants: [],\n utilities: {},\n colors: {}\n };\n\n for (const [themeName, { extend, layout, colors }] of Object.entries(\n themes\n )) {\n let cssSelector = `.${themeName}`;\n const scheme =\n themeName === 'light' || themeName === 'dark' ? themeName : extend;\n\n // if the theme is the default theme, add the selector to the root element\n if (themeName === defaultTheme) {\n cssSelector = `:root,${cssSelector}`;\n }\n\n let themeRules: CSSRuleObject = scheme\n ? {\n 'color-scheme': scheme\n }\n : {};\n\n const flatColors = flattenThemeObject(colors) as Record<string, string>;\n\n const flatLayout = layout\n ? mapKeys(layout, (_, key) => kebabCase(key))\n : {};\n\n resolved.variants.push({\n name: themeName,\n definition: [`&.${themeName}`]\n });\n\n /**\n * Colors\n */\n for (const [colorName, colorValue] of Object.entries(flatColors)) {\n if (!colorValue) continue;\n\n try {\n const parsedColor =\n parsedColorsCache[colorValue] ||\n Color(colorValue).hsl().round().array();\n\n parsedColorsCache[colorValue] = parsedColor;\n\n const [h, s, l, defaultAlphaValue] = parsedColor;\n const colorVariable = `--${prefix}-${colorName}`;\n const customOpacityVariable = `--${prefix}-${colorName}-opacity`;\n\n themeRules = { ...themeRules, [colorVariable]: `${h} ${s}% ${l}%` };\n\n if (typeof defaultAlphaValue === 'number') {\n themeRules = {\n ...themeRules,\n [customOpacityVariable]: defaultAlphaValue.toFixed(2)\n };\n }\n\n // set the dynamic color in tailwind config theme.colors\n resolved.colors[colorName] = ({\n opacityVariable,\n opacityValue\n }): string => {\n // if the opacity is set with a slash (e.g. bg-primary/90), use the provided value\n if (!isNaN(+opacityValue)) {\n return `hsl(var(${colorVariable}) / ${opacityValue})`;\n }\n if (opacityVariable) {\n return `hsl(var(${colorVariable}) / var(${customOpacityVariable}, var(${opacityVariable})))`;\n }\n\n return `hsl(var(${colorVariable}) / var(${customOpacityVariable}, 1))`;\n };\n } catch (error) {\n // eslint-disable-next-line no-console\n console.log('error', error);\n }\n }\n\n /**\n * Layout\n */\n for (const [key, value] of Object.entries(flatLayout)) {\n if (!value) continue;\n\n const layoutVariablePrefix = `--${prefix}-${key}`;\n\n if (typeof value === 'object') {\n for (const [nestedKey, nestedValue] of Object.entries(value)) {\n const nestedLayoutVariable: string = `${layoutVariablePrefix}-${nestedKey}`;\n\n themeRules = {\n ...themeRules,\n [nestedLayoutVariable]: nestedValue as string\n };\n }\n } else {\n // Handle opacity values and other singular layout values\n const formattedValue =\n layoutVariablePrefix.includes('opacity') && typeof value === 'number'\n ? (value as number).toString().replace(/^0\\./, '.')\n : value;\n\n themeRules = {\n ...themeRules,\n [layoutVariablePrefix]: formattedValue as string\n };\n }\n }\n\n resolved.utilities = {\n ...resolved.utilities,\n [cssSelector]: themeRules\n };\n }\n\n return resolved;\n}\n\nfunction removeDefaultKeys<T extends Record<string, unknown>>(\n obj: T\n): Record<string, unknown> {\n const newObj: Record<string, unknown> = {};\n\n for (const key in obj) {\n if (key.endsWith('-DEFAULT')) {\n newObj[key.replace('-DEFAULT', '')] = obj[key];\n continue;\n }\n newObj[key] = obj[key];\n }\n\n return newObj;\n}\n\nfunction flattenThemeObject<TTarget>(obj: TTarget): Record<string, unknown> {\n return removeDefaultKeys(\n flatten(obj, {\n safe: true,\n delimiter: '-'\n }) as Record<string, unknown>\n );\n}\n\nexport const isBaseTheme = (theme: string): boolean =>\n theme === 'light' || theme === 'dark';\n\nfunction resolveConfig(userConfig: PluginConfig = {}): {\n themes: ConfigThemes;\n defaultTheme: DefaultThemeType;\n prefix: string;\n} {\n const {\n themes: userThemes = {},\n defaultTheme = 'light',\n layout: userLayout,\n prefix = defaultConfig.prefix\n } = userConfig;\n const themes: ConfigThemes & { dark: ConfigTheme; light: ConfigTheme } =\n defaultConfig.themes;\n\n if (typeof userLayout === 'object') {\n themes.dark.layout = deepMerge(themes.dark.layout || {}, userLayout);\n themes.light.layout = deepMerge(themes.light.layout || {}, userLayout);\n }\n\n if (typeof userThemes['dark'] === 'object') {\n themes.dark = deepMerge(themes.dark, userThemes['dark']);\n }\n\n if (typeof userThemes['light'] === 'object') {\n themes.light = deepMerge(themes.light, userThemes['light']);\n }\n\n Object.keys(userThemes).forEach((name) => {\n if (isBaseTheme(name)) {\n return;\n }\n const { extend } = userThemes[name] || {};\n const extendFrom = extend && isBaseTheme(extend) ? extend : 'light';\n\n themes[name] = deepMerge(themes[extendFrom], userThemes[name] || {});\n });\n\n return { themes, defaultTheme, prefix };\n}\n\nexport { resolveThemes, resolveConfig };\n","import type { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\n\nfunction drawerSizes(\n addComponents: PluginAPI['addComponents'],\n sizes: { [key: string]: string },\n margin: string\n): void {\n Object.keys(sizes).forEach((key) => {\n const size = sizes[key] as string;\n let rules: CSSRuleObject = {\n maxHeight: size\n };\n\n if (key !== 'full') {\n rules = {\n ...rules,\n [`@media(max - height: calc(${size} + ${margin}))`]: {\n maxHeight: `calc(100vh - ${margin})`\n }\n };\n }\n\n addComponents({ [`.drawer--vertical-${key}`]: rules });\n rules = {\n maxWidth: size\n };\n\n if (key !== 'full') {\n rules = {\n ...rules,\n [`@media(max - width: calc(${size} + ${margin}))`]: {\n maxWidth: `calc(100vw - ${margin})`\n }\n };\n }\n\n addComponents({ [`.drawer--horizontal-${key}`]: rules });\n });\n}\n\nfunction modalSizes(\n addComponents: PluginAPI['addComponents'],\n sizes: { [key: string]: string },\n margin: string\n): void {\n Object.keys(sizes).forEach((key) => {\n const size = sizes[key] as string;\n let rules: CSSRuleObject = {};\n\n if (key === 'full') {\n rules = {\n width: size,\n height: size,\n marginTop: 'auto',\n marginBottom: 'auto',\n borderRadius: '0'\n };\n } else {\n rules = {\n maxWidth: size,\n [`@media(max - width: ${size})`]: {\n maxWidth: `calc(100vw - ${margin})`\n }\n };\n }\n\n addComponents({ [`.modal--${key}`]: rules });\n });\n}\n\nexport { modalSizes, drawerSizes };\n","import powerSelectPlugin from 'tailwindcss-ember-power-select';\nimport type { PluginAPI } from 'tailwindcss/types/config';\n\nfunction registerPowerSelectComponents(\n addComponents: PluginAPI['addComponents'],\n prefix: string\n): void {\n addComponents({\n '.ember-power-select-trigger, .ember-power-select-dropdown, .ember-power-select-search-input':\n {\n '--tw-bg-opacity': '1',\n '--tw-border-opacity': '1',\n '--tw-text-opacity': '1',\n '--tw-placeholder-opacity': '1'\n },\n '.dark .ember-power-select-search-input, .dark .ember-power-select-trigger':\n {\n backgroundColor: `hsl(var(--${prefix}-default-100) / var(--${prefix}-default-100-opacity, var(--tw-bg-opacity)))`\n },\n '.dark .ember-power-select-dropdown': {\n backgroundColor: `hsl(var(--${prefix}-default-200) / var(--${prefix}-default-200-opacity, var(--tw-bg-opacity)))`\n }\n });\n powerSelectPlugin.registerComponents(\n {\n addComponents\n },\n {},\n {\n textColor: `hsl(var(--${prefix}-default-900) / var(--${prefix}-default-900-opacity, var(--tw-bg-opacity)))`,\n disabledTextColor: `hsl(var(--${prefix}-default-500) / var(--${prefix}-default-500-opacity, var(--tw-text-opacity)))`,\n disabledBorderColor: `hsl(var(--${prefix}-default-200) / var(--${prefix}-default-200-opacity, var(--tw-border-opacity)))`,\n placeholderTextColor: `hsl(var(--${prefix}-default-400) / var(--${prefix}-default-400-opacity, var(--tw-placeholder-opacity)))`,\n backgroundColor: 'white',\n dropdownBackgroundColor: 'white',\n borderColor: `hsl(var(--${prefix}-default-400) / var(--${prefix}-default-400-opacity, var(--tw-border-opacity)))`,\n focusBorderColor: `hsl(var(--${prefix}-primary-400) / var(--${prefix}-primary-400-opacity, var(--tw-border-opacity)))`,\n invalidBorderColor: `hsl(var(--${prefix}-danger-400) / var(--${prefix}-danger-400-opacity, var(--tw-border-opacity)))`\n // triggerFocusBoxShadow: config.focusBoxShadow,\n // triggerFocusBoxShadowInvalid: config.focusBoxShadowInvalid,\n // searchInputFocusBoxShadow: config.focusBoxShadow\n }\n );\n}\n\nexport { registerPowerSelectComponents };\n","import kebabCase from 'lodash.kebabcase';\nimport type { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\n\ntype Transition = {\n enter: CSSRuleObject;\n leave: CSSRuleObject;\n leaveTo?: CSSRuleObject;\n enterTo?: CSSRuleObject;\n leaveActive?: CSSRuleObject;\n enterActive?: CSSRuleObject;\n};\n\nfunction addTransitions(\n addComponents: PluginAPI['addComponents'],\n baseSelector: string,\n transitions?: { [key: string]: Transition }\n): void {\n if (!transitions) {\n return;\n }\n\n Object.keys(transitions).forEach((key) => {\n const transition = transitions[key];\n\n if (!transition) {\n return;\n }\n const name = `${baseSelector}--${kebabCase(key)}`;\n\n const { enter, enterTo, leave, leaveActive, enterActive, leaveTo } =\n transition;\n\n addComponents({\n [`${name}-enter`]: enter,\n [`${name}-enter-to`]: enterTo || leave,\n [`${name}-leave`]: leave,\n [`${name}-leave-to`]: leaveTo || enter\n });\n\n if (enterActive) {\n addComponents({\n [`${name}-enter-active`]: enterActive\n });\n }\n if (leaveActive) {\n addComponents({\n [`${name}-leave-active`]: leaveActive\n });\n }\n });\n}\n\nexport { addTransitions };\n","// ['js-focus-visible', 'sr-only'];\n\nexport const safelist = [\n { pattern: /^notification-transition/ },\n { pattern: /^overlay/ },\n { pattern: /^modal/ },\n { pattern: /^drawer/ }\n];\n","import plugin from 'tailwindcss/plugin';\nimport { notificationTransitions } from './components';\nimport { overlayTransitions } from './components/overlays';\nimport svgToDataUri from 'mini-svg-data-uri';\n\nimport { resolveThemes, resolveConfig } from './plugin/resolve';\nimport { modalSizes, drawerSizes } from './plugin/overlays';\nimport { registerPowerSelectComponents } from './plugin/power-select';\nimport { addTransitions } from './plugin/transitions';\nimport type { PluginConfig } from './types';\nexport { swapColorValues } from './colors/util';\nexport { safelist } from './plugin/safelist';\n\nfunction frontile(config: PluginConfig = {}): ReturnType<typeof plugin> {\n const c = resolveConfig(config);\n const resolved = resolveThemes(c.themes, c.defaultTheme, c.prefix);\n\n return plugin(\n ({ addComponents, theme, addVariant, addBase }) => {\n addBase({\n ...resolved?.utilities\n });\n\n resolved?.variants.forEach((variant) => {\n addVariant(variant.name, variant.definition);\n });\n\n addVariant('data-is-active', '&[data-active=true]');\n addVariant(\n 'group-data-is-active',\n ':merge(.group)[data-active=\"true\"] &'\n );\n\n addTransitions(\n addComponents,\n '.notification-transition',\n notificationTransitions\n );\n\n addTransitions(addComponents, '.overlay-transition', overlayTransitions);\n\n // drawer sizes\n drawerSizes(\n addComponents,\n {\n xs: '20rem',\n sm: '24rem',\n md: '28rem',\n lg: '32rem',\n xl: '36rem',\n full: '100%'\n },\n theme('spacing.8')\n );\n modalSizes(\n addComponents,\n {\n xs: '20rem',\n sm: '24rem',\n md: '28rem',\n lg: '32rem',\n xl: '36rem',\n full: '100%'\n },\n theme('spacing.8')\n );\n\n addComponents({\n '.checked-bg-checkbox:checked': {\n backgroundImage: `url(\"${svgToDataUri(checkboxIcon)}\")`\n },\n '.checked-bg-radio:checked': {\n backgroundImage: `url(\"${svgToDataUri(radioIcon)}\")`\n }\n });\n\n registerPowerSelectComponents(addComponents, c.prefix);\n },\n {\n theme: {\n extend: {\n colors: {\n ...(resolved?.colors as Record<string, never>)\n },\n opacity: {\n hover: `var(--${c.prefix}-hover-opacity)`,\n disabled: `var(--${c.prefix}-disabled-opacity)`\n },\n aria: {\n invalid: 'invalid=\"true\"'\n },\n animation: {\n loading: 'loading 1.5s linear infinite'\n },\n keyframes: {\n loading: {\n from: {\n transform: 'translateX(-100%) scaleX(0)'\n },\n to: {\n transform: 'translateX(200%) scaleX(3)'\n }\n }\n }\n }\n }\n }\n );\n}\n\nconst checkboxIcon = `<svg viewBox=\"0 0 16 16\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.125 7.666a1.304 1.304 0 00-.882-.328 1.3 1.3 0 00-.876.343c-.232.216-.364.51-.367.816-.003.307.124.602.352.822l2.508 2.339c.235.219.554.342.886.342.333 0 .651-.123.887-.342l5.015-4.677c.228-.22.355-.516.352-.822a1.132 1.132 0 00-.367-.817A1.301 1.301 0 0011.757 5a1.304 1.304 0 00-.882.328l-4.129 3.85-1.621-1.512z\"/></svg>`;\nconst radioIcon = `<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"6\" stroke=\"white\" stroke-width=\"3\" fill=\"none\" /></svg>`;\n\nexport { frontile };\nexport default frontile;\n"],"names":["baseLayout","disabledOpacity","defaultConfig","defaultTheme","prefix","themes","light","colors","semanticColors","layout","hoverOpacity","dark","parsedColorsCache","resolveThemes","resolved","variants","utilities","themeName","extend","Object","entries","cssSelector","scheme","themeRules","flatColors","flattenThemeObject","flatLayout","mapKeys","_","key","kebabCase","push","name","definition","colorName","colorValue","parsedColor","Color","hsl","round","array","h","s","l","defaultAlphaValue","colorVariable","customOpacityVariable","toFixed","opacityVariable","opacityValue","isNaN","error","console","log","value","layoutVariablePrefix","nestedKey","nestedValue","nestedLayoutVariable","formattedValue","includes","toString","replace","removeDefaultKeys","obj","newObj","endsWith","flatten","safe","delimiter","isBaseTheme","theme","resolveConfig","userConfig","userThemes","userLayout","deepMerge","keys","forEach","extendFrom","drawerSizes","addComponents","sizes","margin","size","rules","maxHeight","maxWidth","modalSizes","width","height","marginTop","marginBottom","borderRadius","registerPowerSelectComponents","backgroundColor","powerSelectPlugin","registerComponents","textColor","disabledTextColor","disabledBorderColor","placeholderTextColor","dropdownBackgroundColor","borderColor","focusBorderColor","invalidBorderColor","addTransitions","baseSelector","transitions","transition","enter","enterTo","leave","leaveActive","enterActive","leaveTo","safelist","pattern","frontile","config","c","plugin","addVariant","addBase","variant","notificationTransitions","overlayTransitions","xs","sm","md","lg","xl","full","backgroundImage","svgToDataUri","checkboxIcon","radioIcon","opacity","hover","disabled","aria","invalid","animation","loading","keyframes","from","transform","to"],"mappings":";;;;;;;;;;;;AAGA,MAAMA,UAAuB,GAAG;AAC9BC,EAAAA,eAAe,EAAE;AACnB,CAAC;AAED,MAAMC,aAAa,GAAG;AACpBC,EACAC,MAAM,EAAE,UAAU;AAClBC,EAAAA,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE;MACLC,MAAM,EAAEC,cAAc,CAACF,KAAK;AAC5BG,MAAAA,MAAM,EAAE;AAAE,QAAA,GAAGT,UAAU;AAAEU,QAAAA,YAAY,EAAE;AAAK;KAC7C;AACDC,IAAAA,IAAI,EAAE;MACJJ,MAAM,EAAEC,cAAc,CAACG,IAAI;AAC3BF,MAAAA,MAAM,EAAE;AAAE,QAAA,GAAGT,UAAU;AAAEU,QAAAA,YAAY,EAAE;AAAK;AAC9C;AACF;AACF,CAAC;;ACLD,MAAME,iBAA2C,GAAG,EAAE;AAiBtD,SAASC,aAAaA,CACpBR,MAAoB,GAAG,EAAE,EACzBF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F,QAAAA,eAAe,EAAE,CAAA,KAAA,EAAQC,YAAY,CAACE,SAAS,CAAC,CAAA,EAAA;AAClD;AACF,KAAC,CAAC;AAEF1C,IAAAA,6BAA6B,CAACb,aAAa,EAAEuC,CAAC,CAACpH,MAAM,CAAC;AACxD,EAAA,CAAC,EACD;AACEmE,IAAAA,KAAK,EAAE;AACLrD,MAAAA,MAAM,EAAE;AACNX,QAAAA,MAAM,EAAE;AACN,UAAA,GAAIO,QAAQ,EAAEP;SACf;AACDkI,QAAAA,OAAO,EAAE;AACPC,UAAAA,KAAK,EAAE,CAAA,MAAA,EAASlB,CAAC,CAACpH,MAAM,CAAA,eAAA,CAAiB;AACzCuI,UAAAA,QAAQ,EAAE,CAAA,MAAA,EAASnB,CAAC,CAACpH,MAAM,CAAA,kBAAA;SAC5B;AACDwI,QAAAA,IAAI,EAAE;AACJC,UAAAA,OAAO,EAAE;SACV;AACDC,QAAAA,SAAS,EAAE;AACTC,UAAAA,OAAO,EAAE;SACV;AACDC,QAAAA,SAAS,EAAE;AACTD,UAAAA,OAAO,EAAE;AACPE,YAAAA,IAAI,EAAE;AACJC,cAAAA,SAAS,EAAE;aACZ;AACDC,YAAAA,EAAE,EAAE;AACFD,cAAAA,SAAS,EAAE;AACb;AACF;AACF;AACF;AACF;AACF,GACF,CAAC;AACH;AAEA,MAAMX,YAAY,GAAG,CAAA,wZAAA,CAA0Z;AAC/a,MAAMC,SAAS,GAAG,CAAA,4IAAA,CAA8I;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["../src/plugin/default-config.ts","../src/plugin/resolve.ts","../src/plugin/overlays.ts","../src/plugin/power-select.ts","../src/plugin/transitions.ts","../src/plugin/safelist.ts","../src/plugin.ts"],"sourcesContent":["import { semanticColors } from '../colors/semantic';\nimport type { LayoutTheme } from '../types';\n\nconst baseLayout: LayoutTheme = {\n disabledOpacity: '.5'\n};\n\nconst defaultConfig = {\n defaultTheme: 'light',\n prefix: 'frontile',\n themes: {\n light: {\n colors: semanticColors.light,\n layout: { ...baseLayout, hoverOpacity: '.8' }\n },\n dark: {\n colors: semanticColors.dark,\n layout: { ...baseLayout, hoverOpacity: '.7' }\n }\n }\n};\n\nexport { defaultConfig };\n","import { flatten } from 'flat';\nimport kebabCase from 'lodash.kebabcase';\nimport mapKeys from 'lodash.mapkeys';\nimport Color from 'color';\nimport deepMerge from 'deepmerge';\n\nimport type {\n ConfigThemes,\n DefaultThemeType,\n PluginConfig,\n ConfigTheme\n} from '../types';\nimport type { CSSRuleObject } from 'tailwindcss/types/config';\nimport { defaultConfig } from './default-config';\n\nconst parsedColorsCache: Record<string, number[]> = {};\n\ninterface ResolvedConfig {\n variants: { name: string; definition: string[] }[];\n utilities: CSSRuleObject | CSSRuleObject[];\n base: CSSRuleObject | CSSRuleObject[];\n colors: Record<string, string>;\n}\n\nfunction resolveThemes(\n themes: ConfigThemes = {},\n defaultTheme: DefaultThemeType,\n prefix: string\n): ResolvedConfig {\n const resolved: ResolvedConfig = {\n variants: [],\n utilities: {},\n base: {},\n colors: {}\n };\n\n for (const [themeName, { extend, layout, colors }] of Object.entries(\n themes\n )) {\n const cssSelector = `.${themeName}`;\n let baseSelector = '';\n\n const scheme =\n themeName === 'light' || themeName === 'dark' ? themeName : extend;\n\n // if the theme is the default theme, add the selector to the root element\n if (themeName === defaultTheme) {\n baseSelector = `:root, ${cssSelector}`;\n }\n\n let themeRules: CSSRuleObject = scheme\n ? {\n 'color-scheme': scheme\n }\n : {};\n\n const flatColors = flattenThemeObject(colors) as Record<string, string>;\n\n const flatLayout = layout\n ? mapKeys(layout, (_, key) => kebabCase(key))\n : {};\n\n resolved.variants.push({\n name: themeName,\n definition: [`&.${themeName}`]\n });\n\n /**\n * Colors\n */\n for (const [colorName, colorValue] of Object.entries(flatColors)) {\n if (!colorValue) continue;\n\n try {\n const parsedColor =\n parsedColorsCache[colorValue] ||\n Color(colorValue).hsl().round().array();\n\n parsedColorsCache[colorValue] = parsedColor;\n\n const [h, s, l, defaultAlphaValue] = parsedColor;\n const colorVariable = `--${prefix}-${colorName}`;\n\n themeRules = { ...themeRules, [colorVariable]: `${h} ${s}% ${l}%` };\n\n // set the dynamic color in tailwind config theme.colors\n resolved.colors[colorName] =\n `hsl(var(${colorVariable}) / ${defaultAlphaValue ?? '<alpha-value>'})`;\n } catch (error) {\n // eslint-disable-next-line no-console\n console.log('error', error);\n }\n }\n\n /**\n * Layout\n */\n for (const [key, value] of Object.entries(flatLayout)) {\n if (!value) continue;\n\n const layoutVariablePrefix = `--${prefix}-${key}`;\n\n if (typeof value === 'object') {\n for (const [nestedKey, nestedValue] of Object.entries(value)) {\n const nestedLayoutVariable: string = `${layoutVariablePrefix}-${nestedKey}`;\n\n themeRules = {\n ...themeRules,\n [nestedLayoutVariable]: nestedValue as string\n };\n }\n } else {\n // Handle opacity values and other singular layout values\n const formattedValue =\n layoutVariablePrefix.includes('opacity') && typeof value === 'number'\n ? (value as number).toString().replace(/^0\\./, '.')\n : value;\n\n themeRules = {\n ...themeRules,\n [layoutVariablePrefix]: formattedValue as string\n };\n }\n }\n\n if (baseSelector) {\n resolved.base = {\n ...resolved.base,\n [baseSelector]: themeRules\n };\n } else {\n resolved.utilities = {\n ...resolved.utilities,\n [cssSelector]: themeRules\n };\n }\n }\n\n return resolved;\n}\n\nfunction removeDefaultKeys<T extends Record<string, unknown>>(\n obj: T\n): Record<string, unknown> {\n const newObj: Record<string, unknown> = {};\n\n for (const key in obj) {\n if (key.endsWith('-DEFAULT')) {\n newObj[key.replace('-DEFAULT', '')] = obj[key];\n continue;\n }\n newObj[key] = obj[key];\n }\n\n return newObj;\n}\n\nfunction flattenThemeObject<TTarget>(obj: TTarget): Record<string, unknown> {\n return removeDefaultKeys(\n flatten(obj, {\n safe: true,\n delimiter: '-'\n }) as Record<string, unknown>\n );\n}\n\nexport const isBaseTheme = (theme: string): boolean =>\n theme === 'light' || theme === 'dark';\n\nfunction resolveConfig(userConfig: PluginConfig = {}): {\n themes: ConfigThemes;\n defaultTheme: DefaultThemeType;\n prefix: string;\n} {\n const {\n themes: userThemes = {},\n defaultTheme = 'light',\n layout: userLayout,\n prefix = defaultConfig.prefix\n } = userConfig;\n const themes: ConfigThemes & { dark: ConfigTheme; light: ConfigTheme } =\n defaultConfig.themes;\n\n if (typeof userLayout === 'object') {\n themes.dark.layout = deepMerge(themes.dark.layout || {}, userLayout);\n themes.light.layout = deepMerge(themes.light.layout || {}, userLayout);\n }\n\n if (typeof userThemes['dark'] === 'object') {\n themes.dark = deepMerge(themes.dark, userThemes['dark']);\n }\n\n if (typeof userThemes['light'] === 'object') {\n themes.light = deepMerge(themes.light, userThemes['light']);\n }\n\n Object.keys(userThemes).forEach((name) => {\n if (isBaseTheme(name)) {\n return;\n }\n const { extend } = userThemes[name] || {};\n const extendFrom = extend && isBaseTheme(extend) ? extend : 'light';\n\n themes[name] = deepMerge(themes[extendFrom], userThemes[name] || {});\n });\n\n return { themes, defaultTheme, prefix };\n}\n\nexport { resolveThemes, resolveConfig };\n","import type { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\n\nfunction drawerSizes(\n addComponents: PluginAPI['addComponents'],\n sizes: { [key: string]: string },\n margin: string\n): void {\n Object.keys(sizes).forEach((key) => {\n const size = sizes[key] as string;\n let rules: CSSRuleObject = {\n maxHeight: size\n };\n\n if (key !== 'full') {\n rules = {\n ...rules,\n [`@media(max - height: calc(${size} + ${margin}))`]: {\n maxHeight: `calc(100vh - ${margin})`\n }\n };\n }\n\n addComponents({ [`.drawer--vertical-${key}`]: rules });\n rules = {\n maxWidth: size\n };\n\n if (key !== 'full') {\n rules = {\n ...rules,\n [`@media(max - width: calc(${size} + ${margin}))`]: {\n maxWidth: `calc(100vw - ${margin})`\n }\n };\n }\n\n addComponents({ [`.drawer--horizontal-${key}`]: rules });\n });\n}\n\nfunction modalSizes(\n addComponents: PluginAPI['addComponents'],\n sizes: { [key: string]: string },\n margin: string\n): void {\n Object.keys(sizes).forEach((key) => {\n const size = sizes[key] as string;\n let rules: CSSRuleObject = {};\n\n if (key === 'full') {\n rules = {\n width: size,\n height: size,\n marginTop: 'auto',\n marginBottom: 'auto',\n borderRadius: '0'\n };\n } else {\n rules = {\n maxWidth: size,\n [`@media(max - width: ${size})`]: {\n maxWidth: `calc(100vw - ${margin})`\n }\n };\n }\n\n addComponents({ [`.modal--${key}`]: rules });\n });\n}\n\nexport { modalSizes, drawerSizes };\n","import powerSelectPlugin from 'tailwindcss-ember-power-select';\nimport type { PluginAPI } from 'tailwindcss/types/config';\n\nfunction registerPowerSelectComponents(\n addComponents: PluginAPI['addComponents'],\n prefix: string\n): void {\n addComponents({\n '.ember-power-select-trigger, .ember-power-select-dropdown, .ember-power-select-search-input':\n {\n '--tw-bg-opacity': '1',\n '--tw-border-opacity': '1',\n '--tw-text-opacity': '1',\n '--tw-placeholder-opacity': '1'\n },\n '.dark .ember-power-select-search-input, .dark .ember-power-select-trigger':\n {\n backgroundColor: `hsl(var(--${prefix}-default-100) / var(--${prefix}-default-100-opacity, var(--tw-bg-opacity)))`\n },\n '.dark .ember-power-select-dropdown': {\n backgroundColor: `hsl(var(--${prefix}-default-200) / var(--${prefix}-default-200-opacity, var(--tw-bg-opacity)))`\n }\n });\n powerSelectPlugin.registerComponents(\n {\n addComponents\n },\n {},\n {\n textColor: `hsl(var(--${prefix}-default-900) / var(--${prefix}-default-900-opacity, var(--tw-bg-opacity)))`,\n disabledTextColor: `hsl(var(--${prefix}-default-500) / var(--${prefix}-default-500-opacity, var(--tw-text-opacity)))`,\n disabledBorderColor: `hsl(var(--${prefix}-default-200) / var(--${prefix}-default-200-opacity, var(--tw-border-opacity)))`,\n placeholderTextColor: `hsl(var(--${prefix}-default-400) / var(--${prefix}-default-400-opacity, var(--tw-placeholder-opacity)))`,\n backgroundColor: 'white',\n dropdownBackgroundColor: 'white',\n borderColor: `hsl(var(--${prefix}-default-400) / var(--${prefix}-default-400-opacity, var(--tw-border-opacity)))`,\n focusBorderColor: `hsl(var(--${prefix}-primary-400) / var(--${prefix}-primary-400-opacity, var(--tw-border-opacity)))`,\n invalidBorderColor: `hsl(var(--${prefix}-danger-400) / var(--${prefix}-danger-400-opacity, var(--tw-border-opacity)))`\n // triggerFocusBoxShadow: config.focusBoxShadow,\n // triggerFocusBoxShadowInvalid: config.focusBoxShadowInvalid,\n // searchInputFocusBoxShadow: config.focusBoxShadow\n }\n );\n}\n\nexport { registerPowerSelectComponents };\n","import kebabCase from 'lodash.kebabcase';\nimport type { CSSRuleObject, PluginAPI } from 'tailwindcss/types/config';\n\ntype Transition = {\n enter: CSSRuleObject;\n leave: CSSRuleObject;\n leaveTo?: CSSRuleObject;\n enterTo?: CSSRuleObject;\n leaveActive?: CSSRuleObject;\n enterActive?: CSSRuleObject;\n};\n\nfunction addTransitions(\n addComponents: PluginAPI['addComponents'],\n baseSelector: string,\n transitions?: { [key: string]: Transition }\n): void {\n if (!transitions) {\n return;\n }\n\n Object.keys(transitions).forEach((key) => {\n const transition = transitions[key];\n\n if (!transition) {\n return;\n }\n const name = `${baseSelector}--${kebabCase(key)}`;\n\n const { enter, enterTo, leave, leaveActive, enterActive, leaveTo } =\n transition;\n\n addComponents({\n [`${name}-enter`]: enter,\n [`${name}-enter-to`]: enterTo || leave,\n [`${name}-leave`]: leave,\n [`${name}-leave-to`]: leaveTo || enter\n });\n\n if (enterActive) {\n addComponents({\n [`${name}-enter-active`]: enterActive\n });\n }\n if (leaveActive) {\n addComponents({\n [`${name}-leave-active`]: leaveActive\n });\n }\n });\n}\n\nexport { addTransitions };\n","export const safelist = [\n 'js-focus-visible',\n 'sr-only',\n 'notification-transition--slide-from-top-left-enter-to',\n 'notification-transition--slide-from-top-left-leave',\n 'notification-transition--slide-from-top-left-leave-to',\n 'notification-transition--slide-from-top-center-enter',\n 'notification-transition--slide-from-top-center-enter-to',\n 'notification-transition--slide-from-top-center-leave',\n 'notification-transition--slide-from-top-center-leave-to',\n 'notification-transition--slide-from-top-right-enter',\n 'notification-transition--slide-from-top-right-enter-to',\n 'notification-transition--slide-from-top-right-leave',\n 'notification-transition--slide-from-top-right-leave-to',\n 'notification-transition--slide-from-bottom-left-enter',\n 'notification-transition--slide-from-bottom-left-enter-to',\n 'notification-transition--slide-from-bottom-left-leave',\n 'notification-transition--slide-from-bottom-left-leave-to',\n 'notification-transition--slide-from-bottom-center-enter',\n 'notification-transition--slide-from-bottom-center-enter-to',\n 'notification-transition--slide-from-bottom-center-leave',\n 'notification-transition--slide-from-bottom-center-leave-to',\n 'notification-transition--slide-from-bottom-right-enter',\n 'notification-transition--slide-from-bottom-right-enter-to',\n 'notification-transition--slide-from-bottom-right-leave',\n 'notification-transition--slide-from-bottom-right-leave-to',\n 'overlay-transition--fade-enter',\n 'overlay-transition--fade-enter-to',\n 'overlay-transition--fade-leave',\n 'overlay-transition--fade-leave-to',\n 'overlay-transition--fade-enter-active',\n 'overlay-transition--fade-leave-active',\n 'overlay-transition--zoom-enter',\n 'overlay-transition--zoom-enter-to',\n 'overlay-transition--zoom-leave',\n 'overlay-transition--zoom-leave-to',\n 'overlay-transition--zoom-enter-active',\n 'overlay-transition--zoom-leave-active',\n 'overlay-transition--slide-from-left-enter',\n 'overlay-transition--slide-from-left-enter-to',\n 'overlay-transition--slide-from-left-leave',\n 'overlay-transition--slide-from-left-leave-to',\n 'overlay-transition--slide-from-left-enter-active',\n 'overlay-transition--slide-from-left-leave-active',\n 'overlay-transition--slide-from-right-enter',\n 'overlay-transition--slide-from-right-enter-to',\n 'overlay-transition--slide-from-right-leave',\n 'overlay-transition--slide-from-right-leave-to',\n 'overlay-transition--slide-from-right-enter-active',\n 'overlay-transition--slide-from-right-leave-active',\n 'overlay-transition--slide-from-top-enter',\n 'overlay-transition--slide-from-top-enter-to',\n 'overlay-transition--slide-from-top-leave',\n 'overlay-transition--slide-from-top-leave-to',\n 'overlay-transition--slide-from-top-enter-active',\n 'overlay-transition--slide-from-top-leave-active',\n 'overlay-transition--slide-from-bottom-enter',\n 'overlay-transition--slide-from-bottom-enter-to',\n 'overlay-transition--slide-from-bottom-leave',\n 'overlay-transition--slide-from-bottom-leave-to',\n 'overlay-transition--slide-from-bottom-enter-active',\n 'overlay-transition--slide-from-bottom-leave-active',\n 'overlay-transition--scale-enter',\n 'overlay-transition--scale-enter-to',\n 'overlay-transition--scale-leave',\n 'overlay-transition--scale-leave-to',\n 'overlay-transition--scale-enter-active',\n 'overlay-transition--scale-leave-active',\n 'drawer--vertical-xs',\n 'drawer--horizontal-xs',\n 'drawer--vertical-sm',\n 'drawer--horizontal-sm',\n 'drawer--vertical-md',\n 'drawer--horizontal-md',\n 'drawer--vertical-lg',\n 'drawer--horizontal-lg',\n 'drawer--vertical-xl',\n 'drawer--horizontal-xl',\n 'drawer--vertical-full',\n 'drawer--horizontal-full',\n 'modal--xs',\n 'modal--sm',\n 'modal--md',\n 'modal--lg',\n 'modal--xl',\n 'modal--full',\n 'ember-power-select-trigger',\n 'ember-power-select-trigger--active',\n 'ember-power-select-placeholder',\n 'ember-power-select-status-icon',\n 'ember-power-select-dropdown',\n 'ember-power-select-options',\n 'ember-power-select-option',\n 'ember-power-select-clear-btn',\n 'ember-power-select-search',\n 'ember-power-select-search-input',\n 'ember-power-select-search-input--active',\n 'ember-power-select-group',\n 'ember-power-select-group-name',\n 'ember-power-select-trigger-multiple-input',\n 'ember-power-select-trigger-multiple-input--active',\n 'ember-power-select-multiple-options',\n 'ember-power-select-multiple-option',\n 'ember-power-select-multiple-remove-btn',\n 'ember-power-select-trigger-sm',\n 'ember-power-select-trigger-lg'\n];\n","import plugin from 'tailwindcss/plugin';\nimport { notificationTransitions } from './components';\nimport { overlayTransitions } from './components/overlays';\nimport svgToDataUri from 'mini-svg-data-uri';\n\nimport { resolveThemes, resolveConfig } from './plugin/resolve';\nimport { modalSizes, drawerSizes } from './plugin/overlays';\nimport { registerPowerSelectComponents } from './plugin/power-select';\nimport { addTransitions } from './plugin/transitions';\nimport type { PluginConfig } from './types';\nexport { swapColorValues } from './colors/util';\nexport { safelist } from './plugin/safelist';\n\nfunction frontile(config: PluginConfig = {}): ReturnType<typeof plugin> {\n const c = resolveConfig(config);\n const resolved = resolveThemes(c.themes, c.defaultTheme, c.prefix);\n\n return plugin(\n ({ addComponents, theme, addVariant, addBase, addUtilities }) => {\n addBase({\n ...resolved?.base\n });\n\n addUtilities({\n ...resolved?.utilities\n });\n\n resolved?.variants.forEach((variant) => {\n addVariant(variant.name, variant.definition);\n });\n\n addVariant('data-is-active', '&[data-active=true]');\n addVariant(\n 'group-data-is-active',\n ':merge(.group)[data-active=\"true\"] &'\n );\n\n addTransitions(\n addComponents,\n '.notification-transition',\n notificationTransitions\n );\n\n addTransitions(addComponents, '.overlay-transition', overlayTransitions);\n\n // drawer sizes\n drawerSizes(\n addComponents,\n {\n xs: '20rem',\n sm: '24rem',\n md: '28rem',\n lg: '32rem',\n xl: '36rem',\n full: '100%'\n },\n theme('spacing.8')\n );\n modalSizes(\n addComponents,\n {\n xs: '20rem',\n sm: '24rem',\n md: '28rem',\n lg: '32rem',\n xl: '36rem',\n full: '100%'\n },\n theme('spacing.8')\n );\n\n addComponents({\n '.checked-bg-checkbox:checked': {\n backgroundImage: `url(\"${svgToDataUri(checkboxIcon)}\")`\n },\n '.checked-bg-radio:checked': {\n backgroundImage: `url(\"${svgToDataUri(radioIcon)}\")`\n }\n });\n\n registerPowerSelectComponents(addComponents, c.prefix);\n },\n {\n theme: {\n extend: {\n colors: {\n ...(resolved?.colors as Record<string, never>)\n },\n opacity: {\n hover: `var(--${c.prefix}-hover-opacity)`,\n disabled: `var(--${c.prefix}-disabled-opacity)`\n },\n aria: {\n invalid: 'invalid=\"true\"'\n },\n animation: {\n loading: 'loading 1.5s linear infinite'\n },\n keyframes: {\n loading: {\n from: {\n transform: 'translateX(-100%) scaleX(0)'\n },\n to: {\n transform: 'translateX(200%) scaleX(3)'\n }\n }\n }\n }\n }\n }\n );\n}\n\nconst checkboxIcon = `<svg viewBox=\"0 0 16 16\" fill=\"white\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5.125 7.666a1.304 1.304 0 00-.882-.328 1.3 1.3 0 00-.876.343c-.232.216-.364.51-.367.816-.003.307.124.602.352.822l2.508 2.339c.235.219.554.342.886.342.333 0 .651-.123.887-.342l5.015-4.677c.228-.22.355-.516.352-.822a1.132 1.132 0 00-.367-.817A1.301 1.301 0 0011.757 5a1.304 1.304 0 00-.882.328l-4.129 3.85-1.621-1.512z\"/></svg>`;\nconst radioIcon = `<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"8\" cy=\"8\" r=\"6\" stroke=\"white\" stroke-width=\"3\" fill=\"none\" /></svg>`;\n\nexport { frontile };\n"],"names":["baseLayout","disabledOpacity","defaultConfig","defaultTheme","prefix","themes","light","colors","semanticColors","layout","hoverOpacity","dark","parsedColorsCache","resolveThemes","resolved","variants","utilities","base","themeName","extend","Object","entries","cssSelector","baseSelector","scheme","themeRules","flatColors","flattenThemeObject","flatLayout","mapKeys","_","key","kebabCase","push","name","definition","colorName","colorValue","parsedColor","Color","hsl","round","array","h","s","l","defaultAlphaValue","colorVariable","error","console","log","value","layoutVariablePrefix","nestedKey","nestedValue","nestedLayoutVariable","formattedValue","includes","toString","replace","removeDefaultKeys","obj","newObj","endsWith","flatten","safe","delimiter","isBaseTheme","theme","resolveConfig","userConfig","userThemes","userLayout","deepMerge","keys","forEach","extendFrom","drawerSizes","addComponents","sizes","margin","size","rules","maxHeight","maxWidth","modalSizes","width","height","marginTop","marginBottom","borderRadius","registerPowerSelectComponents","backgroundColor","powerSelectPlugin","registerComponents","textColor","disabledTextColor","disabledBorderColor","placeholderTextColor","dropdownBackgroundColor","borderColor","focusBorderColor","invalidBorderColor","addTransitions","transitions","transition","enter","enterTo","leave","leaveActive","enterActive","leaveTo","safelist","frontile","config","c","plugin","addVariant","addBase","addUtilities","variant","notificationTransitions","overlayTransitions","xs","sm","md","lg","xl","full","backgroundImage","svgToDataUri","checkboxIcon","radioIcon","opacity","hover","disabled","aria","invalid","animation","lo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C/a,MAAMC,SAAS,GAAG,CAAA,4IAAA,CAA8I;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/theme",
|
|
3
|
-
"version": "0.17.0-beta.
|
|
3
|
+
"version": "0.17.0-beta.17",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: Theme",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"main": "addon-main.js",
|
|
113
113
|
"app-js": {}
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "efe24877b840baab70b7270687fde8ac0143d085"
|
|
116
116
|
}
|