@nexxtmove/ui 1.53.0 → 1.54.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/components/atoms/EnergyLabel/EnergyLabel.vue.d.ts +16 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1086 -1086
- package/dist/ui.css +2 -1
- package/package.json +1 -1
- package/src/components/atoms/EnergyLabel/EnergyLabel.vue +50 -10
- package/src/index.ts +1 -0
- package/src/nuxt.ts +6 -2
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
/** An energy-label grade, from `A++++` down to `G`. */
|
|
1
2
|
export type EnergyLabelLetter = 'A++++' | 'A+++' | 'A++' | 'A+' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
2
|
-
|
|
3
|
+
/**
|
|
4
|
+
* The swatch colour per grade, as an uppercase hex string. Every `A` grade
|
|
5
|
+
* shares one green. Key order runs from best to worst, so
|
|
6
|
+
* `Object.keys(ENERGY_LABEL_COLORS)` lists the grades in display order.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ENERGY_LABEL_COLORS: Readonly<Record<EnergyLabelLetter, string>>;
|
|
9
|
+
/**
|
|
10
|
+
* Size, padding, margin and typography follow from classes on the component:
|
|
11
|
+
* a font-size class scales the whole label, arrow included. The arrow always
|
|
12
|
+
* takes the label's full height. When you raise the vertical padding, raise
|
|
13
|
+
* the right margin by the same amount so the arrow keeps its room.
|
|
14
|
+
*/
|
|
15
|
+
export interface NexxtEnergyLabelProps {
|
|
16
|
+
/** The grade to show. Lowercase input is accepted and shown in uppercase. */
|
|
3
17
|
label: EnergyLabelLetter | Lowercase<EnergyLabelLetter>;
|
|
4
18
|
}
|
|
5
|
-
declare const __VLS_export: import('vue').DefineComponent<NexxtEnergyLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NexxtEnergyLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
19
|
declare const _default: typeof __VLS_export;
|
|
7
20
|
export default _default;
|
|
21
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEnergyLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NexxtEnergyLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { Placement } from '@floating-ui/vue';
|
|
2
2
|
export { EVENT_CONFIG_MAP, PHASE_MAP } from './components/molecules/TimelineEvent/TimelineTypes';
|
|
3
3
|
export type { TimelineEvent, TimelinePhase, TimelineResponse, } from './components/molecules/TimelineEvent/TimelineTypes';
|
|
4
|
+
export { ENERGY_LABEL_COLORS } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|
|
4
5
|
export type { EnergyLabelLetter } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|
|
5
6
|
export type { IconType, NexxtIconName } from './components/atoms/Icon/Icon.vue';
|
|
6
7
|
export type { CustomIconName } from './components/atoms/Icon/customIcons';
|