@stamcat/craftsman 0.0.27-alpha.9 → 0.0.28

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 (180) hide show
  1. package/AGENTS.md +21 -403
  2. package/Components.esm.js +62 -11
  3. package/README.md +63 -12
  4. package/Styles.esm.js +7 -7
  5. package/Utilities.esm.js +2 -2
  6. package/_virtual/_rolldown/runtime.esm.js +18 -6
  7. package/package.json +51 -3
  8. package/src/components/Button/AGENTS.md +65 -0
  9. package/src/components/Button/Button.d.ts +1 -1
  10. package/src/components/Button/Button.esm.js +11 -17
  11. package/src/components/Carousel/AGENTS.md +41 -0
  12. package/src/components/Carousel/Carousel.css +1 -0
  13. package/src/components/Carousel/Carousel.d.ts +11 -0
  14. package/src/components/Carousel/Carousel.scss +34 -0
  15. package/src/components/Carousel/Carousel2.esm.js +75 -0
  16. package/src/components/Checkbox/AGENTS.md +34 -0
  17. package/src/components/Checkbox/Checkbox.d.ts +8 -0
  18. package/src/components/Checkbox/Checkbox.esm.js +18 -0
  19. package/src/components/DatePicker/AGENTS.md +36 -0
  20. package/src/components/DatePicker/DatePicker.css +1 -0
  21. package/src/components/DatePicker/DatePicker.d.ts +8 -0
  22. package/src/components/DatePicker/DatePicker.scss +61 -0
  23. package/src/components/DatePicker/DatePicker2.esm.js +29 -0
  24. package/src/components/DatePicker/ReactCalendar.css +1 -0
  25. package/src/components/DatePicker/ReactCalendar.scss +158 -0
  26. package/src/components/DatePicker/_DatePicker.scss +73 -0
  27. package/src/components/DateRangePicker/AGENTS.md +38 -0
  28. package/src/components/DateRangePicker/DateRangePicker.css +1 -0
  29. package/src/components/DateRangePicker/DateRangePicker.d.ts +8 -0
  30. package/src/components/DateRangePicker/DateRangePicker.scss +62 -0
  31. package/src/components/DateRangePicker/DateRangePicker2.esm.js +29 -0
  32. package/src/components/DateTimePicker/AGENTS.md +41 -0
  33. package/src/components/DateTimePicker/DateTimePicker.css +1 -0
  34. package/src/components/DateTimePicker/DateTimePicker.d.ts +13 -0
  35. package/src/components/DateTimePicker/DateTimePicker.scss +86 -0
  36. package/src/components/DateTimePicker/DateTimePicker2.esm.js +82 -0
  37. package/src/components/Icons/IconAmazonPay.d.ts +2 -0
  38. package/src/components/Icons/IconAmazonPay.esm.js +76 -0
  39. package/src/components/Icons/IconAmex.d.ts +2 -0
  40. package/src/components/Icons/IconAmex.esm.js +87 -0
  41. package/src/components/Icons/IconApplePay.d.ts +2 -0
  42. package/src/components/Icons/IconApplePay.esm.js +26 -0
  43. package/src/components/Icons/IconDiscover.d.ts +2 -0
  44. package/src/components/Icons/IconDiscover.esm.js +129 -0
  45. package/src/components/Icons/IconGooglePay.d.ts +2 -0
  46. package/src/components/Icons/IconGooglePay.esm.js +64 -0
  47. package/src/components/Icons/IconMaestro.d.ts +2 -0
  48. package/src/components/Icons/IconMaestro.esm.js +38 -0
  49. package/src/components/Icons/IconMastercard.d.ts +2 -0
  50. package/src/components/Icons/IconMastercard.esm.js +27 -0
  51. package/src/components/Icons/IconPayPal.d.ts +2 -0
  52. package/src/components/Icons/IconPayPal.esm.js +52 -0
  53. package/src/components/Icons/IconSepa.d.ts +2 -0
  54. package/src/components/Icons/IconSepa.esm.js +272 -0
  55. package/src/components/Icons/IconShopPay.d.ts +2 -0
  56. package/src/components/Icons/IconShopPay.esm.js +35 -0
  57. package/src/components/Icons/IconSquare.d.ts +2 -0
  58. package/src/components/Icons/IconSquare.esm.js +11 -0
  59. package/src/components/Icons/IconStripe.d.ts +2 -0
  60. package/src/components/Icons/IconStripe.esm.js +57 -0
  61. package/src/components/Icons/IconUnionPay.d.ts +2 -0
  62. package/src/components/Icons/IconUnionPay.esm.js +28 -0
  63. package/src/components/Icons/IconVenmo.d.ts +2 -0
  64. package/src/components/Icons/IconVenmo.esm.js +21 -0
  65. package/src/components/Icons/IconVisa.d.ts +2 -0
  66. package/src/components/Icons/IconVisa.esm.js +14 -0
  67. package/src/components/Icons/index.d.ts +15 -0
  68. package/src/components/Icons/index.esm.js +16 -0
  69. package/src/components/Icons/types.d.ts +4 -0
  70. package/src/components/Input/AGENTS.md +30 -0
  71. package/src/components/Input/Input.css +1 -1
  72. package/src/components/Input/Input.scss +108 -95
  73. package/src/components/Input/Input2.esm.js +27 -18
  74. package/src/components/Input/InputWrapper.d.ts +1 -0
  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/{Input → InputPhone}/InputPhone.d.ts +1 -1
  86. package/src/components/InputPhone/InputPhone.scss +266 -0
  87. package/src/components/{Input/InputPhone.esm.js → InputPhone/InputPhone2.esm.js} +4 -4
  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 -6
  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 -1
  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/DatePicker.d.ts +0 -8
  165. package/src/components/Input/DatePicker.esm.js +0 -24
  166. package/src/components/Input/InputPassword.esm.js +0 -28
  167. package/src/components/Input/RadioButton.d.ts +0 -7
  168. package/src/components/Input/RadioButton.esm.js +0 -11
  169. package/src/components/Input/Textarea.esm.js +0 -24
  170. package/src/components/Modal/Modal.esm.js +0 -53
  171. package/src/components/Modal/Modal.module.css +0 -1
  172. package/src/components/Modal/Modal.module.esm.js +0 -16
  173. package/src/components/Modal/Modal.module.scss +0 -147
  174. package/src/styles/global/components/_reactCalendar.css +0 -1
  175. package/src/styles/global/components/_reactCalendar.scss +0 -237
  176. package/src/styles/global/components/_reactDatePicker.css +0 -1
  177. package/src/styles/global/components/_reactDatePicker.scss +0 -152
  178. package/src/styles/global/components/_reactPhone.css +0 -1
  179. package/src/styles/global/components/_reactPhone.scss +0 -265
  180. /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 "./Input2.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,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { LabeledInput } from './InputWrapper';
3
- import { DatePickerProps } from 'react-date-picker';
4
- export type InputProps = DatePickerProps & LabeledInput & {
5
- id?: string;
6
- style?: React.CSSProperties;
7
- };
8
- export declare const DatePicker: React.FC<InputProps>;
@@ -1,24 +0,0 @@
1
- "use client";
2
- import { InputWrapper as e } from "./InputWrapper.esm.js";
3
- import '../../styles/global/components/_reactCalendar.css';import '../../styles/global/components/_reactDatePicker.css';/* empty css */
4
- /* empty css */
5
- import t from "clsx";
6
- import { jsx as n } from "react/jsx-runtime";
7
- import { useId as r } from "react";
8
- import { DatePicker as i } from "react-date-picker";
9
- //#region src/components/Input/DatePicker.tsx
10
- var a = ({ label: a, id: o, labelPosition: s = "top", required: c = !1, error: l, style: u, className: d, ...f }) => {
11
- let p = r();
12
- return /* @__PURE__ */ n(e, {
13
- id: o || p,
14
- className: t(d),
15
- label: a,
16
- labelPosition: s,
17
- error: l,
18
- required: c,
19
- style: u,
20
- children: /* @__PURE__ */ n(i, { ...f })
21
- });
22
- };
23
- //#endregion
24
- export { a as DatePicker };
@@ -1,28 +0,0 @@
1
- "use client";
2
- import { Button as e } from "../Button/Button.esm.js";
3
- import { Input as t } from "./Input2.esm.js";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import { useState as r } from "react";
6
- import { ImEye as i, ImEyeBlocked as a } from "react-icons/im";
7
- //#region src/components/Input/InputPassword.tsx
8
- var o = ({ visible: t, onToggle: r }) => /* @__PURE__ */ n(e, {
9
- type: "button",
10
- variant: "text",
11
- onClick: r,
12
- "aria-label": t ? "Hide password" : "Show password",
13
- "aria-pressed": t,
14
- className: "input-view-toggle",
15
- children: n(t ? i : a, { size: 16 })
16
- }), s = ({ type: e = "password", ...i }) => {
17
- let [a, s] = r(!1), c = a ? "text" : e;
18
- return /* @__PURE__ */ n(t, {
19
- ...i,
20
- type: c,
21
- endAdornment: /* @__PURE__ */ n(o, {
22
- visible: a,
23
- onToggle: () => s((e) => !e)
24
- })
25
- });
26
- };
27
- //#endregion
28
- export { s 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 "./Input2.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,24 +0,0 @@
1
- "use client";
2
- import { InputWrapper as e } from "./InputWrapper.esm.js";
3
- import t from "clsx";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import { useId as r } from "react";
6
- //#region src/components/Input/Textarea.tsx
7
- var i = ({ labelPosition: i = "top", id: a, label: o, error: s, required: c, className: l, style: u, ...d }) => {
8
- let f = r(), p = a || f;
9
- return /* @__PURE__ */ n(e, {
10
- label: o,
11
- className: t("textarea", l),
12
- labelPosition: i,
13
- error: s,
14
- required: c,
15
- style: u,
16
- children: /* @__PURE__ */ n("textarea", {
17
- id: p,
18
- className: "input",
19
- ...d
20
- })
21
- });
22
- };
23
- //#endregion
24
- export { i 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 };
@@ -1,147 +0,0 @@
1
- @use "../../styles/global/components/modal";
2
- @use "../../styles/utilities/functions" as u;
3
-
4
- @keyframes fadeIn {
5
- from {
6
- opacity: 0;
7
- }
8
-
9
- to {
10
- opacity: 1;
11
- }
12
- }
13
-
14
- @keyframes fadeOut {
15
- from {
16
- opacity: 1;
17
- }
18
-
19
- to {
20
- opacity: 0;
21
- }
22
- }
23
-
24
- @keyframes slideIn {
25
- from {
26
- transform: translateY(100%);
27
- }
28
-
29
- to {
30
- transform: translateY(0);
31
- }
32
- }
33
-
34
- @keyframes slideOut {
35
- from {
36
- transform: translateY(0);
37
- }
38
-
39
- to {
40
- transform: translateY(100%);
41
- }
42
- }
43
-
44
- .wrapper {
45
- @extend %modal-overlay;
46
- z-index: 1000;
47
- display: flex;
48
- justify-content: center;
49
- align-items: center;
50
- }
51
-
52
- .background {
53
- @extend %modal-overlay;
54
- z-index: 1001;
55
- background-color: rgba(0, 0, 0, 0.5);
56
- animation-fill-mode: forwards;
57
-
58
- &[data-is-closing="true"] {
59
- animation: fadeOut 0.3s ease-in-out;
60
- }
61
-
62
- &[data-is-closing="false"] {
63
- animation: fadeIn 0.3s ease-in-out;
64
- }
65
- }
66
-
67
- .content {
68
- padding: #{u.width("gutter")};
69
- z-index: 1002;
70
- background-color: var(--white);
71
- max-height: 80vh;
72
- overflow-y: auto;
73
- -webkit-overflow-scrolling: touch;
74
- touch-action: pan-y;
75
- animation-fill-mode: forwards;
76
-
77
- &[data-is-closing="true"] {
78
- animation: slideOut 0.3s ease-in-out;
79
- }
80
-
81
- &[data-is-closing="false"] {
82
- animation: slideIn 0.3s ease-in-out;
83
- }
84
-
85
- &.panel {
86
- position: fixed;
87
- top: 0;
88
- right: 0;
89
- height: 100%;
90
- }
91
-
92
- &.dialog {
93
- border-radius: 8px;
94
- }
95
-
96
- > header {
97
- display: inline-flex;
98
- width: 100%;
99
- justify-content: space-between;
100
- margin-bottom: #{u.width("gutter", 0.5)};
101
-
102
- > button:only-child {
103
- margin-left: auto;
104
- }
105
- }
106
- }
107
-
108
- .actionContainer {
109
- margin-top: #{u.width("gutter", 2)};
110
- background-color: var(--white);
111
- height: fit-content;
112
- display: flex;
113
- gap: #{u.width("gutter")};
114
- }
115
- .closeModal {
116
- text-decoration: none;
117
- height: 30px;
118
- width: 30px;
119
- border-radius: 50%;
120
- padding: 0;
121
- display: inline-flex;
122
- justify-content: center;
123
- };
124
-
125
- @include u.breakpoint(mobileOnly) {
126
- .content.panel,
127
- .content.dialog {
128
- width: 100%;
129
- height: 100%;
130
- }
131
- }
132
-
133
- @include u.breakpoint(tablet) {
134
- .content.panel {
135
- width: #{u.width("column", 4)};
136
- }
137
-
138
- .content.dialog {
139
- width: #{u.width("column", 6)};
140
- }
141
- }
142
-
143
- @include u.breakpoint(desktop) {
144
- .content.dialog {
145
- width: #{u.width("column", 8)};
146
- }
147
- }
@@ -1 +0,0 @@
1
- .react-calendar{background:#fff;border:1px solid #a0a096;width:350px;max-width:100%;font-family:Arial,Helvetica,sans-serif;line-height:1.125em}.react-calendar--doubleView{width:700px}.react-calendar--doubleView .react-calendar__viewContainer{margin:-.5em;display:flex}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar,.react-calendar *,.react-calendar :before,.react-calendar :after{box-sizing:border-box}.react-calendar button{border:0;outline:none;margin:0}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{height:44px;margin-bottom:1em;display:flex}.react-calendar__navigation button{background:0 0;min-width:44px}.react-calendar__navigation button:disabled{background-color:#f0f0f0}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#e6e6e6}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font:inherit;font-size:.75em;font-weight:700}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekNumbers .react-calendar__tile{font:inherit;justify-content:center;align-items:center;font-size:.75em;font-weight:700;display:flex}.react-calendar__month-view__days__day--weekend{color:#d10000}.react-calendar__month-view__days__day--neighboringMonth,.react-calendar__decade-view__years__year--neighboringDecade,.react-calendar__century-view__decades__decade--neighboringCentury{color:#757575}.react-calendar__year-view .react-calendar__tile,.react-calendar__decade-view .react-calendar__tile,.react-calendar__century-view .react-calendar__tile{padding:2em .5em}.react-calendar__tile{text-align:center;max-width:100%;font:inherit;background:0 0;padding:10px 6.6667px;font-size:.833em}.react-calendar__tile:disabled{color:#ababab;background-color:#f0f0f0}.react-calendar__month-view__days__day--neighboringMonth:disabled,.react-calendar__decade-view__years__year--neighboringDecade:disabled,.react-calendar__century-view__decades__decade--neighboringCentury:disabled{color:#cdcdcd}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{background-color:#e6e6e6}.react-calendar__tile--now{background:#ffff76}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{background:#ffffa9}.react-calendar__tile--hasActive{background:#76baff}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#a9d4ff}.react-calendar__tile--active{color:#fff;background:#006edc}.react-calendar__tile--active:enabled:hover,.react-calendar__tile--active:enabled:focus{background:#1087ff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#e6e6e6}.react-calendar{border-color:var(--gray400)}.react-calendar button{justify-content:center}.react-calendar__month-view__days button.react-calendar__tile{height:50px}.react-calendar__month-view__days button.react-calendar__tile:hover,.react-calendar__month-view__days button.react-calendar__tile--active,.react-calendar__month-view__days button.react-calendar__tile--now{border-radius:50%}.react-datetime-picker button{color:unset}.react-datetime-picker button.react-calendar__tile--active{background-color:var(--blue500);color:var(--white)}.react-datetime-picker button.react-calendar__tile--active:hover{background-color:var(--blue500)}.react-datetime-picker button.react-calendar__tile--now{border:1px solid var(--text)}.react-datetime-picker button.react-calendar__tile--now:hover{background-color:var(--gray100)}.react-datetime-picker button.react-calendar__tile--hasActive{background:var(--blue500)}.react-datetime-picker button.react-calendar__tile--hasActive:hover{background:var(--blue300)}.react-datetime-picker button:hover{background-color:unset}.react-datetime-picker input[type=number]{appearance:textfield}.react-datetime-picker input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.react-datetime-picker input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datetime-picker input{background-color:unset;border:unset;box-sizing:unset;border-radius:unset}.react-datetime-picker input:focus,.react-datetime-picker input:focus-visible{border:unset;color:unset;background:unset;outline:none}