@cratis/scene.primereact 3.0.0 → 3.1.0
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/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/primeReactPackage.js +6 -1
- package/dist/cjs/primeReactPackage.js.map +1 -1
- package/dist/cjs/theme/primeReactThemes.js +9 -2
- package/dist/cjs/theme/primeReactThemes.js.map +1 -1
- package/dist/esm/for_primeReactThemes/when_checking_attribution.js +7 -2
- package/dist/esm/for_primeReactThemes/when_checking_attribution.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/primeReactPackage.d.ts.map +1 -1
- package/dist/esm/primeReactPackage.js +6 -1
- package/dist/esm/primeReactPackage.js.map +1 -1
- package/dist/esm/theme/primeReactThemes.d.ts +2 -1
- package/dist/esm/theme/primeReactThemes.d.ts.map +1 -1
- package/dist/esm/theme/primeReactThemes.js +9 -3
- package/dist/esm/theme/primeReactThemes.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/for_primeReactThemes/when_checking_attribution.ts +12 -2
- package/package.json +7 -7
- package/primeReactPackage.ts +5 -0
- package/theme/primeReactThemes.ts +9 -1
package/dist/cjs/index.js
CHANGED
|
@@ -230,6 +230,7 @@ exports.themePresets = themePresets.themePresets;
|
|
|
230
230
|
exports.primeReactTheme = primeReactThemes.primeReactTheme;
|
|
231
231
|
exports.primeReactThemeCompatibility = primeReactThemes.primeReactThemeCompatibility;
|
|
232
232
|
exports.primeReactThemeLicense = primeReactThemes.primeReactThemeLicense;
|
|
233
|
+
exports.primeReactThemeLicenseUrl = primeReactThemes.primeReactThemeLicenseUrl;
|
|
233
234
|
exports.primeReactThemeNames = primeReactThemes.primeReactThemeNames;
|
|
234
235
|
exports.primeReactThemes = primeReactThemes.primeReactThemes;
|
|
235
236
|
exports.primeReactThemePreset = primeReactThemePreset.primeReactThemePreset;
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -139,7 +139,12 @@ require('react');
|
|
|
139
139
|
themes: primeReactThemes.primeReactThemeNames,
|
|
140
140
|
displayName: 'PrimeReact',
|
|
141
141
|
description: 'PrimeReact 11 components and PrimeTek\'s @primeuix/themes presets, mapped onto Scene\'s abstract component names.',
|
|
142
|
-
module: '@cratis/scene.primereact'
|
|
142
|
+
module: '@cratis/scene.primereact',
|
|
143
|
+
// PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community
|
|
144
|
+
// tier is free for eligible projects but still requires a key, so an author selecting this
|
|
145
|
+
// package needs to see the terms before they select it, not after a banner appears.
|
|
146
|
+
license: 'PrimeUI Community / Commercial',
|
|
147
|
+
licenseUrl: 'https://primeui.dev/licenses/community'
|
|
143
148
|
};
|
|
144
149
|
/**
|
|
145
150
|
* The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeReactPackage.js","sources":["../../primeReactPackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { primeReactComponents } from './primeReactComponents';\nimport { primeReactThemeNames, primeReactThemes } from './theme';\n\n/**\n * The `PrimeReact` package's declaration - what a `ui profile` lists by name and what a\n * `PackageDependency` refers to.\n *\n * The component list is written out rather than derived from the registry, on purpose. A manifest is\n * read by Stage's build and Studio's design-time queries *without loading a single component*, so it has\n * to stand on its own as the statement of what this package offers. Keeping it as its own list is also\n * what gives `validatePackageBundle` something real to check: two independently maintained lists that\n * must agree, rather than one list compared against itself.\n */\nexport const primeReactPackageManifest: ScenePackage = {\n name: 'PrimeReact',\n version: '11.1.0',\n kind: PackageKind.ComponentLibrary,\n\n /**\n * PrimeReact's own components need nothing from Tailwind - they are skinned by the `--p-*` custom\n * properties the active `@primeuix/themes` preset emits. The dependency is here because *this\n * package's wrappers* use Tailwind utility classes\n * for the layout around them: the row a checkbox and its label sit on, the column a radio group\n * stacks into, the grid a summary lays its pairs out in. A profile that activates this package\n * without Tailwind renders those wrappers unstyled, so declaring it is what makes the profile picker\n * offer Tailwind alongside PrimeReact instead of leaving the gap to be discovered on screen.\n */\n dependencies: [{ name: 'Tailwind' }],\n\n components: [\n 'inputText', 'inputTextarea', 'inputNumber', 'password', 'floatLabel', 'iconField', 'dropdown', 'multiSelect',\n 'listBox', 'selectButton', 'checkbox', 'radioButton', 'toggleSwitch', 'slider', 'rating', 'knob', 'calendar', 'colorPicker',\n 'chips', 'autoComplete', 'treeSelect', 'button', 'splitButton', 'speedDial', 'buttonGroup', 'dataTable', 'table',\n 'column', 'dataView', 'tree', 'timeline', 'paginator', 'orderList', 'pickList', 'organizationChart',\n 'card', 'panel', 'accordion', 'fieldset', 'divider', 'splitter', 'scrollPanel', 'tabView', 'toolbar', 'stepper', 'dialog',\n 'confirmDialog', 'overlayPanel', 'sidebar', 'tooltip', 'menu', 'menubar', 'breadcrumb', 'tabMenu', 'steps', 'tieredMenu',\n 'panelMenu', 'contextMenu', 'megaMenu', 'dock', 'message', 'inlineMessage', 'toast', 'image', 'galleria', 'carousel', 'avatar',\n 'badge', 'chip', 'tag', 'progressBar', 'progressSpinner', 'skeleton', 'scrollTop', 'blockUI', 'inplace', 'terminal', 'text',\n 'title', 'field', 'section', 'summary', 'action',\n ],\n\n /**\n * Empty, and it stays empty. A layout is an application's base navigational look - one per\n * application - and choosing it is a decision about the product, not about which widgets are\n * available. A component library supplies the vocabulary a layout is built *from*; a\n * {@link PackageKind.Blueprint} package supplies the layout itself.\n */\n layouts: [],\n\n /**\n * Empty for the same reason `layouts` is. A screen template is a reusable page shape at module,\n * feature or slice level - \"list with filters and a detail pane\" - and it is composed *out of* the\n * names declared above. Shipping one here would mean this package had opinions about how a screen is\n * arranged, which is a Blueprint's job and not a component library's.\n */\n screenTemplates: [],\n\n /**\n * Empty, as above: a dialog template is a reusable dialog shape, composed from these components by a\n * Blueprint package rather than provided by the library the components come from.\n */\n dialogTemplates: [],\n\n themes: primeReactThemeNames,\n\n displayName: 'PrimeReact',\n description: 'PrimeReact 11 components and PrimeTek\\'s @primeuix/themes presets, mapped onto Scene\\'s abstract component names.',\n module: '@cratis/scene.primereact',\n};\n\n/**\n * The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes\n * behind the names it declares.\n */\nexport const primeReactPackage: ScenePackageBundle = {\n manifest: primeReactPackageManifest,\n components: primeReactComponents,\n themes: primeReactThemes,\n};\n"],"names":["primeReactPackageManifest","name","version","kind","PackageKind","ComponentLibrary","dependencies","components","layouts","screenTemplates","dialogTemplates","themes","primeReactThemeNames","displayName","description","module","primeReactPackage","manifest","primeReactComponents","primeReactThemes"],"mappings":";;;;;;;;;AAAA;AACA;AAOA;;;;;;;;;UAUaA,yBAAAA,GAA0C;IACnDC,IAAAA,EAAM,YAAA;IACNC,OAAAA,EAAS,QAAA;AACTC,IAAAA,IAAAA,EAAMC,wBAAYC,gBAAgB;AAElC;;;;;;;;AAQC,QACDC,YAAAA,EAAc;AAAC,QAAA;YAAEL,IAAAA,EAAM;AAAW;AAAE,KAAA;IAEpCM,UAAAA,EAAY;AACR,QAAA,WAAA;AAAa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A,MAAA;AAAQ,QAAA,KAAA;AAAO,QAAA,aAAA;AAAe,QAAA,iBAAA;AAAmB,QAAA,UAAA;AAAY,QAAA,WAAA;AAAa,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA,UAAA;AAAY,QAAA,MAAA;AACrH,QAAA,OAAA;AAAS,QAAA,OAAA;AAAS,QAAA,SAAA;AAAW,QAAA,SAAA;AAAW,QAAA;AAC3C,KAAA;AAED;;;;;AAKC,QACDC,SAAS,EAAE;AAEX;;;;;AAKC,QACDC,iBAAiB,EAAE;AAEnB;;;AAGC,QACDC,iBAAiB,EAAE;IAEnBC,MAAAA,EAAQC,qCAAAA;IAERC,WAAAA,EAAa,YAAA;IACbC,WAAAA,EAAa,mHAAA;IACbC,MAAAA,EAAQ;
|
|
1
|
+
{"version":3,"file":"primeReactPackage.js","sources":["../../primeReactPackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { primeReactComponents } from './primeReactComponents';\nimport { primeReactThemeNames, primeReactThemes } from './theme';\n\n/**\n * The `PrimeReact` package's declaration - what a `ui profile` lists by name and what a\n * `PackageDependency` refers to.\n *\n * The component list is written out rather than derived from the registry, on purpose. A manifest is\n * read by Stage's build and Studio's design-time queries *without loading a single component*, so it has\n * to stand on its own as the statement of what this package offers. Keeping it as its own list is also\n * what gives `validatePackageBundle` something real to check: two independently maintained lists that\n * must agree, rather than one list compared against itself.\n */\nexport const primeReactPackageManifest: ScenePackage = {\n name: 'PrimeReact',\n version: '11.1.0',\n kind: PackageKind.ComponentLibrary,\n\n /**\n * PrimeReact's own components need nothing from Tailwind - they are skinned by the `--p-*` custom\n * properties the active `@primeuix/themes` preset emits. The dependency is here because *this\n * package's wrappers* use Tailwind utility classes\n * for the layout around them: the row a checkbox and its label sit on, the column a radio group\n * stacks into, the grid a summary lays its pairs out in. A profile that activates this package\n * without Tailwind renders those wrappers unstyled, so declaring it is what makes the profile picker\n * offer Tailwind alongside PrimeReact instead of leaving the gap to be discovered on screen.\n */\n dependencies: [{ name: 'Tailwind' }],\n\n components: [\n 'inputText', 'inputTextarea', 'inputNumber', 'password', 'floatLabel', 'iconField', 'dropdown', 'multiSelect',\n 'listBox', 'selectButton', 'checkbox', 'radioButton', 'toggleSwitch', 'slider', 'rating', 'knob', 'calendar', 'colorPicker',\n 'chips', 'autoComplete', 'treeSelect', 'button', 'splitButton', 'speedDial', 'buttonGroup', 'dataTable', 'table',\n 'column', 'dataView', 'tree', 'timeline', 'paginator', 'orderList', 'pickList', 'organizationChart',\n 'card', 'panel', 'accordion', 'fieldset', 'divider', 'splitter', 'scrollPanel', 'tabView', 'toolbar', 'stepper', 'dialog',\n 'confirmDialog', 'overlayPanel', 'sidebar', 'tooltip', 'menu', 'menubar', 'breadcrumb', 'tabMenu', 'steps', 'tieredMenu',\n 'panelMenu', 'contextMenu', 'megaMenu', 'dock', 'message', 'inlineMessage', 'toast', 'image', 'galleria', 'carousel', 'avatar',\n 'badge', 'chip', 'tag', 'progressBar', 'progressSpinner', 'skeleton', 'scrollTop', 'blockUI', 'inplace', 'terminal', 'text',\n 'title', 'field', 'section', 'summary', 'action',\n ],\n\n /**\n * Empty, and it stays empty. A layout is an application's base navigational look - one per\n * application - and choosing it is a decision about the product, not about which widgets are\n * available. A component library supplies the vocabulary a layout is built *from*; a\n * {@link PackageKind.Blueprint} package supplies the layout itself.\n */\n layouts: [],\n\n /**\n * Empty for the same reason `layouts` is. A screen template is a reusable page shape at module,\n * feature or slice level - \"list with filters and a detail pane\" - and it is composed *out of* the\n * names declared above. Shipping one here would mean this package had opinions about how a screen is\n * arranged, which is a Blueprint's job and not a component library's.\n */\n screenTemplates: [],\n\n /**\n * Empty, as above: a dialog template is a reusable dialog shape, composed from these components by a\n * Blueprint package rather than provided by the library the components come from.\n */\n dialogTemplates: [],\n\n themes: primeReactThemeNames,\n\n displayName: 'PrimeReact',\n description: 'PrimeReact 11 components and PrimeTek\\'s @primeuix/themes presets, mapped onto Scene\\'s abstract component names.',\n module: '@cratis/scene.primereact',\n // PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community\n // tier is free for eligible projects but still requires a key, so an author selecting this\n // package needs to see the terms before they select it, not after a banner appears.\n license: 'PrimeUI Community / Commercial',\n licenseUrl: 'https://primeui.dev/licenses/community',\n};\n\n/**\n * The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes\n * behind the names it declares.\n */\nexport const primeReactPackage: ScenePackageBundle = {\n manifest: primeReactPackageManifest,\n components: primeReactComponents,\n themes: primeReactThemes,\n};\n"],"names":["primeReactPackageManifest","name","version","kind","PackageKind","ComponentLibrary","dependencies","components","layouts","screenTemplates","dialogTemplates","themes","primeReactThemeNames","displayName","description","module","license","licenseUrl","primeReactPackage","manifest","primeReactComponents","primeReactThemes"],"mappings":";;;;;;;;;AAAA;AACA;AAOA;;;;;;;;;UAUaA,yBAAAA,GAA0C;IACnDC,IAAAA,EAAM,YAAA;IACNC,OAAAA,EAAS,QAAA;AACTC,IAAAA,IAAAA,EAAMC,wBAAYC,gBAAgB;AAElC;;;;;;;;AAQC,QACDC,YAAAA,EAAc;AAAC,QAAA;YAAEL,IAAAA,EAAM;AAAW;AAAE,KAAA;IAEpCM,UAAAA,EAAY;AACR,QAAA,WAAA;AAAa,QAAA,eAAA;AAAiB,QAAA,aAAA;AAAe,QAAA,UAAA;AAAY,QAAA,YAAA;AAAc,QAAA,WAAA;AAAa,QAAA,UAAA;AAAY,QAAA,aAAA;AAChG,QAAA,SAAA;AAAW,QAAA,cAAA;AAAgB,QAAA,UAAA;AAAY,QAAA,aAAA;AAAe,QAAA,cAAA;AAAgB,QAAA,QAAA;AAAU,QAAA,QAAA;AAAU,QAAA,MAAA;AAAQ,QAAA,UAAA;AAAY,QAAA,aAAA;AAC9G,QAAA,OAAA;AAAS,QAAA,cAAA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AAEnB;;;AAGC,QACDC,iBAAiB,EAAE;IAEnBC,MAAAA,EAAQC,qCAAAA;IAERC,WAAAA,EAAa,YAAA;IACbC,WAAAA,EAAa,mHAAA;IACbC,MAAAA,EAAQ,0BAAA;;;;IAIRC,OAAAA,EAAS,gCAAA;IACTC,UAAAA,EAAY;AAChB;AAEA;;;UAIaC,iBAAAA,GAAwC;IACjDC,QAAAA,EAAUnB,yBAAAA;IACVO,UAAAA,EAAYa,yCAAAA;IACZT,MAAAA,EAAQU;AACZ;;;;;"}
|
|
@@ -42,7 +42,12 @@ var themePresets = require('./themePresets.js');
|
|
|
42
42
|
*
|
|
43
43
|
* @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.
|
|
44
44
|
* @see https://primeui.dev/licenses/commercial for the paid tier.
|
|
45
|
-
*/ const primeReactThemeLicense = 'PrimeUI Commercial';
|
|
45
|
+
*/ const primeReactThemeLicense = 'PrimeUI Community / Commercial';
|
|
46
|
+
/**
|
|
47
|
+
* Where those terms live. A license name alone tells a reader nothing about whether they qualify for the
|
|
48
|
+
* free Community tier or owe a commercial fee, so the catalog carries the link rather than making them
|
|
49
|
+
* search for it.
|
|
50
|
+
*/ const primeReactThemeLicenseUrl = 'https://primeui.dev/licenses/community';
|
|
46
51
|
/**
|
|
47
52
|
* Every theme this package ships, as Scene {@link Theme}s.
|
|
48
53
|
*
|
|
@@ -59,7 +64,8 @@ var themePresets = require('./themePresets.js');
|
|
|
59
64
|
compatibleWith: primeReactThemeCompatibility,
|
|
60
65
|
author: 'PrimeTek',
|
|
61
66
|
authorUrl: 'https://primereact.org',
|
|
62
|
-
license: primeReactThemeLicense
|
|
67
|
+
license: primeReactThemeLicense,
|
|
68
|
+
licenseUrl: primeReactThemeLicenseUrl
|
|
63
69
|
}));
|
|
64
70
|
/**
|
|
65
71
|
* The names of every theme this package ships, in catalog order - what the manifest declares and what a
|
|
@@ -77,6 +83,7 @@ var themePresets = require('./themePresets.js');
|
|
|
77
83
|
exports.primeReactTheme = primeReactTheme;
|
|
78
84
|
exports.primeReactThemeCompatibility = primeReactThemeCompatibility;
|
|
79
85
|
exports.primeReactThemeLicense = primeReactThemeLicense;
|
|
86
|
+
exports.primeReactThemeLicenseUrl = primeReactThemeLicenseUrl;
|
|
80
87
|
exports.primeReactThemeNames = primeReactThemeNames;
|
|
81
88
|
exports.primeReactThemes = primeReactThemes;
|
|
82
89
|
//# sourceMappingURL=primeReactThemes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeReactThemes.js","sources":["../../../theme/primeReactThemes.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Theme } from '@cratis/scene.model';\nimport { themePresets } from './themePresets';\n\n/**\n * The packages a PrimeReact theme declares itself compatible with.\n *\n * `PrimeReact` and `Tailwind` are obvious - the preset skins PrimeReact's components, and this package's\n * own wrappers lay themselves out with Tailwind utilities.\n *\n * `core` is the interesting one, and it is listed deliberately rather than by reflex. A theme reaches a\n * screen in two layers: the `--p-*` custom properties `@primeuix/styled` emits for the active preset,\n * which only PrimeReact's own components read, and a set of semantic Scene tokens that\n * `SceneThemeProvider` writes onto the wrapping element. The second layer applies to *everything*\n * underneath it, `core`'s unstyled primitives included - they inherit the theme's type color and can read\n * any token they choose to. So the claim being made is precise: these themes genuinely reach `core`'s\n * components, through tokens rather than through the component skin.\n *\n * This has to be said explicitly because `ThemeCompatibility` has no implicit exemption for `core`. A\n * theme that leaves it out is reported incompatible for every profile that lists `core`, which for a\n * theme that really does apply would be a false alarm on nearly every profile there is.\n */\nexport const primeReactThemeCompatibility: string[] = ['PrimeReact', 'Tailwind', 'core'];\n\n/**\n * The license every theme in this catalog is published under.\n *\n * This is **not** MIT, and the difference matters enough to be a named constant rather than a string\n * repeated twenty-four times. PrimeReact 10 - presets included - was MIT. PrimeReact 11 relicensed the\n * entire stack (`primereact`, `@primereact/core`, `@primereact/headless`, `primeicons`,\n * `@primeuix/themes`, `@primeuix/styled`) under the commercial PrimeUI license, which requires a license\n * key: without one, `PrimeReactProvider` warns on the console and injects an \"Invalid PrimeUI License\"\n * banner, in development and production alike.\n *\n * `Theme`'s `license` field exists so a theme picker, an audit, or a person reading the catalog can see\n * what they are actually taking on. Reporting these as MIT because the *previous* major was MIT is the\n * exact mistake the field is there to prevent.\n *\n * @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.\n * @see https://primeui.dev/licenses/commercial for the paid tier.\n */\nexport const primeReactThemeLicense = 'PrimeUI Commercial';\n\n/**\n * Every theme this package ships, as Scene {@link Theme}s.\n *\n * None of these themes are ours. They are PrimeTek's `@primeuix/themes` presets - Aura, Lara, Nora and\n * Material - with one of the preset's own primitive color ramps bound to its primary scale. Choosing\n * which accent to bind is the only design decision Scene makes here, and it is not enough to claim\n * authorship over: the surface ramps, the radii, the focus rings, the component styling and the design\n * language are all PrimeTek's work.\n *\n * That is what `Theme`'s `author`, `authorUrl` and `license` fields exist to record, and why the credit\n * is applied here, once, to every preset, rather than written out per theme where it could be forgotten.\n */\nexport const primeReactThemes: Theme[] = themePresets.map((preset) => ({\n ...preset,\n compatibleWith: primeReactThemeCompatibility,\n author: 'PrimeTek',\n authorUrl: 'https://primereact.org',\n license: primeReactThemeLicense,\n}));\n\n/**\n * The names of every theme this package ships, in catalog order - what the manifest declares and what a\n * theme picker lists.\n */\nexport const primeReactThemeNames: string[] = primeReactThemes.map((theme) => theme.name);\n\n/**\n * Finds one of this package's themes by name.\n *\n * @param name The theme name.\n * @returns The theme, or `undefined` when this package does not ship one by that name.\n */\nexport function primeReactTheme(name: string): Theme | undefined {\n return primeReactThemes.find((theme) => theme.name === name);\n}\n"],"names":["primeReactThemeCompatibility","primeReactThemeLicense","primeReactThemes","themePresets","map","preset","compatibleWith","author","authorUrl","license","primeReactThemeNames","theme","name","primeReactTheme","find"],"mappings":";;;;AAAA;AACA;AAKA;;;;;;;;;;;;;;;;;UAkBaA,4BAAAA,GAAyC;AAAC,IAAA,YAAA;AAAc,IAAA,UAAA;AAAY,IAAA;;AAEjF;;;;;;;;;;;;;;;;IAiBO,MAAMC,sBAAAA,GAAyB;AAEtC;;;;;;;;;;;UAYaC,gBAAAA,GAA4BC,yBAAAA,CAAaC,GAAG,CAAC,CAACC,UAAY;AACnE,QAAA,GAAGA,MAAM;QACTC,cAAAA,
|
|
1
|
+
{"version":3,"file":"primeReactThemes.js","sources":["../../../theme/primeReactThemes.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Theme } from '@cratis/scene.model';\nimport { themePresets } from './themePresets';\n\n/**\n * The packages a PrimeReact theme declares itself compatible with.\n *\n * `PrimeReact` and `Tailwind` are obvious - the preset skins PrimeReact's components, and this package's\n * own wrappers lay themselves out with Tailwind utilities.\n *\n * `core` is the interesting one, and it is listed deliberately rather than by reflex. A theme reaches a\n * screen in two layers: the `--p-*` custom properties `@primeuix/styled` emits for the active preset,\n * which only PrimeReact's own components read, and a set of semantic Scene tokens that\n * `SceneThemeProvider` writes onto the wrapping element. The second layer applies to *everything*\n * underneath it, `core`'s unstyled primitives included - they inherit the theme's type color and can read\n * any token they choose to. So the claim being made is precise: these themes genuinely reach `core`'s\n * components, through tokens rather than through the component skin.\n *\n * This has to be said explicitly because `ThemeCompatibility` has no implicit exemption for `core`. A\n * theme that leaves it out is reported incompatible for every profile that lists `core`, which for a\n * theme that really does apply would be a false alarm on nearly every profile there is.\n */\nexport const primeReactThemeCompatibility: string[] = ['PrimeReact', 'Tailwind', 'core'];\n\n/**\n * The license every theme in this catalog is published under.\n *\n * This is **not** MIT, and the difference matters enough to be a named constant rather than a string\n * repeated twenty-four times. PrimeReact 10 - presets included - was MIT. PrimeReact 11 relicensed the\n * entire stack (`primereact`, `@primereact/core`, `@primereact/headless`, `primeicons`,\n * `@primeuix/themes`, `@primeuix/styled`) under the commercial PrimeUI license, which requires a license\n * key: without one, `PrimeReactProvider` warns on the console and injects an \"Invalid PrimeUI License\"\n * banner, in development and production alike.\n *\n * `Theme`'s `license` field exists so a theme picker, an audit, or a person reading the catalog can see\n * what they are actually taking on. Reporting these as MIT because the *previous* major was MIT is the\n * exact mistake the field is there to prevent.\n *\n * @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.\n * @see https://primeui.dev/licenses/commercial for the paid tier.\n */\nexport const primeReactThemeLicense = 'PrimeUI Community / Commercial';\n\n/**\n * Where those terms live. A license name alone tells a reader nothing about whether they qualify for the\n * free Community tier or owe a commercial fee, so the catalog carries the link rather than making them\n * search for it.\n */\nexport const primeReactThemeLicenseUrl = 'https://primeui.dev/licenses/community';\n\n/**\n * Every theme this package ships, as Scene {@link Theme}s.\n *\n * None of these themes are ours. They are PrimeTek's `@primeuix/themes` presets - Aura, Lara, Nora and\n * Material - with one of the preset's own primitive color ramps bound to its primary scale. Choosing\n * which accent to bind is the only design decision Scene makes here, and it is not enough to claim\n * authorship over: the surface ramps, the radii, the focus rings, the component styling and the design\n * language are all PrimeTek's work.\n *\n * That is what `Theme`'s `author`, `authorUrl` and `license` fields exist to record, and why the credit\n * is applied here, once, to every preset, rather than written out per theme where it could be forgotten.\n */\nexport const primeReactThemes: Theme[] = themePresets.map((preset) => ({\n ...preset,\n compatibleWith: primeReactThemeCompatibility,\n author: 'PrimeTek',\n authorUrl: 'https://primereact.org',\n license: primeReactThemeLicense,\n licenseUrl: primeReactThemeLicenseUrl,\n}));\n\n/**\n * The names of every theme this package ships, in catalog order - what the manifest declares and what a\n * theme picker lists.\n */\nexport const primeReactThemeNames: string[] = primeReactThemes.map((theme) => theme.name);\n\n/**\n * Finds one of this package's themes by name.\n *\n * @param name The theme name.\n * @returns The theme, or `undefined` when this package does not ship one by that name.\n */\nexport function primeReactTheme(name: string): Theme | undefined {\n return primeReactThemes.find((theme) => theme.name === name);\n}\n"],"names":["primeReactThemeCompatibility","primeReactThemeLicense","primeReactThemeLicenseUrl","primeReactThemes","themePresets","map","preset","compatibleWith","author","authorUrl","license","licenseUrl","primeReactThemeNames","theme","name","primeReactTheme","find"],"mappings":";;;;AAAA;AACA;AAKA;;;;;;;;;;;;;;;;;UAkBaA,4BAAAA,GAAyC;AAAC,IAAA,YAAA;AAAc,IAAA,UAAA;AAAY,IAAA;;AAEjF;;;;;;;;;;;;;;;;IAiBO,MAAMC,sBAAAA,GAAyB;AAEtC;;;;IAKO,MAAMC,yBAAAA,GAA4B;AAEzC;;;;;;;;;;;UAYaC,gBAAAA,GAA4BC,yBAAAA,CAAaC,GAAG,CAAC,CAACC,UAAY;AACnE,QAAA,GAAGA,MAAM;QACTC,cAAAA,EAAgBP,4BAAAA;QAChBQ,MAAAA,EAAQ,UAAA;QACRC,SAAAA,EAAW,wBAAA;QACXC,OAAAA,EAAST,sBAAAA;QACTU,UAAAA,EAAYT;AAChB,KAAA,CAAA;AAEA;;;IAIO,MAAMU,oBAAAA,GAAiCT,gBAAAA,CAAiBE,GAAG,CAAC,CAACQ,KAAAA,GAAUA,KAAAA,CAAMC,IAAI;AAExF;;;;;IAMO,SAASC,eAAAA,CAAgBD,IAAY,EAAA;AACxC,IAAA,OAAOX,iBAAiBa,IAAI,CAAC,CAACH,KAAAA,GAAUA,KAAAA,CAAMC,IAAI,KAAKA,IAAAA,CAAAA;AAC3D;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { primeReactThemes } from '../theme';
|
|
1
|
+
import { primeReactThemeLicense, primeReactThemeLicenseUrl, primeReactThemes } from '../theme';
|
|
2
2
|
describe('when checking attribution', () => {
|
|
3
3
|
it('should credit an author on every theme', () => {
|
|
4
4
|
primeReactThemes.filter((theme) => theme.author === undefined || theme.author === '').should.deep.equal([]);
|
|
@@ -13,7 +13,12 @@ describe('when checking attribution', () => {
|
|
|
13
13
|
primeReactThemes.filter((theme) => theme.author !== 'PrimeTek').should.deep.equal([]);
|
|
14
14
|
});
|
|
15
15
|
it('should state the commercial license PrimeReact 11 actually ships under, not the MIT of v10', () => {
|
|
16
|
-
|
|
16
|
+
primeReactThemeLicense.should.equal('PrimeUI Community / Commercial');
|
|
17
|
+
primeReactThemes.filter((theme) => theme.license !== primeReactThemeLicense).should.deep.equal([]);
|
|
18
|
+
});
|
|
19
|
+
it('should link to the terms on every theme, not just name them', () => {
|
|
20
|
+
primeReactThemeLicenseUrl.should.equal('https://primeui.dev/licenses/community');
|
|
21
|
+
primeReactThemes.filter((theme) => theme.licenseUrl !== primeReactThemeLicenseUrl).should.deep.equal([]);
|
|
17
22
|
});
|
|
18
23
|
it('should describe every theme for a picker', () => {
|
|
19
24
|
primeReactThemes.filter((theme) => theme.description === undefined || theme.description === '').should.deep.equal([]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"when_checking_attribution.js","sourceRoot":"","sources":["../../../for_primeReactThemes/when_checking_attribution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"when_checking_attribution.js","sourceRoot":"","sources":["../../../for_primeReactThemes/when_checking_attribution.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE/F,QAAQ,CAAC,2BAA2B,EAAE,GAAG,EAAE;IACvC,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAC9C,gBAAgB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAChH,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAChD,gBAAgB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,KAAK,CAAC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,EAAE;QAChD,gBAAgB,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,IAAI,KAAK,CAAC,WAAW,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC1H,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -103,7 +103,7 @@ export { PrimeSummary } from './screen/PrimeSummary.js';
|
|
|
103
103
|
export { PrimeAction } from './screen/PrimeAction.js';
|
|
104
104
|
export { PrimeReactThemeFamily } from './theme/PrimeReactThemeFamily.js';
|
|
105
105
|
export { themePresets } from './theme/themePresets.js';
|
|
106
|
-
export { primeReactTheme, primeReactThemeCompatibility, primeReactThemeLicense, primeReactThemeNames, primeReactThemes } from './theme/primeReactThemes.js';
|
|
106
|
+
export { primeReactTheme, primeReactThemeCompatibility, primeReactThemeLicense, primeReactThemeLicenseUrl, primeReactThemeNames, primeReactThemes } from './theme/primeReactThemes.js';
|
|
107
107
|
export { primeReactThemePreset } from './theme/primeReactThemePreset.js';
|
|
108
108
|
export { primeReactDarkModeClass, usePrimeReactTheme } from './theme/usePrimeReactTheme.js';
|
|
109
109
|
export { primeReactComponents } from './primeReactComponents.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeReactPackage.d.ts","sourceRoot":"","sources":["../../primeReactPackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAczD,eAAO,MAAM,yBAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"primeReactPackage.d.ts","sourceRoot":"","sources":["../../primeReactPackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAczD,eAAO,MAAM,yBAAyB,EAAE,YA4DvC,CAAC;AAMF,eAAO,MAAM,iBAAiB,EAAE,kBAI/B,CAAC"}
|
|
@@ -137,7 +137,12 @@ import 'react';
|
|
|
137
137
|
themes: primeReactThemeNames,
|
|
138
138
|
displayName: 'PrimeReact',
|
|
139
139
|
description: 'PrimeReact 11 components and PrimeTek\'s @primeuix/themes presets, mapped onto Scene\'s abstract component names.',
|
|
140
|
-
module: '@cratis/scene.primereact'
|
|
140
|
+
module: '@cratis/scene.primereact',
|
|
141
|
+
// PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community
|
|
142
|
+
// tier is free for eligible projects but still requires a key, so an author selecting this
|
|
143
|
+
// package needs to see the terms before they select it, not after a banner appears.
|
|
144
|
+
license: 'PrimeUI Community / Commercial',
|
|
145
|
+
licenseUrl: 'https://primeui.dev/licenses/community'
|
|
141
146
|
};
|
|
142
147
|
/**
|
|
143
148
|
* The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeReactPackage.js","sources":["../../primeReactPackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { primeReactComponents } from './primeReactComponents';\nimport { primeReactThemeNames, primeReactThemes } from './theme';\n\n/**\n * The `PrimeReact` package's declaration - what a `ui profile` lists by name and what a\n * `PackageDependency` refers to.\n *\n * The component list is written out rather than derived from the registry, on purpose. A manifest is\n * read by Stage's build and Studio's design-time queries *without loading a single component*, so it has\n * to stand on its own as the statement of what this package offers. Keeping it as its own list is also\n * what gives `validatePackageBundle` something real to check: two independently maintained lists that\n * must agree, rather than one list compared against itself.\n */\nexport const primeReactPackageManifest: ScenePackage = {\n name: 'PrimeReact',\n version: '11.1.0',\n kind: PackageKind.ComponentLibrary,\n\n /**\n * PrimeReact's own components need nothing from Tailwind - they are skinned by the `--p-*` custom\n * properties the active `@primeuix/themes` preset emits. The dependency is here because *this\n * package's wrappers* use Tailwind utility classes\n * for the layout around them: the row a checkbox and its label sit on, the column a radio group\n * stacks into, the grid a summary lays its pairs out in. A profile that activates this package\n * without Tailwind renders those wrappers unstyled, so declaring it is what makes the profile picker\n * offer Tailwind alongside PrimeReact instead of leaving the gap to be discovered on screen.\n */\n dependencies: [{ name: 'Tailwind' }],\n\n components: [\n 'inputText', 'inputTextarea', 'inputNumber', 'password', 'floatLabel', 'iconField', 'dropdown', 'multiSelect',\n 'listBox', 'selectButton', 'checkbox', 'radioButton', 'toggleSwitch', 'slider', 'rating', 'knob', 'calendar', 'colorPicker',\n 'chips', 'autoComplete', 'treeSelect', 'button', 'splitButton', 'speedDial', 'buttonGroup', 'dataTable', 'table',\n 'column', 'dataView', 'tree', 'timeline', 'paginator', 'orderList', 'pickList', 'organizationChart',\n 'card', 'panel', 'accordion', 'fieldset', 'divider', 'splitter', 'scrollPanel', 'tabView', 'toolbar', 'stepper', 'dialog',\n 'confirmDialog', 'overlayPanel', 'sidebar', 'tooltip', 'menu', 'menubar', 'breadcrumb', 'tabMenu', 'steps', 'tieredMenu',\n 'panelMenu', 'contextMenu', 'megaMenu', 'dock', 'message', 'inlineMessage', 'toast', 'image', 'galleria', 'carousel', 'avatar',\n 'badge', 'chip', 'tag', 'progressBar', 'progressSpinner', 'skeleton', 'scrollTop', 'blockUI', 'inplace', 'terminal', 'text',\n 'title', 'field', 'section', 'summary', 'action',\n ],\n\n /**\n * Empty, and it stays empty. A layout is an application's base navigational look - one per\n * application - and choosing it is a decision about the product, not about which widgets are\n * available. A component library supplies the vocabulary a layout is built *from*; a\n * {@link PackageKind.Blueprint} package supplies the layout itself.\n */\n layouts: [],\n\n /**\n * Empty for the same reason `layouts` is. A screen template is a reusable page shape at module,\n * feature or slice level - \"list with filters and a detail pane\" - and it is composed *out of* the\n * names declared above. Shipping one here would mean this package had opinions about how a screen is\n * arranged, which is a Blueprint's job and not a component library's.\n */\n screenTemplates: [],\n\n /**\n * Empty, as above: a dialog template is a reusable dialog shape, composed from these components by a\n * Blueprint package rather than provided by the library the components come from.\n */\n dialogTemplates: [],\n\n themes: primeReactThemeNames,\n\n displayName: 'PrimeReact',\n description: 'PrimeReact 11 components and PrimeTek\\'s @primeuix/themes presets, mapped onto Scene\\'s abstract component names.',\n module: '@cratis/scene.primereact',\n};\n\n/**\n * The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes\n * behind the names it declares.\n */\nexport const primeReactPackage: ScenePackageBundle = {\n manifest: primeReactPackageManifest,\n components: primeReactComponents,\n themes: primeReactThemes,\n};\n"],"names":["primeReactPackageManifest","name","version","kind","PackageKind","ComponentLibrary","dependencies","components","layouts","screenTemplates","dialogTemplates","themes","primeReactThemeNames","displayName","description","module","primeReactPackage","manifest","primeReactComponents","primeReactThemes"],"mappings":";;;;;;;AAAA;AACA;AAOA;;;;;;;;;UAUaA,yBAAAA,GAA0C;IACnDC,IAAAA,EAAM,YAAA;IACNC,OAAAA,EAAS,QAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,gBAAgB;AAElC;;;;;;;;AAQC,QACDC,YAAAA,EAAc;AAAC,QAAA;YAAEL,IAAAA,EAAM;AAAW;AAAE,KAAA;IAEpCM,UAAAA,EAAY;AACR,QAAA,WAAA;AAAa,QAAA,eAAA;AAAiB,QAAA,aAAA;AAAe,QAAA,UAAA;AAAY,QAAA,YAAA;AAAc,QAAA,WAAA;AAAa,QAAA,UAAA;AAAY,QAAA,aAAA;AAChG,QAAA,SAAA;AAAW,QAAA,cAAA;AAAgB,QAAA,UAAA;AAAY,QAAA,aAAA;AAAe,QAAA,cAAA;AAAgB,QAAA,QAAA;AAAU,QAAA,QAAA;AAAU,QAAA,MAAA;AAAQ,QAAA,UAAA;AAAY,QAAA,aAAA;AAC9G,QAAA,OAAA;AAAS,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AiB,EAAE;AAEnB;;;AAGC,QACDC,iBAAiB,EAAE;IAEnBC,MAAAA,EAAQC,oBAAAA;IAERC,WAAAA,EAAa,YAAA;IACbC,WAAAA,EAAa,mHAAA;IACbC,MAAAA,EAAQ;
|
|
1
|
+
{"version":3,"file":"primeReactPackage.js","sources":["../../primeReactPackage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { primeReactComponents } from './primeReactComponents';\nimport { primeReactThemeNames, primeReactThemes } from './theme';\n\n/**\n * The `PrimeReact` package's declaration - what a `ui profile` lists by name and what a\n * `PackageDependency` refers to.\n *\n * The component list is written out rather than derived from the registry, on purpose. A manifest is\n * read by Stage's build and Studio's design-time queries *without loading a single component*, so it has\n * to stand on its own as the statement of what this package offers. Keeping it as its own list is also\n * what gives `validatePackageBundle` something real to check: two independently maintained lists that\n * must agree, rather than one list compared against itself.\n */\nexport const primeReactPackageManifest: ScenePackage = {\n name: 'PrimeReact',\n version: '11.1.0',\n kind: PackageKind.ComponentLibrary,\n\n /**\n * PrimeReact's own components need nothing from Tailwind - they are skinned by the `--p-*` custom\n * properties the active `@primeuix/themes` preset emits. The dependency is here because *this\n * package's wrappers* use Tailwind utility classes\n * for the layout around them: the row a checkbox and its label sit on, the column a radio group\n * stacks into, the grid a summary lays its pairs out in. A profile that activates this package\n * without Tailwind renders those wrappers unstyled, so declaring it is what makes the profile picker\n * offer Tailwind alongside PrimeReact instead of leaving the gap to be discovered on screen.\n */\n dependencies: [{ name: 'Tailwind' }],\n\n components: [\n 'inputText', 'inputTextarea', 'inputNumber', 'password', 'floatLabel', 'iconField', 'dropdown', 'multiSelect',\n 'listBox', 'selectButton', 'checkbox', 'radioButton', 'toggleSwitch', 'slider', 'rating', 'knob', 'calendar', 'colorPicker',\n 'chips', 'autoComplete', 'treeSelect', 'button', 'splitButton', 'speedDial', 'buttonGroup', 'dataTable', 'table',\n 'column', 'dataView', 'tree', 'timeline', 'paginator', 'orderList', 'pickList', 'organizationChart',\n 'card', 'panel', 'accordion', 'fieldset', 'divider', 'splitter', 'scrollPanel', 'tabView', 'toolbar', 'stepper', 'dialog',\n 'confirmDialog', 'overlayPanel', 'sidebar', 'tooltip', 'menu', 'menubar', 'breadcrumb', 'tabMenu', 'steps', 'tieredMenu',\n 'panelMenu', 'contextMenu', 'megaMenu', 'dock', 'message', 'inlineMessage', 'toast', 'image', 'galleria', 'carousel', 'avatar',\n 'badge', 'chip', 'tag', 'progressBar', 'progressSpinner', 'skeleton', 'scrollTop', 'blockUI', 'inplace', 'terminal', 'text',\n 'title', 'field', 'section', 'summary', 'action',\n ],\n\n /**\n * Empty, and it stays empty. A layout is an application's base navigational look - one per\n * application - and choosing it is a decision about the product, not about which widgets are\n * available. A component library supplies the vocabulary a layout is built *from*; a\n * {@link PackageKind.Blueprint} package supplies the layout itself.\n */\n layouts: [],\n\n /**\n * Empty for the same reason `layouts` is. A screen template is a reusable page shape at module,\n * feature or slice level - \"list with filters and a detail pane\" - and it is composed *out of* the\n * names declared above. Shipping one here would mean this package had opinions about how a screen is\n * arranged, which is a Blueprint's job and not a component library's.\n */\n screenTemplates: [],\n\n /**\n * Empty, as above: a dialog template is a reusable dialog shape, composed from these components by a\n * Blueprint package rather than provided by the library the components come from.\n */\n dialogTemplates: [],\n\n themes: primeReactThemeNames,\n\n displayName: 'PrimeReact',\n description: 'PrimeReact 11 components and PrimeTek\\'s @primeuix/themes presets, mapped onto Scene\\'s abstract component names.',\n module: '@cratis/scene.primereact',\n // PrimeReact 11 is PrimeTek's commercial PrimeUI, not MIT as version 10 was. The Community\n // tier is free for eligible projects but still requires a key, so an author selecting this\n // package needs to see the terms before they select it, not after a banner appears.\n license: 'PrimeUI Community / Commercial',\n licenseUrl: 'https://primeui.dev/licenses/community',\n};\n\n/**\n * The `PrimeReact` package as a loadable bundle - the manifest plus the React components and themes\n * behind the names it declares.\n */\nexport const primeReactPackage: ScenePackageBundle = {\n manifest: primeReactPackageManifest,\n components: primeReactComponents,\n themes: primeReactThemes,\n};\n"],"names":["primeReactPackageManifest","name","version","kind","PackageKind","ComponentLibrary","dependencies","components","layouts","screenTemplates","dialogTemplates","themes","primeReactThemeNames","displayName","description","module","license","licenseUrl","primeReactPackage","manifest","primeReactComponents","primeReactThemes"],"mappings":";;;;;;;AAAA;AACA;AAOA;;;;;;;;;UAUaA,yBAAAA,GAA0C;IACnDC,IAAAA,EAAM,YAAA;IACNC,OAAAA,EAAS,QAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,gBAAgB;AAElC;;;;;;;;AAQC,QACDC,YAAAA,EAAc;AAAC,QAAA;YAAEL,IAAAA,EAAM;AAAW;AAAE,KAAA;IAEpCM,UAAAA,EAAY;AACR,QAAA,WAAA;AAAa,QAAA,eAAA;AAAiB,QAAA,aAAA;AAAe,QAAA,UAAA;AAAY,QAAA,YAAA;AAAc,QAAA,WAAA;AAAa,QAAA,UAAA;AAAY,QAAA,aAAA;AAChG,QAAA,SAAA;AAAW,QAAA,cAAA;AAAgB,QAAA,UAAA;AAAY,QAAA,aAAA;AAAe,QAAA,cAAA;AAAgB,QAAA,QAAA;AAAU,QAAA,QAAA;AAAU,QAAA,MAAA;AAAQ,QAAA,UAAA;AAAY,QAAA,aAAA;AAC9G,QAAA,OAAA;AAAS,QAAA,cAAA;AAAgB,QAAA,YAAA;AAAc,QAAA,QAAA;AAAU,QAAA,aAAA;AAAe,QAAA,WAAA;AAAa,QAAA,aAAA;AAAe,QAAA,WAAA;AAAa,QAAA,OAAA;AACzG,QAAA,QAAA;AAAU,QAAA,UAAA;AAAY,QAAA,MAAA;AAAQ,QAAA,UAAA;AAAY,QAAA,WAAA;AAAa,QAAA,WAAA;AAAa,QAAA,UAAA;AAAY,QAAA,mBAAA;AAChF,QAAA,MAAA;AAAQ,QAAA,OAAA;AAAS,QAAA,WAAA;AAAa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 -1,6 +1,7 @@
|
|
|
1
1
|
import { Theme } from '@cratis/scene.model';
|
|
2
2
|
export declare const primeReactThemeCompatibility: string[];
|
|
3
|
-
export declare const primeReactThemeLicense = "PrimeUI Commercial";
|
|
3
|
+
export declare const primeReactThemeLicense = "PrimeUI Community / Commercial";
|
|
4
|
+
export declare const primeReactThemeLicenseUrl = "https://primeui.dev/licenses/community";
|
|
4
5
|
export declare const primeReactThemes: Theme[];
|
|
5
6
|
export declare const primeReactThemeNames: string[];
|
|
6
7
|
export declare function primeReactTheme(name: string): Theme | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeReactThemes.d.ts","sourceRoot":"","sources":["../../../theme/primeReactThemes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAqB5C,eAAO,MAAM,4BAA4B,EAAE,MAAM,EAAuC,CAAC;AAmBzF,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"primeReactThemes.d.ts","sourceRoot":"","sources":["../../../theme/primeReactThemes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAqB5C,eAAO,MAAM,4BAA4B,EAAE,MAAM,EAAuC,CAAC;AAmBzF,eAAO,MAAM,sBAAsB,mCAAmC,CAAC;AAOvE,eAAO,MAAM,yBAAyB,2CAA2C,CAAC;AAclF,eAAO,MAAM,gBAAgB,EAAE,KAAK,EAOjC,CAAC;AAMJ,eAAO,MAAM,oBAAoB,EAAE,MAAM,EAAgD,CAAC;AAQ1F,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAE/D"}
|
|
@@ -40,7 +40,12 @@ import { themePresets } from './themePresets.js';
|
|
|
40
40
|
*
|
|
41
41
|
* @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.
|
|
42
42
|
* @see https://primeui.dev/licenses/commercial for the paid tier.
|
|
43
|
-
*/ const primeReactThemeLicense = 'PrimeUI Commercial';
|
|
43
|
+
*/ const primeReactThemeLicense = 'PrimeUI Community / Commercial';
|
|
44
|
+
/**
|
|
45
|
+
* Where those terms live. A license name alone tells a reader nothing about whether they qualify for the
|
|
46
|
+
* free Community tier or owe a commercial fee, so the catalog carries the link rather than making them
|
|
47
|
+
* search for it.
|
|
48
|
+
*/ const primeReactThemeLicenseUrl = 'https://primeui.dev/licenses/community';
|
|
44
49
|
/**
|
|
45
50
|
* Every theme this package ships, as Scene {@link Theme}s.
|
|
46
51
|
*
|
|
@@ -57,7 +62,8 @@ import { themePresets } from './themePresets.js';
|
|
|
57
62
|
compatibleWith: primeReactThemeCompatibility,
|
|
58
63
|
author: 'PrimeTek',
|
|
59
64
|
authorUrl: 'https://primereact.org',
|
|
60
|
-
license: primeReactThemeLicense
|
|
65
|
+
license: primeReactThemeLicense,
|
|
66
|
+
licenseUrl: primeReactThemeLicenseUrl
|
|
61
67
|
}));
|
|
62
68
|
/**
|
|
63
69
|
* The names of every theme this package ships, in catalog order - what the manifest declares and what a
|
|
@@ -72,5 +78,5 @@ import { themePresets } from './themePresets.js';
|
|
|
72
78
|
return primeReactThemes.find((theme)=>theme.name === name);
|
|
73
79
|
}
|
|
74
80
|
|
|
75
|
-
export { primeReactTheme, primeReactThemeCompatibility, primeReactThemeLicense, primeReactThemeNames, primeReactThemes };
|
|
81
|
+
export { primeReactTheme, primeReactThemeCompatibility, primeReactThemeLicense, primeReactThemeLicenseUrl, primeReactThemeNames, primeReactThemes };
|
|
76
82
|
//# sourceMappingURL=primeReactThemes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primeReactThemes.js","sources":["../../../theme/primeReactThemes.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Theme } from '@cratis/scene.model';\nimport { themePresets } from './themePresets';\n\n/**\n * The packages a PrimeReact theme declares itself compatible with.\n *\n * `PrimeReact` and `Tailwind` are obvious - the preset skins PrimeReact's components, and this package's\n * own wrappers lay themselves out with Tailwind utilities.\n *\n * `core` is the interesting one, and it is listed deliberately rather than by reflex. A theme reaches a\n * screen in two layers: the `--p-*` custom properties `@primeuix/styled` emits for the active preset,\n * which only PrimeReact's own components read, and a set of semantic Scene tokens that\n * `SceneThemeProvider` writes onto the wrapping element. The second layer applies to *everything*\n * underneath it, `core`'s unstyled primitives included - they inherit the theme's type color and can read\n * any token they choose to. So the claim being made is precise: these themes genuinely reach `core`'s\n * components, through tokens rather than through the component skin.\n *\n * This has to be said explicitly because `ThemeCompatibility` has no implicit exemption for `core`. A\n * theme that leaves it out is reported incompatible for every profile that lists `core`, which for a\n * theme that really does apply would be a false alarm on nearly every profile there is.\n */\nexport const primeReactThemeCompatibility: string[] = ['PrimeReact', 'Tailwind', 'core'];\n\n/**\n * The license every theme in this catalog is published under.\n *\n * This is **not** MIT, and the difference matters enough to be a named constant rather than a string\n * repeated twenty-four times. PrimeReact 10 - presets included - was MIT. PrimeReact 11 relicensed the\n * entire stack (`primereact`, `@primereact/core`, `@primereact/headless`, `primeicons`,\n * `@primeuix/themes`, `@primeuix/styled`) under the commercial PrimeUI license, which requires a license\n * key: without one, `PrimeReactProvider` warns on the console and injects an \"Invalid PrimeUI License\"\n * banner, in development and production alike.\n *\n * `Theme`'s `license` field exists so a theme picker, an audit, or a person reading the catalog can see\n * what they are actually taking on. Reporting these as MIT because the *previous* major was MIT is the\n * exact mistake the field is there to prevent.\n *\n * @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.\n * @see https://primeui.dev/licenses/commercial for the paid tier.\n */\nexport const primeReactThemeLicense = 'PrimeUI Commercial';\n\n/**\n * Every theme this package ships, as Scene {@link Theme}s.\n *\n * None of these themes are ours. They are PrimeTek's `@primeuix/themes` presets - Aura, Lara, Nora and\n * Material - with one of the preset's own primitive color ramps bound to its primary scale. Choosing\n * which accent to bind is the only design decision Scene makes here, and it is not enough to claim\n * authorship over: the surface ramps, the radii, the focus rings, the component styling and the design\n * language are all PrimeTek's work.\n *\n * That is what `Theme`'s `author`, `authorUrl` and `license` fields exist to record, and why the credit\n * is applied here, once, to every preset, rather than written out per theme where it could be forgotten.\n */\nexport const primeReactThemes: Theme[] = themePresets.map((preset) => ({\n ...preset,\n compatibleWith: primeReactThemeCompatibility,\n author: 'PrimeTek',\n authorUrl: 'https://primereact.org',\n license: primeReactThemeLicense,\n}));\n\n/**\n * The names of every theme this package ships, in catalog order - what the manifest declares and what a\n * theme picker lists.\n */\nexport const primeReactThemeNames: string[] = primeReactThemes.map((theme) => theme.name);\n\n/**\n * Finds one of this package's themes by name.\n *\n * @param name The theme name.\n * @returns The theme, or `undefined` when this package does not ship one by that name.\n */\nexport function primeReactTheme(name: string): Theme | undefined {\n return primeReactThemes.find((theme) => theme.name === name);\n}\n"],"names":["primeReactThemeCompatibility","primeReactThemeLicense","primeReactThemes","themePresets","map","preset","compatibleWith","author","authorUrl","license","primeReactThemeNames","theme","name","primeReactTheme","find"],"mappings":";;AAAA;AACA;AAKA;;;;;;;;;;;;;;;;;UAkBaA,4BAAAA,GAAyC;AAAC,IAAA,YAAA;AAAc,IAAA,UAAA;AAAY,IAAA;;AAEjF;;;;;;;;;;;;;;;;IAiBO,MAAMC,sBAAAA,GAAyB;AAEtC;;;;;;;;;;;UAYaC,gBAAAA,GAA4BC,YAAAA,CAAaC,GAAG,CAAC,CAACC,UAAY;AACnE,QAAA,GAAGA,MAAM;QACTC,cAAAA,
|
|
1
|
+
{"version":3,"file":"primeReactThemes.js","sources":["../../../theme/primeReactThemes.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Theme } from '@cratis/scene.model';\nimport { themePresets } from './themePresets';\n\n/**\n * The packages a PrimeReact theme declares itself compatible with.\n *\n * `PrimeReact` and `Tailwind` are obvious - the preset skins PrimeReact's components, and this package's\n * own wrappers lay themselves out with Tailwind utilities.\n *\n * `core` is the interesting one, and it is listed deliberately rather than by reflex. A theme reaches a\n * screen in two layers: the `--p-*` custom properties `@primeuix/styled` emits for the active preset,\n * which only PrimeReact's own components read, and a set of semantic Scene tokens that\n * `SceneThemeProvider` writes onto the wrapping element. The second layer applies to *everything*\n * underneath it, `core`'s unstyled primitives included - they inherit the theme's type color and can read\n * any token they choose to. So the claim being made is precise: these themes genuinely reach `core`'s\n * components, through tokens rather than through the component skin.\n *\n * This has to be said explicitly because `ThemeCompatibility` has no implicit exemption for `core`. A\n * theme that leaves it out is reported incompatible for every profile that lists `core`, which for a\n * theme that really does apply would be a false alarm on nearly every profile there is.\n */\nexport const primeReactThemeCompatibility: string[] = ['PrimeReact', 'Tailwind', 'core'];\n\n/**\n * The license every theme in this catalog is published under.\n *\n * This is **not** MIT, and the difference matters enough to be a named constant rather than a string\n * repeated twenty-four times. PrimeReact 10 - presets included - was MIT. PrimeReact 11 relicensed the\n * entire stack (`primereact`, `@primereact/core`, `@primereact/headless`, `primeicons`,\n * `@primeuix/themes`, `@primeuix/styled`) under the commercial PrimeUI license, which requires a license\n * key: without one, `PrimeReactProvider` warns on the console and injects an \"Invalid PrimeUI License\"\n * banner, in development and production alike.\n *\n * `Theme`'s `license` field exists so a theme picker, an audit, or a person reading the catalog can see\n * what they are actually taking on. Reporting these as MIT because the *previous* major was MIT is the\n * exact mistake the field is there to prevent.\n *\n * @see https://primeui.dev/licenses/community for the free community tier and its eligibility limits.\n * @see https://primeui.dev/licenses/commercial for the paid tier.\n */\nexport const primeReactThemeLicense = 'PrimeUI Community / Commercial';\n\n/**\n * Where those terms live. A license name alone tells a reader nothing about whether they qualify for the\n * free Community tier or owe a commercial fee, so the catalog carries the link rather than making them\n * search for it.\n */\nexport const primeReactThemeLicenseUrl = 'https://primeui.dev/licenses/community';\n\n/**\n * Every theme this package ships, as Scene {@link Theme}s.\n *\n * None of these themes are ours. They are PrimeTek's `@primeuix/themes` presets - Aura, Lara, Nora and\n * Material - with one of the preset's own primitive color ramps bound to its primary scale. Choosing\n * which accent to bind is the only design decision Scene makes here, and it is not enough to claim\n * authorship over: the surface ramps, the radii, the focus rings, the component styling and the design\n * language are all PrimeTek's work.\n *\n * That is what `Theme`'s `author`, `authorUrl` and `license` fields exist to record, and why the credit\n * is applied here, once, to every preset, rather than written out per theme where it could be forgotten.\n */\nexport const primeReactThemes: Theme[] = themePresets.map((preset) => ({\n ...preset,\n compatibleWith: primeReactThemeCompatibility,\n author: 'PrimeTek',\n authorUrl: 'https://primereact.org',\n license: primeReactThemeLicense,\n licenseUrl: primeReactThemeLicenseUrl,\n}));\n\n/**\n * The names of every theme this package ships, in catalog order - what the manifest declares and what a\n * theme picker lists.\n */\nexport const primeReactThemeNames: string[] = primeReactThemes.map((theme) => theme.name);\n\n/**\n * Finds one of this package's themes by name.\n *\n * @param name The theme name.\n * @returns The theme, or `undefined` when this package does not ship one by that name.\n */\nexport function primeReactTheme(name: string): Theme | undefined {\n return primeReactThemes.find((theme) => theme.name === name);\n}\n"],"names":["primeReactThemeCompatibility","primeReactThemeLicense","primeReactThemeLicenseUrl","primeReactThemes","themePresets","map","preset","compatibleWith","author","authorUrl","license","licenseUrl","primeReactThemeNames","theme","name","primeReactTheme","find"],"mappings":";;AAAA;AACA;AAKA;;;;;;;;;;;;;;;;;UAkBaA,4BAAAA,GAAyC;AAAC,IAAA,YAAA;AAAc,IAAA,UAAA;AAAY,IAAA;;AAEjF;;;;;;;;;;;;;;;;IAiBO,MAAMC,sBAAAA,GAAyB;AAEtC;;;;IAKO,MAAMC,yBAAAA,GAA4B;AAEzC;;;;;;;;;;;UAYaC,gBAAAA,GAA4BC,YAAAA,CAAaC,GAAG,CAAC,CAACC,UAAY;AACnE,QAAA,GAAGA,MAAM;QACTC,cAAAA,EAAgBP,4BAAAA;QAChBQ,MAAAA,EAAQ,UAAA;QACRC,SAAAA,EAAW,wBAAA;QACXC,OAAAA,EAAST,sBAAAA;QACTU,UAAAA,EAAYT;AAChB,KAAA,CAAA;AAEA;;;IAIO,MAAMU,oBAAAA,GAAiCT,gBAAAA,CAAiBE,GAAG,CAAC,CAACQ,KAAAA,GAAUA,KAAAA,CAAMC,IAAI;AAExF;;;;;IAMO,SAASC,eAAAA,CAAgBD,IAAY,EAAA;AACxC,IAAA,OAAOX,iBAAiBa,IAAI,CAAC,CAACH,KAAAA,GAAUA,KAAAA,CAAMC,IAAI,KAAKA,IAAAA,CAAAA;AAC3D;;;;"}
|