@nexxtmove/ui 1.20.0 → 1.21.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/editor/molecules/EditorRadius/EditorRadius.vue.d.ts +84 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +405 -320
- package/dist/nuxt.js +1 -0
- package/package.json +1 -1
- package/src/components/editor/molecules/EditorRadius/EditorRadius.vue +137 -0
- package/src/components.json +1 -0
- package/src/index.ts +5 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The steps the slider can land on: the radius scale the library actually has,
|
|
3
|
+
* which is the Figma theme tokens plus the Tailwind defaults that sit on top of
|
|
4
|
+
* them -- the theme adds no `--radius-*: initial`, so `rounded-2xl` through
|
|
5
|
+
* `rounded-4xl` and `rounded-full` resolve to Tailwind's own values. The px
|
|
6
|
+
* numbers mirror those values (rem × 16). Known limitation: the theme file is
|
|
7
|
+
* overwritten wholesale by the Figma token sync, and a sync that changes a
|
|
8
|
+
* radius does not reach this list -- it has to be updated by hand.
|
|
9
|
+
*
|
|
10
|
+
* `full` is last and carries no px: it is a pill, not a size on the scale, so
|
|
11
|
+
* the readout names it instead of measuring it.
|
|
12
|
+
*/
|
|
13
|
+
declare const RADIUS_STEPS: readonly [{
|
|
14
|
+
readonly token: "none";
|
|
15
|
+
readonly px: 0;
|
|
16
|
+
}, {
|
|
17
|
+
readonly token: "xs";
|
|
18
|
+
readonly px: 2;
|
|
19
|
+
}, {
|
|
20
|
+
readonly token: "sm";
|
|
21
|
+
readonly px: 4;
|
|
22
|
+
}, {
|
|
23
|
+
readonly token: "md";
|
|
24
|
+
readonly px: 6;
|
|
25
|
+
}, {
|
|
26
|
+
readonly token: "lg";
|
|
27
|
+
readonly px: 8;
|
|
28
|
+
}, {
|
|
29
|
+
readonly token: "xl";
|
|
30
|
+
readonly px: 12;
|
|
31
|
+
}, {
|
|
32
|
+
readonly token: "2xl";
|
|
33
|
+
readonly px: 16;
|
|
34
|
+
}, {
|
|
35
|
+
readonly token: "3xl";
|
|
36
|
+
readonly px: 24;
|
|
37
|
+
}, {
|
|
38
|
+
readonly token: "4xl";
|
|
39
|
+
readonly px: 32;
|
|
40
|
+
}, {
|
|
41
|
+
readonly token: "full";
|
|
42
|
+
readonly px: null;
|
|
43
|
+
}];
|
|
44
|
+
/**
|
|
45
|
+
* The radius as the editor needs it: the Tailwind class itself, so the consumer
|
|
46
|
+
* can put the model value straight on the element it styles.
|
|
47
|
+
*/
|
|
48
|
+
export type EditorRadiusValue = `rounded-${(typeof RADIUS_STEPS)[number]['token']}`;
|
|
49
|
+
/** Overridable copy of the value readout. Every key is optional. */
|
|
50
|
+
export interface EditorRadiusMessages {
|
|
51
|
+
/** Unit shown behind the value. Defaults to `'px'`. */
|
|
52
|
+
unit?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Readout of the last step, `rounded-full`, which has no px size. Defaults to
|
|
55
|
+
* the Dutch `'Rond'`.
|
|
56
|
+
*/
|
|
57
|
+
full?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface NexxtEditorRadiusProps {
|
|
60
|
+
/**
|
|
61
|
+
* Header text of the settings block. Defaults to the Dutch
|
|
62
|
+
* `'Hoekafronding'`; the library has no i18n layer, so a consumer in another
|
|
63
|
+
* language passes its own copy in.
|
|
64
|
+
*/
|
|
65
|
+
label?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Copy of the value readout. Merged per key, so overriding one key keeps the
|
|
68
|
+
* defaults of the others. Copy is never translated inside the component.
|
|
69
|
+
*/
|
|
70
|
+
messages?: EditorRadiusMessages;
|
|
71
|
+
}
|
|
72
|
+
declare const _default: typeof __VLS_export;
|
|
73
|
+
export default _default;
|
|
74
|
+
declare const __VLS_export: import('vue').DefineComponent<NexxtEditorRadiusProps & {
|
|
75
|
+
/** The selected radius, as the Tailwind class to apply. */
|
|
76
|
+
modelValue: EditorRadiusValue;
|
|
77
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
78
|
+
"update:modelValue": (value: "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xs" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-4xl" | "rounded-full") => any;
|
|
79
|
+
}, string, import('vue').PublicProps, Readonly<NexxtEditorRadiusProps & {
|
|
80
|
+
/** The selected radius, as the Tailwind class to apply. */
|
|
81
|
+
modelValue: EditorRadiusValue;
|
|
82
|
+
}> & Readonly<{
|
|
83
|
+
"onUpdate:modelValue"?: ((value: "rounded-none" | "rounded-sm" | "rounded-md" | "rounded-lg" | "rounded-xs" | "rounded-xl" | "rounded-2xl" | "rounded-3xl" | "rounded-4xl" | "rounded-full") => any) | undefined;
|
|
84
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type { NexxtTabItem } from './components/molecules/Tabs/Tabs.vue';
|
|
|
8
8
|
export type { EditorAlignItemsMessages, EditorAlignItemsValue, } from './components/editor/molecules/EditorAlignItems/EditorAlignItems.vue';
|
|
9
9
|
export type { EditorFlexDirectionMessages, EditorFlexDirectionValue, } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
10
10
|
export type { EditorGapMessages, EditorGapValue, } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
11
|
+
export type { EditorRadiusMessages, EditorRadiusValue, } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
11
12
|
export type { EditorJustifyContentMessages, EditorJustifyContentValue, } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
12
13
|
export type { EditorPaddingMessages } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
13
14
|
export type { NexxtTemplateCardContentFeature, NexxtTemplateCardProps, NexxtTemplateCardSlots, } from './components/molecules/TemplateCard/TemplateCard.vue';
|
|
@@ -32,6 +33,7 @@ export { default as NexxtEditorAlignItems } from './components/editor/molecules/
|
|
|
32
33
|
export { default as NexxtEditorFlexDirection } from './components/editor/molecules/EditorFlexDirection/EditorFlexDirection.vue';
|
|
33
34
|
export { default as NexxtEditorGap } from './components/editor/molecules/EditorGap/EditorGap.vue';
|
|
34
35
|
export { default as NexxtEditorJustifyContent } from './components/editor/molecules/EditorJustifyContent/EditorJustifyContent.vue';
|
|
36
|
+
export { default as NexxtEditorRadius } from './components/editor/molecules/EditorRadius/EditorRadius.vue';
|
|
35
37
|
export { default as NexxtEditorPadding } from './components/editor/molecules/EditorPadding/EditorPadding.vue';
|
|
36
38
|
export { default as NexxtEditorSettingsBlock } from './components/editor/atoms/EditorSettingsBlock/EditorSettingsBlock.vue';
|
|
37
39
|
export { default as NexxtEnergyLabel } from './components/atoms/EnergyLabel/EnergyLabel.vue';
|