@stamcat/craftsman 0.0.27-alpha.8 → 0.0.27

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.
Files changed (176) hide show
  1. package/AGENTS.md +19 -403
  2. package/Components.esm.js +64 -9
  3. package/Styles.esm.js +7 -7
  4. package/Utilities.esm.js +2 -2
  5. package/_virtual/_rolldown/runtime.esm.js +18 -6
  6. package/package.json +60 -3
  7. package/src/components/Button/AGENTS.md +65 -0
  8. package/src/components/Button/Button.d.ts +1 -1
  9. package/src/components/Button/Button.esm.js +11 -17
  10. package/src/components/Carousel/AGENTS.md +41 -0
  11. package/src/components/Carousel/Carousel.css +1 -0
  12. package/src/components/Carousel/Carousel.d.ts +11 -0
  13. package/src/components/Carousel/Carousel.scss +34 -0
  14. package/src/components/Carousel/Carousel2.esm.js +75 -0
  15. package/src/components/Checkbox/AGENTS.md +34 -0
  16. package/src/components/Checkbox/Checkbox.d.ts +8 -0
  17. package/src/components/Checkbox/Checkbox.esm.js +18 -0
  18. package/src/components/DatePicker/AGENTS.md +36 -0
  19. package/src/components/DatePicker/DatePicker.css +1 -0
  20. package/src/components/DatePicker/DatePicker.d.ts +8 -0
  21. package/src/components/DatePicker/DatePicker.scss +61 -0
  22. package/src/components/DatePicker/DatePicker2.esm.js +29 -0
  23. package/src/components/DatePicker/ReactCalendar.css +1 -0
  24. package/src/components/DatePicker/ReactCalendar.scss +158 -0
  25. package/src/components/DatePicker/_DatePicker.scss +73 -0
  26. package/src/components/DateRangePicker/AGENTS.md +38 -0
  27. package/src/components/DateRangePicker/DateRangePicker.css +1 -0
  28. package/src/components/DateRangePicker/DateRangePicker.d.ts +8 -0
  29. package/src/components/DateRangePicker/DateRangePicker.scss +62 -0
  30. package/src/components/DateRangePicker/DateRangePicker2.esm.js +29 -0
  31. package/src/components/DateTimePicker/AGENTS.md +41 -0
  32. package/src/components/DateTimePicker/DateTimePicker.css +1 -0
  33. package/src/components/DateTimePicker/DateTimePicker.d.ts +13 -0
  34. package/src/components/DateTimePicker/DateTimePicker.scss +86 -0
  35. package/src/components/DateTimePicker/DateTimePicker2.esm.js +82 -0
  36. package/src/components/Icons/IconAmazonPay.d.ts +2 -0
  37. package/src/components/Icons/IconAmazonPay.esm.js +76 -0
  38. package/src/components/Icons/IconAmex.d.ts +2 -0
  39. package/src/components/Icons/IconAmex.esm.js +87 -0
  40. package/src/components/Icons/IconApplePay.d.ts +2 -0
  41. package/src/components/Icons/IconApplePay.esm.js +26 -0
  42. package/src/components/Icons/IconDiscover.d.ts +2 -0
  43. package/src/components/Icons/IconDiscover.esm.js +129 -0
  44. package/src/components/Icons/IconGooglePay.d.ts +2 -0
  45. package/src/components/Icons/IconGooglePay.esm.js +64 -0
  46. package/src/components/Icons/IconMaestro.d.ts +2 -0
  47. package/src/components/Icons/IconMaestro.esm.js +38 -0
  48. package/src/components/Icons/IconMastercard.d.ts +2 -0
  49. package/src/components/Icons/IconMastercard.esm.js +27 -0
  50. package/src/components/Icons/IconPayPal.d.ts +2 -0
  51. package/src/components/Icons/IconPayPal.esm.js +52 -0
  52. package/src/components/Icons/IconSepa.d.ts +2 -0
  53. package/src/components/Icons/IconSepa.esm.js +272 -0
  54. package/src/components/Icons/IconShopPay.d.ts +2 -0
  55. package/src/components/Icons/IconShopPay.esm.js +35 -0
  56. package/src/components/Icons/IconSquare.d.ts +2 -0
  57. package/src/components/Icons/IconSquare.esm.js +11 -0
  58. package/src/components/Icons/IconStripe.d.ts +2 -0
  59. package/src/components/Icons/IconStripe.esm.js +57 -0
  60. package/src/components/Icons/IconUnionPay.d.ts +2 -0
  61. package/src/components/Icons/IconUnionPay.esm.js +28 -0
  62. package/src/components/Icons/IconVenmo.d.ts +2 -0
  63. package/src/components/Icons/IconVenmo.esm.js +21 -0
  64. package/src/components/Icons/IconVisa.d.ts +2 -0
  65. package/src/components/Icons/IconVisa.esm.js +14 -0
  66. package/src/components/Icons/index.d.ts +15 -0
  67. package/src/components/Icons/index.esm.js +16 -0
  68. package/src/components/Icons/types.d.ts +4 -0
  69. package/src/components/Input/AGENTS.md +30 -0
  70. package/src/components/Input/Input.css +1 -0
  71. package/src/components/Input/Input.scss +176 -0
  72. package/src/components/Input/Input2.esm.js +42 -0
  73. package/src/components/Input/InputWrapper.d.ts +1 -0
  74. package/src/components/Input/InputWrapper.esm.js +16 -16
  75. package/src/components/InputNumber/AGENTS.md +37 -0
  76. package/src/components/InputNumber/InputNumber.css +1 -0
  77. package/src/components/InputNumber/InputNumber.d.ts +10 -0
  78. package/src/components/InputNumber/InputNumber.scss +29 -0
  79. package/src/components/InputNumber/InputNumber2.esm.js +36 -0
  80. package/src/components/InputPassword/AGENTS.md +29 -0
  81. package/src/components/{Input → InputPassword}/InputPassword.d.ts +1 -1
  82. package/src/components/InputPassword/InputPassword.esm.js +30 -0
  83. package/src/components/InputPhone/AGENTS.md +35 -0
  84. package/src/components/InputPhone/InputPhone.css +1 -0
  85. package/src/components/InputPhone/InputPhone.d.ts +7 -0
  86. package/src/components/InputPhone/InputPhone.scss +266 -0
  87. package/src/components/InputPhone/InputPhone2.esm.js +27 -0
  88. package/src/components/Loader/AGENTS.md +31 -0
  89. package/src/components/Loader/Loader.esm.js +1 -1
  90. package/src/components/Loader/types.d.ts +1 -1
  91. package/src/components/Modal/AGENTS.md +47 -0
  92. package/src/components/Modal/Modal.css +1 -0
  93. package/src/components/Modal/Modal.scss +150 -0
  94. package/src/components/Modal/Modal2.esm.js +53 -0
  95. package/src/components/Notice/AGENTS.md +42 -0
  96. package/src/components/Notice/Notice.css +1 -0
  97. package/src/components/Notice/Notice.d.ts +13 -0
  98. package/src/components/Notice/Notice.scss +76 -0
  99. package/src/components/Notice/Notice2.esm.js +56 -0
  100. package/src/components/Pagination/AGENTS.md +38 -0
  101. package/src/components/Pagination/Pagination.css +1 -0
  102. package/src/components/Pagination/Pagination.d.ts +10 -0
  103. package/src/components/Pagination/Pagination.scss +22 -0
  104. package/src/components/Pagination/Pagination2.esm.js +64 -0
  105. package/src/components/RadioButton/AGENTS.md +44 -0
  106. package/src/components/RadioButton/RadioButton.d.ts +9 -0
  107. package/src/components/RadioButton/RadioButton.esm.js +18 -0
  108. package/src/components/Select/AGENTS.md +36 -0
  109. package/src/components/SortableList/AGENTS.md +45 -0
  110. package/src/components/SortableList/ListItem.d.ts +10 -0
  111. package/src/components/SortableList/ListItem.esm.js +67 -0
  112. package/src/components/SortableList/SortableList.css +1 -0
  113. package/src/components/SortableList/SortableList.d.ts +23 -0
  114. package/src/components/SortableList/SortableList.scss +41 -0
  115. package/src/components/SortableList/SortableList2.esm.js +54 -0
  116. package/src/components/SortableList/utilities.d.ts +7 -0
  117. package/src/components/SortableList/utilities.esm.js +4 -0
  118. package/src/components/Text/AGENTS.md +32 -0
  119. package/src/components/Text/Text.css +1 -1
  120. package/src/components/Text/Text.scss +2 -2
  121. package/src/components/Textarea/AGENTS.md +32 -0
  122. package/src/components/{Input → Textarea}/Textarea.d.ts +1 -1
  123. package/src/components/Textarea/Textarea.esm.js +23 -0
  124. package/src/components/TimePicker/AGENTS.md +42 -0
  125. package/src/components/TimePicker/TimePicker.css +1 -0
  126. package/src/components/TimePicker/TimePicker.d.ts +13 -0
  127. package/src/components/TimePicker/TimePicker.scss +226 -0
  128. package/src/components/TimePicker/TimePicker2.esm.js +98 -0
  129. package/src/components/TimePicker/TimePickerDisplay.d.ts +16 -0
  130. package/src/components/TimePicker/TimePickerDisplay.esm.js +54 -0
  131. package/src/components/TimePicker/TimePickerWheel.d.ts +13 -0
  132. package/src/components/TimePicker/TimePickerWheel.esm.js +61 -0
  133. package/src/components/TimePicker/constants.d.ts +7 -0
  134. package/src/components/TimePicker/constants.esm.js +3 -0
  135. package/src/components/TimePicker/utilities.d.ts +15 -0
  136. package/src/components/TimePicker/utilities.esm.js +20 -0
  137. package/src/components/Toggle/AGENTS.md +33 -0
  138. package/src/components/Toggle/Toggle.css +1 -0
  139. package/src/components/Toggle/Toggle.d.ts +5 -0
  140. package/src/components/Toggle/Toggle.scss +64 -0
  141. package/src/components/Toggle/Toggle2.esm.js +19 -0
  142. package/src/components/Tooltip/AGENTS.md +41 -0
  143. package/src/components/Tooltip/Tooltip.css +1 -0
  144. package/src/components/Tooltip/Tooltip.d.ts +12 -0
  145. package/src/components/Tooltip/Tooltip.scss +29 -0
  146. package/src/components/Tooltip/Tooltip2.esm.js +65 -0
  147. package/src/components/index.d.ts +17 -4
  148. package/src/styles/global/components/_button.scss +24 -21
  149. package/src/styles/global/components/_checkbox.scss +5 -4
  150. package/src/styles/global/components/_input.scss +1 -7
  151. package/src/styles/global/components/_radioButton.scss +5 -4
  152. package/src/styles/global/components/_typography.scss +6 -1
  153. package/src/styles/global/globalStyles.scss +9 -5
  154. package/src/styles/theme/components.esm.js +5 -6
  155. package/src/styles/utilities/_functions.scss +2 -2
  156. package/src/styles/utilities/_placeholders.scss +6 -0
  157. package/src/styles/utilities/layout.esm.js +3 -3
  158. package/src/utilities/types.d.ts +28 -3
  159. package/src/utilities/types.esm.js +11 -5
  160. package/src/utilities/validations.d.ts +5 -0
  161. package/src/utilities/validations.esm.js +19 -1
  162. package/src/components/Input/Checkbox.d.ts +0 -7
  163. package/src/components/Input/Checkbox.esm.js +0 -11
  164. package/src/components/Input/Input.esm.js +0 -34
  165. package/src/components/Input/Input.module.css +0 -1
  166. package/src/components/Input/Input.module.esm.js +0 -13
  167. package/src/components/Input/Input.module.scss +0 -165
  168. package/src/components/Input/InputPassword.esm.js +0 -29
  169. package/src/components/Input/RadioButton.d.ts +0 -7
  170. package/src/components/Input/RadioButton.esm.js +0 -11
  171. package/src/components/Input/Textarea.esm.js +0 -25
  172. package/src/components/Modal/Modal.esm.js +0 -53
  173. package/src/components/Modal/Modal.module.css +0 -1
  174. package/src/components/Modal/Modal.module.esm.js +0 -16
  175. package/src/components/Modal/Modal.module.scss +0 -147
  176. /package/src/components/{Progress.d.ts → Progress/Progress.d.ts} +0 -0
@@ -52,6 +52,8 @@ export type TextInputExclusions = z.infer<typeof zTextInputExclusions>;
52
52
  export declare const zTextInputTypes: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week", "radio", "checkbox"];
53
53
  export declare const zTextInputType: z.ZodEnum<{
54
54
  number: "number";
55
+ search: "search";
56
+ month: "month";
55
57
  text: "text";
56
58
  checkbox: "checkbox";
57
59
  radio: "radio";
@@ -62,11 +64,9 @@ export declare const zTextInputType: z.ZodEnum<{
62
64
  file: "file";
63
65
  hidden: "hidden";
64
66
  image: "image";
65
- month: "month";
66
67
  password: "password";
67
68
  range: "range";
68
69
  reset: "reset";
69
- search: "search";
70
70
  submit: "submit";
71
71
  tel: "tel";
72
72
  time: "time";
@@ -83,6 +83,18 @@ export declare const zLabelPosition: z.ZodEnum<{
83
83
  inside: "inside";
84
84
  }>;
85
85
  export type LabelPosition = z.infer<typeof zLabelPosition>;
86
+ export declare const zCheckboxLabelPosition: z.ZodEnum<{
87
+ top: "top";
88
+ left: "left";
89
+ bottom: "bottom";
90
+ right: "right";
91
+ }>;
92
+ export type CheckboxLabelPosition = z.infer<typeof zCheckboxLabelPosition>;
93
+ export declare const zRadioLabelPosition: z.ZodEnum<{
94
+ left: "left";
95
+ right: "right";
96
+ }>;
97
+ export type RadioLabelPosition = z.infer<typeof zRadioLabelPosition>;
86
98
  export declare const ButtonType: z.ZodEnum<{
87
99
  text: "text";
88
100
  primary: "primary";
@@ -109,10 +121,23 @@ export declare const TextType: z.ZodEnum<{
109
121
  }>;
110
122
  export type TextType = z.infer<typeof TextType>;
111
123
  export declare const TextSize: z.ZodEnum<{
124
+ small: "small";
112
125
  xlarge: "xlarge";
113
126
  large: "large";
114
127
  medium: "medium";
115
- small: "small";
116
128
  xsmall: "xsmall";
117
129
  }>;
118
130
  export type TextSize = z.infer<typeof TextSize>;
131
+ export declare const CarouselPageType: z.ZodEnum<{
132
+ dots: "dots";
133
+ numbers: "numbers";
134
+ }>;
135
+ export type CarouselPageType = z.infer<typeof CarouselPageType>;
136
+ export declare const NoticeType: z.ZodEnum<{
137
+ help: "help";
138
+ info: "info";
139
+ success: "success";
140
+ error: "error";
141
+ none: "none";
142
+ }>;
143
+ export type NoticeType = z.infer<typeof NoticeType>;
@@ -49,11 +49,11 @@ var t = e.enum(["gutter", "column"]), n = e.enum([
49
49
  "right",
50
50
  "inside",
51
51
  "hidden"
52
- ]), u = e.enum([
52
+ ]), u = l.exclude(["inside", "hidden"]), d = l.extract(["left", "right"]), f = e.enum([
53
53
  "primary",
54
54
  "default",
55
55
  "text"
56
- ]), d = e.enum([
56
+ ]), p = e.enum([
57
57
  "h1",
58
58
  "h2",
59
59
  "h3",
@@ -62,18 +62,24 @@ var t = e.enum(["gutter", "column"]), n = e.enum([
62
62
  "p",
63
63
  "span",
64
64
  "div"
65
- ]), f = e.enum([
65
+ ]), m = e.enum([
66
66
  "display",
67
67
  "heading",
68
68
  "paragraph",
69
69
  "caption",
70
70
  "small-title"
71
- ]), p = e.enum([
71
+ ]), h = e.enum([
72
72
  "xlarge",
73
73
  "large",
74
74
  "medium",
75
75
  "small",
76
76
  "xsmall"
77
+ ]), g = e.enum(["dots", "numbers"]), _ = e.enum([
78
+ "help",
79
+ "info",
80
+ "success",
81
+ "error",
82
+ "none"
77
83
  ]);
78
84
  //#endregion
79
- export { t as BaseWidthSchema, i as BreakpointSchema, u as ButtonType, a as LayoutWidthsSchema, r as MaxScreenWidthSchema, n as ScreenWidthSchema, p as TextSize, d as TextTags, f as TextType, l as zLabelPosition, o as zTextInputExclusions, c as zTextInputType, s as zTextInputTypes };
85
+ export { t as BaseWidthSchema, i as BreakpointSchema, f as ButtonType, g as CarouselPageType, a as LayoutWidthsSchema, r as MaxScreenWidthSchema, _ as NoticeType, n as ScreenWidthSchema, h as TextSize, p as TextTags, m as TextType, u as zCheckboxLabelPosition, l as zLabelPosition, d as zRadioLabelPosition, o as zTextInputExclusions, c as zTextInputType, s as zTextInputTypes };
@@ -1,2 +1,7 @@
1
+ import { DateTimePickerProps } from 'react-datetime-picker';
1
2
  export declare function isEmpty(value: unknown): boolean;
2
3
  export declare function validateEmail(value: string): boolean;
4
+ export declare const getUnitLabel: (locale: Intl.LocalesArgument, unit: Intl.NumberFormatOptions["unit"], override?: string) => string;
5
+ export declare const is24HourFormat: (locale: Intl.LocalesArgument) => boolean;
6
+ export declare const getAmPmLabels: (locale: Intl.LocalesArgument) => [string, string];
7
+ export declare const formatTime: (value: DateTimePickerProps["value"], locale: Intl.LocalesArgument) => string;
@@ -5,5 +5,23 @@ function e(e) {
5
5
  function t(e) {
6
6
  return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
7
7
  }
8
+ var n = (e, t, n) => n ?? new Intl.NumberFormat(e, {
9
+ style: "unit",
10
+ unit: t,
11
+ unitDisplay: "long"
12
+ }).formatToParts(1).find((e) => e.type === "unit")?.value ?? String(t), r = (e) => {
13
+ let t = new Intl.DateTimeFormat(e, { hour: "numeric" }).resolvedOptions();
14
+ return t.hourCycle === "h23" || t.hourCycle === "h24";
15
+ }, i = (e) => {
16
+ let t = new Intl.DateTimeFormat(e, {
17
+ hour: "numeric",
18
+ hour12: !0
19
+ });
20
+ return [t.formatToParts(new Date(2e3, 0, 1, 9)).find((e) => e.type === "dayPeriod")?.value ?? "AM", t.formatToParts(new Date(2e3, 0, 1, 21)).find((e) => e.type === "dayPeriod")?.value ?? "PM"];
21
+ }, a = (e, t) => e instanceof Date ? new Intl.DateTimeFormat(t, {
22
+ hour: "2-digit",
23
+ minute: "2-digit",
24
+ hour12: !1
25
+ }).format(e) : "--:--";
8
26
  //#endregion
9
- export { e as isEmpty, t as validateEmail };
27
+ export { a as formatTime, i as getAmPmLabels, n as getUnitLabel, r as is24HourFormat, e as isEmpty, t as validateEmail };
@@ -1,7 +0,0 @@
1
- import { InputProps } from './Input';
2
- type CheckboxProps = InputProps & {
3
- type?: "checkbox";
4
- labelPosition?: "left" | "right" | "top" | "bottom";
5
- };
6
- export declare const Checkbox: React.FC<CheckboxProps>;
7
- export {};
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { Input as e } from "./Input.esm.js";
3
- import { jsx as t } from "react/jsx-runtime";
4
- //#region src/components/Input/Checkbox.tsx
5
- var n = ({ type: n = "checkbox", labelPosition: r = "right", ...i }) => /* @__PURE__ */ t(e, {
6
- type: n,
7
- labelPosition: r,
8
- ...i
9
- });
10
- //#endregion
11
- export { n as Checkbox };
@@ -1,34 +0,0 @@
1
- "use client";
2
- import { isEmpty as e } from "../../utilities/validations.esm.js";
3
- import t from "./Input.module.esm.js";
4
- import { InputWrapper as n } from "./InputWrapper.esm.js";
5
- import r from "clsx";
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { useId as o } from "react";
8
- //#region src/components/Input/Input.tsx
9
- var s = ({ label: s, id: c, labelPosition: l = "top", required: u = !1, type: d = "text", error: f, endAdornment: p, style: m, className: h, ...g }) => {
10
- let _ = o(), v = c || _;
11
- return /* @__PURE__ */ i(n, {
12
- className: h,
13
- label: s,
14
- labelPosition: l,
15
- error: f,
16
- required: u,
17
- style: m,
18
- children: /* @__PURE__ */ a("span", {
19
- className: t.inputField,
20
- "data-has-end-adornment": !e(p),
21
- children: [/* @__PURE__ */ i("input", {
22
- id: v,
23
- type: d,
24
- className: r(t.input, d),
25
- ...g
26
- }), !e(p) && /* @__PURE__ */ i("span", {
27
- className: t.inputAdornment,
28
- children: p
29
- })]
30
- })
31
- });
32
- };
33
- //#endregion
34
- export { s as Input };
@@ -1 +0,0 @@
1
- @layer craftsman-base{._wrapper_1xyh8_2[data-label-position=inside]{--react-international-phone-height:50px;--react-international-phone-border-radius:8px;--react-international-phone-border-color:silver;position:relative}}._wrapper_1xyh8_2 label ._inputLabel_1xyh8_9{margin-bottom:calc(var(--w-gutter) * .25)}._wrapper_1xyh8_2[data-required=true] label ._inputLabel_1xyh8_9:after{content:"*";color:var(--red700)}._wrapper_1xyh8_2[data-label-position=left] label{align-items:center;display:inline-flex}._wrapper_1xyh8_2[data-label-position=left] label ._inputLabel_1xyh8_9{width:fit-content;margin-right:calc(var(--w-gutter) * .75)}._wrapper_1xyh8_2[data-label-position=left]._textarea_1xyh8_24 label{align-items:flex-start}._wrapper_1xyh8_2[data-label-position=bottom] label{flex-direction:column-reverse;align-items:flex-start;display:inline-flex}._wrapper_1xyh8_2[data-label-position=bottom] label ._inputLabel_1xyh8_9{margin-bottom:0;margin-top:calc(var(--w-gutter) * .25)}._wrapper_1xyh8_2[data-label-position=right] label{flex-direction:row-reverse;align-items:baseline;display:inline-flex}._wrapper_1xyh8_2[data-label-position=right] label ._inputLabel_1xyh8_9{margin-left:calc(var(--w-gutter) * .25);margin-bottom:0}._wrapper_1xyh8_2[data-label-position=inside] ._inputLabel_1xyh8_9{background-color:var(--white);z-index:1;width:fit-content;top:calc(var(--w-gutter) * .25);left:calc(var(--w-gutter) * .25);pointer-events:none;padding:0 5px;transition:top .15s,left .15s,font-size .15s,color .15s;position:absolute}._wrapper_1xyh8_2[data-label-position=inside]>label>._inputField_1xyh8_56>._input_1xyh8_9,._wrapper_1xyh8_2[data-label-position=inside]>._input_1xyh8_9{transition:border-color .2s}._wrapper_1xyh8_2[data-label-position=inside]:focus-within ._inputLabel_1xyh8_9{top:-.5rem;left:calc(var(--w-gutter) * .125);font-size:calc(var(--w-text) * .75);color:var(--blue500)}._wrapper_1xyh8_2[data-label-position=inside]:focus-within ._input_1xyh8_9{border-color:var(--blue500)}._wrapper_1xyh8_2[data-label-position=inside]:focus-within ._input_1xyh8_9::placeholder{opacity:1}._wrapper_1xyh8_2[data-label-position=inside][data-has-input=true] ._inputLabel_1xyh8_9{top:-.5rem;left:calc(var(--w-gutter) * .125);font-size:calc(var(--w-text) * .75)}._wrapper_1xyh8_2[data-label-position=inside]:has(._input_1xyh8_9:not(:placeholder-shown)) ._inputLabel_1xyh8_9{top:-.5rem;left:calc(var(--w-gutter) * .125);font-size:calc(var(--w-text) * .75)}._wrapper_1xyh8_2[data-label-position=inside]:has(._input_1xyh8_9:-webkit-autofill) ._inputLabel_1xyh8_9{top:-.5rem;left:calc(var(--w-gutter) * .125);font-size:calc(var(--w-text) * .75)}._wrapper_1xyh8_2[data-label-position=inside] ._input_1xyh8_9[type=tel]{width:100%}._wrapper_1xyh8_2[data-label-position=inside] ._input_1xyh8_9::placeholder{opacity:0;transition:opacity .2s}._inputField_1xyh8_56{align-items:center;display:inline-flex;position:relative}._inputField_1xyh8_56[data-has-end-adornment=true]>._input_1xyh8_9{width:100%;padding-right:calc(var(--w-gutter) * 1.5)}._inputAdornment_1xyh8_95{right:calc(var(--w-gutter) * .5);z-index:1;align-items:center;margin-top:0;display:inline-flex;position:absolute;top:50%;transform:translateY(-50%)}._error_1xyh8_106{margin-top:calc(var(--w-gutter) * .25);font-size:calc(var(--w-text) * .75);color:var(--red600)}._inputViewToggle_1xyh8_112{align-items:"center";padding:0;line-height:1;display:inline-flex}
@@ -1,13 +0,0 @@
1
- import './Input.module.css';//#region src/components/Input/Input.module.scss
2
- var e = "_wrapper_1xyh8_2", t = "_inputLabel_1xyh8_9", n = "_textarea_1xyh8_24", r = "_inputField_1xyh8_56", i = "_input_1xyh8_9", a = "_inputAdornment_1xyh8_95", o = "_error_1xyh8_106", s = "_inputViewToggle_1xyh8_112", c = {
3
- wrapper: e,
4
- inputLabel: t,
5
- textarea: n,
6
- inputField: r,
7
- input: i,
8
- inputAdornment: a,
9
- error: o,
10
- inputViewToggle: s
11
- };
12
- //#endregion
13
- export { c as default, o as error, i as input, a as inputAdornment, r as inputField, t as inputLabel, s as inputViewToggle, n as textarea, e as wrapper };
@@ -1,165 +0,0 @@
1
- @use "../../styles/global/components/input";
2
- @use "../../styles/utilities/functions" as u;
3
-
4
-
5
- @mixin inside-input-label-floating {
6
- top: -0.5rem;
7
- left: #{u.width("gutter", 0.125)};
8
- font-size: #{u.width("text", 0.75)};
9
- }
10
-
11
- .wrapper {
12
- label {
13
- .inputLabel {
14
- margin-bottom: #{u.width("gutter", 0.25)};
15
- }
16
- }
17
-
18
- &[data-required="true"] {
19
- label {
20
- .inputLabel {
21
- &::after {
22
- content: "*";
23
- color: var(--red700);
24
- }
25
- }
26
- }
27
- }
28
-
29
- &[data-label-position="left"] {
30
- label {
31
- display: inline-flex;
32
- align-items: center;
33
-
34
- .inputLabel {
35
- width: fit-content;
36
- margin-right: #{u.width("gutter", 0.75)};
37
- }
38
- }
39
- &.textarea {
40
- label {
41
- align-items: flex-start;
42
- }
43
- }
44
- }
45
-
46
- &[data-label-position="bottom"] {
47
- label {
48
- display: inline-flex;
49
- flex-direction: column-reverse;
50
- align-items: flex-start;
51
-
52
- .inputLabel {
53
- margin-bottom: 0;
54
- margin-top: #{u.width("gutter", 0.25)};
55
- }
56
- }
57
- }
58
-
59
- &[data-label-position="right"] {
60
- label {
61
- display: inline-flex;
62
- flex-direction: row-reverse;
63
- align-items: baseline;
64
-
65
- .inputLabel {
66
- margin-left: #{u.width("gutter", 0.25)};
67
- margin-bottom: 0;
68
- }
69
- }
70
- }
71
-
72
- &[data-label-position="inside"] {
73
- @extend %inside-input-label-base;
74
-
75
- .inputLabel {
76
- position: absolute;
77
- background-color: var(--white);
78
- z-index: 1;
79
- width: fit-content;
80
- padding: 0 5px;
81
- top: #{u.width(gutter, 0.25)};
82
- left: #{u.width(gutter, 0.25)};
83
- pointer-events: none;
84
- transition:
85
- top 150ms ease,
86
- left 150ms ease,
87
- font-size 150ms ease,
88
- color 150ms ease;
89
- }
90
-
91
- > label > .inputField > .input,
92
- > .input {
93
- transition: border-color 200ms ease;
94
- }
95
-
96
- &:focus-within {
97
- .inputLabel {
98
- @include inside-input-label-floating;
99
- color: var(--blue500);
100
- }
101
-
102
- .input {
103
- border-color: var(--blue500);
104
- }
105
-
106
- .input::placeholder {
107
- opacity: 1;
108
- }
109
- }
110
-
111
- &:has(.input:not(:placeholder-shown)),
112
- &:has(.input:-webkit-autofill),
113
- &[data-has-input="true"] {
114
- .inputLabel {
115
- @include inside-input-label-floating;
116
- }
117
- }
118
-
119
- .input[type="tel"] {
120
- width: 100%;
121
- }
122
-
123
- .input::placeholder {
124
- opacity: 0;
125
- transition: opacity 200ms ease;
126
- }
127
- }
128
-
129
- }
130
-
131
- .inputField {
132
- position: relative;
133
- display: inline-flex;
134
- align-items: center;
135
-
136
- &[data-has-end-adornment="true"] {
137
- > .input {
138
- width: 100%;
139
- padding-right: #{u.width("gutter", 1.5)};;
140
- }
141
- }
142
- }
143
-
144
- .inputAdornment {
145
- position: absolute;
146
- right: #{u.width("gutter", 0.5)};;
147
- top: 50%;
148
- transform: translateY(-50%);
149
- margin-top: 0;
150
- z-index: 1;
151
- display: inline-flex;
152
- align-items: center;
153
- }
154
-
155
- .error {
156
- margin-top: #{u.width("gutter", 0.25)};;
157
- font-size: #{u.width("text", 0.75)};;
158
- color: var(--red600);
159
- }
160
- .inputViewToggle {
161
- padding: 0;
162
- display: inline-flex;
163
- align-items: "center";
164
- line-height: 1;
165
- };
@@ -1,29 +0,0 @@
1
- "use client";
2
- import { Button as e } from "../Button/Button.esm.js";
3
- import t from "./Input.module.esm.js";
4
- import { Input as n } from "./Input.esm.js";
5
- import { jsx as r } from "react/jsx-runtime";
6
- import { useState as i } from "react";
7
- import { ImEye as a, ImEyeBlocked as o } from "react-icons/im";
8
- //#region src/components/Input/InputPassword.tsx
9
- var s = ({ visible: n, onToggle: i }) => /* @__PURE__ */ r(e, {
10
- type: "button",
11
- variant: "text",
12
- onClick: i,
13
- "aria-label": n ? "Hide password" : "Show password",
14
- "aria-pressed": n,
15
- className: t.inputViewToggle,
16
- children: r(n ? a : o, { size: 16 })
17
- }), c = ({ type: e = "password", ...t }) => {
18
- let [a, o] = i(!1), c = a ? "text" : e;
19
- return /* @__PURE__ */ r(n, {
20
- ...t,
21
- type: c,
22
- endAdornment: /* @__PURE__ */ r(s, {
23
- visible: a,
24
- onToggle: () => o((e) => !e)
25
- })
26
- });
27
- };
28
- //#endregion
29
- export { c as InputPassword };
@@ -1,7 +0,0 @@
1
- import { InputProps } from './Input';
2
- type RadioButtonProps = InputProps & {
3
- type?: "radio";
4
- labelPosition?: "left" | "right";
5
- };
6
- export declare const RadioButton: React.FC<RadioButtonProps>;
7
- export {};
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { Input as e } from "./Input.esm.js";
3
- import { jsx as t } from "react/jsx-runtime";
4
- //#region src/components/Input/RadioButton.tsx
5
- var n = ({ type: n = "radio", labelPosition: r = "right", ...i }) => /* @__PURE__ */ t(e, {
6
- type: n,
7
- labelPosition: r,
8
- ...i
9
- });
10
- //#endregion
11
- export { n as RadioButton };
@@ -1,25 +0,0 @@
1
- "use client";
2
- import e from "./Input.module.esm.js";
3
- import { InputWrapper as t } from "./InputWrapper.esm.js";
4
- import n from "clsx";
5
- import { jsx as r } from "react/jsx-runtime";
6
- import { useId as i } from "react";
7
- //#region src/components/Input/Textarea.tsx
8
- var a = ({ labelPosition: a = "top", id: o, label: s, error: c, required: l, className: u, style: d, ...f }) => {
9
- let p = i(), m = o || p;
10
- return /* @__PURE__ */ r(t, {
11
- label: s,
12
- className: n(e.textarea, u),
13
- labelPosition: a,
14
- error: c,
15
- required: l,
16
- style: d,
17
- children: /* @__PURE__ */ r("textarea", {
18
- id: m,
19
- className: n(e.input),
20
- ...f
21
- })
22
- });
23
- };
24
- //#endregion
25
- export { a as Textarea };
@@ -1,53 +0,0 @@
1
- "use client";
2
- import { color as e } from "../../styles/utilities/color.esm.js";
3
- import { Button as t } from "../Button/Button.esm.js";
4
- import n from "./Modal.module.esm.js";
5
- import r from "clsx";
6
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
- import s from "react";
8
- import { LuX as c } from "react-icons/lu";
9
- //#region src/components/Modal/Modal.tsx
10
- var l = class extends s.PureComponent {
11
- state = { isClosing: !1 };
12
- onDismiss = () => {
13
- this.props.onDismiss && (this.setState({ isClosing: !0 }), setTimeout(() => {
14
- this.props.onDismiss && this.props.onDismiss(), this.setState({ isClosing: !1 });
15
- }, 280));
16
- };
17
- onClickBackground = () => {
18
- (this.props.backgroundDismiss ?? !0) === !0 && this.onDismiss();
19
- };
20
- render() {
21
- let s = this.props.type || "dialog";
22
- return this.props.visible ? /* @__PURE__ */ o("div", {
23
- className: r([n.wrapper, this.props.className]),
24
- style: this.props.style,
25
- children: [/* @__PURE__ */ o("div", {
26
- className: r(n.content, n[s]),
27
- "data-is-closing": this.state.isClosing,
28
- children: [
29
- /* @__PURE__ */ o("header", { children: [this.props.header && /* @__PURE__ */ a(i, { children: this.props.header }), !this.props.hideDismissIcon && /* @__PURE__ */ a(t, {
30
- variant: "primary",
31
- className: n.closeModal,
32
- onClick: this.onDismiss,
33
- children: /* @__PURE__ */ a(c, {
34
- fill: e("white"),
35
- size: 18
36
- })
37
- })] }),
38
- /* @__PURE__ */ a("section", { children: this.props.children }),
39
- this.props.footer && /* @__PURE__ */ a("footer", {
40
- className: n.actionContainer,
41
- children: this.props.footer
42
- })
43
- ]
44
- }), /* @__PURE__ */ a("div", {
45
- className: n.background,
46
- "data-is-closing": this.state.isClosing,
47
- onClick: this.onClickBackground
48
- })]
49
- }) : /* @__PURE__ */ a(i, {});
50
- }
51
- };
52
- //#endregion
53
- export { l as Modal };
@@ -1 +0,0 @@
1
- ._wrapper_3m995_1,._background_3m995_1{width:100%;height:100%;position:fixed;inset:0}@keyframes _fadeIn_3m995_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_3m995_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_3m995_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideOut_3m995_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._wrapper_3m995_1{z-index:1000;justify-content:center;align-items:center;display:flex}._background_3m995_1{z-index:1001;background-color:#00000080;animation-fill-mode:forwards}._background_3m995_1[data-is-closing=true]{animation:.3s ease-in-out _fadeOut_3m995_1}._background_3m995_1[data-is-closing=false]{animation:.3s ease-in-out _fadeIn_3m995_1}._content_3m995_62{padding:var(--w-gutter);z-index:1002;background-color:var(--white);-webkit-overflow-scrolling:touch;touch-action:pan-y;max-height:80vh;animation-fill-mode:forwards;overflow-y:auto}._content_3m995_62[data-is-closing=true]{animation:.3s ease-in-out _slideOut_3m995_1}._content_3m995_62[data-is-closing=false]{animation:.3s ease-in-out _slideIn_3m995_1}._content_3m995_62._panel_3m995_78{height:100%;position:fixed;top:0;right:0}._content_3m995_62._dialog_3m995_84{border-radius:8px}._content_3m995_62>header{width:100%;margin-bottom:calc(var(--w-gutter) * .5);justify-content:space-between;display:inline-flex}._content_3m995_62>header>button:only-child{margin-left:auto}._actionContainer_3m995_97{margin-top:calc(var(--w-gutter) * 2);background-color:var(--white);gap:var(--w-gutter);height:fit-content;display:flex}._closeModal_3m995_105{border-radius:50%;justify-content:center;width:30px;height:30px;padding:0;text-decoration:none;display:inline-flex}@media (width>=0) and (width<=660px){._content_3m995_62._panel_3m995_78,._content_3m995_62._dialog_3m995_84{width:100%;height:100%}}@media (width>=660px){._content_3m995_62._panel_3m995_78{width:calc((var(--w-column) * 4) + (var(--w-gutter) * 3))}._content_3m995_62._dialog_3m995_84{width:calc((var(--w-column) * 6) + (var(--w-gutter) * 5))}}@media (width>=1040px){._content_3m995_62._dialog_3m995_84{width:calc((var(--w-column) * 8) + (var(--w-gutter) * 7))}}
@@ -1,16 +0,0 @@
1
- import './Modal.module.css';//#region src/components/Modal/Modal.module.scss
2
- var e = "_wrapper_3m995_1", t = "_background_3m995_1", n = "_fadeOut_3m995_1", r = "_fadeIn_3m995_1", i = "_content_3m995_62", a = "_slideOut_3m995_1", o = "_slideIn_3m995_1", s = "_panel_3m995_78", c = "_dialog_3m995_84", l = "_actionContainer_3m995_97", u = "_closeModal_3m995_105", d = {
3
- wrapper: e,
4
- background: t,
5
- fadeOut: n,
6
- fadeIn: r,
7
- content: i,
8
- slideOut: a,
9
- slideIn: o,
10
- panel: s,
11
- dialog: c,
12
- actionContainer: l,
13
- closeModal: u
14
- };
15
- //#endregion
16
- export { l as actionContainer, t as background, u as closeModal, i as content, d as default, c as dialog, r as fadeIn, n as fadeOut, s as panel, o as slideIn, a as slideOut, e as wrapper };