@customafk/lunas-ui 0.0.0-s → 0.0.0-u

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.
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { I as IIconProps } from '../types-BUTht_HJ.js';
2
+ import { I as IIconProps } from '../types-DdUenP1k.js';
3
3
  import 'react';
4
4
 
5
5
  declare const AvatarIcon: {
@@ -100,6 +100,7 @@ interface IBoxProps extends HTMLAttributes<HTMLDivElement> {
100
100
  }
101
101
  declare const Box: React.MemoExoticComponent<React.ForwardRefExoticComponent<IBoxProps & React.RefAttributes<HTMLDivElement>>>;
102
102
 
103
+ type TSpace = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
103
104
  interface IFlexProps extends HTMLAttributes<HTMLDivElement> {
104
105
  /**
105
106
  * Is direction of the flex vertical,
@@ -142,61 +143,61 @@ interface IFlexProps extends HTMLAttributes<HTMLDivElement> {
142
143
  *
143
144
  * Default is `2`
144
145
  */
145
- readonly gap?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
146
+ readonly gap?: TSpace | Omit<string, TSpace>;
146
147
  /**
147
148
  * Set the horizontal gap between the elements
148
149
  *
149
150
  * Default is `0`
150
151
  */
151
- readonly gapX?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
152
+ readonly gapX?: TSpace | Omit<string, TSpace>;
152
153
  /**
153
154
  * Set the vertical gap between the elements
154
155
  *
155
156
  * Default is `0`
156
157
  */
157
- readonly gapY?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
158
+ readonly gapY?: TSpace | Omit<string, TSpace>;
158
159
  /**
159
160
  * Set the padding for the component
160
161
  *
161
162
  * Default is `2`
162
163
  */
163
- readonly p?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
164
+ readonly p?: TSpace | Omit<string, TSpace>;
164
165
  /**
165
166
  * Set the horizontal padding for the component
166
167
  *
167
168
  * Default is `0`
168
169
  */
169
- readonly px?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
170
+ readonly px?: TSpace | Omit<string, TSpace>;
170
171
  /**
171
172
  * Set the vertical padding for the component
172
173
  *
173
174
  * Default is `0`
174
175
  */
175
- readonly py?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
176
+ readonly py?: TSpace | Omit<string, TSpace>;
176
177
  /**
177
178
  * Set the top padding for the component
178
179
  *
179
180
  * Default is `0`
180
181
  */
181
- readonly pt?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
182
+ readonly pt?: TSpace | Omit<string, TSpace>;
182
183
  /**
183
184
  * Set the right padding for the component
184
185
  *
185
186
  * Default is `0`
186
187
  */
187
- readonly pr?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
188
+ readonly pr?: TSpace | Omit<string, TSpace>;
188
189
  /**
189
190
  * Set the bottom padding for the component
190
191
  *
191
192
  * Default is `0`
192
193
  */
193
- readonly pb?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
194
+ readonly pb?: TSpace | Omit<string, TSpace>;
194
195
  /**
195
196
  * Set the left padding for the component
196
197
  *
197
198
  * Default is `0`
198
199
  */
199
- readonly pl?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
200
+ readonly pl?: TSpace | Omit<string, TSpace>;
200
201
  /**
201
202
  * Set the position for the component
202
203
  * Default is `relative`
@@ -189,134 +189,134 @@ import { cva as cva2 } from "class-variance-authority";
189
189
  var commonLayout = cva2("", {
190
190
  variants: {
191
191
  p: {
192
- 0: "p-0",
193
- 1: "p-1",
194
- 2: "p-2",
195
- 3: "p-3",
196
- 4: "p-4",
197
- 5: "p-5",
198
- 6: "p-6",
199
- 7: "p-7",
200
- 8: "p-8",
201
- 9: "p-9",
202
- 10: "p-10"
192
+ "0": "p-0",
193
+ "1": "p-1",
194
+ "2": "p-2",
195
+ "3": "p-3",
196
+ "4": "p-4",
197
+ "5": "p-5",
198
+ "6": "p-6",
199
+ "7": "p-7",
200
+ "8": "p-8",
201
+ "9": "p-9",
202
+ "10": "p-10"
203
203
  },
204
204
  px: {
205
- 0: "px-0",
206
- 1: "px-1",
207
- 2: "px-2",
208
- 3: "px-3",
209
- 4: "px-4",
210
- 5: "px-5",
211
- 6: "px-6",
212
- 7: "px-7",
213
- 8: "px-8",
214
- 9: "px-9",
215
- 10: "px-10"
205
+ "0": "px-0",
206
+ "1": "px-1",
207
+ "2": "px-2",
208
+ "3": "px-3",
209
+ "4": "px-4",
210
+ "5": "px-5",
211
+ "6": "px-6",
212
+ "7": "px-7",
213
+ "8": "px-8",
214
+ "9": "px-9",
215
+ "10": "px-10"
216
216
  },
217
217
  py: {
218
- 0: "py-0",
219
- 1: "py-1",
220
- 2: "py-2",
221
- 3: "py-3",
222
- 4: "py-4",
223
- 5: "py-5",
224
- 6: "py-6",
225
- 7: "py-7",
226
- 8: "py-8",
227
- 9: "py-9",
228
- 10: "py-10"
218
+ "0": "py-0",
219
+ "1": "py-1",
220
+ "2": "py-2",
221
+ "3": "py-3",
222
+ "4": "py-4",
223
+ "5": "py-5",
224
+ "6": "py-6",
225
+ "7": "py-7",
226
+ "8": "py-8",
227
+ "9": "py-9",
228
+ "10": "py-10"
229
229
  },
230
230
  pt: {
231
- 0: "pt-0",
232
- 1: "pt-1",
233
- 2: "pt-2",
234
- 3: "pt-3",
235
- 4: "pt-4",
236
- 5: "pt-5",
237
- 6: "pt-6",
238
- 7: "pt-7",
239
- 8: "pt-8",
240
- 9: "pt-9",
241
- 10: "pt-10"
231
+ "0": "pt-0",
232
+ "1": "pt-1",
233
+ "2": "pt-2",
234
+ "3": "pt-3",
235
+ "4": "pt-4",
236
+ "5": "pt-5",
237
+ "6": "pt-6",
238
+ "7": "pt-7",
239
+ "8": "pt-8",
240
+ "9": "pt-9",
241
+ "10": "pt-10"
242
242
  },
243
243
  pr: {
244
- 0: "pr-0",
245
- 1: "pr-1",
246
- 2: "pr-2",
247
- 3: "pr-3",
248
- 4: "pr-4",
249
- 5: "pr-5",
250
- 6: "pr-6",
251
- 7: "pr-7",
252
- 8: "pr-8",
253
- 9: "pr-9",
254
- 10: "pr-10"
244
+ "0": "pr-0",
245
+ "1": "pr-1",
246
+ "2": "pr-2",
247
+ "3": "pr-3",
248
+ "4": "pr-4",
249
+ "5": "pr-5",
250
+ "6": "pr-6",
251
+ "7": "pr-7",
252
+ "8": "pr-8",
253
+ "9": "pr-9",
254
+ "10": "pr-10"
255
255
  },
256
256
  pb: {
257
- 0: "pb-0",
258
- 1: "pb-1",
259
- 2: "pb-2",
260
- 3: "pb-3",
261
- 4: "pb-4",
262
- 5: "pb-5",
263
- 6: "pb-6",
264
- 7: "pb-7",
265
- 8: "pb-8",
266
- 9: "pb-9",
267
- 10: "pb-10"
257
+ "0": "pb-0",
258
+ "1": "pb-1",
259
+ "2": "pb-2",
260
+ "3": "pb-3",
261
+ "4": "pb-4",
262
+ "5": "pb-5",
263
+ "6": "pb-6",
264
+ "7": "pb-7",
265
+ "8": "pb-8",
266
+ "9": "pb-9",
267
+ "10": "pb-10"
268
268
  },
269
269
  pl: {
270
- 0: "pl-0",
271
- 1: "pl-1",
272
- 2: "pl-2",
273
- 3: "pl-3",
274
- 4: "pl-4",
275
- 5: "pl-5",
276
- 6: "pl-6",
277
- 7: "pl-7",
278
- 8: "pl-8",
279
- 9: "pl-9",
280
- 10: "pl-10"
270
+ "0": "pl-0",
271
+ "1": "pl-1",
272
+ "2": "pl-2",
273
+ "3": "pl-3",
274
+ "4": "pl-4",
275
+ "5": "pl-5",
276
+ "6": "pl-6",
277
+ "7": "pl-7",
278
+ "8": "pl-8",
279
+ "9": "pl-9",
280
+ "10": "pl-10"
281
281
  },
282
282
  gap: {
283
- 0: "gap-0",
284
- 1: "gap-1",
285
- 2: "gap-2",
286
- 3: "gap-3",
287
- 4: "gap-4",
288
- 5: "gap-5",
289
- 6: "gap-6",
290
- 7: "gap-7",
291
- 8: "gap-8",
292
- 9: "gap-9",
293
- 10: "gap-10"
283
+ "0": "gap-0",
284
+ "1": "gap-1",
285
+ "2": "gap-2",
286
+ "3": "gap-3",
287
+ "4": "gap-4",
288
+ "5": "gap-5",
289
+ "6": "gap-6",
290
+ "7": "gap-7",
291
+ "8": "gap-8",
292
+ "9": "gap-9",
293
+ "10": "gap-10"
294
294
  },
295
295
  gapX: {
296
- 0: "gap-x-0",
297
- 1: "gap-x-1",
298
- 2: "gap-x-2",
299
- 3: "gap-x-3",
300
- 4: "gap-x-4",
301
- 5: "gap-x-5",
302
- 6: "gap-x-6",
303
- 7: "gap-x-7",
304
- 8: "gap-x-8",
305
- 9: "gap-x-9",
306
- 10: "gap-x-10"
296
+ "0": "gap-x-0",
297
+ "1": "gap-x-1",
298
+ "2": "gap-x-2",
299
+ "3": "gap-x-3",
300
+ "4": "gap-x-4",
301
+ "5": "gap-x-5",
302
+ "6": "gap-x-6",
303
+ "7": "gap-x-7",
304
+ "8": "gap-x-8",
305
+ "9": "gap-x-9",
306
+ "10": "gap-x-10"
307
307
  },
308
308
  gapY: {
309
- 0: "gap-y-0",
310
- 1: "gap-y-1",
311
- 2: "gap-y-2",
312
- 3: "gap-y-3",
313
- 4: "gap-y-4",
314
- 5: "gap-y-5",
315
- 6: "gap-y-6",
316
- 7: "gap-y-7",
317
- 8: "gap-y-8",
318
- 9: "gap-y-9",
319
- 10: "gap-y-10"
309
+ "0": "gap-y-0",
310
+ "1": "gap-y-1",
311
+ "2": "gap-y-2",
312
+ "3": "gap-y-3",
313
+ "4": "gap-y-4",
314
+ "5": "gap-y-5",
315
+ "6": "gap-y-6",
316
+ "7": "gap-y-7",
317
+ "8": "gap-y-8",
318
+ "9": "gap-y-9",
319
+ "10": "gap-y-10"
320
320
  },
321
321
  position: {
322
322
  static: "static",
@@ -440,8 +440,8 @@ var commonLayout = cva2("", {
440
440
  }
441
441
  },
442
442
  defaultVariants: {
443
- gap: 2,
444
- p: 2,
443
+ gap: "2",
444
+ p: "2",
445
445
  position: "relative",
446
446
  overflow: "auto",
447
447
  flexGrow: 0,
@@ -534,13 +534,6 @@ var Box = memo(
534
534
  className: cn(
535
535
  box_variant_default({ display }),
536
536
  commonLayout({
537
- p,
538
- px,
539
- py,
540
- pt,
541
- pr,
542
- pb,
543
- pl,
544
537
  position,
545
538
  top,
546
539
  right,
@@ -549,6 +542,13 @@ var Box = memo(
549
542
  flexGrow,
550
543
  flexShrink
551
544
  }),
545
+ `p-${p}`,
546
+ `px-${px}`,
547
+ `py-${py}`,
548
+ `pt-${pt}`,
549
+ `pr-${pr}`,
550
+ `pb-${pb}`,
551
+ `pl-${pl}`,
552
552
  className
553
553
  ),
554
554
  style: generateStyle,
@@ -611,10 +611,10 @@ var Flex = memo2(
611
611
  height = "fit",
612
612
  justify = "start",
613
613
  align = "center",
614
- gap = 2,
614
+ gap = "2",
615
615
  gapX,
616
616
  gapY,
617
- p = 2,
617
+ p = "0",
618
618
  px,
619
619
  py,
620
620
  pt,
@@ -691,16 +691,6 @@ var Flex = memo2(
691
691
  className: cn(
692
692
  flexVariant_default({ wrap, justify, align }),
693
693
  commonLayout({
694
- gap,
695
- gapX,
696
- gapY,
697
- p,
698
- px,
699
- py,
700
- pt,
701
- pr,
702
- pb,
703
- pl,
704
694
  position,
705
695
  top,
706
696
  right,
@@ -710,7 +700,17 @@ var Flex = memo2(
710
700
  flexShrink
711
701
  }),
712
702
  {
713
- "flex-col": vertical
703
+ [`flex-col`]: vertical,
704
+ [`p-${p}`]: p,
705
+ [`px-${px}`]: px,
706
+ [`py-${py}`]: py,
707
+ [`pt-${pt}`]: pt,
708
+ [`pr-${pr}`]: pr,
709
+ [`pb-${pb}`]: pb,
710
+ [`pl-${pl}`]: pl,
711
+ [`gap-${gap}`]: gap,
712
+ [`gap-x-${gapX}`]: gapX,
713
+ [`gap-y-${gapY}`]: gapY
714
714
  },
715
715
  className
716
716
  ),
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { HTMLAttributes } from 'react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
- import { T as TUserSettingSelect } from '../types-BUTht_HJ.js';
4
+ import { a as TUserSettingSelect } from '../types-DdUenP1k.js';
5
5
  import { z } from 'zod';
6
6
 
7
7
  interface IProps {