@stamcat/craftsman 0.0.27-alpha.2 → 0.0.27-alpha.21
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/AGENTS.md +19 -344
- package/Components.esm.js +72 -11
- package/README.md +5 -0
- package/Styles.esm.js +7 -7
- package/Utilities.esm.js +2 -2
- package/_virtual/_rolldown/runtime.esm.js +18 -6
- package/package.json +75 -6
- package/src/components/Button/AGENTS.md +65 -0
- package/src/components/{Button.d.ts → Button/Button.d.ts} +1 -1
- package/src/components/Button/Button.esm.js +20 -0
- package/src/components/Carousel/AGENTS.md +41 -0
- package/src/components/Carousel/Carousel.css +1 -0
- package/src/components/Carousel/Carousel.d.ts +11 -0
- package/src/components/Carousel/Carousel.scss +34 -0
- package/src/components/Carousel/Carousel2.esm.js +75 -0
- package/src/components/Checkbox/AGENTS.md +34 -0
- package/src/components/Checkbox/Checkbox.d.ts +8 -0
- package/src/components/Checkbox/Checkbox.esm.js +18 -0
- package/src/components/DatePicker/AGENTS.md +36 -0
- package/src/components/DatePicker/DatePicker.css +1 -0
- package/src/components/DatePicker/DatePicker.d.ts +8 -0
- package/src/components/DatePicker/DatePicker.scss +61 -0
- package/src/components/DatePicker/DatePicker2.esm.js +29 -0
- package/src/components/DatePicker/ReactCalendar.css +1 -0
- package/src/components/DatePicker/ReactCalendar.scss +158 -0
- package/src/components/DatePicker/_DatePicker.scss +73 -0
- package/src/components/DateRangePicker/AGENTS.md +38 -0
- package/src/components/DateRangePicker/DateRangePicker.css +1 -0
- package/src/components/DateRangePicker/DateRangePicker.d.ts +8 -0
- package/src/components/DateRangePicker/DateRangePicker.scss +62 -0
- package/src/components/DateRangePicker/DateRangePicker2.esm.js +29 -0
- package/src/components/DateTimePicker/AGENTS.md +41 -0
- package/src/components/DateTimePicker/DateTimePicker.css +1 -0
- package/src/components/DateTimePicker/DateTimePicker.d.ts +13 -0
- package/src/components/DateTimePicker/DateTimePicker.scss +86 -0
- package/src/components/DateTimePicker/DateTimePicker2.esm.js +82 -0
- package/src/components/Icons/IconAmazonPay.d.ts +2 -0
- package/src/components/Icons/IconAmazonPay.esm.js +76 -0
- package/src/components/Icons/IconAmex.d.ts +2 -0
- package/src/components/Icons/IconAmex.esm.js +87 -0
- package/src/components/Icons/IconApplePay.d.ts +2 -0
- package/src/components/Icons/IconApplePay.esm.js +26 -0
- package/src/components/Icons/IconDiscover.d.ts +2 -0
- package/src/components/Icons/IconDiscover.esm.js +129 -0
- package/src/components/Icons/IconGooglePay.d.ts +2 -0
- package/src/components/Icons/IconGooglePay.esm.js +64 -0
- package/src/components/Icons/IconMaestro.d.ts +2 -0
- package/src/components/Icons/IconMaestro.esm.js +38 -0
- package/src/components/Icons/IconMastercard.d.ts +2 -0
- package/src/components/Icons/IconMastercard.esm.js +27 -0
- package/src/components/Icons/IconPayPal.d.ts +2 -0
- package/src/components/Icons/IconPayPal.esm.js +52 -0
- package/src/components/Icons/IconSepa.d.ts +2 -0
- package/src/components/Icons/IconSepa.esm.js +272 -0
- package/src/components/Icons/IconShopPay.d.ts +2 -0
- package/src/components/Icons/IconShopPay.esm.js +35 -0
- package/src/components/Icons/IconSquare.d.ts +2 -0
- package/src/components/Icons/IconSquare.esm.js +11 -0
- package/src/components/Icons/IconStripe.d.ts +2 -0
- package/src/components/Icons/IconStripe.esm.js +57 -0
- package/src/components/Icons/IconUnionPay.d.ts +2 -0
- package/src/components/Icons/IconUnionPay.esm.js +28 -0
- package/src/components/Icons/IconVenmo.d.ts +2 -0
- package/src/components/Icons/IconVenmo.esm.js +21 -0
- package/src/components/Icons/IconVisa.d.ts +2 -0
- package/src/components/Icons/IconVisa.esm.js +14 -0
- package/src/components/Icons/index.d.ts +15 -0
- package/src/components/Icons/index.esm.js +16 -0
- package/src/components/Icons/types.d.ts +4 -0
- package/src/components/Input/AGENTS.md +30 -0
- package/src/components/Input/Input.css +1 -0
- package/src/components/Input/Input.d.ts +6 -0
- package/src/components/Input/Input.scss +176 -0
- package/src/components/Input/Input2.esm.js +42 -0
- package/src/components/Input/InputWrapper.d.ts +11 -0
- package/src/components/Input/InputWrapper.esm.js +22 -0
- package/src/components/InputNumber/AGENTS.md +37 -0
- package/src/components/InputNumber/InputNumber.css +1 -0
- package/src/components/InputNumber/InputNumber.d.ts +10 -0
- package/src/components/InputNumber/InputNumber.scss +29 -0
- package/src/components/InputNumber/InputNumber2.esm.js +36 -0
- package/src/components/InputPassword/AGENTS.md +29 -0
- package/src/components/{InputPassword.d.ts → InputPassword/InputPassword.d.ts} +2 -2
- package/src/components/InputPassword/InputPassword.esm.js +30 -0
- package/src/components/InputPhone/AGENTS.md +35 -0
- package/src/components/InputPhone/InputPhone.css +1 -0
- package/src/components/InputPhone/InputPhone.d.ts +7 -0
- package/src/components/InputPhone/InputPhone.scss +266 -0
- package/src/components/InputPhone/InputPhone2.esm.js +27 -0
- package/src/components/Loader/AGENTS.md +31 -0
- package/src/components/{Loader.d.ts → Loader/Loader.d.ts} +1 -2
- package/src/components/Loader/Loader.esm.js +19 -0
- package/src/components/Loader/loaders.module.css +1 -0
- package/src/components/Loader/loaders.module.esm.js +21 -0
- package/src/{styles/global/components → components/Loader}/loaders.module.scss +2 -1
- package/src/components/Modal/AGENTS.md +47 -0
- package/src/components/Modal/Modal.css +1 -0
- package/src/components/{Modal.d.ts → Modal/Modal.d.ts} +0 -1
- package/src/components/Modal/Modal.scss +150 -0
- package/src/components/Modal/Modal2.esm.js +53 -0
- package/src/components/Notice/AGENTS.md +42 -0
- package/src/components/Notice/Notice.css +1 -0
- package/src/components/Notice/Notice.d.ts +13 -0
- package/src/components/Notice/Notice.scss +76 -0
- package/src/components/Notice/Notice2.esm.js +56 -0
- package/src/components/Pagination/AGENTS.md +38 -0
- package/src/components/Pagination/Pagination.css +1 -0
- package/src/components/Pagination/Pagination.d.ts +10 -0
- package/src/components/Pagination/Pagination.scss +22 -0
- package/src/components/Pagination/Pagination2.esm.js +64 -0
- package/src/components/RadioButton/AGENTS.md +44 -0
- package/src/components/RadioButton/RadioButton.d.ts +9 -0
- package/src/components/RadioButton/RadioButton.esm.js +18 -0
- package/src/components/Select/AGENTS.md +36 -0
- package/src/components/Select/Select.d.ts +14 -0
- package/src/components/Select/Select.esm.js +26 -0
- package/src/components/SortableList/AGENTS.md +45 -0
- package/src/components/SortableList/ListItem.d.ts +10 -0
- package/src/components/SortableList/ListItem.esm.js +67 -0
- package/src/components/SortableList/SortableList.css +1 -0
- package/src/components/SortableList/SortableList.d.ts +23 -0
- package/src/components/SortableList/SortableList.scss +41 -0
- package/src/components/SortableList/SortableList2.esm.js +54 -0
- package/src/components/SortableList/utilities.d.ts +7 -0
- package/src/components/SortableList/utilities.esm.js +4 -0
- package/src/components/Text/AGENTS.md +32 -0
- package/src/components/Text/Text.css +1 -0
- package/src/components/Text/Text.d.ts +10 -0
- package/src/components/Text/Text.scss +80 -0
- package/src/components/Text/Text2.esm.js +23 -0
- package/src/components/Textarea/AGENTS.md +32 -0
- package/src/components/Textarea/Textarea.d.ts +3 -0
- package/src/components/Textarea/Textarea.esm.js +23 -0
- package/src/components/TimePicker/AGENTS.md +42 -0
- package/src/components/TimePicker/TimePicker.css +1 -0
- package/src/components/TimePicker/TimePicker.d.ts +13 -0
- package/src/components/TimePicker/TimePicker.scss +226 -0
- package/src/components/TimePicker/TimePicker2.esm.js +98 -0
- package/src/components/TimePicker/TimePickerDisplay.d.ts +16 -0
- package/src/components/TimePicker/TimePickerDisplay.esm.js +54 -0
- package/src/components/TimePicker/TimePickerWheel.d.ts +13 -0
- package/src/components/TimePicker/TimePickerWheel.esm.js +61 -0
- package/src/components/TimePicker/constants.d.ts +7 -0
- package/src/components/TimePicker/constants.esm.js +3 -0
- package/src/components/TimePicker/utilities.d.ts +15 -0
- package/src/components/TimePicker/utilities.esm.js +20 -0
- package/src/components/Toggle/AGENTS.md +33 -0
- package/src/components/Toggle/Toggle.css +1 -0
- package/src/components/Toggle/Toggle.d.ts +5 -0
- package/src/components/Toggle/Toggle.scss +64 -0
- package/src/components/Toggle/Toggle2.esm.js +19 -0
- package/src/components/Tooltip/AGENTS.md +41 -0
- package/src/components/Tooltip/Tooltip.css +1 -0
- package/src/components/Tooltip/Tooltip.d.ts +12 -0
- package/src/components/Tooltip/Tooltip.scss +29 -0
- package/src/components/Tooltip/Tooltip2.esm.js +65 -0
- package/src/components/index.d.ts +23 -7
- package/src/stories/assets/Stam.jpg +0 -0
- package/src/stories/assets/kaluah.jpg +0 -0
- package/src/stories/assets/stam2.jpg +0 -0
- package/src/stories/assets/tito.jpg +0 -0
- package/src/stories/documentation/AboutUs.mdx +21 -0
- package/src/stories/documentation/GettingStarted.mdx +117 -0
- package/src/stories/documentation/Introduction.mdx +29 -0
- package/src/stories/documentation/Themes.mdx +264 -0
- package/src/stories/documentation/ToDo.mdx +15 -0
- package/src/stories/molecules/Carousel.scss +21 -0
- package/src/stories/utilities/DeviceDetection.mdx +59 -0
- package/src/styles/_config.scss +30 -0
- package/src/styles/components/ThemeProvider.esm.js +1 -1
- package/src/styles/global/components/_button.scss +56 -52
- package/src/styles/global/components/_checkbox.scss +64 -59
- package/src/styles/global/components/_code.scss +19 -15
- package/src/styles/global/components/_input.scss +29 -37
- package/src/styles/global/components/_radioButton.scss +30 -26
- package/src/styles/global/components/_select.scss +56 -0
- package/src/styles/global/components/_typography.scss +97 -6
- package/src/styles/global/globalStyles.module.scss +1 -129
- package/src/styles/global/globalStyles.scss +87 -1
- package/src/styles/index.d.ts +1 -1
- package/src/styles/theme/components.esm.js +11 -7
- package/src/styles/theme/theme.esm.js +31 -41
- package/src/styles/theme/types.d.ts +4 -1
- package/src/styles/utilities/_functions.scss +117 -0
- package/src/styles/utilities/_mixins.scss +0 -0
- package/src/styles/utilities/_placeholders.scss +6 -0
- package/src/styles/utilities/color.d.ts +1 -1
- package/src/styles/utilities/constants.d.ts +1 -1
- package/src/styles/utilities/layout.d.ts +1 -1
- package/src/styles/utilities/layout.esm.js +3 -3
- package/src/{styles/utilities → utilities}/types.d.ts +61 -3
- package/src/utilities/types.esm.js +85 -0
- package/src/utilities/validations.d.ts +5 -0
- package/src/utilities/validations.esm.js +19 -1
- package/src/components/Button.esm.js +0 -28
- package/src/components/Button.module.css +0 -1
- package/src/components/Button.module.esm.js +0 -9
- package/src/components/Button.module.scss +0 -5
- package/src/components/Checkbox.d.ts +0 -7
- package/src/components/Checkbox.esm.js +0 -11
- package/src/components/Input.d.ts +0 -11
- package/src/components/Input.esm.js +0 -41
- package/src/components/Input.module.css +0 -1
- package/src/components/Input.module.esm.js +0 -11
- package/src/components/Input.module.scss +0 -141
- package/src/components/InputPassword.esm.js +0 -33
- package/src/components/Loader.esm.js +0 -21
- package/src/components/Modal.esm.js +0 -62
- package/src/components/Modal.module.css +0 -1
- package/src/components/Modal.module.esm.js +0 -13
- package/src/components/Modal.module.scss +0 -133
- package/src/components/RadioButton.d.ts +0 -7
- package/src/components/RadioButton.esm.js +0 -11
- package/src/styles/global/components/_mixins.scss +0 -2
- package/src/styles/global/components/button.d.ts +0 -7
- package/src/styles/global/components/loaders.module.css +0 -1
- package/src/styles/global/components/loaders.module.esm.js +0 -21
- package/src/styles/utilities/types.esm.js +0 -54
- package/src/{styles/global/components/loaders.d.ts → components/Loader/types.d.ts} +1 -1
- /package/src/{styles/global/components/loaders.esm.js → components/Loader/types.esm.js} +0 -0
- /package/src/components/{Progress.d.ts → Progress/Progress.d.ts} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './Input.module.css';//#region src/components/Input.module.scss
|
|
2
|
-
var e = "_wrapper_h3ihm_1", t = "_inputLabel_h3ihm_8", n = "_input_h3ihm_8", r = "_inputField_h3ihm_58", i = "_inputAdornment_h3ihm_89", a = "_error_h3ihm_100", o = {
|
|
3
|
-
wrapper: e,
|
|
4
|
-
inputLabel: t,
|
|
5
|
-
input: n,
|
|
6
|
-
inputField: r,
|
|
7
|
-
inputAdornment: i,
|
|
8
|
-
error: a
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { o as default, a as error, n as input, i as inputAdornment, r as inputField, t as inputLabel, e as wrapper };
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
@use "../styles/global/components/input";
|
|
2
|
-
|
|
3
|
-
.wrapper {
|
|
4
|
-
label {
|
|
5
|
-
.inputLabel {
|
|
6
|
-
margin-bottom: calc(var(--w-gutter, 16px) * 0.25);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&[data-required="true"] {
|
|
11
|
-
label {
|
|
12
|
-
.inputLabel {
|
|
13
|
-
&::after {
|
|
14
|
-
content: "*";
|
|
15
|
-
color: var(--red700);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&[data-label-position="left"] {
|
|
22
|
-
label {
|
|
23
|
-
display: inline-flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
|
|
26
|
-
.inputLabel {
|
|
27
|
-
width: fit-content;
|
|
28
|
-
margin-right: calc(var(--w-gutter, 16px) * 0.75);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&[data-label-position="bottom"] {
|
|
34
|
-
label {
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
flex-direction: column-reverse;
|
|
37
|
-
align-items: flex-start;
|
|
38
|
-
|
|
39
|
-
.inputLabel {
|
|
40
|
-
margin-bottom: 0;
|
|
41
|
-
margin-top: calc(var(--w-gutter, 16px) * 0.25);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&[data-label-position="right"] {
|
|
47
|
-
label {
|
|
48
|
-
display: inline-flex;
|
|
49
|
-
flex-direction: row-reverse;
|
|
50
|
-
align-items: baseline;
|
|
51
|
-
|
|
52
|
-
.inputLabel {
|
|
53
|
-
margin-left: calc(var(--w-gutter, 16px) * 0.25);
|
|
54
|
-
margin-bottom: 0;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&[data-label-position="inside"] {
|
|
60
|
-
@extend %inside-input-label-base;
|
|
61
|
-
|
|
62
|
-
.inputLabel {
|
|
63
|
-
position: absolute;
|
|
64
|
-
background-color: var(--white);
|
|
65
|
-
z-index: 1;
|
|
66
|
-
width: fit-content;
|
|
67
|
-
padding: 0 5px;
|
|
68
|
-
top: calc(var(--w-gutter, 16px) * 0.25);
|
|
69
|
-
left: calc(var(--w-gutter, 16px) * 0.25);
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
transition: top 150ms ease, left 150ms ease, font-size 150ms ease, color 150ms ease;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
> label > .inputField > .input,
|
|
75
|
-
> .input {
|
|
76
|
-
transition: border-color 200ms ease;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&:focus-within {
|
|
80
|
-
.inputLabel {
|
|
81
|
-
@extend %inside-input-label-floating;
|
|
82
|
-
color: var(--blue500);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.input {
|
|
86
|
-
border-color: var(--blue500);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.input::placeholder {
|
|
90
|
-
opacity: 1;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:has(.input:not(:placeholder-shown)),
|
|
95
|
-
&:has(.input:-webkit-autofill),
|
|
96
|
-
&[data-has-input="true"] {
|
|
97
|
-
.inputLabel {
|
|
98
|
-
@extend %inside-input-label-floating;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.input[type="tel"] {
|
|
103
|
-
width: 100%;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.input::placeholder {
|
|
107
|
-
opacity: 0;
|
|
108
|
-
transition: opacity 200ms ease;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.inputField {
|
|
114
|
-
position: relative;
|
|
115
|
-
display: inline-flex;
|
|
116
|
-
align-items: center;
|
|
117
|
-
|
|
118
|
-
&[data-has-end-adornment="true"] {
|
|
119
|
-
> .input {
|
|
120
|
-
width: 100%;
|
|
121
|
-
padding-right: calc(calc(var(--w-gutter, 16px) * 0.5) + 24px + calc(var(--w-gutter, 16px) * 0.5));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.inputAdornment {
|
|
127
|
-
position: absolute;
|
|
128
|
-
right: calc(var(--w-gutter, 16px) * 0.5);
|
|
129
|
-
top: 50%;
|
|
130
|
-
transform: translateY(-50%);
|
|
131
|
-
margin-top: 0;
|
|
132
|
-
z-index: 1;
|
|
133
|
-
display: inline-flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.error {
|
|
138
|
-
margin-top: calc(var(--w-gutter, 16px) * 0.25);
|
|
139
|
-
font-size: calc(var(--w-text, 14px) * 0.75);
|
|
140
|
-
color: var(--red600);
|
|
141
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { Button as e } from "./Button.esm.js";
|
|
3
|
-
import { Input as t } from "./Input.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/InputPassword.tsx
|
|
8
|
-
var o = {
|
|
9
|
-
padding: 0,
|
|
10
|
-
display: "inline-flex",
|
|
11
|
-
alignItems: "center",
|
|
12
|
-
lineHeight: 1
|
|
13
|
-
}, s = ({ visible: t, onToggle: r }) => /* @__PURE__ */ n(e, {
|
|
14
|
-
type: "button",
|
|
15
|
-
variant: "text",
|
|
16
|
-
onClick: r,
|
|
17
|
-
"aria-label": t ? "Hide password" : "Show password",
|
|
18
|
-
"aria-pressed": t,
|
|
19
|
-
styles: o,
|
|
20
|
-
children: n(t ? i : a, { size: 16 })
|
|
21
|
-
}), c = ({ type: e = "password", ...i }) => {
|
|
22
|
-
let [a, o] = r(!1), c = a ? "text" : e;
|
|
23
|
-
return /* @__PURE__ */ n(t, {
|
|
24
|
-
...i,
|
|
25
|
-
type: c,
|
|
26
|
-
endAdornment: /* @__PURE__ */ n(s, {
|
|
27
|
-
visible: a,
|
|
28
|
-
onToggle: () => o((e) => !e)
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
export { c as InputPassword };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isEmpty as e } from "../utilities/validations.esm.js";
|
|
3
|
-
import { loaders as t } from "../styles/global/components/loaders.esm.js";
|
|
4
|
-
import n from "../styles/global/components/loaders.module.esm.js";
|
|
5
|
-
import r from "clsx";
|
|
6
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/Loader.tsx
|
|
8
|
-
var a = (a) => {
|
|
9
|
-
let { type: o, color: s = "black", width: c, styles: l, className: u, style: d, ...f } = a, p = e(l) ? void 0 : l, m = t[o](s, c);
|
|
10
|
-
return /* @__PURE__ */ i("div", {
|
|
11
|
-
className: r(n[o], u),
|
|
12
|
-
style: {
|
|
13
|
-
...m,
|
|
14
|
-
...p,
|
|
15
|
-
...d
|
|
16
|
-
},
|
|
17
|
-
...f
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { a as Loader };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { isEmpty as e } from "../utilities/validations.esm.js";
|
|
3
|
-
import { color as t } from "../styles/utilities/color.esm.js";
|
|
4
|
-
import { Button as n } from "./Button.esm.js";
|
|
5
|
-
import r from "./Modal.module.esm.js";
|
|
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.tsx
|
|
10
|
-
var l = {
|
|
11
|
-
textDecoration: "none",
|
|
12
|
-
height: 30,
|
|
13
|
-
width: 30,
|
|
14
|
-
borderRadius: "50%",
|
|
15
|
-
padding: 0,
|
|
16
|
-
display: "inline-flex",
|
|
17
|
-
justifyContent: "center"
|
|
18
|
-
}, u = class extends s.PureComponent {
|
|
19
|
-
state = { isClosing: !1 };
|
|
20
|
-
onDismiss = () => {
|
|
21
|
-
this.props.onDismiss && (this.setState({ isClosing: !0 }), setTimeout(() => {
|
|
22
|
-
this.props.onDismiss && this.props.onDismiss(), this.setState({ isClosing: !1 });
|
|
23
|
-
}, 280));
|
|
24
|
-
};
|
|
25
|
-
onClickBackground = () => {
|
|
26
|
-
(this.props.backgroundDismiss || !0) === !0 && this.onDismiss();
|
|
27
|
-
};
|
|
28
|
-
render() {
|
|
29
|
-
let s = e(this.props.styles) ? void 0 : this.props.styles;
|
|
30
|
-
return this.props.visible ? /* @__PURE__ */ o("div", {
|
|
31
|
-
className: r.wrapper,
|
|
32
|
-
style: s,
|
|
33
|
-
children: [/* @__PURE__ */ o("div", {
|
|
34
|
-
className: r.content,
|
|
35
|
-
"data-type": this.props.type || "dialog",
|
|
36
|
-
"data-is-closing": this.state.isClosing,
|
|
37
|
-
children: [
|
|
38
|
-
/* @__PURE__ */ o("header", { children: [this.props.header && /* @__PURE__ */ a(i, { children: this.props.header }), !this.props.hideDismissIcon && /* @__PURE__ */ a(n, {
|
|
39
|
-
variant: "primary",
|
|
40
|
-
styles: l,
|
|
41
|
-
onClick: this.onDismiss,
|
|
42
|
-
children: /* @__PURE__ */ a(c, {
|
|
43
|
-
fill: t("white"),
|
|
44
|
-
size: 18
|
|
45
|
-
})
|
|
46
|
-
})] }),
|
|
47
|
-
/* @__PURE__ */ a("section", { children: this.props.children }),
|
|
48
|
-
this.props.footer && /* @__PURE__ */ a("footer", {
|
|
49
|
-
className: r.actionContainer,
|
|
50
|
-
children: this.props.footer
|
|
51
|
-
})
|
|
52
|
-
]
|
|
53
|
-
}), /* @__PURE__ */ a("div", {
|
|
54
|
-
className: r.background,
|
|
55
|
-
"data-is-closing": this.state.isClosing,
|
|
56
|
-
onClick: this.onClickBackground
|
|
57
|
-
})]
|
|
58
|
-
}) : /* @__PURE__ */ a(i, {});
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
export { u as Modal };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._wrapper_16mh3_1,._background_16mh3_1{width:100%;height:100%;position:fixed;inset:0}@keyframes _fadeIn_16mh3_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_16mh3_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_16mh3_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideOut_16mh3_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._wrapper_16mh3_1{z-index:1000;justify-content:center;align-items:center;display:flex}._background_16mh3_1{z-index:1001;background-color:#00000080;animation-fill-mode:forwards}._background_16mh3_1[data-is-closing=true]{animation:.3s ease-in-out _fadeOut_16mh3_1}._background_16mh3_1[data-is-closing=false]{animation:.3s ease-in-out _fadeIn_16mh3_1}._content_16mh3_62{padding:var(--w-gutter,16px);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_16mh3_62[data-is-closing=true]{animation:.3s ease-in-out _slideOut_16mh3_1}._content_16mh3_62[data-is-closing=false]{animation:.3s ease-in-out _slideIn_16mh3_1}._content_16mh3_62[data-type=panel]{height:100%;position:fixed;top:0;right:0}._content_16mh3_62[data-type=dialog]{border-radius:8px}._content_16mh3_62>header{width:100%;margin-bottom:calc(var(--w-gutter,16px) * .5);justify-content:space-between;display:inline-flex}._actionContainer_16mh3_94{margin-top:calc(var(--w-gutter,16px) * 2);background-color:var(--white);gap:var(--w-gutter,16px);height:fit-content;display:flex}@media (width>=0) and (width<=660px){._content_16mh3_62[data-type=panel],._content_16mh3_62[data-type=dialog]{width:100%;height:100%}}@media (width>=660px){._content_16mh3_62[data-type=panel]{width:calc(var(--w-column,60px) * 4 + var(--w-gutter,16px) * 3)}._content_16mh3_62[data-type=dialog]{width:calc(var(--w-column,60px) * 6 + var(--w-gutter,16px) * 5)}}@media (width>=1040px){._content_16mh3_62[data-type=dialog]{width:calc(var(--w-column,60px) * 8 + var(--w-gutter,16px) * 7)}}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import './Modal.module.css';//#region src/components/Modal.module.scss
|
|
2
|
-
var e = "_wrapper_16mh3_1", t = "_background_16mh3_1", n = "_fadeOut_16mh3_1", r = "_fadeIn_16mh3_1", i = "_content_16mh3_62", a = "_slideOut_16mh3_1", o = "_slideIn_16mh3_1", s = "_actionContainer_16mh3_94", c = {
|
|
3
|
-
wrapper: e,
|
|
4
|
-
background: t,
|
|
5
|
-
fadeOut: n,
|
|
6
|
-
fadeIn: r,
|
|
7
|
-
content: i,
|
|
8
|
-
slideOut: a,
|
|
9
|
-
slideIn: o,
|
|
10
|
-
actionContainer: s
|
|
11
|
-
};
|
|
12
|
-
//#endregion
|
|
13
|
-
export { s as actionContainer, t as background, i as content, c as default, r as fadeIn, n as fadeOut, o as slideIn, a as slideOut, e as wrapper };
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
@use "../styles/global/components/modal";
|
|
2
|
-
|
|
3
|
-
@keyframes fadeIn {
|
|
4
|
-
from {
|
|
5
|
-
opacity: 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
to {
|
|
9
|
-
opacity: 1;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@keyframes fadeOut {
|
|
14
|
-
from {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
to {
|
|
19
|
-
opacity: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes slideIn {
|
|
24
|
-
from {
|
|
25
|
-
transform: translateY(100%);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
to {
|
|
29
|
-
transform: translateY(0);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@keyframes slideOut {
|
|
34
|
-
from {
|
|
35
|
-
transform: translateY(0);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
to {
|
|
39
|
-
transform: translateY(100%);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.wrapper {
|
|
44
|
-
@extend %modal-overlay;
|
|
45
|
-
z-index: 1000;
|
|
46
|
-
display: flex;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.background {
|
|
52
|
-
@extend %modal-overlay;
|
|
53
|
-
z-index: 1001;
|
|
54
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
55
|
-
animation-fill-mode: forwards;
|
|
56
|
-
|
|
57
|
-
&[data-is-closing="true"] {
|
|
58
|
-
animation: fadeOut 0.3s ease-in-out;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&[data-is-closing="false"] {
|
|
62
|
-
animation: fadeIn 0.3s ease-in-out;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.content {
|
|
67
|
-
padding: var(--w-gutter, 16px);
|
|
68
|
-
z-index: 1002;
|
|
69
|
-
background-color: var(--white);
|
|
70
|
-
max-height: 80vh;
|
|
71
|
-
overflow-y: auto;
|
|
72
|
-
-webkit-overflow-scrolling: touch;
|
|
73
|
-
touch-action: pan-y;
|
|
74
|
-
animation-fill-mode: forwards;
|
|
75
|
-
|
|
76
|
-
&[data-is-closing="true"] {
|
|
77
|
-
animation: slideOut 0.3s ease-in-out;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&[data-is-closing="false"] {
|
|
81
|
-
animation: slideIn 0.3s ease-in-out;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&[data-type="panel"] {
|
|
85
|
-
position: fixed;
|
|
86
|
-
top: 0;
|
|
87
|
-
right: 0;
|
|
88
|
-
height: 100%;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&[data-type="dialog"] {
|
|
92
|
-
border-radius: 8px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
> header {
|
|
96
|
-
display: inline-flex;
|
|
97
|
-
width: 100%;
|
|
98
|
-
justify-content: space-between;
|
|
99
|
-
margin-bottom: calc(var(--w-gutter, 16px) * 0.5);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.actionContainer {
|
|
104
|
-
margin-top: calc(var(--w-gutter, 16px) * 2);
|
|
105
|
-
background-color: var(--white);
|
|
106
|
-
height: fit-content;
|
|
107
|
-
display: flex;
|
|
108
|
-
gap: var(--w-gutter, 16px);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
@media (min-width: 0px) and (max-width: 659.99999px) {
|
|
112
|
-
.content[data-type="panel"],
|
|
113
|
-
.content[data-type="dialog"] {
|
|
114
|
-
width: 100%;
|
|
115
|
-
height: 100%;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@media (min-width: 660px) {
|
|
120
|
-
.content[data-type="panel"] {
|
|
121
|
-
width: calc((var(--w-column, 60px) * 4) + (var(--w-gutter, 16px) * 3));
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.content[data-type="dialog"] {
|
|
125
|
-
width: calc((var(--w-column, 60px) * 6) + (var(--w-gutter, 16px) * 5));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media (min-width: 1040px) {
|
|
130
|
-
.content[data-type="dialog"] {
|
|
131
|
-
width: calc((var(--w-column, 60px) * 8) + (var(--w-gutter, 16px) * 7));
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -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/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 +0,0 @@
|
|
|
1
|
-
._dots_1w7tl_1{aspect-ratio:1;width:var(--_l5w);margin:0 var(--_l5w2);border-radius:50%;animation:1s linear infinite alternate _l5_1w7tl_1}@keyframes _l5_1w7tl_1{0%{box-shadow:var(--_l5w2) 0 var(--_l5c), var(--_l5w3) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%);background:var(--_l5c)}33%{box-shadow:var(--_l5w2) 0 var(--_l5c), var(--_l5w3) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%);background:color-mix(in srgb, var(--_l5c) 80%, white 75%)}66%{box-shadow:var(--_l5w2) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%), var(--_l5w3) 0 var(--_l5c);background:color-mix(in srgb, var(--_l5c) 80%, white 75%)}to{box-shadow:var(--_l5w2) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%), var(--_l5w3) 0 var(--_l5c);background:var(--_l5c)}}@keyframes _l3_1w7tl_1{to{transform:rotate(1turn)}}._dots-trace_1w7tl_41{width:var(--_dtw);aspect-ratio:4;background:radial-gradient(circle closest-side, var(--_dtc) 90%, #0000) 0/33.3333% 100% space;clip-path:inset(0 100% 0 0);animation:1s steps(4,end) infinite _l1_1w7tl_1}@keyframes _l1_1w7tl_1{to{clip-path:inset(0 -34% 0 0)}}._dots-orbit_1w7tl_54{width:var(--_dow);aspect-ratio:1;background:var(--_doc);border-radius:50%;animation:2s linear infinite _l22-0_1w7tl_1;display:grid}._dots-orbit_1w7tl_54:before,._dots-orbit_1w7tl_54:after{content:"";background:inherit;border-radius:50%;grid-area:1/1;margin:15%;animation:1s infinite _l22_1w7tl_1;transform:rotate(0)translate(150%)}._dots-orbit_1w7tl_54:after{animation-delay:-.5s}@keyframes _l22-0_1w7tl_1{to{transform:rotate(1turn)}}@keyframes _l22_1w7tl_1{to{transform:rotate(1turn)translate(150%)}}._dashes_1w7tl_85{width:var(--_dshw);height:calc(var(--_dshw) * .3);background:linear-gradient(var(--_dshc) 0 0) left/var(--_dshw2) 4px, linear-gradient(var(--_dshc) 0 0) center/var(--_dshw2) 4px, linear-gradient(var(--_dshc) 0 0) right/var(--_dshw2) 4px;background-repeat:no-repeat;animation:1s linear infinite _dashes_1w7tl_85}@keyframes _dashes_1w7tl_85{0%{background-size:var(--_dshw2) 4px, var(--_dshw2) 4px, var(--_dshw2) 4px;opacity:1}33%{background-size:var(--_dshw2) var(--_dshw2), var(--_dshw2) 4px, var(--_dshw2) 4px;opacity:.7}66%{background-size:var(--_dshw2) 4px, var(--_dshw2) var(--_dshw2), var(--_dshw2) 4px;opacity:.7}to{background-size:var(--_dshw2) 4px, var(--_dshw2) 4px, var(--_dshw2) var(--_dshw2);opacity:1}}._spinner_1w7tl_111{width:var(--_spnw);aspect-ratio:1;border:var(--_spnw2) solid color-mix(in srgb, var(--_spnc) 20%, transparent);border-right-color:var(--_spnc);border-radius:50%;animation:1s linear infinite _l2_1w7tl_1}@keyframes _l2_1w7tl_1{to{transform:rotate(1turn)}}._swirl_1w7tl_125{width:var(--_swrlw);padding:var(--_swrlw2);aspect-ratio:1;background:var(--_swrlc);--_m:conic-gradient(#0000 10%,#000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;border-radius:50%;animation:1s linear infinite _l3_1w7tl_1;-webkit-mask-composite:source-out;mask-composite:subtract}._ball_1w7tl_146{width:var(--_ballw);aspect-ratio:1;background:radial-gradient(farthest-side, var(--_ballc) 95%, #0000) 50% 1px/var(--_ballw2) var(--_ballw2) no-repeat, radial-gradient(farthest-side, #0000 calc(100% - var(--_ballw2)), #ccc 0);border-radius:50%;animation:2s linear infinite _l9_1w7tl_1}@keyframes _l9_1w7tl_1{to{transform:rotate(1turn)}}._boxy_1w7tl_159{width:var(--_boxw);height:var(--_boxw2);background:linear-gradient(var(--_boxc) 0 0) left -25% top 0/20% 100% no-repeat #ddd;animation:1s steps(6,end) infinite _l7_1w7tl_1;-webkit-mask:linear-gradient(90deg,#000 70%,#0000 0) 0/20% 100%}@keyframes _l7_1w7tl_1{to{background-position:right -25% top 0}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import './loaders.module.css';//#region src/styles/global/components/loaders.module.scss
|
|
2
|
-
var e = "_dots_1w7tl_1", t = "_l5_1w7tl_1", n = "_dots-trace_1w7tl_41", r = "_l1_1w7tl_1", i = "_dots-orbit_1w7tl_54", a = "_l22-0_1w7tl_1", o = "_l22_1w7tl_1", s = "_dashes_1w7tl_85", c = "_spinner_1w7tl_111", l = "_l2_1w7tl_1", u = "_swirl_1w7tl_125", d = "_l3_1w7tl_1", f = "_ball_1w7tl_146", p = "_l9_1w7tl_1", m = "_boxy_1w7tl_159", h = "_l7_1w7tl_1", g = {
|
|
3
|
-
dots: e,
|
|
4
|
-
l5: t,
|
|
5
|
-
dotsTrace: n,
|
|
6
|
-
l1: r,
|
|
7
|
-
dotsOrbit: i,
|
|
8
|
-
l220: a,
|
|
9
|
-
l22: o,
|
|
10
|
-
dashes: s,
|
|
11
|
-
spinner: c,
|
|
12
|
-
l2: l,
|
|
13
|
-
swirl: u,
|
|
14
|
-
l3: d,
|
|
15
|
-
ball: f,
|
|
16
|
-
l9: p,
|
|
17
|
-
boxy: m,
|
|
18
|
-
l7: h
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { f as ball, m as boxy, s as dashes, g as default, e as dots, i as dotsOrbit, n as dotsTrace, r as l1, l as l2, o as l22, a as l220, d as l3, t as l5, h as l7, p as l9, c as spinner, u as swirl };
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import e from "zod";
|
|
2
|
-
//#region src/styles/utilities/types.ts
|
|
3
|
-
var t = e.enum(["gutter", "column"]), n = e.enum([
|
|
4
|
-
"tablet",
|
|
5
|
-
"desktop",
|
|
6
|
-
"extDesktop"
|
|
7
|
-
]), r = e.enum([
|
|
8
|
-
"mobileMax",
|
|
9
|
-
"tabletMax",
|
|
10
|
-
"desktopMax"
|
|
11
|
-
]), i = e.enum([
|
|
12
|
-
...n.options,
|
|
13
|
-
...r.options,
|
|
14
|
-
"mobileOnly",
|
|
15
|
-
"tabletOnly",
|
|
16
|
-
"mobileTablet",
|
|
17
|
-
"desktopOnly"
|
|
18
|
-
]), a = e.enum([
|
|
19
|
-
...t.options,
|
|
20
|
-
...n.options,
|
|
21
|
-
...r.options,
|
|
22
|
-
"text"
|
|
23
|
-
]), o = e.enum(["checkbox", "radio"]), s = [
|
|
24
|
-
"color",
|
|
25
|
-
"date",
|
|
26
|
-
"datetime-local",
|
|
27
|
-
"email",
|
|
28
|
-
"file",
|
|
29
|
-
"hidden",
|
|
30
|
-
"image",
|
|
31
|
-
"month",
|
|
32
|
-
"number",
|
|
33
|
-
"password",
|
|
34
|
-
"range",
|
|
35
|
-
"reset",
|
|
36
|
-
"search",
|
|
37
|
-
"submit",
|
|
38
|
-
"tel",
|
|
39
|
-
"text",
|
|
40
|
-
"time",
|
|
41
|
-
"url",
|
|
42
|
-
"week",
|
|
43
|
-
"radio",
|
|
44
|
-
"checkbox"
|
|
45
|
-
], c = e.enum(s), l = e.enum([
|
|
46
|
-
"top",
|
|
47
|
-
"left",
|
|
48
|
-
"bottom",
|
|
49
|
-
"right",
|
|
50
|
-
"inside",
|
|
51
|
-
"hidden"
|
|
52
|
-
]);
|
|
53
|
-
//#endregion
|
|
54
|
-
export { t as BaseWidthSchema, i as BreakpointSchema, a as LayoutWidthsSchema, r as MaxScreenWidthSchema, n as ScreenWidthSchema, l as zLabelPosition, o as zTextInputExclusions, c as zTextInputType, s as zTextInputTypes };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as z } from 'zod';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
export declare const LoaderStyleSchema: z.ZodEnum<{
|
|
4
|
-
spinner: "spinner";
|
|
5
4
|
dots: "dots";
|
|
5
|
+
spinner: "spinner";
|
|
6
6
|
"dots-trace": "dots-trace";
|
|
7
7
|
"dots-orbit": "dots-orbit";
|
|
8
8
|
dashes: "dashes";
|
|
File without changes
|
|
File without changes
|