@ramme-io/ui 5.3.1 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/ramme-ui.mjs +18 -6
- package/dist/components/ai/cardState.d.ts +7 -10
- package/dist/components/data-display/DataTable.d.ts +5 -0
- package/dist/components/data-display/DataTable.js +31 -29
- package/dist/components/data-display/_DataTableCards.js +31 -31
- package/dist/components/forms/SegmentedControl.js +14 -9
- package/dist/components/layout/AppShell.js +32 -32
- package/dist/components/layout/AppShell.print.test.d.ts +1 -0
- package/dist/components/ui/Avatar.d.ts +35 -6
- package/dist/components/ui/Avatar.js +54 -20
- package/dist/components/ui/Badge.d.ts +1 -1
- package/dist/components/ui/Icon.js +21 -11
- package/dist/contexts/ThemeContext.d.ts +6 -0
- package/dist/contexts/ThemeContext.js +90 -73
- package/dist/index.css +1 -1
- package/dist/index.js +117 -114
- package/dist/lib/hooks/useChartTheme.d.ts +21 -0
- package/dist/lib/hooks/useChartTheme.js +39 -22
- package/dist/lib/theme/ThemeGenerator.contrast.test.d.ts +1 -0
- package/dist/lib/theme/ThemeGenerator.logic.js +68 -67
- package/dist/lib/theme/themeUtils.d.ts +19 -3
- package/dist/lib/theme/themeUtils.js +96 -62
- package/dist/print-palette.test.d.ts +1 -0
- package/dist/wizardManifest.js +39 -7
- package/package.json +2 -2
- package/src/wizardManifest.ts +39 -7
- package/tailwind.preset.js +1 -0
package/src/wizardManifest.ts
CHANGED
|
@@ -2977,31 +2977,63 @@ export const wizardManifest: WizardManifest = {
|
|
|
2977
2977
|
{
|
|
2978
2978
|
"id": "avatar",
|
|
2979
2979
|
"name": "Avatar",
|
|
2980
|
-
"version": "1.0.
|
|
2981
|
-
"description": "Displays a
|
|
2980
|
+
"version": "1.0.1",
|
|
2981
|
+
"description": "Displays a person's picture or a company's logo, with letters as the fallback. The letters paint first and the image fades in over them once loaded, so a slow, missing or broken image never moves or empties the tile. Use shape=\"square\" fit=\"contain\" plate for a company logo.",
|
|
2982
2982
|
"tags": [
|
|
2983
2983
|
"ui",
|
|
2984
2984
|
"profile",
|
|
2985
|
-
"user"
|
|
2985
|
+
"user",
|
|
2986
|
+
"logo",
|
|
2987
|
+
"company",
|
|
2988
|
+
"initials"
|
|
2986
2989
|
],
|
|
2987
2990
|
"category": "ui",
|
|
2988
2991
|
"props": [
|
|
2989
2992
|
{
|
|
2990
2993
|
"name": "name",
|
|
2991
2994
|
"type": "string",
|
|
2992
|
-
"description": "The name
|
|
2995
|
+
"description": "The name, used for the image's alt text and for initials if none are given."
|
|
2993
2996
|
},
|
|
2994
2997
|
{
|
|
2995
2998
|
"name": "src",
|
|
2996
2999
|
"type": "string",
|
|
2997
|
-
"description": "The
|
|
3000
|
+
"description": "The image to show. If absent or it fails to load, the letters stay."
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
"name": "initials",
|
|
3004
|
+
"type": "string",
|
|
3005
|
+
"description": "Letters to show instead of ones taken from the name, such as a ticker."
|
|
2998
3006
|
},
|
|
2999
3007
|
{
|
|
3000
3008
|
"name": "size",
|
|
3001
|
-
"type": "'sm' | 'md' | 'lg'",
|
|
3009
|
+
"type": "'xs' | 'sm' | 'md' | 'lg'",
|
|
3002
3010
|
"description": "Controls the dimensions and font size of the avatar.",
|
|
3003
3011
|
"default": "'md'"
|
|
3004
3012
|
},
|
|
3013
|
+
{
|
|
3014
|
+
"name": "shape",
|
|
3015
|
+
"type": "'circle' | 'square'",
|
|
3016
|
+
"description": "A circle for a person, a square for a company or a product.",
|
|
3017
|
+
"default": "'circle'"
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
"name": "fit",
|
|
3021
|
+
"type": "'cover' | 'contain'",
|
|
3022
|
+
"description": "cover fills the tile (a photo); contain keeps the whole image (a logo).",
|
|
3023
|
+
"default": "'cover'"
|
|
3024
|
+
},
|
|
3025
|
+
{
|
|
3026
|
+
"name": "plate",
|
|
3027
|
+
"type": "boolean",
|
|
3028
|
+
"description": "Draws a loaded image on the light logo-plate token, so logos made for a white page stay legible on dark themes.",
|
|
3029
|
+
"default": "false"
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"name": "decorative",
|
|
3033
|
+
"type": "boolean",
|
|
3034
|
+
"description": "Hides the avatar from screen readers when the name is already written beside it.",
|
|
3035
|
+
"default": "false"
|
|
3036
|
+
},
|
|
3005
3037
|
{
|
|
3006
3038
|
"name": "className",
|
|
3007
3039
|
"type": "string",
|
|
@@ -3012,7 +3044,7 @@ export const wizardManifest: WizardManifest = {
|
|
|
3012
3044
|
"filePath": "src/components/ui/Avatar.tsx",
|
|
3013
3045
|
"sku": "@atom/primitive/avatar",
|
|
3014
3046
|
"humanLabel": "Avatar",
|
|
3015
|
-
"humanDescription": "Displays a
|
|
3047
|
+
"humanDescription": "Displays a person's picture or a company's logo, with letters as the fallback. The letters paint first and the image fades in over them once loaded, so a slow, missing or broken image never moves or empties the tile. Use shape=\"square\" fit=\"contain\" plate for a company logo."
|
|
3016
3048
|
},
|
|
3017
3049
|
{
|
|
3018
3050
|
"id": "badge",
|
package/tailwind.preset.js
CHANGED
|
@@ -115,6 +115,7 @@ module.exports = {
|
|
|
115
115
|
grid: 'rgb(var(--app-table-grid-line-color) / <alpha-value>)',
|
|
116
116
|
},
|
|
117
117
|
'chart-accent': 'rgb(var(--app-chart-accent) / <alpha-value>)',
|
|
118
|
+
'logo-plate': 'rgb(var(--app-logo-plate) / <alpha-value>)',
|
|
118
119
|
'chart-grid': 'rgb(var(--app-chart-grid-color) / <alpha-value>)',
|
|
119
120
|
'input-surface': 'rgb(var(--app-input-bg-color) / <alpha-value>)',
|
|
120
121
|
'input-border': 'rgb(var(--app-input-border-color) / <alpha-value>)',
|