arxatec-ui 0.1.71 → 0.1.72
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/README.md +277 -9
- package/dist/arxatec-ui.css +1 -1
- package/dist/components/autosave_field_status/index.d.ts +5 -0
- package/dist/components/autosave_field_status/index.js +12 -0
- package/dist/components/autosave_field_status/index.js.map +1 -0
- package/dist/components/autosave_status/constants/index.d.ts +1 -0
- package/dist/components/autosave_status/constants/index.js +6 -0
- package/dist/components/autosave_status/constants/index.js.map +1 -0
- package/dist/components/autosave_status/index.d.ts +9 -0
- package/dist/components/autosave_status/index.js +46 -0
- package/dist/components/autosave_status/index.js.map +1 -0
- package/dist/components/autosave_status/types/index.d.ts +2 -0
- package/dist/components/editable_fields/context/index.d.ts +31 -0
- package/dist/components/editable_fields/context/index.js +30 -0
- package/dist/components/editable_fields/context/index.js.map +1 -0
- package/dist/components/editable_fields/hooks/index.d.ts +1 -0
- package/dist/components/editable_fields/hooks/index.js +8 -0
- package/dist/components/editable_fields/hooks/index.js.map +1 -0
- package/dist/components/editable_fields/index.d.ts +3 -0
- package/dist/components/editable_fields/index.js +32 -0
- package/dist/components/editable_fields/index.js.map +1 -0
- package/dist/components/emoji_picker/components/emoji_picker_content/index.d.ts +3 -1
- package/dist/components/emoji_picker/components/emoji_picker_content/index.js +3 -3
- package/dist/components/emoji_picker/components/emoji_picker_content/index.js.map +1 -1
- package/dist/components/emoji_picker/components/emoji_picker_footer/index.d.ts +3 -1
- package/dist/components/emoji_picker/components/emoji_picker_footer/index.js +3 -3
- package/dist/components/emoji_picker/components/emoji_picker_footer/index.js.map +1 -1
- package/dist/components/file_explorer/constants/index.d.ts +1 -0
- package/dist/components/file_explorer/constants/index.js +6 -0
- package/dist/components/file_explorer/constants/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_breadcrumb/index.d.ts +9 -0
- package/dist/components/file_explorer/explorer_breadcrumb/index.js +21 -0
- package/dist/components/file_explorer/explorer_breadcrumb/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_empty_state/index.d.ts +9 -0
- package/dist/components/file_explorer/explorer_empty_state/index.js +32 -0
- package/dist/components/file_explorer/explorer_empty_state/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_error_state/index.d.ts +6 -0
- package/dist/components/file_explorer/explorer_error_state/index.js +18 -0
- package/dist/components/file_explorer/explorer_error_state/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_grid/index.d.ts +10 -0
- package/dist/components/file_explorer/explorer_grid/index.js +21 -0
- package/dist/components/file_explorer/explorer_grid/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_grid_card/index.d.ts +25 -0
- package/dist/components/file_explorer/explorer_grid_card/index.js +79 -0
- package/dist/components/file_explorer/explorer_grid_card/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_loading_state/index.d.ts +4 -0
- package/dist/components/file_explorer/explorer_loading_state/index.js +9 -0
- package/dist/components/file_explorer/explorer_loading_state/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_name_cell/index.d.ts +12 -0
- package/dist/components/file_explorer/explorer_name_cell/index.js +32 -0
- package/dist/components/file_explorer/explorer_name_cell/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_panel/index.d.ts +11 -0
- package/dist/components/file_explorer/explorer_panel/index.js +17 -0
- package/dist/components/file_explorer/explorer_panel/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_row/index.d.ts +18 -0
- package/dist/components/file_explorer/explorer_row/index.js +39 -0
- package/dist/components/file_explorer/explorer_row/index.js.map +1 -0
- package/dist/components/file_explorer/explorer_table/index.d.ts +20 -0
- package/dist/components/file_explorer/explorer_table/index.js +63 -0
- package/dist/components/file_explorer/explorer_table/index.js.map +1 -0
- package/dist/components/file_explorer/index.d.ts +26 -0
- package/dist/components/file_explorer/item_actions/index.d.ts +3 -0
- package/dist/components/file_explorer/item_actions/item_actions_context_content/index.d.ts +5 -0
- package/dist/components/file_explorer/item_actions/item_actions_context_content/index.js +21 -0
- package/dist/components/file_explorer/item_actions/item_actions_context_content/index.js.map +1 -0
- package/dist/components/file_explorer/item_actions/item_actions_dropdown/index.d.ts +7 -0
- package/dist/components/file_explorer/item_actions/item_actions_dropdown/index.js +38 -0
- package/dist/components/file_explorer/item_actions/item_actions_dropdown/index.js.map +1 -0
- package/dist/components/file_explorer/item_actions/types/index.d.ts +9 -0
- package/dist/components/file_explorer/item_actions/utils/index.d.ts +2 -0
- package/dist/components/file_explorer/item_actions/utils/index.js +6 -0
- package/dist/components/file_explorer/item_actions/utils/index.js.map +1 -0
- package/dist/components/file_explorer/shared/utils/index.d.ts +2 -0
- package/dist/components/file_explorer/shared/utils/index.js +8 -0
- package/dist/components/file_explorer/shared/utils/index.js.map +1 -0
- package/dist/components/file_explorer/types/index.d.ts +1 -0
- package/dist/components/file_thumbnail/index.d.ts +12 -0
- package/dist/components/file_thumbnail/index.js +35 -0
- package/dist/components/file_thumbnail/index.js.map +1 -0
- package/dist/components/file_type_icon/file_kind/index.d.ts +13 -0
- package/dist/components/file_type_icon/file_kind/index.js +178 -0
- package/dist/components/file_type_icon/file_kind/index.js.map +1 -0
- package/dist/components/file_type_icon/file_kind/mime_extensions.d.ts +2 -0
- package/dist/components/file_type_icon/file_kind/mime_extensions.js +54 -0
- package/dist/components/file_type_icon/file_kind/mime_extensions.js.map +1 -0
- package/dist/components/file_type_icon/file_type_icon.d.ts +6 -0
- package/dist/components/file_type_icon/file_type_icon.js +67 -0
- package/dist/components/file_type_icon/file_type_icon.js.map +1 -0
- package/dist/components/file_type_icon/index.d.ts +4 -0
- package/dist/components/folder_icon/constants/index.d.ts +11 -0
- package/dist/components/folder_icon/constants/index.js +41 -0
- package/dist/components/folder_icon/constants/index.js.map +1 -0
- package/dist/components/folder_icon/index.d.ts +8 -0
- package/dist/components/folder_icon/index.js +31 -0
- package/dist/components/folder_icon/index.js.map +1 -0
- package/dist/components/hex_color_picker/hex_color_picker_content/index.d.ts +12 -0
- package/dist/components/hex_color_picker/hex_color_picker_content/index.js +42 -0
- package/dist/components/hex_color_picker/hex_color_picker_content/index.js.map +1 -0
- package/dist/components/hex_color_picker/hex_color_picker_popover/index.d.ts +11 -0
- package/dist/components/hex_color_picker/hex_color_picker_popover/index.js +35 -0
- package/dist/components/hex_color_picker/hex_color_picker_popover/index.js.map +1 -0
- package/dist/components/hex_color_picker/index.d.ts +2 -0
- package/dist/components/hex_color_picker/utils/index.d.ts +3 -0
- package/dist/components/hex_color_picker/utils/index.js +35 -0
- package/dist/components/hex_color_picker/utils/index.js.map +1 -0
- package/dist/components/icon_emoji_picker/icon_emoji/index.d.ts +5 -0
- package/dist/components/icon_emoji_picker/icon_emoji/index.js +19 -0
- package/dist/components/icon_emoji_picker/icon_emoji/index.js.map +1 -0
- package/dist/components/icon_emoji_picker/icon_emoji_picker/index.d.ts +23 -0
- package/dist/components/icon_emoji_picker/icon_emoji_picker/index.js +91 -0
- package/dist/components/icon_emoji_picker/icon_emoji_picker/index.js.map +1 -0
- package/dist/components/icon_emoji_picker/icon_grid/constants/index.d.ts +3 -0
- package/dist/components/icon_emoji_picker/icon_grid/constants/index.js +6 -0
- package/dist/components/icon_emoji_picker/icon_grid/constants/index.js.map +1 -0
- package/dist/components/icon_emoji_picker/icon_grid/hooks/index.d.ts +1 -0
- package/dist/components/icon_emoji_picker/icon_grid/hooks/use_icon_pagination/index.d.ts +7 -0
- package/dist/components/icon_emoji_picker/icon_grid/hooks/use_icon_pagination/index.js +35 -0
- package/dist/components/icon_emoji_picker/icon_grid/hooks/use_icon_pagination/index.js.map +1 -0
- package/dist/components/icon_emoji_picker/icon_grid/index.d.ts +8 -0
- package/dist/components/icon_emoji_picker/icon_grid/index.js +49 -0
- package/dist/components/icon_emoji_picker/icon_grid/index.js.map +1 -0
- package/dist/components/icon_emoji_picker/index.d.ts +3 -0
- package/dist/components/icon_emoji_picker/utils/index.d.ts +1 -0
- package/dist/components/icon_emoji_picker/utils/index.js +6 -0
- package/dist/components/icon_emoji_picker/utils/index.js.map +1 -0
- package/dist/components/icons/components/google_calendar_isotype/index.d.ts +2 -0
- package/dist/components/icons/components/google_calendar_isotype/index.js +414 -0
- package/dist/components/icons/components/google_calendar_isotype/index.js.map +1 -0
- package/dist/components/icons/components/google_drive_isotype/index.d.ts +2 -0
- package/dist/components/icons/components/google_drive_isotype/index.js +103 -0
- package/dist/components/icons/components/google_drive_isotype/index.js.map +1 -0
- package/dist/components/icons/components/index.d.ts +4 -0
- package/dist/components/icons/components/onedrive_isotype/index.d.ts +2 -0
- package/dist/components/icons/components/onedrive_isotype/index.js +246 -0
- package/dist/components/icons/components/onedrive_isotype/index.js.map +1 -0
- package/dist/components/icons/components/outlook_calendar_isotype/index.d.ts +2 -0
- package/dist/components/icons/components/outlook_calendar_isotype/index.js +378 -0
- package/dist/components/icons/components/outlook_calendar_isotype/index.js.map +1 -0
- package/dist/components/inline_date_field/index.d.ts +11 -0
- package/dist/components/inline_date_field/index.js +52 -0
- package/dist/components/inline_date_field/index.js.map +1 -0
- package/dist/components/inline_duration_field/components/duration_column/index.d.ts +8 -0
- package/dist/components/inline_duration_field/components/duration_column/index.js +47 -0
- package/dist/components/inline_duration_field/components/duration_column/index.js.map +1 -0
- package/dist/components/inline_duration_field/constants/index.d.ts +4 -0
- package/dist/components/inline_duration_field/constants/index.js +12 -0
- package/dist/components/inline_duration_field/constants/index.js.map +1 -0
- package/dist/components/inline_duration_field/index.d.ts +9 -0
- package/dist/components/inline_duration_field/index.js +89 -0
- package/dist/components/inline_duration_field/index.js.map +1 -0
- package/dist/components/inline_duration_field/utils/index.d.ts +11 -0
- package/dist/components/inline_duration_field/utils/index.js +21 -0
- package/dist/components/inline_duration_field/utils/index.js.map +1 -0
- package/dist/components/inline_editable_text/constants/index.d.ts +2 -0
- package/dist/components/inline_editable_text/constants/index.js +7 -0
- package/dist/components/inline_editable_text/constants/index.js.map +1 -0
- package/dist/components/inline_editable_text/index.d.ts +16 -0
- package/dist/components/inline_editable_text/index.js +109 -0
- package/dist/components/inline_editable_text/index.js.map +1 -0
- package/dist/components/inline_field_trigger/index.d.ts +3 -0
- package/dist/components/inline_field_trigger/index.js +16 -0
- package/dist/components/inline_field_trigger/index.js.map +1 -0
- package/dist/components/inline_markdown_field/index.d.ts +14 -0
- package/dist/components/inline_markdown_field/index.js +70 -0
- package/dist/components/inline_markdown_field/index.js.map +1 -0
- package/dist/components/inline_option_field/index.d.ts +19 -0
- package/dist/components/inline_option_field/index.js +56 -0
- package/dist/components/inline_option_field/index.js.map +1 -0
- package/dist/components/offline_banner/index.d.ts +12 -0
- package/dist/components/offline_banner/index.js +76 -0
- package/dist/components/offline_banner/index.js.map +1 -0
- package/dist/components/property_row/index.d.ts +10 -0
- package/dist/components/property_row/index.js +46 -0
- package/dist/components/property_row/index.js.map +1 -0
- package/dist/components/select_table_header/index.d.ts +13 -0
- package/dist/components/select_table_header/index.js +17 -0
- package/dist/components/select_table_header/index.js.map +1 -0
- package/dist/components/shiny_text/index.d.ts +7 -0
- package/dist/components/shiny_text/index.js +22 -0
- package/dist/components/shiny_text/index.js.map +1 -0
- package/dist/components/table_date_field/index.d.ts +8 -0
- package/dist/components/table_date_field/index.js +67 -0
- package/dist/components/table_date_field/index.js.map +1 -0
- package/dist/components/table_option_field/index.d.ts +13 -0
- package/dist/components/table_option_field/index.js +73 -0
- package/dist/components/table_option_field/index.js.map +1 -0
- package/dist/editable-fields.js +19 -0
- package/dist/exports/editable-fields.d.ts +19 -0
- package/dist/exports/icon-emoji-picker.d.ts +1 -0
- package/dist/exports/offline-banner.d.ts +1 -0
- package/dist/exports/provider-icons.d.ts +4 -0
- package/dist/exports/shiny-text.d.ts +1 -0
- package/dist/icon-emoji-picker.js +4 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +85 -40
- package/dist/offline-banner.js +2 -0
- package/dist/provider-icons.js +5 -0
- package/dist/shiny-text.js +2 -0
- package/dist/styles.css +40 -1
- package/dist/utilities/colors/index.d.ts +1 -0
- package/dist/utilities/colors/index.js +9 -0
- package/dist/utilities/colors/index.js.map +1 -0
- package/package.json +32 -3
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { useId as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/icons/components/outlook_calendar_isotype/index.tsx
|
|
4
|
+
var r = (r) => {
|
|
5
|
+
let i = e();
|
|
6
|
+
return /* @__PURE__ */ n("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
viewBox: "60 90.4 570.02 539.67",
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
...r,
|
|
11
|
+
children: [/* @__PURE__ */ n("defs", { children: [
|
|
12
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
13
|
+
id: `${i}-linear0`,
|
|
14
|
+
gradientUnits: "userSpaceOnUse",
|
|
15
|
+
x1: "9.98908",
|
|
16
|
+
y1: "22.364901",
|
|
17
|
+
x2: "30.932199",
|
|
18
|
+
y2: "9.37495",
|
|
19
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ t("stop", {
|
|
22
|
+
offset: "0",
|
|
23
|
+
stopColor: "rgb(12.54902%,65.490196%,98.039216%)",
|
|
24
|
+
stopOpacity: 1
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ t("stop", {
|
|
27
|
+
offset: "0.4",
|
|
28
|
+
stopColor: "rgb(23.137255%,83.529412%,100%)",
|
|
29
|
+
stopOpacity: 1
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ t("stop", {
|
|
32
|
+
offset: "1",
|
|
33
|
+
stopColor: "rgb(76.862745%,69.019608%,100%)",
|
|
34
|
+
stopOpacity: 1
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
39
|
+
id: `${i}-linear1`,
|
|
40
|
+
gradientUnits: "userSpaceOnUse",
|
|
41
|
+
x1: "17.197201",
|
|
42
|
+
y1: "26.7945",
|
|
43
|
+
x2: "28.856199",
|
|
44
|
+
y2: "8.12575",
|
|
45
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ t("stop", {
|
|
48
|
+
offset: "0",
|
|
49
|
+
stopColor: "rgb(8.627451%,35.294118%,85.098039%)",
|
|
50
|
+
stopOpacity: 1
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ t("stop", {
|
|
53
|
+
offset: "0.5008",
|
|
54
|
+
stopColor: "rgb(9.411765%,50.196078%,89.803922%)",
|
|
55
|
+
stopOpacity: 1
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ t("stop", {
|
|
58
|
+
offset: "1",
|
|
59
|
+
stopColor: "rgb(52.156863%,52.941176%,100%)",
|
|
60
|
+
stopOpacity: 1
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
65
|
+
id: `${i}-linear2`,
|
|
66
|
+
gradientUnits: "userSpaceOnUse",
|
|
67
|
+
x1: "25.7005",
|
|
68
|
+
y1: "27.048401",
|
|
69
|
+
x2: "12.7563",
|
|
70
|
+
y2: "16.501301",
|
|
71
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
72
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
73
|
+
offset: "0.236946",
|
|
74
|
+
stopColor: "rgb(26.666667%,54.117647%,100%)",
|
|
75
|
+
stopOpacity: 0
|
|
76
|
+
}), /* @__PURE__ */ t("stop", {
|
|
77
|
+
offset: "0.792113",
|
|
78
|
+
stopColor: "rgb(0%,19.607843%,69.411765%)",
|
|
79
|
+
stopOpacity: .2
|
|
80
|
+
})]
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
83
|
+
id: `${i}-linear3`,
|
|
84
|
+
gradientUnits: "userSpaceOnUse",
|
|
85
|
+
x1: "24.0534",
|
|
86
|
+
y1: "31.1099",
|
|
87
|
+
x2: "44.509998",
|
|
88
|
+
y2: "18.0177",
|
|
89
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ t("stop", {
|
|
92
|
+
offset: "0",
|
|
93
|
+
stopColor: "rgb(10.196078%,26.27451%,65.098039%)",
|
|
94
|
+
stopOpacity: 1
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ t("stop", {
|
|
97
|
+
offset: "0.492267",
|
|
98
|
+
stopColor: "rgb(12.54902%,32.156863%,79.607843%)",
|
|
99
|
+
stopOpacity: 1
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ t("stop", {
|
|
102
|
+
offset: "1",
|
|
103
|
+
stopColor: "rgb(37.254902%,12.54902%,79.607843%)",
|
|
104
|
+
stopOpacity: 1
|
|
105
|
+
})
|
|
106
|
+
]
|
|
107
|
+
}),
|
|
108
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
109
|
+
id: `${i}-linear4`,
|
|
110
|
+
gradientUnits: "userSpaceOnUse",
|
|
111
|
+
x1: "29.8281",
|
|
112
|
+
y1: "30.327299",
|
|
113
|
+
x2: "17.397499",
|
|
114
|
+
y2: "19.570801",
|
|
115
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
116
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
117
|
+
offset: "0",
|
|
118
|
+
stopColor: "rgb(0%,27.058824%,72.54902%)",
|
|
119
|
+
stopOpacity: 0
|
|
120
|
+
}), /* @__PURE__ */ t("stop", {
|
|
121
|
+
offset: "0.669859",
|
|
122
|
+
stopColor: "rgb(5.098039%,12.156863%,41.176471%)",
|
|
123
|
+
stopOpacity: .2
|
|
124
|
+
})]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ n("radialGradient", {
|
|
127
|
+
id: `${i}-radial0`,
|
|
128
|
+
gradientUnits: "userSpaceOnUse",
|
|
129
|
+
cx: "0",
|
|
130
|
+
cy: "0",
|
|
131
|
+
fx: "0",
|
|
132
|
+
fy: "0",
|
|
133
|
+
r: "1",
|
|
134
|
+
gradientTransform: "matrix(0.000000000000024802,-405.040512,438.393002,0.000000000000026844,360.027008,102.268202)",
|
|
135
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
136
|
+
offset: "0.568182",
|
|
137
|
+
stopColor: "rgb(15.294118%,37.254902%,94.117647%)",
|
|
138
|
+
stopOpacity: 0
|
|
139
|
+
}), /* @__PURE__ */ t("stop", {
|
|
140
|
+
offset: "0.992424",
|
|
141
|
+
stopColor: "rgb(0%,12.941176%,46.666667%)",
|
|
142
|
+
stopOpacity: 1
|
|
143
|
+
})]
|
|
144
|
+
}),
|
|
145
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
146
|
+
id: `${i}-linear5`,
|
|
147
|
+
gradientUnits: "userSpaceOnUse",
|
|
148
|
+
x1: "41.998001",
|
|
149
|
+
y1: "29.9431",
|
|
150
|
+
x2: "23.8517",
|
|
151
|
+
y2: "29.9431",
|
|
152
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
153
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
154
|
+
offset: "0",
|
|
155
|
+
stopColor: "rgb(30.196078%,76.862745%,100%)",
|
|
156
|
+
stopOpacity: 1
|
|
157
|
+
}), /* @__PURE__ */ t("stop", {
|
|
158
|
+
offset: "0.196145",
|
|
159
|
+
stopColor: "rgb(5.882353%,68.627451%,100%)",
|
|
160
|
+
stopOpacity: 1
|
|
161
|
+
})]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ n("radialGradient", {
|
|
164
|
+
id: `${i}-radial1`,
|
|
165
|
+
gradientUnits: "userSpaceOnUse",
|
|
166
|
+
cx: "0",
|
|
167
|
+
cy: "0",
|
|
168
|
+
fx: "0",
|
|
169
|
+
fy: "0",
|
|
170
|
+
r: "1",
|
|
171
|
+
gradientTransform: "matrix(122.73959,-122.73959,122.73959,122.73959,421.392002,568.675518)",
|
|
172
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
173
|
+
offset: "0.259477",
|
|
174
|
+
stopColor: "rgb(0%,37.647059%,81.960784%)",
|
|
175
|
+
stopOpacity: .4
|
|
176
|
+
}), /* @__PURE__ */ t("stop", {
|
|
177
|
+
offset: "0.908166",
|
|
178
|
+
stopColor: "rgb(1.176471%,51.372549%,94.509804%)",
|
|
179
|
+
stopOpacity: 0
|
|
180
|
+
})]
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ n("radialGradient", {
|
|
183
|
+
id: `${i}-radial2`,
|
|
184
|
+
gradientUnits: "userSpaceOnUse",
|
|
185
|
+
cx: "0",
|
|
186
|
+
cy: "0",
|
|
187
|
+
fx: "0",
|
|
188
|
+
fy: "0",
|
|
189
|
+
r: "1",
|
|
190
|
+
gradientTransform: "matrix(357.407022,-468.445926,423.594568,323.187085,159.471002,697.080002)",
|
|
191
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
192
|
+
offset: "0.732317",
|
|
193
|
+
stopColor: "rgb(95.686275%,65.490196%,96.862745%)",
|
|
194
|
+
stopOpacity: 0
|
|
195
|
+
}), /* @__PURE__ */ t("stop", {
|
|
196
|
+
offset: "1",
|
|
197
|
+
stopColor: "rgb(95.686275%,65.490196%,96.862745%)",
|
|
198
|
+
stopOpacity: .501961
|
|
199
|
+
})]
|
|
200
|
+
}),
|
|
201
|
+
/* @__PURE__ */ n("radialGradient", {
|
|
202
|
+
id: `${i}-radial3`,
|
|
203
|
+
gradientUnits: "userSpaceOnUse",
|
|
204
|
+
cx: "0",
|
|
205
|
+
cy: "0",
|
|
206
|
+
fx: "0",
|
|
207
|
+
fy: "0",
|
|
208
|
+
r: "1",
|
|
209
|
+
gradientTransform: "matrix(-170.860868,259.725406,-674.018133,-443.404152,278.562012,412.978506)",
|
|
210
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
211
|
+
offset: "0",
|
|
212
|
+
stopColor: "rgb(28.627451%,87.058824%,100%)",
|
|
213
|
+
stopOpacity: 1
|
|
214
|
+
}), /* @__PURE__ */ t("stop", {
|
|
215
|
+
offset: "0.724349",
|
|
216
|
+
stopColor: "rgb(16.078431%,76.470588%,100%)",
|
|
217
|
+
stopOpacity: 1
|
|
218
|
+
})]
|
|
219
|
+
}),
|
|
220
|
+
/* @__PURE__ */ n("linearGradient", {
|
|
221
|
+
id: `${i}-linear6`,
|
|
222
|
+
gradientUnits: "userSpaceOnUse",
|
|
223
|
+
x1: "3.45756",
|
|
224
|
+
y1: "37.872299",
|
|
225
|
+
x2: "20.9291",
|
|
226
|
+
y2: "37.859699",
|
|
227
|
+
gradientTransform: "matrix(15,0,0,15,0,0)",
|
|
228
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
229
|
+
offset: "0.205882",
|
|
230
|
+
stopColor: "rgb(42.352941%,87.843137%,100%)",
|
|
231
|
+
stopOpacity: 1
|
|
232
|
+
}), /* @__PURE__ */ t("stop", {
|
|
233
|
+
offset: "0.535",
|
|
234
|
+
stopColor: "rgb(31.372549%,83.529412%,100%)",
|
|
235
|
+
stopOpacity: 0
|
|
236
|
+
})]
|
|
237
|
+
}),
|
|
238
|
+
/* @__PURE__ */ n("radialGradient", {
|
|
239
|
+
id: `${i}-radial4`,
|
|
240
|
+
gradientUnits: "userSpaceOnUse",
|
|
241
|
+
cx: "0",
|
|
242
|
+
cy: "0",
|
|
243
|
+
fx: "0",
|
|
244
|
+
fy: "0",
|
|
245
|
+
r: "1",
|
|
246
|
+
gradientTransform: "matrix(215.76719,230.769125,-230.769125,215.76719,59.143649,354.231005)",
|
|
247
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
248
|
+
offset: "0.038877",
|
|
249
|
+
stopColor: "rgb(0%,56.862745%,100%)",
|
|
250
|
+
stopOpacity: 1
|
|
251
|
+
}), /* @__PURE__ */ t("stop", {
|
|
252
|
+
offset: "0.919119",
|
|
253
|
+
stopColor: "rgb(9.411765%,23.921569%,67.843137%)",
|
|
254
|
+
stopOpacity: 1
|
|
255
|
+
})]
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ n("radialGradient", {
|
|
258
|
+
id: `${i}-radial5`,
|
|
259
|
+
gradientUnits: "userSpaceOnUse",
|
|
260
|
+
cx: "0",
|
|
261
|
+
cy: "0",
|
|
262
|
+
fx: "0",
|
|
263
|
+
fy: "0",
|
|
264
|
+
r: "1",
|
|
265
|
+
gradientTransform: "matrix(0.000000000000010287,167.999997,-193.782005,0.000000000000011866,180,491.158504)",
|
|
266
|
+
children: [/* @__PURE__ */ t("stop", {
|
|
267
|
+
offset: "0.557796",
|
|
268
|
+
stopColor: "rgb(5.882353%,64.705882%,96.862745%)",
|
|
269
|
+
stopOpacity: 0
|
|
270
|
+
}), /* @__PURE__ */ t("stop", {
|
|
271
|
+
offset: "1",
|
|
272
|
+
stopColor: "rgb(45.490196%,77.647059%,100%)",
|
|
273
|
+
stopOpacity: .501961
|
|
274
|
+
})]
|
|
275
|
+
})
|
|
276
|
+
] }), /* @__PURE__ */ n("g", {
|
|
277
|
+
id: `${i}-surface1`,
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ t("path", {
|
|
280
|
+
stroke: "none",
|
|
281
|
+
fillRule: "nonzero",
|
|
282
|
+
fill: `url(#${i}-linear0)`,
|
|
283
|
+
d: "M 463.98 140.14 L 119.64 358.41 L 90.02 311.7 L 90.02 271.44 C 90.02 256.78 97.45 243.12 109.74 235.14 L 309.91 105.26 C 340.41 85.47 379.69 85.46 410.19 105.25 Z M 463.98 140.14 "
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ t("path", {
|
|
286
|
+
stroke: "none",
|
|
287
|
+
fillRule: "nonzero",
|
|
288
|
+
fill: `url(#${i}-linear1)`,
|
|
289
|
+
d: "M 407.1 103.34 C 408.14 103.95 409.16 104.59 410.18 105.25 L 566.4 206.59 L 179.06 452.11 L 119.625 358.34 L 403.89 177.8 C 430.82 160.7 432 122.23 407.1 103.34 Z M 407.1 103.34 "
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ t("path", {
|
|
292
|
+
stroke: "none",
|
|
293
|
+
fillRule: "nonzero",
|
|
294
|
+
fill: `url(#${i}-linear2)`,
|
|
295
|
+
d: "M 407.1 103.34 C 408.14 103.95 409.16 104.59 410.18 105.25 L 566.4 206.59 L 179.06 452.11 L 119.625 358.34 L 403.89 177.8 C 430.82 160.7 432 122.23 407.1 103.34 Z M 407.1 103.34 "
|
|
296
|
+
}),
|
|
297
|
+
/* @__PURE__ */ t("path", {
|
|
298
|
+
stroke: "none",
|
|
299
|
+
fillRule: "nonzero",
|
|
300
|
+
fill: `url(#${i}-linear3)`,
|
|
301
|
+
d: "M 333.6 498.99 L 179.07 452.11 L 507.63 243.84 C 535.3 226.3 535.23 185.9 507.5 168.46 L 506.02 167.53 L 510.28 170.18 L 610.27 235.04 C 622.57 243.02 630 256.68 630 271.34 L 630 310.3 Z M 333.6 498.99 "
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ t("path", {
|
|
304
|
+
stroke: "none",
|
|
305
|
+
fillRule: "nonzero",
|
|
306
|
+
fill: `url(#${i}-linear4)`,
|
|
307
|
+
d: "M 333.6 498.99 L 179.07 452.11 L 507.63 243.84 C 535.3 226.3 535.23 185.9 507.5 168.46 L 506.02 167.53 L 510.28 170.18 L 610.27 235.04 C 622.57 243.02 630 256.68 630 271.34 L 630 310.3 Z M 333.6 498.99 "
|
|
308
|
+
}),
|
|
309
|
+
/* @__PURE__ */ t("path", {
|
|
310
|
+
stroke: "none",
|
|
311
|
+
fillRule: "nonzero",
|
|
312
|
+
fill: `url(#${i}-radial0)`,
|
|
313
|
+
d: "M 410.19 105.25 C 379.69 85.46 340.41 85.47 309.91 105.26 L 109.74 235.14 C 97.45 243.12 90.02 256.78 90.02 271.44 L 90.02 273.41 C 90.51 288.12 98.25 301.68 110.76 309.57 L 359.64 466.48 L 609.16 309.8 C 622.12 301.67 629.98 287.44 629.98 272.14 L 629.98 310.31 L 629.99 271.34 C 629.99 256.68 622.57 243.02 610.27 235.04 Z M 410.19 105.25 "
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ t("path", {
|
|
316
|
+
stroke: "none",
|
|
317
|
+
fillRule: "nonzero",
|
|
318
|
+
fill: `url(#${i}-linear5)`,
|
|
319
|
+
d: "M 315.77 630.05 L 536.22 630.05 C 588 630.05 629.97 588.08 629.97 536.3 L 629.97 272.14 C 629.97 287.44 622.11 301.67 609.15 309.8 L 281.24 515.7 C 263.55 526.8 252.82 546.22 252.82 567.11 C 252.82 601.87 281 630.05 315.77 630.05 Z M 315.77 630.05 "
|
|
320
|
+
}),
|
|
321
|
+
/* @__PURE__ */ t("path", {
|
|
322
|
+
stroke: "none",
|
|
323
|
+
fillRule: "nonzero",
|
|
324
|
+
fill: `url(#${i}-radial1)`,
|
|
325
|
+
d: "M 315.77 630.05 L 536.22 630.05 C 588 630.05 629.97 588.08 629.97 536.3 L 629.97 272.14 C 629.97 287.44 622.11 301.67 609.15 309.8 L 281.24 515.7 C 263.55 526.8 252.82 546.22 252.82 567.11 C 252.82 601.87 281 630.05 315.77 630.05 Z M 315.77 630.05 "
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ t("path", {
|
|
328
|
+
stroke: "none",
|
|
329
|
+
fillRule: "nonzero",
|
|
330
|
+
fill: `url(#${i}-radial2)`,
|
|
331
|
+
d: "M 315.77 630.05 L 536.22 630.05 C 588 630.05 629.97 588.08 629.97 536.3 L 629.97 272.14 C 629.97 287.44 622.11 301.67 609.15 309.8 L 281.24 515.7 C 263.55 526.8 252.82 546.22 252.82 567.11 C 252.82 601.87 281 630.05 315.77 630.05 Z M 315.77 630.05 "
|
|
332
|
+
}),
|
|
333
|
+
/* @__PURE__ */ t("path", {
|
|
334
|
+
stroke: "none",
|
|
335
|
+
fillRule: "nonzero",
|
|
336
|
+
fill: `url(#${i}-radial3)`,
|
|
337
|
+
d: "M 405.4 630.04 L 183.74 630.04 C 131.96 630.04 89.99 588.06 89.99 536.29 L 89.99 271.95 C 89.99 287.22 97.82 301.42 110.74 309.57 L 438.32 516.09 C 456.26 527.39 467.13 547.11 467.13 568.31 C 467.13 602.4 439.49 630.04 405.4 630.04 Z M 405.4 630.04 "
|
|
338
|
+
}),
|
|
339
|
+
/* @__PURE__ */ t("path", {
|
|
340
|
+
stroke: "none",
|
|
341
|
+
fillRule: "nonzero",
|
|
342
|
+
fill: `url(#${i}-linear6)`,
|
|
343
|
+
d: "M 405.4 630.04 L 183.74 630.04 C 131.96 630.04 89.99 588.06 89.99 536.29 L 89.99 271.95 C 89.99 287.22 97.82 301.42 110.74 309.57 L 438.32 516.09 C 456.26 527.39 467.13 547.11 467.13 568.31 C 467.13 602.4 439.49 630.04 405.4 630.04 Z M 405.4 630.04 "
|
|
344
|
+
}),
|
|
345
|
+
/* @__PURE__ */ t("path", {
|
|
346
|
+
stroke: "none",
|
|
347
|
+
fillRule: "nonzero",
|
|
348
|
+
fill: `url(#${i}-radial4)`,
|
|
349
|
+
d: "M 108.75 345 L 251.25 345 C 278.18 345 300 366.82 300 393.75 L 300 536.25 C 300 563.18 278.18 585 251.25 585 L 108.75 585 C 81.82 585 60 563.18 60 536.25 L 60 393.75 C 60 366.82 81.82 345 108.75 345 Z M 108.75 345 "
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ t("path", {
|
|
352
|
+
stroke: "none",
|
|
353
|
+
fillRule: "nonzero",
|
|
354
|
+
fill: `url(#${i}-radial5)`,
|
|
355
|
+
d: "M 108.75 345 L 251.25 345 C 278.18 345 300 366.82 300 393.75 L 300 536.25 C 300 563.18 278.18 585 251.25 585 L 108.75 585 C 81.82 585 60 563.18 60 536.25 L 60 393.75 C 60 366.82 81.82 345 108.75 345 Z M 108.75 345 "
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ t("path", {
|
|
358
|
+
stroke: "none",
|
|
359
|
+
fillRule: "nonzero",
|
|
360
|
+
fill: "rgb(100%,100%,100%)",
|
|
361
|
+
fillOpacity: 1,
|
|
362
|
+
d: "M 179.39 534 C 159.54 534 143.25 527.79 130.51 515.375 C 117.77 502.96 111.4 486.76 111.4 466.77 C 111.4 445.66 117.87 428.59 130.8 415.55 C 143.73 402.52 160.66 396 181.59 396 C 201.375 396 217.47 402.24 229.89 414.71 C 242.375 427.19 248.62 443.64 248.62 464.07 C 248.62 485.05 242.15 501.96 229.22 514.82 C 216.35 527.61 199.74 534 179.39 534 Z M 179.96 507.65 C 190.78 507.65 199.48 503.95 206.08 496.57 C 212.67 489.18 215.97 478.9 215.97 465.74 C 215.97 452.02 212.77 441.35 206.37 433.71 C 199.96 426.07 191.42 422.26 180.73 422.26 C 169.72 422.26 160.85 426.2 154.13 434.08 C 147.41 441.91 144.05 452.27 144.05 465.18 C 144.05 478.29 147.41 488.65 154.13 496.29 C 160.85 503.86 169.46 507.65 179.96 507.65 Z M 179.96 507.65 "
|
|
363
|
+
}),
|
|
364
|
+
/* @__PURE__ */ t("path", {
|
|
365
|
+
stroke: "none",
|
|
366
|
+
fillRule: "nonzero",
|
|
367
|
+
fill: "rgb(100%,100%,100%)",
|
|
368
|
+
fillOpacity: 1,
|
|
369
|
+
d: "M 179.33 535.85 C 159.56 535.85 143.33 529.47 130.64 516.72 C 117.95 503.96 111.61 487.32 111.61 466.79 C 111.61 445.11 118.05 427.57 130.93 414.18 C 143.81 400.79 160.68 394.09 181.53 394.09 C 201.23 394.09 217.27 400.5 229.64 413.32 C 242.08 426.14 248.3 443.04 248.3 464.02 C 248.3 485.57 241.86 502.95 228.98 516.14 C 216.16 529.28 199.61 535.85 179.33 535.85 Z M 179.9 508.78 C 190.68 508.78 199.36 504.98 205.92 497.4 C 212.49 489.81 215.77 479.25 215.77 465.73 C 215.77 451.64 212.59 440.68 206.21 432.83 C 199.83 424.99 191.32 421.07 180.67 421.07 C 169.7 421.07 160.87 425.11 154.17 433.21 C 147.48 441.25 144.13 451.9 144.13 465.16 C 144.13 478.62 147.48 489.27 154.17 497.11 C 160.87 504.89 169.45 508.78 179.9 508.78 Z M 179.9 508.78 "
|
|
370
|
+
})
|
|
371
|
+
]
|
|
372
|
+
})]
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
//#endregion
|
|
376
|
+
export { r as OutlookCalendarIsotype };
|
|
377
|
+
|
|
378
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/icons/components/outlook_calendar_isotype/index.tsx"],"sourcesContent":["import { useId, type FC, type SVGProps } from \"react\";\n\nexport const OutlookCalendarIsotype: FC<SVGProps<SVGSVGElement>> = (props) => {\n const id = useId();\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"60 90.4 570.02 539.67\"\n aria-hidden=\"true\"\n {...props}\n >\n <defs>\n <linearGradient\n id={`${id}-linear0`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"9.98908\"\n y1=\"22.364901\"\n x2=\"30.932199\"\n y2=\"9.37495\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0\"\n stopColor=\"rgb(12.54902%,65.490196%,98.039216%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.4\"\n stopColor=\"rgb(23.137255%,83.529412%,100%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"1\"\n stopColor=\"rgb(76.862745%,69.019608%,100%)\"\n stopOpacity={1}\n />\n </linearGradient>\n <linearGradient\n id={`${id}-linear1`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"17.197201\"\n y1=\"26.7945\"\n x2=\"28.856199\"\n y2=\"8.12575\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0\"\n stopColor=\"rgb(8.627451%,35.294118%,85.098039%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.5008\"\n stopColor=\"rgb(9.411765%,50.196078%,89.803922%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"1\"\n stopColor=\"rgb(52.156863%,52.941176%,100%)\"\n stopOpacity={1}\n />\n </linearGradient>\n <linearGradient\n id={`${id}-linear2`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"25.7005\"\n y1=\"27.048401\"\n x2=\"12.7563\"\n y2=\"16.501301\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0.236946\"\n stopColor=\"rgb(26.666667%,54.117647%,100%)\"\n stopOpacity={0}\n />\n <stop\n offset=\"0.792113\"\n stopColor=\"rgb(0%,19.607843%,69.411765%)\"\n stopOpacity={0.2}\n />\n </linearGradient>\n <linearGradient\n id={`${id}-linear3`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"24.0534\"\n y1=\"31.1099\"\n x2=\"44.509998\"\n y2=\"18.0177\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0\"\n stopColor=\"rgb(10.196078%,26.27451%,65.098039%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.492267\"\n stopColor=\"rgb(12.54902%,32.156863%,79.607843%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"1\"\n stopColor=\"rgb(37.254902%,12.54902%,79.607843%)\"\n stopOpacity={1}\n />\n </linearGradient>\n <linearGradient\n id={`${id}-linear4`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"29.8281\"\n y1=\"30.327299\"\n x2=\"17.397499\"\n y2=\"19.570801\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0\"\n stopColor=\"rgb(0%,27.058824%,72.54902%)\"\n stopOpacity={0}\n />\n <stop\n offset=\"0.669859\"\n stopColor=\"rgb(5.098039%,12.156863%,41.176471%)\"\n stopOpacity={0.2}\n />\n </linearGradient>\n <radialGradient\n id={`${id}-radial0`}\n gradientUnits=\"userSpaceOnUse\"\n cx=\"0\"\n cy=\"0\"\n fx=\"0\"\n fy=\"0\"\n r=\"1\"\n gradientTransform=\"matrix(0.000000000000024802,-405.040512,438.393002,0.000000000000026844,360.027008,102.268202)\"\n >\n <stop\n offset=\"0.568182\"\n stopColor=\"rgb(15.294118%,37.254902%,94.117647%)\"\n stopOpacity={0}\n />\n <stop\n offset=\"0.992424\"\n stopColor=\"rgb(0%,12.941176%,46.666667%)\"\n stopOpacity={1}\n />\n </radialGradient>\n <linearGradient\n id={`${id}-linear5`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"41.998001\"\n y1=\"29.9431\"\n x2=\"23.8517\"\n y2=\"29.9431\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0\"\n stopColor=\"rgb(30.196078%,76.862745%,100%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.196145\"\n stopColor=\"rgb(5.882353%,68.627451%,100%)\"\n stopOpacity={1}\n />\n </linearGradient>\n <radialGradient\n id={`${id}-radial1`}\n gradientUnits=\"userSpaceOnUse\"\n cx=\"0\"\n cy=\"0\"\n fx=\"0\"\n fy=\"0\"\n r=\"1\"\n gradientTransform=\"matrix(122.73959,-122.73959,122.73959,122.73959,421.392002,568.675518)\"\n >\n <stop\n offset=\"0.259477\"\n stopColor=\"rgb(0%,37.647059%,81.960784%)\"\n stopOpacity={0.4}\n />\n <stop\n offset=\"0.908166\"\n stopColor=\"rgb(1.176471%,51.372549%,94.509804%)\"\n stopOpacity={0}\n />\n </radialGradient>\n <radialGradient\n id={`${id}-radial2`}\n gradientUnits=\"userSpaceOnUse\"\n cx=\"0\"\n cy=\"0\"\n fx=\"0\"\n fy=\"0\"\n r=\"1\"\n gradientTransform=\"matrix(357.407022,-468.445926,423.594568,323.187085,159.471002,697.080002)\"\n >\n <stop\n offset=\"0.732317\"\n stopColor=\"rgb(95.686275%,65.490196%,96.862745%)\"\n stopOpacity={0}\n />\n <stop\n offset=\"1\"\n stopColor=\"rgb(95.686275%,65.490196%,96.862745%)\"\n stopOpacity={0.501961}\n />\n </radialGradient>\n <radialGradient\n id={`${id}-radial3`}\n gradientUnits=\"userSpaceOnUse\"\n cx=\"0\"\n cy=\"0\"\n fx=\"0\"\n fy=\"0\"\n r=\"1\"\n gradientTransform=\"matrix(-170.860868,259.725406,-674.018133,-443.404152,278.562012,412.978506)\"\n >\n <stop\n offset=\"0\"\n stopColor=\"rgb(28.627451%,87.058824%,100%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.724349\"\n stopColor=\"rgb(16.078431%,76.470588%,100%)\"\n stopOpacity={1}\n />\n </radialGradient>\n <linearGradient\n id={`${id}-linear6`}\n gradientUnits=\"userSpaceOnUse\"\n x1=\"3.45756\"\n y1=\"37.872299\"\n x2=\"20.9291\"\n y2=\"37.859699\"\n gradientTransform=\"matrix(15,0,0,15,0,0)\"\n >\n <stop\n offset=\"0.205882\"\n stopColor=\"rgb(42.352941%,87.843137%,100%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.535\"\n stopColor=\"rgb(31.372549%,83.529412%,100%)\"\n stopOpacity={0}\n />\n </linearGradient>\n <radialGradient\n id={`${id}-radial4`}\n gradientUnits=\"userSpaceOnUse\"\n cx=\"0\"\n cy=\"0\"\n fx=\"0\"\n fy=\"0\"\n r=\"1\"\n gradientTransform=\"matrix(215.76719,230.769125,-230.769125,215.76719,59.143649,354.231005)\"\n >\n <stop\n offset=\"0.038877\"\n stopColor=\"rgb(0%,56.862745%,100%)\"\n stopOpacity={1}\n />\n <stop\n offset=\"0.919119\"\n stopColor=\"rgb(9.411765%,23.921569%,67.843137%)\"\n stopOpacity={1}\n />\n </radialGradient>\n <radialGradient\n id={`${id}-radial5`}\n gradientUnits=\"userSpaceOnUse\"\n cx=\"0\"\n cy=\"0\"\n fx=\"0\"\n fy=\"0\"\n r=\"1\"\n gradientTransform=\"matrix(0.000000000000010287,167.999997,-193.782005,0.000000000000011866,180,491.158504)\"\n >\n <stop\n offset=\"0.557796\"\n stopColor=\"rgb(5.882353%,64.705882%,96.862745%)\"\n stopOpacity={0}\n />\n <stop\n offset=\"1\"\n stopColor=\"rgb(45.490196%,77.647059%,100%)\"\n stopOpacity={0.501961}\n />\n </radialGradient>\n </defs>\n <g id={`${id}-surface1`}>\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear0)`}\n d=\"M 463.98 140.14 L 119.64 358.41 L 90.02 311.7 L 90.02 271.44 C 90.02 256.78 97.45 243.12 109.74 235.14 L 309.91 105.26 C 340.41 85.47 379.69 85.46 410.19 105.25 Z M 463.98 140.14 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear1)`}\n d=\"M 407.1 103.34 C 408.14 103.95 409.16 104.59 410.18 105.25 L 566.4 206.59 L 179.06 452.11 L 119.625 358.34 L 403.89 177.8 C 430.82 160.7 432 122.23 407.1 103.34 Z M 407.1 103.34 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear2)`}\n d=\"M 407.1 103.34 C 408.14 103.95 409.16 104.59 410.18 105.25 L 566.4 206.59 L 179.06 452.11 L 119.625 358.34 L 403.89 177.8 C 430.82 160.7 432 122.23 407.1 103.34 Z M 407.1 103.34 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear3)`}\n d=\"M 333.6 498.99 L 179.07 452.11 L 507.63 243.84 C 535.3 226.3 535.23 185.9 507.5 168.46 L 506.02 167.53 L 510.28 170.18 L 610.27 235.04 C 622.57 243.02 630 256.68 630 271.34 L 630 310.3 Z M 333.6 498.99 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear4)`}\n d=\"M 333.6 498.99 L 179.07 452.11 L 507.63 243.84 C 535.3 226.3 535.23 185.9 507.5 168.46 L 506.02 167.53 L 510.28 170.18 L 610.27 235.04 C 622.57 243.02 630 256.68 630 271.34 L 630 310.3 Z M 333.6 498.99 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-radial0)`}\n d=\"M 410.19 105.25 C 379.69 85.46 340.41 85.47 309.91 105.26 L 109.74 235.14 C 97.45 243.12 90.02 256.78 90.02 271.44 L 90.02 273.41 C 90.51 288.12 98.25 301.68 110.76 309.57 L 359.64 466.48 L 609.16 309.8 C 622.12 301.67 629.98 287.44 629.98 272.14 L 629.98 310.31 L 629.99 271.34 C 629.99 256.68 622.57 243.02 610.27 235.04 Z M 410.19 105.25 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear5)`}\n d=\"M 315.77 630.05 L 536.22 630.05 C 588 630.05 629.97 588.08 629.97 536.3 L 629.97 272.14 C 629.97 287.44 622.11 301.67 609.15 309.8 L 281.24 515.7 C 263.55 526.8 252.82 546.22 252.82 567.11 C 252.82 601.87 281 630.05 315.77 630.05 Z M 315.77 630.05 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-radial1)`}\n d=\"M 315.77 630.05 L 536.22 630.05 C 588 630.05 629.97 588.08 629.97 536.3 L 629.97 272.14 C 629.97 287.44 622.11 301.67 609.15 309.8 L 281.24 515.7 C 263.55 526.8 252.82 546.22 252.82 567.11 C 252.82 601.87 281 630.05 315.77 630.05 Z M 315.77 630.05 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-radial2)`}\n d=\"M 315.77 630.05 L 536.22 630.05 C 588 630.05 629.97 588.08 629.97 536.3 L 629.97 272.14 C 629.97 287.44 622.11 301.67 609.15 309.8 L 281.24 515.7 C 263.55 526.8 252.82 546.22 252.82 567.11 C 252.82 601.87 281 630.05 315.77 630.05 Z M 315.77 630.05 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-radial3)`}\n d=\"M 405.4 630.04 L 183.74 630.04 C 131.96 630.04 89.99 588.06 89.99 536.29 L 89.99 271.95 C 89.99 287.22 97.82 301.42 110.74 309.57 L 438.32 516.09 C 456.26 527.39 467.13 547.11 467.13 568.31 C 467.13 602.4 439.49 630.04 405.4 630.04 Z M 405.4 630.04 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-linear6)`}\n d=\"M 405.4 630.04 L 183.74 630.04 C 131.96 630.04 89.99 588.06 89.99 536.29 L 89.99 271.95 C 89.99 287.22 97.82 301.42 110.74 309.57 L 438.32 516.09 C 456.26 527.39 467.13 547.11 467.13 568.31 C 467.13 602.4 439.49 630.04 405.4 630.04 Z M 405.4 630.04 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-radial4)`}\n d=\"M 108.75 345 L 251.25 345 C 278.18 345 300 366.82 300 393.75 L 300 536.25 C 300 563.18 278.18 585 251.25 585 L 108.75 585 C 81.82 585 60 563.18 60 536.25 L 60 393.75 C 60 366.82 81.82 345 108.75 345 Z M 108.75 345 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill={`url(#${id}-radial5)`}\n d=\"M 108.75 345 L 251.25 345 C 278.18 345 300 366.82 300 393.75 L 300 536.25 C 300 563.18 278.18 585 251.25 585 L 108.75 585 C 81.82 585 60 563.18 60 536.25 L 60 393.75 C 60 366.82 81.82 345 108.75 345 Z M 108.75 345 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill=\"rgb(100%,100%,100%)\"\n fillOpacity={1}\n d=\"M 179.39 534 C 159.54 534 143.25 527.79 130.51 515.375 C 117.77 502.96 111.4 486.76 111.4 466.77 C 111.4 445.66 117.87 428.59 130.8 415.55 C 143.73 402.52 160.66 396 181.59 396 C 201.375 396 217.47 402.24 229.89 414.71 C 242.375 427.19 248.62 443.64 248.62 464.07 C 248.62 485.05 242.15 501.96 229.22 514.82 C 216.35 527.61 199.74 534 179.39 534 Z M 179.96 507.65 C 190.78 507.65 199.48 503.95 206.08 496.57 C 212.67 489.18 215.97 478.9 215.97 465.74 C 215.97 452.02 212.77 441.35 206.37 433.71 C 199.96 426.07 191.42 422.26 180.73 422.26 C 169.72 422.26 160.85 426.2 154.13 434.08 C 147.41 441.91 144.05 452.27 144.05 465.18 C 144.05 478.29 147.41 488.65 154.13 496.29 C 160.85 503.86 169.46 507.65 179.96 507.65 Z M 179.96 507.65 \"\n />\n <path\n stroke=\"none\"\n fillRule=\"nonzero\"\n fill=\"rgb(100%,100%,100%)\"\n fillOpacity={1}\n d=\"M 179.33 535.85 C 159.56 535.85 143.33 529.47 130.64 516.72 C 117.95 503.96 111.61 487.32 111.61 466.79 C 111.61 445.11 118.05 427.57 130.93 414.18 C 143.81 400.79 160.68 394.09 181.53 394.09 C 201.23 394.09 217.27 400.5 229.64 413.32 C 242.08 426.14 248.3 443.04 248.3 464.02 C 248.3 485.57 241.86 502.95 228.98 516.14 C 216.16 529.28 199.61 535.85 179.33 535.85 Z M 179.9 508.78 C 190.68 508.78 199.36 504.98 205.92 497.4 C 212.49 489.81 215.77 479.25 215.77 465.73 C 215.77 451.64 212.59 440.68 206.21 432.83 C 199.83 424.99 191.32 421.07 180.67 421.07 C 169.7 421.07 160.87 425.11 154.17 433.21 C 147.48 441.25 144.13 451.9 144.13 465.16 C 144.13 478.62 147.48 489.27 154.17 497.11 C 160.87 504.89 169.45 508.78 179.9 508.78 Z M 179.9 508.78 \"\n />\n </g>\n </svg>\n );\n};\n"],"mappings":";;;AAEA,IAAa,KAAuD,MAAU;CAC5E,IAAM,IAAK,GAAO;AAClB,QACE,kBAAC,OAAD;EACE,OAAM;EACN,SAAQ;EACR,eAAY;EACZ,GAAI;YAJN,CAME,kBAAC,QAAD,EAAA,UAAA;GACE,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB;KASE,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACF,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACF,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB;KASE,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACF,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACF,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB,CASE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB;KASE,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACF,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACF,kBAAC,QAAD;MACE,QAAO;MACP,WAAU;MACV,aAAa;MACb,CAAA;KACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB,CASE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,GAAE;IACF,mBAAkB;cARpB,CAUE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB,CASE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,GAAE;IACF,mBAAkB;cARpB,CAUE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,GAAE;IACF,mBAAkB;cARpB,CAUE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,GAAE;IACF,mBAAkB;cARpB,CAUE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,mBAAkB;cAPpB,CASE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,GAAE;IACF,mBAAkB;cARpB,CAUE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACjB,kBAAC,kBAAD;IACE,IAAI,GAAG,EAAG;IACV,eAAc;IACd,IAAG;IACH,IAAG;IACH,IAAG;IACH,IAAG;IACH,GAAE;IACF,mBAAkB;cARpB,CAUE,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,EACF,kBAAC,QAAD;KACE,QAAO;KACP,WAAU;KACV,aAAa;KACb,CAAA,CACa;;GACZ,EAAA,CAAA,EACP,kBAAC,KAAD;GAAG,IAAI,GAAG,EAAG;aAAb;IACE,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAM,QAAQ,EAAG;KACjB,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAK;KACL,aAAa;KACb,GAAE;KACF,CAAA;IACF,kBAAC,QAAD;KACE,QAAO;KACP,UAAS;KACT,MAAK;KACL,aAAa;KACb,GAAE;KACF,CAAA;IACA;KACA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface InlineDateFieldProps {
|
|
2
|
+
value: Date | undefined;
|
|
3
|
+
onChange: (next: Date) => void;
|
|
4
|
+
ariaLabel: string;
|
|
5
|
+
emptyText: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
clearLabel?: string;
|
|
9
|
+
onClear?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const InlineDateField: ({ value, onChange, ariaLabel, emptyText, testId, disabled, clearLabel, onClear, }: InlineDateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { cn as e } from "../../utilities/class/index.js";
|
|
2
|
+
import { Calendar as t } from "../calendar/components/calendar/index.js";
|
|
3
|
+
import { Popover as n, PopoverContent as r, PopoverTrigger as i } from "../popover/index.js";
|
|
4
|
+
import { useEditableFields as a } from "../editable_fields/hooks/index.js";
|
|
5
|
+
import { INLINE_FIELD_ROW as o } from "../inline_editable_text/constants/index.js";
|
|
6
|
+
import { useState as s } from "react";
|
|
7
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
8
|
+
import { format as u } from "date-fns";
|
|
9
|
+
//#region src/components/inline_date_field/index.tsx
|
|
10
|
+
var d = ({ value: d, onChange: f, ariaLabel: p, emptyText: m, testId: h, disabled: g, clearLabel: _, onClear: v }) => {
|
|
11
|
+
let { locale: y, dateFormat: b } = a(), [x, S] = s(!1);
|
|
12
|
+
return /* @__PURE__ */ l(n, {
|
|
13
|
+
open: x,
|
|
14
|
+
onOpenChange: S,
|
|
15
|
+
children: [/* @__PURE__ */ c(i, {
|
|
16
|
+
asChild: !0,
|
|
17
|
+
children: /* @__PURE__ */ c("button", {
|
|
18
|
+
type: "button",
|
|
19
|
+
title: p,
|
|
20
|
+
"aria-label": p,
|
|
21
|
+
"data-testid": h,
|
|
22
|
+
disabled: g,
|
|
23
|
+
className: e(o, "w-auto px-2 disabled:pointer-events-none disabled:opacity-50", !d && "text-muted-foreground"),
|
|
24
|
+
children: d ? u(d, b, { locale: y }) : m
|
|
25
|
+
})
|
|
26
|
+
}), /* @__PURE__ */ l(r, {
|
|
27
|
+
align: "start",
|
|
28
|
+
className: "w-auto overflow-hidden p-0",
|
|
29
|
+
children: [/* @__PURE__ */ c(t, {
|
|
30
|
+
locale: y,
|
|
31
|
+
mode: "single",
|
|
32
|
+
selected: d,
|
|
33
|
+
defaultMonth: d ?? /* @__PURE__ */ new Date(),
|
|
34
|
+
onSelect: (e) => {
|
|
35
|
+
e && (S(!1), f(e));
|
|
36
|
+
}
|
|
37
|
+
}), v && _ ? /* @__PURE__ */ c("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
"data-testid": h ? `${h}-clear` : void 0,
|
|
40
|
+
className: "w-full border-t border-border px-3 py-2 text-left text-sm text-muted-foreground hover:bg-accent",
|
|
41
|
+
onClick: () => {
|
|
42
|
+
S(!1), v();
|
|
43
|
+
},
|
|
44
|
+
children: _
|
|
45
|
+
}) : null]
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { d as InlineDateField };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/components/inline_date_field/index.tsx"],"sourcesContent":["import { useEditableFields } from \"@/components/editable_fields/hooks\";\nimport { Calendar } from \"@/components/calendar\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/popover\";\nimport { format } from \"date-fns\";\nimport { useState } from \"react\";\nimport { cn } from \"@/utilities/class\";\nimport { INLINE_FIELD_ROW } from \"../inline_editable_text/constants\";\n\nexport interface InlineDateFieldProps {\n value: Date | undefined;\n onChange: (next: Date) => void;\n ariaLabel: string;\n emptyText: string;\n testId?: string;\n disabled?: boolean;\n clearLabel?: string;\n onClear?: () => void;\n}\n\nexport const InlineDateField = ({\n value,\n onChange,\n ariaLabel,\n emptyText,\n testId,\n disabled,\n clearLabel,\n onClear,\n}: InlineDateFieldProps) => {\n const { locale, dateFormat } = useEditableFields();\n const [open, setOpen] = useState(false);\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <button\n type=\"button\"\n title={ariaLabel}\n aria-label={ariaLabel}\n data-testid={testId}\n disabled={disabled}\n className={cn(\n INLINE_FIELD_ROW,\n \"w-auto px-2 disabled:pointer-events-none disabled:opacity-50\",\n !value && \"text-muted-foreground\",\n )}\n >\n {value ? format(value, dateFormat, { locale }) : emptyText}\n </button>\n </PopoverTrigger>\n <PopoverContent align=\"start\" className=\"w-auto overflow-hidden p-0\">\n <Calendar\n locale={locale}\n mode=\"single\"\n selected={value}\n defaultMonth={value ?? new Date()}\n onSelect={(next) => {\n if (!next) return;\n setOpen(false);\n onChange(next);\n }}\n />\n {onClear && clearLabel ? (\n <button\n type=\"button\"\n data-testid={testId ? `${testId}-clear` : undefined}\n className=\"w-full border-t border-border px-3 py-2 text-left text-sm text-muted-foreground hover:bg-accent\"\n onClick={() => {\n setOpen(false);\n onClear();\n }}\n >\n {clearLabel}\n </button>\n ) : null}\n </PopoverContent>\n </Popover>\n );\n};\n"],"mappings":";;;;;;;;;AAmBA,IAAa,KAAmB,EAC9B,UACA,aACA,cACA,cACA,WACA,aACA,eACA,iBAC0B;CAC1B,IAAM,EAAE,WAAQ,kBAAe,GAAmB,EAC5C,CAAC,GAAM,KAAW,EAAS,GAAM;AAEvC,QACE,kBAAC,GAAD;EAAe;EAAM,cAAc;YAAnC,CACE,kBAAC,GAAD;GAAgB,SAAA;aACd,kBAAC,UAAD;IACE,MAAK;IACL,OAAO;IACP,cAAY;IACZ,eAAa;IACH;IACV,WAAW,EACT,GACA,gEACA,CAAC,KAAS,wBACX;cAEA,IAAQ,EAAO,GAAO,GAAY,EAAE,WAAQ,CAAC,GAAG;IAC1C,CAAA;GACM,CAAA,EACjB,kBAAC,GAAD;GAAgB,OAAM;GAAQ,WAAU;aAAxC,CACE,kBAAC,GAAD;IACU;IACR,MAAK;IACL,UAAU;IACV,cAAc,qBAAS,IAAI,MAAM;IACjC,WAAW,MAAS;AACb,WACL,EAAQ,GAAM,EACd,EAAS,EAAK;;IAEhB,CAAA,EACD,KAAW,IACV,kBAAC,UAAD;IACE,MAAK;IACL,eAAa,IAAS,GAAG,EAAO,UAAU,KAAA;IAC1C,WAAU;IACV,eAAe;AAEb,KADA,EAAQ,GAAM,EACd,GAAS;;cAGV;IACM,CAAA,GACP,KACW;KACT"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
values: number[];
|
|
3
|
+
selected: number;
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
ariaLabel: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const DurationColumn: ({ values, selected, onChange, ariaLabel, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { cn as e } from "../../../../utilities/class/index.js";
|
|
2
|
+
import { ScrollArea as t, ScrollBar as n } from "../../../scroll_area/index.js";
|
|
3
|
+
import { DURATION_COLUMN_HEIGHT as r } from "../../constants/index.js";
|
|
4
|
+
import { attachWheelScroll as i, getScrollViewport as a } from "../../utils/index.js";
|
|
5
|
+
import { useEffect as o, useLayoutEffect as s, useRef as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/inline_duration_field/components/duration_column/index.tsx
|
|
8
|
+
var d = ({ values: d, selected: f, onChange: p, ariaLabel: m }) => {
|
|
9
|
+
let h = c(null), g = c(null);
|
|
10
|
+
return o(() => {
|
|
11
|
+
let e = h.current;
|
|
12
|
+
if (e) return i(a(e));
|
|
13
|
+
}, []), s(() => {
|
|
14
|
+
let e = h.current, t = g.current;
|
|
15
|
+
if (!e || !t) return;
|
|
16
|
+
let n = a(e);
|
|
17
|
+
n.scrollTop = t.offsetTop - n.clientHeight / 2 + t.offsetHeight / 2;
|
|
18
|
+
}, [f]), /* @__PURE__ */ l("div", {
|
|
19
|
+
ref: h,
|
|
20
|
+
className: e(r, "min-w-[92px]"),
|
|
21
|
+
children: /* @__PURE__ */ u(t, {
|
|
22
|
+
type: "always",
|
|
23
|
+
className: "h-full overscroll-contain",
|
|
24
|
+
children: [/* @__PURE__ */ l("div", {
|
|
25
|
+
role: "listbox",
|
|
26
|
+
"aria-label": m,
|
|
27
|
+
className: "flex flex-col px-1 py-1",
|
|
28
|
+
children: d.map((t) => {
|
|
29
|
+
let n = t === f;
|
|
30
|
+
return /* @__PURE__ */ l("button", {
|
|
31
|
+
ref: n ? g : void 0,
|
|
32
|
+
type: "button",
|
|
33
|
+
role: "option",
|
|
34
|
+
"aria-selected": n,
|
|
35
|
+
onClick: () => p(t),
|
|
36
|
+
className: e("rounded-md px-3 py-1.5 text-center text-sm tabular-nums transition-colors", n ? "bg-accent font-medium text-accent-foreground" : "text-muted-foreground hover:bg-accent/60 hover:text-foreground"),
|
|
37
|
+
children: String(t).padStart(2, "0")
|
|
38
|
+
}, t);
|
|
39
|
+
})
|
|
40
|
+
}), /* @__PURE__ */ l(n, { orientation: "vertical" })]
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
//#endregion
|
|
45
|
+
export { d as DurationColumn };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../src/components/inline_duration_field/components/duration_column/index.tsx"],"sourcesContent":["import { ScrollArea, ScrollBar } from \"@/components/scroll_area\";\nimport { useEffect, useLayoutEffect, useRef } from \"react\";\nimport { cn } from \"@/utilities/class\";\nimport { DURATION_COLUMN_HEIGHT } from \"../../constants\";\nimport { attachWheelScroll, getScrollViewport } from \"../../utils\";\n\ninterface Props {\n values: number[];\n selected: number;\n onChange: (value: number) => void;\n ariaLabel: string;\n}\n\nexport const DurationColumn = ({\n values,\n selected,\n onChange,\n ariaLabel,\n}: Props) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const selectedRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n const root = rootRef.current;\n if (!root) return;\n return attachWheelScroll(getScrollViewport(root));\n }, []);\n\n useLayoutEffect(() => {\n const root = rootRef.current;\n const option = selectedRef.current;\n if (!root || !option) return;\n const viewport = getScrollViewport(root);\n viewport.scrollTop =\n option.offsetTop - viewport.clientHeight / 2 + option.offsetHeight / 2;\n }, [selected]);\n\n return (\n <div ref={rootRef} className={cn(DURATION_COLUMN_HEIGHT, \"min-w-[92px]\")}>\n <ScrollArea type=\"always\" className=\"h-full overscroll-contain\">\n <div\n role=\"listbox\"\n aria-label={ariaLabel}\n className=\"flex flex-col px-1 py-1\"\n >\n {values.map((value) => {\n const isSelected = value === selected;\n return (\n <button\n key={value}\n ref={isSelected ? selectedRef : undefined}\n type=\"button\"\n role=\"option\"\n aria-selected={isSelected}\n onClick={() => onChange(value)}\n className={cn(\n \"rounded-md px-3 py-1.5 text-center text-sm tabular-nums transition-colors\",\n isSelected\n ? \"bg-accent font-medium text-accent-foreground\"\n : \"text-muted-foreground hover:bg-accent/60 hover:text-foreground\",\n )}\n >\n {String(value).padStart(2, \"0\")}\n </button>\n );\n })}\n </div>\n <ScrollBar orientation=\"vertical\" />\n </ScrollArea>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAaA,IAAa,KAAkB,EAC7B,WACA,aACA,aACA,mBACW;CACX,IAAM,IAAU,EAAuB,KAAK,EACtC,IAAc,EAA0B,KAAK;AAiBnD,QAfA,QAAgB;EACd,IAAM,IAAO,EAAQ;AAChB,QACL,QAAO,EAAkB,EAAkB,EAAK,CAAC;IAChD,EAAE,CAAC,EAEN,QAAsB;EACpB,IAAM,IAAO,EAAQ,SACf,IAAS,EAAY;AAC3B,MAAI,CAAC,KAAQ,CAAC,EAAQ;EACtB,IAAM,IAAW,EAAkB,EAAK;AACxC,IAAS,YACP,EAAO,YAAY,EAAS,eAAe,IAAI,EAAO,eAAe;IACtE,CAAC,EAAS,CAAC,EAGZ,kBAAC,OAAD;EAAK,KAAK;EAAS,WAAW,EAAG,GAAwB,eAAe;YACtE,kBAAC,GAAD;GAAY,MAAK;GAAS,WAAU;aAApC,CACE,kBAAC,OAAD;IACE,MAAK;IACL,cAAY;IACZ,WAAU;cAET,EAAO,KAAK,MAAU;KACrB,IAAM,IAAa,MAAU;AAC7B,YACE,kBAAC,UAAD;MAEE,KAAK,IAAa,IAAc,KAAA;MAChC,MAAK;MACL,MAAK;MACL,iBAAe;MACf,eAAe,EAAS,EAAM;MAC9B,WAAW,EACT,6EACA,IACI,iDACA,iEACL;gBAEA,OAAO,EAAM,CAAC,SAAS,GAAG,IAAI;MACxB,EAdF,EAcE;MAEX;IACE,CAAA,EACN,kBAAC,GAAD,EAAW,aAAY,YAAa,CAAA,CACzB;;EACT,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/inline_duration_field/constants/index.ts
|
|
2
|
+
var e = [
|
|
3
|
+
900,
|
|
4
|
+
1800,
|
|
5
|
+
3600,
|
|
6
|
+
2 * 3600,
|
|
7
|
+
4 * 3600
|
|
8
|
+
], t = "h-[196px]";
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as DURATION_COLUMN_HEIGHT, e as DURATION_PRESETS_SECONDS };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/inline_duration_field/constants/index.ts"],"sourcesContent":["export const DURATION_MAX_HOURS = 23;\nexport const DURATION_MAX_MINUTES = 59;\n\nexport const DURATION_PRESETS_SECONDS = [\n 15 * 60,\n 30 * 60,\n 60 * 60,\n 2 * 3600,\n 4 * 3600,\n] as const;\n\nexport const DURATION_COLUMN_HEIGHT = \"h-[196px]\";\n"],"mappings":";AAGA,IAAa,IAA2B;CACtC;CACA;CACA;CACA,IAAI;CACJ,IAAI;CACL,EAEY,IAAyB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface InlineDurationFieldProps {
|
|
2
|
+
value: number;
|
|
3
|
+
onChange: (seconds: number) => void;
|
|
4
|
+
ariaLabel: string;
|
|
5
|
+
emptyText: string;
|
|
6
|
+
testId?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const InlineDurationField: ({ value, onChange, ariaLabel, emptyText, testId, disabled, }: InlineDurationFieldProps) => import("react/jsx-runtime").JSX.Element;
|