@codeandfunction/callaloo 2.0.0 → 2.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/assets/styles.css +1 -0
- package/dist/components/Assets/CLIcon.vue.d.ts +16 -0
- package/dist/components/Assets/index.d.ts +3 -0
- package/dist/components/Assets/utils.d.ts +6 -0
- package/dist/components/Buttons/CLA11yButton.vue.d.ts +39 -0
- package/dist/components/Buttons/CLButton.vue.d.ts +258 -0
- package/dist/components/Buttons/index.d.ts +5 -0
- package/dist/components/Buttons/utils.d.ts +8 -0
- package/dist/components/Containers/CLCard.vue.d.ts +48 -0
- package/dist/components/Containers/CLDisclosure.vue.d.ts +78 -0
- package/dist/components/Containers/Carousel/CLCarousel.vue.d.ts +59 -0
- package/dist/components/Containers/Carousel/CLCarouselNavigation.vue.d.ts +21 -0
- package/dist/components/Containers/Carousel/CLCarouselSlide.vue.d.ts +17 -0
- package/dist/components/Containers/index.d.ts +9 -0
- package/dist/components/Containers/utils.d.ts +8 -0
- package/dist/components/Form/CLCheckbox.vue.d.ts +54 -0
- package/dist/components/Form/CLFormField.vue.d.ts +23 -0
- package/dist/components/Form/CLInput.vue.d.ts +87 -0
- package/dist/components/Form/CLInputMessages.vue.d.ts +10 -0
- package/dist/components/Form/CLRadioButton.vue.d.ts +54 -0
- package/dist/components/Form/CLSelect.vue.d.ts +60 -0
- package/dist/components/Form/CLTextArea.vue.d.ts +79 -0
- package/dist/components/Form/index.d.ts +11 -0
- package/dist/components/Form/utils.d.ts +12 -0
- package/dist/components/Indicators/CLBadge.vue.d.ts +24 -0
- package/dist/components/Indicators/CLBanner.vue.d.ts +13 -0
- package/dist/components/Indicators/CLPill.vue.d.ts +29 -0
- package/dist/components/Indicators/index.d.ts +7 -0
- package/dist/components/Indicators/utils.d.ts +9 -0
- package/dist/components/Loading/CLSkeleton.vue.d.ts +20 -0
- package/dist/components/Loading/CLSpinner.vue.d.ts +21 -0
- package/dist/components/Loading/index.d.ts +5 -0
- package/dist/components/Loading/utils.d.ts +6 -0
- package/dist/components/Modals/CLModal.vue.d.ts +46 -0
- package/dist/components/Modals/index.d.ts +3 -0
- package/dist/components/Modals/utils.d.ts +1 -0
- package/dist/components/Navigation/CLLink.vue.d.ts +45 -0
- package/dist/components/Navigation/CLNavLink.vue.d.ts +43 -0
- package/dist/components/Navigation/CLNavSection.vue.d.ts +17 -0
- package/dist/components/Navigation/index.d.ts +7 -0
- package/dist/components/Navigation/utils.d.ts +7 -0
- package/dist/components/Popups/CLDropdownMenu.vue.d.ts +543 -0
- package/dist/components/Popups/CLToast.vue.d.ts +13 -0
- package/dist/components/Popups/index.d.ts +5 -0
- package/dist/components/Popups/utils.d.ts +7 -0
- package/dist/components/Table/CLTable.vue.d.ts +46 -0
- package/dist/components/Table/CLTableBody.vue.d.ts +17 -0
- package/dist/components/Table/CLTableCell.vue.d.ts +41 -0
- package/dist/components/Table/CLTableFooter.vue.d.ts +17 -0
- package/dist/components/Table/CLTableHeader.vue.d.ts +17 -0
- package/dist/components/Table/CLTableNestedCell.vue.d.ts +20 -0
- package/dist/components/Table/CLTableRow.vue.d.ts +22 -0
- package/dist/components/Table/index.d.ts +15 -0
- package/dist/components/Table/utils.d.ts +1 -0
- package/dist/components/Theme/CLThemeProvider.vue.d.ts +28 -0
- package/dist/components/Theme/base-theme.d.ts +41 -0
- package/dist/components/Theme/index.d.ts +3 -0
- package/dist/components/Theme/utils.d.ts +38 -0
- package/dist/components/Typography/CLHeading.vue.d.ts +63 -0
- package/dist/components/Typography/CLText.vue.d.ts +86 -0
- package/dist/components/Typography/index.d.ts +5 -0
- package/dist/components/Typography/utils.d.ts +6 -0
- package/dist/composables/useDropdown.d.ts +14 -0
- package/dist/composables/useEsc.d.ts +9 -0
- package/dist/composables/useHasSlotContent.d.ts +1 -0
- package/dist/constants.d.ts +22 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +5287 -0
- package/dist/types.d.ts +586 -0
- package/dist/utils/helper.d.ts +16 -0
- package/package.json +3 -2
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
export declare enum Align {
|
|
2
|
+
Left = "left",
|
|
3
|
+
Center = "center",
|
|
4
|
+
Right = "right"
|
|
5
|
+
}
|
|
6
|
+
export interface BannerProps {
|
|
7
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
8
|
+
align?: Align;
|
|
9
|
+
/** Sets the aria-label on the banner if the `onClick` property has been set. It should be used when the `onClick` property has been set. */
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
/** A boolean value when set to `true`, adds a border to the banner. */
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
14
|
+
borderRadius?: BorderRadius;
|
|
15
|
+
/** A `boolean` value which dictates the busy state of the Banner. When set to `true`, it utilizes the `<CLSkeleton />` component. */
|
|
16
|
+
busy?: boolean;
|
|
17
|
+
/** Sets the color of the Badge. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
18
|
+
color?: Colors;
|
|
19
|
+
/** Sets the height of the Banner, it's default value is `auto`. */
|
|
20
|
+
height?: string;
|
|
21
|
+
/** The text to be displayed as the message. */
|
|
22
|
+
message?: string;
|
|
23
|
+
/** A callback function to handle click events. It should be used when in conjunction with the `ariaLabel` property. */
|
|
24
|
+
onClick?: GenericFunction;
|
|
25
|
+
/** A callback function to handle when the banner is dismissed. */
|
|
26
|
+
onDismiss?: GenericFunction;
|
|
27
|
+
/** When set to `false` it will not render a Banner with rounded corners. */
|
|
28
|
+
rounded?: boolean;
|
|
29
|
+
/** Sets a custom ID used for unit tests. */
|
|
30
|
+
testId?: string;
|
|
31
|
+
/** Set the text of the title which should be displayed. */
|
|
32
|
+
title?: string;
|
|
33
|
+
/** Sets the width of the Banner, it's default value is `100%`. */
|
|
34
|
+
width?: string;
|
|
35
|
+
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
36
|
+
variant?: ColorVariants;
|
|
37
|
+
}
|
|
38
|
+
export type BlockTextHtmlTags = 'blockquote' | 'dd' | 'div' | 'dl' | 'dt' | 'figcaption' | 'figure' | 'hr' | 'li' | 'menu' | 'ol' | 'p' | 'pre' | 'ul';
|
|
39
|
+
export declare enum BorderRadius {
|
|
40
|
+
Full = "rounded-full",
|
|
41
|
+
Large = "rounded-lg",
|
|
42
|
+
Medium = "rounded-md",
|
|
43
|
+
None = "rounded-none",
|
|
44
|
+
Small = "rounded-sm",
|
|
45
|
+
XLarge = "rounded-xl",
|
|
46
|
+
XXLarge = "rounded-2xl",
|
|
47
|
+
XXXLarge = "rounded-3xl",
|
|
48
|
+
XSmall = "rounded-xs"
|
|
49
|
+
}
|
|
50
|
+
export declare enum ButtonTypes {
|
|
51
|
+
Button = "button",
|
|
52
|
+
Submit = "submit"
|
|
53
|
+
}
|
|
54
|
+
export declare enum CardTypes {
|
|
55
|
+
Tiny = "tiny",
|
|
56
|
+
Compact = "compact",
|
|
57
|
+
Small = "small",
|
|
58
|
+
Medium = "medium",
|
|
59
|
+
Large = "large",
|
|
60
|
+
XLarge = "xlarge"
|
|
61
|
+
}
|
|
62
|
+
export interface CardProps {
|
|
63
|
+
/** When set to `true`, it elelvates the card to indicate it's active state. */
|
|
64
|
+
active?: boolean;
|
|
65
|
+
/** Set the horizontal alignment of content. The property can be one of `CLAlign`, e.g. `CLAlign.Left` */
|
|
66
|
+
align?: Align;
|
|
67
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
68
|
+
borderRadius?: BorderRadius;
|
|
69
|
+
/** A boolean value when set to `true`, adds a border to the card. */
|
|
70
|
+
bordered?: boolean;
|
|
71
|
+
/** A `boolean` value which dictates the busy state of the card. When set to `true`, it utilizes the `<CLSkeleton />` component. */
|
|
72
|
+
busy?: boolean;
|
|
73
|
+
/** Appears below the title. Can be used to provide meta data, e.g. the time and date. */
|
|
74
|
+
byline?: string;
|
|
75
|
+
/** Sets the color of the Card. The property can be one of `CLColors`, e.g. `CLColors.Primary`. */
|
|
76
|
+
color?: Colors;
|
|
77
|
+
/** The `elevated` property displays a shadow to indicate elevation. */
|
|
78
|
+
elevated?: boolean;
|
|
79
|
+
/** A callback function which provides a reference to the button. */
|
|
80
|
+
forwardRef?: (elem: HTMLDivElement) => void;
|
|
81
|
+
/** Sets the height of the Card, it's default value is `auto`. */
|
|
82
|
+
height?: string;
|
|
83
|
+
/** Provide a URL for the entire Card to behave as a link. */
|
|
84
|
+
href?: string;
|
|
85
|
+
/** Provide a URL/relative path to an image to be displayed. */
|
|
86
|
+
image?: string;
|
|
87
|
+
/** Set the alt text for an image, when the image prop has been set. */
|
|
88
|
+
imageAltText?: string;
|
|
89
|
+
/** Set the position of the image. If the row prop is not set, the image can be set to appear to the left or right of the slot content. */
|
|
90
|
+
imageOrder?: Order;
|
|
91
|
+
/** Sets the height of the image, it's default value is `auto`. */
|
|
92
|
+
imageHeight?: string;
|
|
93
|
+
/** Sets the width of the image, it's default value is `auto`. */
|
|
94
|
+
imageWidth?: string;
|
|
95
|
+
/** Indicates how the browser should load the image. Default is `CLLoading.Eager`*/
|
|
96
|
+
imageLoading?: Loading;
|
|
97
|
+
/** A callback function to handle click events. */
|
|
98
|
+
onClick?: GenericFunction;
|
|
99
|
+
/** When set to `false`, it will remove any horizontal and vertical padding of the slot content. */
|
|
100
|
+
padded?: boolean;
|
|
101
|
+
/** When set to `false` it will not render a Card with rounded corners. */
|
|
102
|
+
rounded?: boolean;
|
|
103
|
+
/** Sets where to display the linked URL. */
|
|
104
|
+
target?: LinkTarget;
|
|
105
|
+
/** Sets a custom ID used for unit tests. */
|
|
106
|
+
testId?: string;
|
|
107
|
+
/** Set the text of the title which should be displayed. */
|
|
108
|
+
title?: string;
|
|
109
|
+
/** Set the title type. The property can be one of `CLHeadingTypes`, e.g. `CLHeadingTypes.Title` */
|
|
110
|
+
titleType?: HeadingTypes;
|
|
111
|
+
/** Set the title heading level. The property can be one of `CLHeadingLevels`, e.g. `CLHeadingLevels.H1` */
|
|
112
|
+
titleHLevel?: HeadingLevels;
|
|
113
|
+
/** Sets the Card type. The property can be one of `CLCardTypes`, e.g. `CLCardTypes.Medium`. */
|
|
114
|
+
type?: CardTypes;
|
|
115
|
+
/** Sets the width of the Card, it's default value is `auto`. */
|
|
116
|
+
width?: string;
|
|
117
|
+
/** Sets the color variant. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
118
|
+
variant?: ColorVariants;
|
|
119
|
+
}
|
|
120
|
+
export declare enum Colors {
|
|
121
|
+
Primary = "primary",
|
|
122
|
+
Secondary = "secondary",
|
|
123
|
+
Danger = "danger",
|
|
124
|
+
Info = "info",
|
|
125
|
+
Neutral = "neutral",
|
|
126
|
+
Warning = "warning",
|
|
127
|
+
Success = "success"
|
|
128
|
+
}
|
|
129
|
+
export declare enum ColorVariants {
|
|
130
|
+
Contrast = "contrast",
|
|
131
|
+
Ghost = "ghost",
|
|
132
|
+
Outline = "outline",
|
|
133
|
+
Soft = "soft",
|
|
134
|
+
Solid = "solid"
|
|
135
|
+
}
|
|
136
|
+
export type GenericFunction = (event?: Event) => void;
|
|
137
|
+
export type GenericFocusFunction = (event: FocusEvent) => void;
|
|
138
|
+
export declare enum HeadingLevels {
|
|
139
|
+
H1 = "h1",
|
|
140
|
+
H2 = "h2",
|
|
141
|
+
H3 = "h3",
|
|
142
|
+
H4 = "h4",
|
|
143
|
+
H5 = "h5",
|
|
144
|
+
H6 = "h6"
|
|
145
|
+
}
|
|
146
|
+
export declare enum HeadingTypes {
|
|
147
|
+
Title = "title",
|
|
148
|
+
PageTitle = "pagetitle",
|
|
149
|
+
Section = "section",
|
|
150
|
+
SubSection = "subsection",
|
|
151
|
+
Small = "small",
|
|
152
|
+
Medium = "medium",
|
|
153
|
+
Large = "large",
|
|
154
|
+
XLarge = "xlarge"
|
|
155
|
+
}
|
|
156
|
+
export declare enum IconSizes {
|
|
157
|
+
Tiny = "tiny",
|
|
158
|
+
Small = "small",
|
|
159
|
+
Medium = "medium",
|
|
160
|
+
Large = "large",
|
|
161
|
+
XLarge = "xlarge",
|
|
162
|
+
XXLarge = "xxlarge",
|
|
163
|
+
XXXLarge = "xxxlarge",
|
|
164
|
+
XXXXLarge = "xxxxlarge"
|
|
165
|
+
}
|
|
166
|
+
export declare enum IconNames {
|
|
167
|
+
Activity = "tabler:activity",
|
|
168
|
+
Ai = "tabler:ai",
|
|
169
|
+
Alarm = "tabler:alarm",
|
|
170
|
+
AlertSquare = "tabler:alert-square",
|
|
171
|
+
AlignBoxLeftTop = "tabler:align-box-left-top",
|
|
172
|
+
AlignBoxLeftMiddle = "tabler:align-box-left-middle",
|
|
173
|
+
AlignBoxLeftBottom = "tabler:align-box-left-bottom",
|
|
174
|
+
AlignBoxCenterTop = "tabler:align-box-center-top",
|
|
175
|
+
AlignBoxCenterMiddle = "tabler:align-box-center-middle",
|
|
176
|
+
AlignBoxCenterBottom = "tabler:align-box-center-bottom",
|
|
177
|
+
AlignBoxRightTop = "tabler:align-box-right-top",
|
|
178
|
+
AlignBoxRightMiddle = "tabler:align-box-right-middle",
|
|
179
|
+
AlignBoxRightBottom = "tabler:align-box-right-bottom",
|
|
180
|
+
AlignCenter = "tabler:align-center",
|
|
181
|
+
AlignLeft = "tabler:align-left",
|
|
182
|
+
AlignRight = "tabler:align-right",
|
|
183
|
+
AlignJustified = "tabler:align-justified",
|
|
184
|
+
Apps = "tabler:apps",
|
|
185
|
+
Archive = "tabler:archive",
|
|
186
|
+
ArrowBackUp = "tabler:arrow-back-up",
|
|
187
|
+
ArrowForwardUp = "tabler:arrow-forward-up",
|
|
188
|
+
ArrowsMove = "tabler:arrows-move",
|
|
189
|
+
ArrowBigUpLine = "tabler:arrow-big-up-line",
|
|
190
|
+
ArrowBigDownLine = "tabler:arrow-big-down-line",
|
|
191
|
+
ArrowBack = "tabler:arrow-back",
|
|
192
|
+
ArrowDown = "tabler:arrow-down",
|
|
193
|
+
ArrowForward = "tabler:arrow-forward",
|
|
194
|
+
ArrowLeft = "tabler:arrow-left",
|
|
195
|
+
ArrowRight = "tabler:arrow-right",
|
|
196
|
+
ArrowUp = "tabler:arrow-up",
|
|
197
|
+
ArrowNarrowDown = "tabler:arrow-narrow-down",
|
|
198
|
+
ArrowNarrowLeft = "tabler:arrow-narrow-left",
|
|
199
|
+
ArrowNarrowRight = "tabler:arrow-narrow-right",
|
|
200
|
+
ArrowNarrowUp = "tabler:arrow-narrow-up",
|
|
201
|
+
ArrowsDiagonal = "tabler:arrows-diagonal",
|
|
202
|
+
ArrowsMaximize = "tabler:arrows-maximize",
|
|
203
|
+
ArrowsMinimize = "tabler:arrows-minimize",
|
|
204
|
+
AtSign = "tabler:at",
|
|
205
|
+
Auth2fa = "tabler:auth-2fa",
|
|
206
|
+
Backspace = "tabler:backspace",
|
|
207
|
+
Book = "tabler:book",
|
|
208
|
+
BorderCorners = "tabler:border-corners",
|
|
209
|
+
BoxMargin = "tabler:box-margin",
|
|
210
|
+
Brush = "tabler:brush",
|
|
211
|
+
BrandApple = "tabler:brand-apple",
|
|
212
|
+
BrandAws = "tabler:brand-aws",
|
|
213
|
+
BrandCloudflare = "tabler:brand-cloudflare",
|
|
214
|
+
BrandFacebook = "tabler:brand-facebook-filled",
|
|
215
|
+
BrandGitlab = "tabler:brand-gitlab",
|
|
216
|
+
BrandGithub = "tabler:brand-github",
|
|
217
|
+
BrandGoogle = "tabler:brand-google-filled",
|
|
218
|
+
BrandInstagram = "tabler:brand-instagram",
|
|
219
|
+
BrandLinkedIn = "tabler:brand-linkedin",
|
|
220
|
+
BrandMastercard = "tabler:brand-mastercard",
|
|
221
|
+
BrandNpm = "tabler:brand-npm",
|
|
222
|
+
BrandNuxt = "tabler:brand-nuxt",
|
|
223
|
+
BrandReact = "tabler:brand-react",
|
|
224
|
+
BrandReactNative = "tabler:brand-react-native",
|
|
225
|
+
BrandSpotify = "tabler:brand-spotify",
|
|
226
|
+
BrandTidal = "tabler:brand-tidal",
|
|
227
|
+
BrandTikTok = "tabler:brand-tiktok",
|
|
228
|
+
BrandTwitter = "tabler:brand-twitter-filled",
|
|
229
|
+
BrandVercel = "tabler:brand-vercel",
|
|
230
|
+
BrandVisa = "tabler:brand-visa",
|
|
231
|
+
BrandVue = "tabler:brand-vue",
|
|
232
|
+
BrandWhatsApp = "tabler:brand-whatsapp",
|
|
233
|
+
BrandX = "tabler:brand-x",
|
|
234
|
+
BrandYouTube = "tabler:brand-youtube-filled",
|
|
235
|
+
Broadcast = "tabler:broadcast",
|
|
236
|
+
Browser = "tabler:browser",
|
|
237
|
+
Calendar = "tabler:calendar",
|
|
238
|
+
Calculator = "tabler:calculator",
|
|
239
|
+
CaretDown = "tabler:caret-down",
|
|
240
|
+
CaretLeft = "tabler:caret-left",
|
|
241
|
+
CaretRight = "tabler:caret-right",
|
|
242
|
+
CaretUp = "tabler:caret-up",
|
|
243
|
+
CarouselHorizontal = "tabler:carousel-horizontal",
|
|
244
|
+
Check = "tabler:check",
|
|
245
|
+
ChevronLeft = "tabler:chevron-left",
|
|
246
|
+
ChevronRight = "tabler:chevron-right",
|
|
247
|
+
ChevronUp = "tabler:chevron-up",
|
|
248
|
+
ChevronDown = "tabler:chevron-down",
|
|
249
|
+
CircleCheck = "tabler:circle-check",
|
|
250
|
+
CircleNumber0 = "tabler:circle-number-0",
|
|
251
|
+
CircleNumber1 = "tabler:circle-number-1",
|
|
252
|
+
CircleNumber2 = "tabler:circle-number-2",
|
|
253
|
+
CircleNumber3 = "tabler:circle-number-3",
|
|
254
|
+
CircleNumber4 = "tabler:circle-number-4",
|
|
255
|
+
CircleNumber5 = "tabler:circle-number-5",
|
|
256
|
+
CircleNumber6 = "tabler:circle-number-6",
|
|
257
|
+
CircleNumber7 = "tabler:circle-number-7",
|
|
258
|
+
CircleNumber8 = "tabler:circle-number-8",
|
|
259
|
+
CircleNumber9 = "tabler:circle-number-9",
|
|
260
|
+
Click = "tabler:click",
|
|
261
|
+
ClipboardCopy = "tabler:clipboard-copy",
|
|
262
|
+
ClipboardText = "tabler:clipboard-text",
|
|
263
|
+
Clock = "tabler:clock",
|
|
264
|
+
Clock2 = "tabler:clock-2",
|
|
265
|
+
Cloud = "tabler:cloud",
|
|
266
|
+
CloudComputing = "tabler:cloud-computing",
|
|
267
|
+
CloudDataConnection = "tabler:cloud-data-connection",
|
|
268
|
+
CloudUpload = "tabler:cloud-upload",
|
|
269
|
+
Code = "tabler:code",
|
|
270
|
+
Columns1 = "tabler:columns-1",
|
|
271
|
+
Columns2 = "tabler:columns-2",
|
|
272
|
+
Columns3 = "tabler:columns-3",
|
|
273
|
+
Command = "tabler:command",
|
|
274
|
+
Components = "tabler:components",
|
|
275
|
+
Contrast = "tabler:contrast",
|
|
276
|
+
Copy = "tabler:copy",
|
|
277
|
+
CreditCard = "tabler:credit-card",
|
|
278
|
+
Dasboard = "tabler:dashboard",
|
|
279
|
+
Database = "tabler:database",
|
|
280
|
+
DatabaseExport = "tabler:database-export",
|
|
281
|
+
Delete = "tabler:x",
|
|
282
|
+
Devices = "tabler:devices",
|
|
283
|
+
DeviceDesktop = "tabler:device-desktop",
|
|
284
|
+
DeviceGamepad = "tabler:device-gamepad",
|
|
285
|
+
DeviceMobile = "tabler:device-mobile",
|
|
286
|
+
DeviceTablet = "tabler:device-tablet",
|
|
287
|
+
DeviceTv = "tabler:device-tv",
|
|
288
|
+
Dialpad = "tabler:dialpad",
|
|
289
|
+
Download = "tabler:download",
|
|
290
|
+
DragDrop = "tabler:drag-drop",
|
|
291
|
+
EditItem = "tabler:edit-circle",
|
|
292
|
+
EditPencil = "tabler:edit",
|
|
293
|
+
Email = "tabler:mail",
|
|
294
|
+
ExternalLink = "tabler:external-link",
|
|
295
|
+
Eye = "tabler:eye",
|
|
296
|
+
EyeOff = "tabler:eye-off",
|
|
297
|
+
FaceId = "tabler:face-id",
|
|
298
|
+
FileText = "tabler:file-text",
|
|
299
|
+
FileTypeCss = "tabler:file-type-css",
|
|
300
|
+
FileTypeCsv = "tabler:file-type-csv",
|
|
301
|
+
FileTypeHtml = "tabler:file-type-html",
|
|
302
|
+
FileTypePng = "tabler:file-type-png",
|
|
303
|
+
FileTypeJpg = "tabler:file-type-jpg",
|
|
304
|
+
FileTypeJs = "tabler:file-type-js",
|
|
305
|
+
FileTypeJsx = "tabler:file-type-jsx",
|
|
306
|
+
FileTypeSvg = "tabler:file-type-svg",
|
|
307
|
+
FileTypeTs = "tabler:file-type-ts",
|
|
308
|
+
FileTypeVue = "tabler:file-type-vue",
|
|
309
|
+
Folder = "tabler:folder",
|
|
310
|
+
Forms = "tabler:forms",
|
|
311
|
+
Frame = "tabler:frame",
|
|
312
|
+
Hanger = "tabler:hanger",
|
|
313
|
+
HandStop = "tabler:hand-stop",
|
|
314
|
+
Heading = "tabler:heading",
|
|
315
|
+
Help = "tabler:help",
|
|
316
|
+
HelpCircle = "tabler:help-circle",
|
|
317
|
+
HelpSmall = "tabler:help-small",
|
|
318
|
+
Html = "tabler:html",
|
|
319
|
+
Image = "tabler:photo",
|
|
320
|
+
InfoCircle = "tabler:info-circle",
|
|
321
|
+
InfoSmall = "tabler:info-small",
|
|
322
|
+
GripHorizontal = "tabler:grip-horizontal",
|
|
323
|
+
GripVertical = "tabler:grip-vertical",
|
|
324
|
+
Keyboard = "tabler:keyboard",
|
|
325
|
+
Label = "tabler:label",
|
|
326
|
+
Layers = "tabler:layers-subtract",
|
|
327
|
+
Layout = "tabler:layout",
|
|
328
|
+
LayoutBottomBar = "tabler:layout-bottombar",
|
|
329
|
+
LayoutDashboard = "tabler:layout-dashboard",
|
|
330
|
+
LayoutGrid = "tabler:layout-grid",
|
|
331
|
+
LayoutNavbar = "tabler:layout-navbar",
|
|
332
|
+
LayoutRows = "tabler:layout-rows",
|
|
333
|
+
LayoutSidebar = "tabler:layout-sidebar",
|
|
334
|
+
LayoutSidebarRight = "tabler:layout-sidebar-right",
|
|
335
|
+
Link = "tabler:link",
|
|
336
|
+
List = "tabler:list",
|
|
337
|
+
ListNumbers = "tabler:list-numbers",
|
|
338
|
+
ListTree = "tabler:list-tree",
|
|
339
|
+
LoadBalancer = "tabler:load-balancer",
|
|
340
|
+
LogIn = "tabler:login",
|
|
341
|
+
LogOut = "tabler:logout",
|
|
342
|
+
Logs = "tabler:logs",
|
|
343
|
+
Palette = "tabler:palette",
|
|
344
|
+
Paint = "tabler:paint",
|
|
345
|
+
PhotoScan = "tabler:photo-scan",
|
|
346
|
+
Marquee = "tabler:marquee",
|
|
347
|
+
MarqueeOff = "tabler:marquee-off",
|
|
348
|
+
Mail = "tabler:mail",
|
|
349
|
+
Maximize = "tabler:maximize",
|
|
350
|
+
Menu = "tabler:menu-2",
|
|
351
|
+
Message = "tabler:message",
|
|
352
|
+
MessageDots = "tabler:message-dots",
|
|
353
|
+
MoodDollar = "tabler:mood-dollar",
|
|
354
|
+
MoodHeart = "tabler:mood-heart",
|
|
355
|
+
MoodKid = "tabler:mood-kid",
|
|
356
|
+
MoodNerd = "tabler:mood-nerd",
|
|
357
|
+
MoodNeutral = "tabler:mood-neutral",
|
|
358
|
+
MoodPuzzled = "tabler:mood-puzzled",
|
|
359
|
+
MoodSadSquint = "tabler:mood-sad-squint",
|
|
360
|
+
MoodSmile = "tabler:mood-smile",
|
|
361
|
+
MoodTongue = "tabler:mood-tongue",
|
|
362
|
+
MoodTongueWink = "tabler:mood-tongue-wink",
|
|
363
|
+
MoodTongueWink2 = "tabler:mood-tongue-wink-2",
|
|
364
|
+
MoodWink2 = "tabler:mood-wink-2",
|
|
365
|
+
MoodWrrr = "tabler:mood-wrrr",
|
|
366
|
+
Moon = "tabler:moon",
|
|
367
|
+
Mouse = "tabler:mouse",
|
|
368
|
+
MoreHorizontal = "tabler:dots",
|
|
369
|
+
MoreVertical = "tabler:dots-vertical",
|
|
370
|
+
Movie = "tabler:movie",
|
|
371
|
+
Music = "tabler:music",
|
|
372
|
+
NewSection = "tabler:new-section",
|
|
373
|
+
PlusCircle = "tabler:circle-plus",
|
|
374
|
+
Plus = "tabler:plus",
|
|
375
|
+
Pointer = "tabler:pointer",
|
|
376
|
+
Rectangle = "tabler:rectangle",
|
|
377
|
+
Refresh = "tabler:refresh",
|
|
378
|
+
Restore = "tabler:restore",
|
|
379
|
+
Rocket = "tabler:rocket",
|
|
380
|
+
RowInsertTop = "tabler:row-insert-top",
|
|
381
|
+
RowInsertBottom = "tabler:row-insert-bottom",
|
|
382
|
+
RowRemove = "tabler:row-remove",
|
|
383
|
+
Rss = "tabler:rss",
|
|
384
|
+
Scoreboard = "tabler:scoreboard",
|
|
385
|
+
Seo = "tabler:seo",
|
|
386
|
+
ShoppingCart = "tabler:shopping-cart",
|
|
387
|
+
ShieldCheck = "tabler:shield-check",
|
|
388
|
+
Search = "tabler:search",
|
|
389
|
+
Section = "tabler:section",
|
|
390
|
+
Select = "tabler:select",
|
|
391
|
+
Server = "tabler:server",
|
|
392
|
+
Server2 = "tabler:server-2",
|
|
393
|
+
Settings = "tabler:settings",
|
|
394
|
+
Share = "tabler:share",
|
|
395
|
+
Share2 = "tabler:share-2",
|
|
396
|
+
Share3 = "tabler:share-3",
|
|
397
|
+
Sliders = "tabler:adjustments",
|
|
398
|
+
Square = "tabler:square",
|
|
399
|
+
SquareCheck = "tabler:square-check",
|
|
400
|
+
SquarePlus = "tabler:square-plus",
|
|
401
|
+
Stack = "tabler:stack",
|
|
402
|
+
Stack2 = "tabler:stack-2",
|
|
403
|
+
Stack3 = "tabler:stack-3",
|
|
404
|
+
Sun = "tabler:sun",
|
|
405
|
+
Table = "tabler:table",
|
|
406
|
+
Ticket = "tabler:ticket",
|
|
407
|
+
Template = "tabler:template",
|
|
408
|
+
Terminal = "tabler:terminal",
|
|
409
|
+
Terminal2 = "tabler:terminal-2",
|
|
410
|
+
TextSize = "tabler:text-size",
|
|
411
|
+
TrashCan = "tabler:trash",
|
|
412
|
+
Typography = "tabler:typography",
|
|
413
|
+
Upload = "tabler:upload",
|
|
414
|
+
User = "tabler:user",
|
|
415
|
+
Users = "tabler:users",
|
|
416
|
+
UserCircle = "tabler:user-circle",
|
|
417
|
+
UsersGroup = "tabler:users-group",
|
|
418
|
+
UsersMinus = "tabler:users-minus",
|
|
419
|
+
UsersPlus = "tabler:users-plus",
|
|
420
|
+
UserSquareRounded = "tabler:user-square-rounded",
|
|
421
|
+
Video = "tabler:video",
|
|
422
|
+
WindowMaximize = "tabler:window-maximize",
|
|
423
|
+
WindowMinimize = "tabler:window-minimize",
|
|
424
|
+
WordlWww = "tabler:world-www"
|
|
425
|
+
}
|
|
426
|
+
export type InlineTextHtmlTags = 'a' | 'abbr' | 'b' | 'bdi' | 'bdo' | 'br' | 'cite' | 'code' | 'data' | 'dfn' | 'em' | 'i' | 'kbd' | 'mark' | 'q' | 'rp' | 'rt' | 'ruby' | 's' | 'samp' | 'small' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'u' | 'var' | 'wbr';
|
|
427
|
+
export declare enum InputTypes {
|
|
428
|
+
Color = "color",
|
|
429
|
+
Date = "date",
|
|
430
|
+
DateTimeLocal = "datetime-local",
|
|
431
|
+
Decimal = "decimal",
|
|
432
|
+
Email = "email",
|
|
433
|
+
Hidden = "hidden",
|
|
434
|
+
File = "file",
|
|
435
|
+
None = "none",
|
|
436
|
+
Number = "number",
|
|
437
|
+
Password = "password",
|
|
438
|
+
Search = "search",
|
|
439
|
+
Tel = "tel",
|
|
440
|
+
Text = "text",
|
|
441
|
+
Time = "time",
|
|
442
|
+
Url = "url"
|
|
443
|
+
}
|
|
444
|
+
export declare enum Loading {
|
|
445
|
+
Eager = "eager",
|
|
446
|
+
Lazy = "lazy"
|
|
447
|
+
}
|
|
448
|
+
export declare enum LinkTarget {
|
|
449
|
+
Blank = "_blank",
|
|
450
|
+
Self = "_self"
|
|
451
|
+
}
|
|
452
|
+
export declare enum MessageType {
|
|
453
|
+
Danger = "danger",
|
|
454
|
+
Default = "default",
|
|
455
|
+
Success = "success",
|
|
456
|
+
Warning = "warning"
|
|
457
|
+
}
|
|
458
|
+
export declare enum Mode {
|
|
459
|
+
Dark = "dark",
|
|
460
|
+
Light = "light"
|
|
461
|
+
}
|
|
462
|
+
export interface NavItem {
|
|
463
|
+
/** Sets the aria-label on the NavLink element. */
|
|
464
|
+
ariaLabel?: string;
|
|
465
|
+
/** Sets the external attribute on the NavLink element. If set, it adds an icon indicating that the link will open a new tab/window. */
|
|
466
|
+
/** Sets the color of the NavLink element. The property can be one of `CLColors`, e.g. `CLColors.Default` */
|
|
467
|
+
color?: Colors;
|
|
468
|
+
external?: boolean;
|
|
469
|
+
/** Sets the href attribute on the NavLink element. */
|
|
470
|
+
href?: string;
|
|
471
|
+
/** Sets the ID attribute on the NavLink element. */
|
|
472
|
+
id: string;
|
|
473
|
+
/** The text to be displayed as the label. */
|
|
474
|
+
label: string;
|
|
475
|
+
/** A callback function to handle click events. */
|
|
476
|
+
onClick?: GenericFunction;
|
|
477
|
+
/** Sets the rel attribute on the NavLink element. */
|
|
478
|
+
rel?: string;
|
|
479
|
+
/** Sets the target attribute on the NavLink element. The property can be one of `CLLinkTarget`, e.g. `CLLinkTarget.Self` */
|
|
480
|
+
target?: LinkTarget;
|
|
481
|
+
}
|
|
482
|
+
export interface Option {
|
|
483
|
+
label: string;
|
|
484
|
+
value: string | number | null;
|
|
485
|
+
}
|
|
486
|
+
export declare enum Order {
|
|
487
|
+
After = "after",
|
|
488
|
+
Before = "before"
|
|
489
|
+
}
|
|
490
|
+
export declare enum Orientation {
|
|
491
|
+
Horizontal = "horizontal",
|
|
492
|
+
Vertical = "vertical"
|
|
493
|
+
}
|
|
494
|
+
export declare enum PaginationType {
|
|
495
|
+
Dots = "dots",
|
|
496
|
+
Hidden = "hidden",
|
|
497
|
+
Numbered = "numbered"
|
|
498
|
+
}
|
|
499
|
+
export interface Palette {
|
|
500
|
+
primary?: Shades;
|
|
501
|
+
secondary?: Shades;
|
|
502
|
+
neutral?: Shades;
|
|
503
|
+
danger?: Shades;
|
|
504
|
+
warning?: Shades;
|
|
505
|
+
success?: Shades;
|
|
506
|
+
info?: Shades;
|
|
507
|
+
}
|
|
508
|
+
export declare enum Placement {
|
|
509
|
+
Bottom = "bottom",
|
|
510
|
+
BottomEnd = "bottom-end",
|
|
511
|
+
BottomStart = "bottom-start",
|
|
512
|
+
Left = "left",
|
|
513
|
+
LeftEnd = "left-end",
|
|
514
|
+
LeftStart = "left-start",
|
|
515
|
+
Right = "right",
|
|
516
|
+
RightEnd = "right-end",
|
|
517
|
+
RightStart = "right-start",
|
|
518
|
+
Top = "top",
|
|
519
|
+
TopEnd = "top-end",
|
|
520
|
+
TopStart = "top-start"
|
|
521
|
+
}
|
|
522
|
+
export declare enum Position {
|
|
523
|
+
Absolute = "absolute",
|
|
524
|
+
Relative = "relative"
|
|
525
|
+
}
|
|
526
|
+
export declare enum Sizes {
|
|
527
|
+
Tiny = "tiny",
|
|
528
|
+
Small = "small",
|
|
529
|
+
Medium = "medium",
|
|
530
|
+
Large = "large",
|
|
531
|
+
XLarge = "xlarge"
|
|
532
|
+
}
|
|
533
|
+
export declare enum TableTypes {
|
|
534
|
+
Condensed = "condensed",
|
|
535
|
+
Default = "default",
|
|
536
|
+
Plain = "plain"
|
|
537
|
+
}
|
|
538
|
+
export type TextHtmlTags = BlockTextHtmlTags | InlineTextHtmlTags;
|
|
539
|
+
export declare enum TextTypes {
|
|
540
|
+
Body = "body",
|
|
541
|
+
Summary = "summary",
|
|
542
|
+
Tiny = "tiny",
|
|
543
|
+
Small = "small",
|
|
544
|
+
Medium = "medium",
|
|
545
|
+
Large = "large",
|
|
546
|
+
XLarge = "xlarge"
|
|
547
|
+
}
|
|
548
|
+
export type Shades = Record<number, string>;
|
|
549
|
+
export interface ThemeConfig {
|
|
550
|
+
colors?: Palette;
|
|
551
|
+
darkMode: boolean;
|
|
552
|
+
fontFamily?: string;
|
|
553
|
+
mode?: Mode;
|
|
554
|
+
radius?: BorderRadius;
|
|
555
|
+
}
|
|
556
|
+
export type PaletteKeys = keyof Palette;
|
|
557
|
+
export interface ToastProps {
|
|
558
|
+
/** The action label text to be displayed. */
|
|
559
|
+
actionLabel?: string;
|
|
560
|
+
/** The border radius size. The property can be one of `CLBorderRadius`, e.g. `CLBorderRadius.Medium`. */
|
|
561
|
+
borderRadius?: BorderRadius;
|
|
562
|
+
/** Sets the color of the buttons and icons. The property can be one of `CLColors`, e.g. `CLColors.Default` */
|
|
563
|
+
color?: Colors;
|
|
564
|
+
/** Time in seconds e.g 5 = 5 seconds */
|
|
565
|
+
dismissTimer?: number;
|
|
566
|
+
/** The icon to be displayed. The property can be one of `CLIconNames`, e.g. `CLIconNames.Info`. */
|
|
567
|
+
icon?: IconNames;
|
|
568
|
+
/** The size of the icon. The property can be one of `CLSizes`, e.g. `CLSizes.Medium */
|
|
569
|
+
iconSize?: IconSizes;
|
|
570
|
+
/** The text to be displayed as the message. */
|
|
571
|
+
message?: string;
|
|
572
|
+
/** A callback function to handle click events. */
|
|
573
|
+
onAction?: GenericFunction;
|
|
574
|
+
/** A callback function to handle when the toast is dismissed. */
|
|
575
|
+
onDismiss: GenericFunction;
|
|
576
|
+
/** When set to `false` it will not render a Toast with rounded corners. */
|
|
577
|
+
rounded?: boolean;
|
|
578
|
+
/** Sets a custom ID used for unit tests. */
|
|
579
|
+
testId?: string;
|
|
580
|
+
/** Set the text of the title which should be displayed. */
|
|
581
|
+
title?: string;
|
|
582
|
+
/** Sets the color variant o the buttons and icons. The property can be on of `CLColorVariants`, e.g `CLColorVariants.Soft`. */
|
|
583
|
+
variant?: ColorVariants;
|
|
584
|
+
/** Sets the width of the Toast, it's default value is `24rem`. */
|
|
585
|
+
width?: string;
|
|
586
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IAnimate {
|
|
2
|
+
start: (duration: number, callbackFn: (elapsedTime: number) => void) => void;
|
|
3
|
+
stop: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const animate: () => IAnimate;
|
|
6
|
+
interface ChildIsVisibleInput {
|
|
7
|
+
parent: HTMLElement;
|
|
8
|
+
child: HTMLElement;
|
|
9
|
+
threshold?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const childIsVisible: ({ parent, child, threshold }: ChildIsVisibleInput) => boolean;
|
|
12
|
+
export declare const debounce: (fn: () => void, ms?: number) => (this: any, ...args: any | any[]) => void;
|
|
13
|
+
export declare const isBrowser: boolean;
|
|
14
|
+
export declare const isDarkMode: () => boolean;
|
|
15
|
+
export declare const getMaxZIndex: () => number;
|
|
16
|
+
export {};
|
package/package.json
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"ui components",
|
|
18
18
|
"vuejs"
|
|
19
19
|
],
|
|
20
|
-
"version": "2.
|
|
20
|
+
"version": "2.1.0",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build:lib": "yarn export:icons && vite build
|
|
24
|
+
"build:lib": "yarn export:icons && vite build",
|
|
25
25
|
"build:watch": "vite build --watch",
|
|
26
26
|
"build:web": "yarn export:icons && yarn storybook build",
|
|
27
27
|
"coverage": "vitest run --coverage",
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
"@iconify/tools": "^4.1.1",
|
|
71
71
|
"@iconify/types": "^2.0.0",
|
|
72
72
|
"@semantic-release/changelog": "^6.0.3",
|
|
73
|
+
"@semantic-release/git": "^10.0.1",
|
|
73
74
|
"@semantic-release/gitlab": "^13.2.4",
|
|
74
75
|
"@storybook/addon-a11y": "^8.5.1",
|
|
75
76
|
"@storybook/addon-essentials": "^8.5.1",
|