@contentstudio/ui 0.2.4 → 0.2.5
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/index.d.ts +167 -1
- package/dist/index.js +13327 -12496
- package/dist/index.umd.cjs +1620 -1620
- package/dist/style.css +1 -1
- package/dist/tailwind-4747d181.cjs +66 -0
- package/dist/{tailwind-9ac4bb2b.js → tailwind-bbe195b2.js} +772 -521
- package/dist/tailwind.js +1 -1
- package/dist/tailwind.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/tailwind-6a119e86.cjs +0 -66
package/dist/index.d.ts
CHANGED
|
@@ -33,9 +33,11 @@ import { Placement } from '@floating-ui/vue';
|
|
|
33
33
|
import { default as Popover } from './Popover.vue';
|
|
34
34
|
import { default as Progress } from './Progress.vue';
|
|
35
35
|
import { default as Radio } from './Radio.vue';
|
|
36
|
+
import { default as RangeSlider } from '../RangeSlider/RangeSlider.vue';
|
|
36
37
|
import { Ref } from 'vue';
|
|
37
38
|
import { default as SearchInput } from './SearchInput.vue';
|
|
38
39
|
import { default as SegmentedControl } from './SegmentedControl.vue';
|
|
40
|
+
import { default as Slider } from './Slider.vue';
|
|
39
41
|
import { default as SplitButton } from './SplitButton.vue';
|
|
40
42
|
import { default as Switch } from './Switch.vue';
|
|
41
43
|
import { default as Tabs } from './Tabs.vue';
|
|
@@ -238,6 +240,81 @@ export declare interface BadgeProps {
|
|
|
238
240
|
|
|
239
241
|
export declare type BadgeVariant = 'filled' | 'light' | 'outline' | 'gradient' | 'transparent';
|
|
240
242
|
|
|
243
|
+
export declare interface BaseSliderProps {
|
|
244
|
+
/** Component ID */
|
|
245
|
+
id?: string;
|
|
246
|
+
/** Minimum value */
|
|
247
|
+
min?: number;
|
|
248
|
+
/** Maximum value */
|
|
249
|
+
max?: number;
|
|
250
|
+
/** Step increment */
|
|
251
|
+
step?: number;
|
|
252
|
+
/** Precision for decimal values */
|
|
253
|
+
precision?: number;
|
|
254
|
+
/** Label text */
|
|
255
|
+
label?: string;
|
|
256
|
+
/** Description text */
|
|
257
|
+
description?: string;
|
|
258
|
+
/** Error message */
|
|
259
|
+
error?: string;
|
|
260
|
+
/** Whether the component has an error */
|
|
261
|
+
hasError?: boolean;
|
|
262
|
+
/** Whether the component is disabled */
|
|
263
|
+
disabled?: boolean;
|
|
264
|
+
/** Whether the component is readonly */
|
|
265
|
+
readonly?: boolean;
|
|
266
|
+
/** Whether the component is required */
|
|
267
|
+
required?: boolean;
|
|
268
|
+
/** Whether to show an asterisk for required field */
|
|
269
|
+
withAsterisk?: boolean;
|
|
270
|
+
/** Whether to show both error and description */
|
|
271
|
+
showBothErrorAndDescription?: boolean;
|
|
272
|
+
/** Component size */
|
|
273
|
+
size?: ComponentSize;
|
|
274
|
+
/** Component variant */
|
|
275
|
+
variant?: 'default' | 'filled' | 'unstyled';
|
|
276
|
+
/** Border radius */
|
|
277
|
+
radius?: ComponentRadius;
|
|
278
|
+
/** Theme color */
|
|
279
|
+
color?: ThemeColor;
|
|
280
|
+
/** Custom class for the component */
|
|
281
|
+
class?: string;
|
|
282
|
+
/** Marks to display on the slider */
|
|
283
|
+
marks?: SliderMark[];
|
|
284
|
+
/** Whether to restrict selection to marks only */
|
|
285
|
+
restrictToMarks?: boolean;
|
|
286
|
+
/** Label formatter function */
|
|
287
|
+
labelFormatter?: (value: number) => string;
|
|
288
|
+
/** Whether labels should always be visible */
|
|
289
|
+
labelAlwaysOn?: boolean;
|
|
290
|
+
/** Whether the slider is inverted */
|
|
291
|
+
inverted?: boolean;
|
|
292
|
+
/** Whether the slider is vertical */
|
|
293
|
+
vertical?: boolean;
|
|
294
|
+
/** Height for vertical slider */
|
|
295
|
+
height?: string | number;
|
|
296
|
+
/** Width for horizontal slider */
|
|
297
|
+
width?: string | number;
|
|
298
|
+
/** Custom thumb size */
|
|
299
|
+
thumbSize?: number;
|
|
300
|
+
/** Custom track size */
|
|
301
|
+
trackSize?: number;
|
|
302
|
+
/** Whether to show value labels */
|
|
303
|
+
showLabels?: boolean;
|
|
304
|
+
/** Whether to animate transitions */
|
|
305
|
+
animate?: boolean;
|
|
306
|
+
/** Custom styles for different parts */
|
|
307
|
+
styles?: {
|
|
308
|
+
root?: string;
|
|
309
|
+
track?: string;
|
|
310
|
+
range?: string;
|
|
311
|
+
thumb?: string;
|
|
312
|
+
label?: string;
|
|
313
|
+
mark?: string;
|
|
314
|
+
markLabel?: string;
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
|
|
241
318
|
export { Breadcrumbs }
|
|
242
319
|
|
|
243
320
|
export { Button }
|
|
@@ -437,6 +514,12 @@ export { CustomToast }
|
|
|
437
514
|
|
|
438
515
|
export declare type CustomToastType = 'info' | 'warning' | 'success' | 'error' | 'loading' | 'dark' | 'default';
|
|
439
516
|
|
|
517
|
+
/**
|
|
518
|
+
* Default palette mapping from style.css CSS variables
|
|
519
|
+
* These are the RGB triplet values that correspond to the CSS variables in style.css
|
|
520
|
+
*/
|
|
521
|
+
export declare const defaultPalettes: Record<ColorName, Record<Shade, string>>;
|
|
522
|
+
|
|
440
523
|
/**
|
|
441
524
|
* Default theme configuration with semantic colors
|
|
442
525
|
*/
|
|
@@ -1209,6 +1292,47 @@ export declare type RadioVariant = 'filled' | 'outlined';
|
|
|
1209
1292
|
|
|
1210
1293
|
declare type Radius = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
1211
1294
|
|
|
1295
|
+
export { RangeSlider }
|
|
1296
|
+
|
|
1297
|
+
export declare interface RangeSliderEmits {
|
|
1298
|
+
/** Emitted when value changes */
|
|
1299
|
+
'update:modelValue': [value: [number, number]];
|
|
1300
|
+
/** Emitted when value changes (alias for update:modelValue) */
|
|
1301
|
+
'change': [value: [number, number]];
|
|
1302
|
+
/** Emitted when user stops dragging */
|
|
1303
|
+
'changeEnd': [value: [number, number]];
|
|
1304
|
+
/** Emitted when user starts dragging */
|
|
1305
|
+
'changeStart': [value: [number, number]];
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
export declare interface RangeSliderExposed {
|
|
1309
|
+
/** Focus the slider */
|
|
1310
|
+
focus: () => void;
|
|
1311
|
+
/** Blur the slider */
|
|
1312
|
+
blur: () => void;
|
|
1313
|
+
/** Get current value */
|
|
1314
|
+
getValue: () => [number, number];
|
|
1315
|
+
/** Set value programmatically */
|
|
1316
|
+
setValue: (value: [number, number]) => void;
|
|
1317
|
+
/** Reset to default value */
|
|
1318
|
+
reset: () => void;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
export declare interface RangeSliderProps extends BaseSliderProps {
|
|
1322
|
+
/** Model value for v-model binding - array of [min, max] values */
|
|
1323
|
+
modelValue?: [number, number];
|
|
1324
|
+
/** Default value if not controlled */
|
|
1325
|
+
defaultValue?: [number, number];
|
|
1326
|
+
/** Minimum range between thumbs */
|
|
1327
|
+
minRange?: number;
|
|
1328
|
+
/** Maximum range between thumbs */
|
|
1329
|
+
maxRange?: number;
|
|
1330
|
+
/** Whether thumbs can overlap */
|
|
1331
|
+
allowOverlap?: boolean;
|
|
1332
|
+
/** Whether to push thumbs when they overlap */
|
|
1333
|
+
pushOnOverlap?: boolean;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1212
1336
|
export declare type SearchDisplayMode = 'icon-only' | 'icon-placeholder' | 'full-width';
|
|
1213
1337
|
|
|
1214
1338
|
export { SearchInput }
|
|
@@ -1358,6 +1482,46 @@ export declare type Shade = 50 | 100 | 200 | 250 | 300 | 400 | 450 | 500 | 550 |
|
|
|
1358
1482
|
|
|
1359
1483
|
declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1360
1484
|
|
|
1485
|
+
export { Slider }
|
|
1486
|
+
|
|
1487
|
+
export declare interface SliderEmits {
|
|
1488
|
+
/** Emitted when value changes */
|
|
1489
|
+
'update:modelValue': [value: number];
|
|
1490
|
+
/** Emitted when value changes (alias for update:modelValue) */
|
|
1491
|
+
'change': [value: number];
|
|
1492
|
+
/** Emitted when user stops dragging */
|
|
1493
|
+
'changeEnd': [value: number];
|
|
1494
|
+
/** Emitted when user starts dragging */
|
|
1495
|
+
'changeStart': [value: number];
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
export declare interface SliderExposed {
|
|
1499
|
+
/** Focus the slider */
|
|
1500
|
+
focus: () => void;
|
|
1501
|
+
/** Blur the slider */
|
|
1502
|
+
blur: () => void;
|
|
1503
|
+
/** Get current value */
|
|
1504
|
+
getValue: () => number;
|
|
1505
|
+
/** Set value programmatically */
|
|
1506
|
+
setValue: (value: number) => void;
|
|
1507
|
+
/** Reset to default value */
|
|
1508
|
+
reset: () => void;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
export declare interface SliderMark {
|
|
1512
|
+
/** Value of the mark */
|
|
1513
|
+
value: number;
|
|
1514
|
+
/** Label to display for the mark */
|
|
1515
|
+
label?: string;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
export declare interface SliderProps extends BaseSliderProps {
|
|
1519
|
+
/** Model value for v-model binding */
|
|
1520
|
+
modelValue?: number;
|
|
1521
|
+
/** Default value if not controlled */
|
|
1522
|
+
defaultValue?: number;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1361
1525
|
export { SplitButton }
|
|
1362
1526
|
|
|
1363
1527
|
export declare interface SplitButtonProps {
|
|
@@ -1957,7 +2121,9 @@ export declare function useModal(): ModalInstance;
|
|
|
1957
2121
|
* Theme management composable
|
|
1958
2122
|
* Provides reactive theme state and methods for theme manipulation
|
|
1959
2123
|
*/
|
|
1960
|
-
export declare function useTheme(
|
|
2124
|
+
export declare function useTheme(options?: {
|
|
2125
|
+
skipInitialization?: boolean;
|
|
2126
|
+
}): {
|
|
1961
2127
|
theme: ComputedRef< {
|
|
1962
2128
|
primary?: string | undefined;
|
|
1963
2129
|
secondary?: string | undefined;
|