@kanda-libs/ks-component-ts 0.3.102 → 0.3.104

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/library.css CHANGED
@@ -803,6 +803,12 @@ input[type="number"]::-webkit-inner-spin-button,
803
803
  line-height: 20px;
804
804
  }
805
805
 
806
+ .text-16-18-em {
807
+ font-weight: 600;
808
+ font-size: 16px;
809
+ line-height: 18px;
810
+ }
811
+
806
812
  .text-16-18 {
807
813
  font-weight: 400;
808
814
  font-size: 16px;
@@ -3056,6 +3062,12 @@ input[type="number"]::-webkit-inner-spin-button,
3056
3062
  opacity: 0.95;
3057
3063
  }
3058
3064
 
3065
+ .shadow-lg {
3066
+ --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
3067
+ --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
3068
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
3069
+ }
3070
+
3059
3071
  .shadow-card {
3060
3072
  --tw-shadow: 0px 4px 8px 0px #0C1B3A0D;
3061
3073
  --tw-shadow-colored: 0px 4px 8px 0px var(--tw-shadow-color);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kanda-libs/ks-component-ts",
3
- "version": "0.3.102",
3
+ "version": "0.3.104",
4
4
  "description": "Kanda form component library",
5
5
  "main": "dist/index.esm.js",
6
6
  "module": "dist/index.esm.js",
@@ -366,6 +366,31 @@ const PERCENTAGE_INCREMENT_THEME = {
366
366
  },
367
367
  };
368
368
 
369
+ const CHECKOUT_THEME = {
370
+ fieldWrapper: "Default" as FieldWrapperType,
371
+ baseClasses:
372
+ "rounded-lg flex w-full bg-neutral-000 border-2 border-neutral-300 caret-turquoise-300 shadow-lg",
373
+ inputClasses: "text-16-18-em text-neutral-900 placeholder-neutral-600",
374
+ focusClasses: "border-solid focus:border-turquoise-300",
375
+ focusWithinClasses:
376
+ "border-solid focus-within:outline-none focus-within:border-turquoise-300",
377
+ paddingClasses: "px-3 py-4",
378
+ skeletonClasses: "w-2/6",
379
+ chevronClasses:
380
+ "appearance-none bg-select-chevron focus:bg-select-chevron-active bg-no-repeat bg-right-2 invalid:text-neutral-400 overflow-hidden !pr-7",
381
+ themeIconVariant: "dark",
382
+ makeErrorClasses: (error?: string) =>
383
+ error ? "border-solid border border-red-200" : "",
384
+ wrapperClasses: {
385
+ baseContainer: "flex flex-col mb-5 text-left",
386
+ error: "mt-2 text-12-18 text-red-200",
387
+ warning: "mt-2 text-12-18 text-neutral-700",
388
+ label: "text-12-18-em text-neutral-700",
389
+ helperText: "whitespace-nowrap text-12-18 text-neutral-500",
390
+ },
391
+ buttonClasses: "mt-2 mr-2",
392
+ };
393
+
369
394
  enum Variants {
370
395
  DEFAULT = "default",
371
396
  BORDERED = "bordered",
@@ -385,6 +410,7 @@ enum Variants {
385
410
  STREAMLINE = "streamline",
386
411
  STREAMLINE_INLINE = "streamline-inline",
387
412
  PERCENTAGE_INCREMENT = "percentage-increment",
413
+ CHECKOUT = "checkout",
388
414
  }
389
415
 
390
416
  export const VARIANTS: StringIndexedObject<string> = {
@@ -406,6 +432,7 @@ export const VARIANTS: StringIndexedObject<string> = {
406
432
  STREAMLINE: Variants.STREAMLINE,
407
433
  STREAMLINE_INLINE: Variants.STREAMLINE_INLINE,
408
434
  PERCENTAGE_INCREMENT: Variants.PERCENTAGE_INCREMENT,
435
+ CHECKOUT: Variants.CHECKOUT,
409
436
  };
410
437
 
411
438
  export const FORM_THEME_VARIANTS: StringIndexedObject<Theme> = {
@@ -427,4 +454,5 @@ export const FORM_THEME_VARIANTS: StringIndexedObject<Theme> = {
427
454
  [VARIANTS.STREAMLINE]: STREAMLINE_THEME,
428
455
  [VARIANTS.STREAMLINE_INLINE]: STREAMLINE_INLINE_THEME,
429
456
  [VARIANTS.PERCENTAGE_INCREMENT]: PERCENTAGE_INCREMENT_THEME,
457
+ [VARIANTS.CHECKOUT]: CHECKOUT_THEME,
430
458
  };
@@ -58,6 +58,7 @@ export const WorkType = t.union([
58
58
  t.literal("roofline"),
59
59
  t.literal("security_lighting"),
60
60
  t.literal("solar_pv_panels"),
61
+ t.literal("spray_foam_removal"),
61
62
  t.literal("stair_lifts"),
62
63
  t.literal("staircases"),
63
64
  t.literal("tiling"),
@@ -163,6 +164,7 @@ export type WorkType =
163
164
  | "roofline"
164
165
  | "security_lighting"
165
166
  | "solar_pv_panels"
167
+ | "spray_foam_removal"
166
168
  | "stair_lifts"
167
169
  | "staircases"
168
170
  | "tiling"