@ssa-ui-kit/core 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DatePicker/types.d.ts +218 -5
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +51 -0
- package/dist/components/DateRangePicker/DateRangePickerFormBridge.d.ts +29 -5
- package/dist/components/DateRangePicker/constants.d.ts +8 -0
- package/dist/components/DateRangePicker/types.d.ts +235 -11
- package/dist/components/History/History.d.ts +31 -0
- package/dist/components/History/index.d.ts +2 -0
- package/dist/components/History/styles.d.ts +9 -0
- package/dist/components/History/types.d.ts +56 -0
- package/dist/components/Icon/icons/SettingClock.d.ts +3 -0
- package/dist/components/Icon/icons/all.d.ts +1 -0
- package/dist/components/Icon/icons/iconsList.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/index.js +290 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8009,6 +8009,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
8009
8009
|
FullscreenModeContext: () => (/* reexport */ FullscreenModeContext),
|
|
8010
8010
|
FullscreenModeProvider: () => (/* reexport */ FullscreenModeProvider),
|
|
8011
8011
|
GaugeChart: () => (/* reexport */ GaugeChart),
|
|
8012
|
+
History: () => (/* reexport */ History),
|
|
8012
8013
|
Icon: () => (/* reexport */ Icon_Icon),
|
|
8013
8014
|
IconButton: () => (/* reexport */ IconButton),
|
|
8014
8015
|
ImageItem: () => (/* reexport */ ImageItem),
|
|
@@ -9026,6 +9027,14 @@ __webpack_require__.d(Settings_namespaceObject, {
|
|
|
9026
9027
|
Settings: () => (Settings)
|
|
9027
9028
|
});
|
|
9028
9029
|
|
|
9030
|
+
// NAMESPACE OBJECT: ./src/components/Icon/icons/SettingClock.tsx
|
|
9031
|
+
var SettingClock_namespaceObject = {};
|
|
9032
|
+
__webpack_require__.r(SettingClock_namespaceObject);
|
|
9033
|
+
__webpack_require__.d(SettingClock_namespaceObject, {
|
|
9034
|
+
ICON_NAME: () => (SettingClock_ICON_NAME),
|
|
9035
|
+
SettingClock: () => (SettingClock)
|
|
9036
|
+
});
|
|
9037
|
+
|
|
9029
9038
|
// NAMESPACE OBJECT: ./src/components/Icon/icons/Signature.tsx
|
|
9030
9039
|
var Signature_namespaceObject = {};
|
|
9031
9040
|
__webpack_require__.r(Signature_namespaceObject);
|
|
@@ -9289,6 +9298,7 @@ __webpack_require__.d(all_namespaceObject, {
|
|
|
9289
9298
|
Roles: () => (Roles_namespaceObject),
|
|
9290
9299
|
Search: () => (Search_namespaceObject),
|
|
9291
9300
|
Seniority: () => (Seniority_namespaceObject),
|
|
9301
|
+
SettingClock: () => (SettingClock_namespaceObject),
|
|
9292
9302
|
Settings: () => (Settings_namespaceObject),
|
|
9293
9303
|
Signature: () => (Signature_namespaceObject),
|
|
9294
9304
|
Sleep: () => (Sleep_namespaceObject),
|
|
@@ -13222,6 +13232,30 @@ const Settings = ({
|
|
|
13222
13232
|
})]
|
|
13223
13233
|
});
|
|
13224
13234
|
const Settings_ICON_NAME = 'settings';
|
|
13235
|
+
;// ./src/components/Icon/icons/SettingClock.tsx
|
|
13236
|
+
|
|
13237
|
+
const SettingClock = ({
|
|
13238
|
+
fill = '#000',
|
|
13239
|
+
size = 24,
|
|
13240
|
+
tooltip = 'Setting clock',
|
|
13241
|
+
...props
|
|
13242
|
+
}) => (0,jsx_runtime_namespaceObject.jsxs)("svg", {
|
|
13243
|
+
width: `${size}px`,
|
|
13244
|
+
height: `${size}px`,
|
|
13245
|
+
viewBox: "0 0 16 16",
|
|
13246
|
+
fill: "none",
|
|
13247
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13248
|
+
...props,
|
|
13249
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)("title", {
|
|
13250
|
+
children: tooltip
|
|
13251
|
+
}), (0,jsx_runtime_namespaceObject.jsx)("path", {
|
|
13252
|
+
fillRule: "evenodd",
|
|
13253
|
+
clipRule: "evenodd",
|
|
13254
|
+
d: "M8.54277 0.0507812C9.14723 0.0507812 9.67856 0.437658 9.86211 1.01074L10.1336 1.85547C10.2657 2.26753 10.5743 2.58935 10.9461 2.79785C11.002 2.82923 11.0573 2.86237 11.1121 2.89551C11.4771 3.11622 11.9109 3.22652 12.3377 3.13965L13.2146 2.95996C13.8086 2.83888 14.4078 3.11082 14.7029 3.63379L15.1443 4.41602C15.4393 4.93909 15.3641 5.59721 14.9568 6.0498L14.3562 6.71875C14.0646 7.04303 13.9352 7.4734 13.9363 7.90137C13.9365 7.96627 13.9362 8.03177 13.9344 8.09668C13.9221 8.52458 14.0394 8.95659 14.323 9.28125L14.907 9.94922C15.3015 10.4011 15.3598 11.0593 15.0506 11.583L14.5887 12.3652C14.2792 12.8889 13.6713 13.1602 13.0809 13.0391L12.2098 12.8604C11.7848 12.7732 11.348 12.8837 10.9773 13.1045C10.9217 13.1376 10.8651 13.1698 10.8084 13.2012C10.4316 13.4095 10.1151 13.731 9.97246 14.1426L9.67949 14.9883C9.48055 15.5619 8.93823 15.9492 8.33379 15.9492H7.43046C6.82619 15.9492 6.29478 15.5621 6.11113 14.9893L5.84062 14.1436C5.70855 13.7315 5.39986 13.4097 5.02812 13.2012C4.9721 13.1697 4.91598 13.1377 4.86113 13.1045C4.49604 12.8837 4.06248 12.7733 3.63554 12.8604L2.75859 13.0391C2.16492 13.16 1.56545 12.8888 1.27031 12.3662L0.828902 11.584C0.533796 11.061 0.609386 10.4029 1.0164 9.9502L1.61796 9.28125C1.90953 8.95715 2.03793 8.5264 2.03691 8.09863C2.03673 8.03363 2.03699 7.96735 2.03886 7.90234C2.05116 7.47453 1.93469 7.0434 1.65117 6.71875L1.06718 6.05078C0.672554 5.59912 0.613806 4.94077 0.922652 4.41699L1.38457 3.63477C1.69397 3.11079 2.30181 2.8388 2.89238 2.95996L3.76347 3.13965C4.1883 3.22681 4.62536 3.11609 4.99589 2.89551C5.05147 2.8624 5.10814 2.83018 5.16484 2.79883C5.54154 2.59061 5.85793 2.26874 6.00078 1.85742L6.29375 1.01172C6.49251 0.438004 7.035 0.0510025 7.63945 0.0507812H8.54277ZM7.62578 1.04102C7.44804 1.04107 7.28875 1.15501 7.23027 1.32324L6.9373 2.16895C6.69519 2.86734 6.17663 3.36445 5.63457 3.66406C5.58737 3.69016 5.54022 3.71755 5.49394 3.74512C4.96063 4.06261 4.27136 4.25792 3.55156 4.11035L2.67949 3.93066C2.5055 3.89506 2.32687 3.97527 2.23613 4.12891L1.77421 4.91113C1.6837 5.06485 1.70061 5.25911 1.81718 5.39258L2.40117 6.06152C2.8808 6.61075 3.04789 7.3002 3.03007 7.91699C3.0285 7.97145 3.02797 8.0266 3.02812 8.08105C3.02972 8.69786 2.84504 9.38882 2.35039 9.93848L1.74882 10.6064C1.62957 10.7392 1.607 10.9335 1.69414 11.0879L2.13554 11.8701C2.22288 12.0242 2.39965 12.1038 2.57402 12.0684L3.45097 11.8896C4.17503 11.742 4.85889 11.9374 5.38359 12.2549C5.42928 12.2825 5.47561 12.3098 5.52226 12.3359C6.05612 12.6354 6.56133 13.1312 6.78496 13.8291L7.05546 14.6748C7.10979 14.8438 7.26716 14.958 7.44511 14.958H8.34746C8.52523 14.958 8.68445 14.844 8.74296 14.6758L9.03593 13.8311C9.27793 13.1326 9.7966 12.6356 10.3387 12.3359C10.3859 12.3098 10.4329 12.2825 10.4793 12.2549C11.0128 11.9371 11.7025 11.7419 12.4227 11.8896L13.2937 12.0684C13.4675 12.104 13.6462 12.0243 13.7371 11.8711L14.199 11.0889C14.2898 10.9352 14.2725 10.741 14.1561 10.6074L13.5721 9.93848C13.0925 9.38943 12.9255 8.69969 12.9432 8.08301C12.9447 8.02845 12.9462 7.97254 12.9461 7.91797C12.9445 7.30127 13.1294 6.61115 13.6238 6.06152L14.2244 5.39355C14.3438 5.26089 14.367 5.06657 14.2801 4.91211L13.8387 4.12988C13.7514 3.97528 13.5739 3.89506 13.3992 3.93066L12.5232 4.11035C11.7992 4.25805 11.1144 4.06255 10.5896 3.74512C10.544 3.7175 10.4976 3.69021 10.451 3.66406C9.91715 3.3646 9.4129 2.86779 9.18925 2.16992L8.91777 1.3252C8.86358 1.156 8.70713 1.04114 8.5291 1.04102H7.62578ZM7.93339 3.75098C8.26891 3.75118 8.51636 4.03464 8.5164 4.35352V7.89062L10.5613 9.12695C10.8405 9.29597 10.9275 9.66069 10.7762 9.94141C10.6205 10.2294 10.2598 10.3423 9.97148 10.168L7.63847 8.75586C7.45612 8.64553 7.34972 8.44547 7.34941 8.23633V4.35352C7.34945 4.03456 7.59776 3.75104 7.93339 3.75098Z",
|
|
13255
|
+
fill: fill
|
|
13256
|
+
})]
|
|
13257
|
+
});
|
|
13258
|
+
const SettingClock_ICON_NAME = 'setting-clock';
|
|
13225
13259
|
;// ./src/components/Icon/icons/Signature.tsx
|
|
13226
13260
|
|
|
13227
13261
|
const Signature = ({
|
|
@@ -14038,6 +14072,8 @@ const Warning_ICON_NAME = 'warning';
|
|
|
14038
14072
|
|
|
14039
14073
|
|
|
14040
14074
|
|
|
14075
|
+
|
|
14076
|
+
|
|
14041
14077
|
|
|
14042
14078
|
|
|
14043
14079
|
|
|
@@ -14912,12 +14948,12 @@ const inputStatus = true ? {
|
|
|
14912
14948
|
styles: "position:absolute;top:34%;right:14px;display:flex;justify-content:center;align-items:center;border-radius:10px;width:14px;height:14px"
|
|
14913
14949
|
} : 0;
|
|
14914
14950
|
const styles_startElement = true ? {
|
|
14915
|
-
name: "
|
|
14916
|
-
styles: "position:absolute;top:0;left:14px;height:100%;width:auto;display:flex;justify-content:center;align-items:center;border-radius:10px"
|
|
14951
|
+
name: "17ilj1r",
|
|
14952
|
+
styles: "position:absolute;top:0;left:14px;height:100%;width:auto;display:flex;justify-content:center;align-items:center;border-radius:10px;button{padding:0;}"
|
|
14917
14953
|
} : 0;
|
|
14918
14954
|
const styles_endElement = true ? {
|
|
14919
|
-
name: "
|
|
14920
|
-
styles: "position:absolute;top:0;right:14px;height:100%;width:auto;display:flex;justify-content:center;align-items:center;border-radius:10px"
|
|
14955
|
+
name: "9awk5g",
|
|
14956
|
+
styles: "position:absolute;top:0;right:14px;height:100%;width:auto;display:flex;justify-content:center;align-items:center;border-radius:10px;button{padding:0;}"
|
|
14921
14957
|
} : 0;
|
|
14922
14958
|
;// ./src/components/Input/InputStatusError.tsx
|
|
14923
14959
|
|
|
@@ -20824,6 +20860,64 @@ const DatePickerContent = () => {
|
|
|
20824
20860
|
|
|
20825
20861
|
|
|
20826
20862
|
|
|
20863
|
+
/**
|
|
20864
|
+
* DatePicker — masked date input with a popover calendar. Use inside **`FormProvider`**
|
|
20865
|
+
* (react-hook-form): the field value is the formatted string; **`onChange`** receives a
|
|
20866
|
+
* JavaScript **`Date`** (or undefined when cleared). Supports **day**, **month**, or **year**
|
|
20867
|
+
* granularity via **`pickerType`**, **`mm/dd/yyyy`** / **`dd/mm/yyyy`** / **`mm/yyyy`** / **`yyyy`**
|
|
20868
|
+
* formats, optional **min/max** bounds, and **openCalendarMode** (icon, input, or both).
|
|
20869
|
+
*
|
|
20870
|
+
* ### Behavior notes
|
|
20871
|
+
* - Parsing and display use **Luxon**; the form stores the string matching **`format`**.
|
|
20872
|
+
* - Validation runs when the mask is complete or on **blur**; errors surface through
|
|
20873
|
+
* react-hook-form and **`onError`**.
|
|
20874
|
+
* - **`highlightDates`** helps range UIs by styling days between two dates.
|
|
20875
|
+
*
|
|
20876
|
+
* @category Components
|
|
20877
|
+
* @subcategory Form Controls
|
|
20878
|
+
*
|
|
20879
|
+
* @example
|
|
20880
|
+
* ```tsx
|
|
20881
|
+
* import { FormProvider, useForm } from 'react-hook-form';
|
|
20882
|
+
* import { DatePicker } from '@ssa-ui-kit/core';
|
|
20883
|
+
*
|
|
20884
|
+
* function Example() {
|
|
20885
|
+
* const methods = useForm({ defaultValues: { startDate: '' } });
|
|
20886
|
+
* return (
|
|
20887
|
+
* <FormProvider {...methods}>
|
|
20888
|
+
* <DatePicker
|
|
20889
|
+
* name="startDate"
|
|
20890
|
+
* label="Start date"
|
|
20891
|
+
* format="mm/dd/yyyy"
|
|
20892
|
+
* onChange={(date) => console.log(date)}
|
|
20893
|
+
* />
|
|
20894
|
+
* </FormProvider>
|
|
20895
|
+
* );
|
|
20896
|
+
* }
|
|
20897
|
+
* ```
|
|
20898
|
+
*
|
|
20899
|
+
* @example
|
|
20900
|
+
* ```tsx
|
|
20901
|
+
* // Month picker (mm/yyyy) with bounds
|
|
20902
|
+
* <DatePicker
|
|
20903
|
+
* name="period"
|
|
20904
|
+
* label="Period"
|
|
20905
|
+
* pickerType="months"
|
|
20906
|
+
* dateMin="01/2020"
|
|
20907
|
+
* dateMax="12/2030"
|
|
20908
|
+
* onChange={(d) => {}}
|
|
20909
|
+
* />
|
|
20910
|
+
* ```
|
|
20911
|
+
*
|
|
20912
|
+
* @see {@link Input} — Underlying text field
|
|
20913
|
+
* @see {@link Popover} — Calendar overlay
|
|
20914
|
+
*
|
|
20915
|
+
* @accessibility
|
|
20916
|
+
* - Label is associated with the input via **`htmlFor`** / **`id`**
|
|
20917
|
+
* - Calendar days use **`aria-disabled`** and **`aria-label`** where applicable
|
|
20918
|
+
* - Icon trigger exposes **`aria-label="Calendar"`**
|
|
20919
|
+
*/
|
|
20920
|
+
|
|
20827
20921
|
const DatePickerInner = ({
|
|
20828
20922
|
format,
|
|
20829
20923
|
openCalendarMode = 'icon',
|
|
@@ -20842,9 +20936,18 @@ const DatePicker = /*#__PURE__*/(0,external_react_namespaceObject.forwardRef)(Da
|
|
|
20842
20936
|
|
|
20843
20937
|
|
|
20844
20938
|
;// ./src/components/DateRangePicker/constants.ts
|
|
20939
|
+
/**
|
|
20940
|
+
* Default formats, masks, bounds, and validation messages for **DateRangePicker**
|
|
20941
|
+
* (aligned with **DatePicker** constants for shared behavior).
|
|
20942
|
+
*/
|
|
20943
|
+
|
|
20944
|
+
/** Default US day format (`mm/dd/yyyy`). Re-exported from the package barrel. */
|
|
20845
20945
|
const constants_DEFAULT_MASK_FORMAT = 'mm/dd/yyyy';
|
|
20946
|
+
/** Default European day format (`dd/mm/yyyy`). Re-exported from the package barrel. */
|
|
20846
20947
|
const DEFAULT_EUROPEAN_MASK_FORMAT = 'dd/mm/yyyy';
|
|
20948
|
+
/** Default month format (`mm/yyyy`). Re-exported from the package barrel. */
|
|
20847
20949
|
const constants_DEFAULT_MONTH_MASK_FORMAT = 'mm/yyyy';
|
|
20950
|
+
/** Default year-only format (`yyyy`). Re-exported from the package barrel. */
|
|
20848
20951
|
const constants_DEFAULT_YEAR_MASK_FORMAT = 'yyyy';
|
|
20849
20952
|
const constants_DEFAULT_MASK = '__/__/____';
|
|
20850
20953
|
const constants_DEFAULT_MONTH_MASK = '__/____';
|
|
@@ -21890,12 +21993,16 @@ const Header = () => {
|
|
|
21890
21993
|
const PRESENT_VALUE = 'Present';
|
|
21891
21994
|
|
|
21892
21995
|
/**
|
|
21893
|
-
*
|
|
21996
|
+
* Form-side shape: **start** / **end** strings in **`outputFormat`**; **end** may be **`PRESENT_VALUE`**
|
|
21997
|
+
* when the user chose **Present** (maps to **`null`** inside **DateRangePicker**).
|
|
21998
|
+
*/
|
|
21999
|
+
|
|
22000
|
+
/**
|
|
22001
|
+
* Props for **DateRangePickerFormBridge** — adapter between string-based forms and **DateRangePicker**.
|
|
21894
22002
|
*
|
|
21895
|
-
*
|
|
21896
|
-
* -
|
|
21897
|
-
* -
|
|
21898
|
-
* - Used by DateRangeField (RJSF); can be used by other form builders
|
|
22003
|
+
* - Keeps **DateRangePicker** on **inputFormat** and **`null`** for Present
|
|
22004
|
+
* - Converts **outputFormat** storage ↔ display **inputFormat**
|
|
22005
|
+
* - Used by **DateRangeField** (RJSF) and similar builders
|
|
21899
22006
|
*/
|
|
21900
22007
|
|
|
21901
22008
|
/**
|
|
@@ -21942,6 +22049,26 @@ function formValueToPickerDefault(source, outputFormat, inputFormat) {
|
|
|
21942
22049
|
}
|
|
21943
22050
|
return undefined;
|
|
21944
22051
|
}
|
|
22052
|
+
|
|
22053
|
+
/**
|
|
22054
|
+
* Wraps **DateRangePicker** with an internal **FormProvider** and converts between
|
|
22055
|
+
* **`outputFormat`** (form storage) and **`inputFormat`** (picker display). Maps **`null`** ↔
|
|
22056
|
+
* **`PRESENT_VALUE`** for the end date only.
|
|
22057
|
+
*
|
|
22058
|
+
* @category Components
|
|
22059
|
+
* @subcategory Form Controls
|
|
22060
|
+
*
|
|
22061
|
+
* @example
|
|
22062
|
+
* ```tsx
|
|
22063
|
+
* <DateRangePickerFormBridge
|
|
22064
|
+
* name="contract"
|
|
22065
|
+
* outputFormat="yyyy-MM-dd"
|
|
22066
|
+
* inputFormat="mm/dd/yyyy"
|
|
22067
|
+
* value={{ start: '2024-01-01', end: 'Present' }}
|
|
22068
|
+
* onChange={(v) => save(v)}
|
|
22069
|
+
* />
|
|
22070
|
+
* ```
|
|
22071
|
+
*/
|
|
21945
22072
|
const DateRangePickerFormBridge = ({
|
|
21946
22073
|
value,
|
|
21947
22074
|
defaultValue: defaultValueProp,
|
|
@@ -23067,6 +23194,58 @@ const DateRangePickerProvider = ({
|
|
|
23067
23194
|
|
|
23068
23195
|
|
|
23069
23196
|
|
|
23197
|
+
/**
|
|
23198
|
+
* DateRangePicker — two masked inputs (**from** / **to**) with a shared popover calendar and
|
|
23199
|
+
* **react-hook-form** fields **`${name}From`** and **`${name}To`** inside **`FormProvider`**.
|
|
23200
|
+
* **`onChange`** emits **`[start, end]`** as **`Date`**, **`undefined`**, or **`null`** on the **end**
|
|
23201
|
+
* only for **“Present”** (open-ended range) when **`showPresentOption`** is enabled.
|
|
23202
|
+
*
|
|
23203
|
+
* ### Behavior notes
|
|
23204
|
+
* - **Luxon** parses strings; the form stores **formatted strings** per **format** / **rangePickerType**.
|
|
23205
|
+
* - Calendar selection uses a **start → end** step; **`allowReverseSelection`** can swap inverted picks.
|
|
23206
|
+
* - Use **`DateRangePickerFormBridge`** when the form stores **ISO** strings and **`PRESENT_VALUE`**
|
|
23207
|
+
* for Present (string-safe schemas).
|
|
23208
|
+
*
|
|
23209
|
+
* @category Components
|
|
23210
|
+
* @subcategory Form Controls
|
|
23211
|
+
*
|
|
23212
|
+
* @example
|
|
23213
|
+
* ```tsx
|
|
23214
|
+
* import { FormProvider, useForm } from 'react-hook-form';
|
|
23215
|
+
* import { DateRangePicker } from '@ssa-ui-kit/core';
|
|
23216
|
+
*
|
|
23217
|
+
* function Example() {
|
|
23218
|
+
* const methods = useForm({
|
|
23219
|
+
* defaultValues: { tripFrom: '', tripTo: '' },
|
|
23220
|
+
* });
|
|
23221
|
+
* return (
|
|
23222
|
+
* <FormProvider {...methods}>
|
|
23223
|
+
* <DateRangePicker
|
|
23224
|
+
* name="trip"
|
|
23225
|
+
* label="Trip dates"
|
|
23226
|
+
* onChange={(dates) => console.log(dates)}
|
|
23227
|
+
* />
|
|
23228
|
+
* </FormProvider>
|
|
23229
|
+
* );
|
|
23230
|
+
* }
|
|
23231
|
+
* ```
|
|
23232
|
+
*
|
|
23233
|
+
* @example
|
|
23234
|
+
* ```tsx
|
|
23235
|
+
* // Open-ended end date: `to === null` means Present
|
|
23236
|
+
* <DateRangePicker name="job" showPresentOption onChange={() => {}} />
|
|
23237
|
+
* ```
|
|
23238
|
+
*
|
|
23239
|
+
* @see {@link Input} — Masked inputs
|
|
23240
|
+
* @see {@link Popover} — Calendar overlay
|
|
23241
|
+
* @see {@link DateRangePickerFormBridge} — ISO / string form adapter
|
|
23242
|
+
*
|
|
23243
|
+
* @accessibility
|
|
23244
|
+
* - **Field** label associates with the focused input
|
|
23245
|
+
* - Calendar controls reuse **aria-** patterns from day/month/year views
|
|
23246
|
+
* - Calendar trigger uses an **aria-label** on the icon button
|
|
23247
|
+
*/
|
|
23248
|
+
|
|
23070
23249
|
const DateRangePicker = ({
|
|
23071
23250
|
format,
|
|
23072
23251
|
showCalendarIcon = true,
|
|
@@ -26395,11 +26574,12 @@ const ArrayFieldItemTemplate = props => {
|
|
|
26395
26574
|
RemoveButton
|
|
26396
26575
|
} = registry.templates.ButtonTemplates;
|
|
26397
26576
|
const {
|
|
26398
|
-
toolbarAlign = '
|
|
26577
|
+
toolbarAlign = 'flex-end'
|
|
26399
26578
|
} = registry.formContext;
|
|
26400
26579
|
const buttonCss = {
|
|
26401
26580
|
width: '32px',
|
|
26402
26581
|
height: '32px',
|
|
26582
|
+
marginBottom: '8px',
|
|
26403
26583
|
justifyContent: 'center'
|
|
26404
26584
|
};
|
|
26405
26585
|
return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
@@ -49028,6 +49208,105 @@ const StepLabel = ({
|
|
|
49028
49208
|
});
|
|
49029
49209
|
};
|
|
49030
49210
|
/* harmony default export */ const StepLabel_StepLabel = (StepLabel);
|
|
49211
|
+
;// ./src/components/History/styles.ts
|
|
49212
|
+
function History_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
49213
|
+
|
|
49214
|
+
const FIRST_LINE_TOP_PADDING = 2;
|
|
49215
|
+
const FIRST_LINE_HEIGHT = 20;
|
|
49216
|
+
const container = true ? {
|
|
49217
|
+
name: "1fttcpj",
|
|
49218
|
+
styles: "display:flex;flex-direction:column"
|
|
49219
|
+
} : 0;
|
|
49220
|
+
const row = true ? {
|
|
49221
|
+
name: "1h63efc",
|
|
49222
|
+
styles: "display:flex;align-items:stretch"
|
|
49223
|
+
} : 0;
|
|
49224
|
+
const leftColumn = width => /*#__PURE__*/(0,react_namespaceObject.css)("position:relative;flex-shrink:0;width:", width, "px;" + ( true ? "" : 0), true ? "" : 0);
|
|
49225
|
+
const circle = (color, size, topOffset) => /*#__PURE__*/(0,react_namespaceObject.css)("position:absolute;top:", topOffset, "px;left:50%;transform:translateX(-50%);width:", size, "px;height:", size, "px;border-radius:50%;background-color:", color, ";z-index:1;" + ( true ? "" : 0), true ? "" : 0);
|
|
49226
|
+
const connector = (color, circleTopOffset, circleSize) => /*#__PURE__*/(0,react_namespaceObject.css)("position:absolute;left:50%;transform:translateX(-50%);top:", circleTopOffset + circleSize / 2, "px;bottom:-", circleTopOffset + circleSize / 2, "px;width:1px;background-color:", color, ";" + ( true ? "" : 0), true ? "" : 0);
|
|
49227
|
+
const dateColumn = width => /*#__PURE__*/(0,react_namespaceObject.css)("width:", width, "px;flex-shrink:0;padding-top:", FIRST_LINE_TOP_PADDING, "px;padding-bottom:20px;font-size:14px;line-height:", FIRST_LINE_HEIGHT, "px;" + ( true ? "" : 0), true ? "" : 0);
|
|
49228
|
+
const contentColumn = /*#__PURE__*/(0,react_namespaceObject.css)("flex:1;padding-top:", FIRST_LINE_TOP_PADDING, "px;padding-bottom:20px;" + ( true ? "" : 0), true ? "" : 0);
|
|
49229
|
+
;// ./src/components/History/History.tsx
|
|
49230
|
+
|
|
49231
|
+
|
|
49232
|
+
|
|
49233
|
+
const DEFAULT_CIRCLE_SIZE = 12;
|
|
49234
|
+
const DEFAULT_DATE_WIDTH = 120;
|
|
49235
|
+
const LEFT_COLUMN_MARGIN_RIGHT = 16;
|
|
49236
|
+
|
|
49237
|
+
/**
|
|
49238
|
+
* History - Vertical timeline component for chronological events.
|
|
49239
|
+
*
|
|
49240
|
+
* Renders a date column and content column for each item, connected by
|
|
49241
|
+
* timeline markers. Marker colors can be set per item or via defaults.
|
|
49242
|
+
*
|
|
49243
|
+
* ### Color behavior
|
|
49244
|
+
* - `item.color` overrides the marker color for a specific row
|
|
49245
|
+
* - `defaultColor` is used when `item.color` is not provided
|
|
49246
|
+
* - fallback default marker color: `theme.palette.primary.main`
|
|
49247
|
+
* - fallback connector color: `theme.colors.greyLighter`
|
|
49248
|
+
*
|
|
49249
|
+
* ### Alignment behavior
|
|
49250
|
+
* The marker is vertically aligned to the first text line and adapts when
|
|
49251
|
+
* `circleSize` changes.
|
|
49252
|
+
*
|
|
49253
|
+
* @category Components
|
|
49254
|
+
* @subcategory Display
|
|
49255
|
+
*
|
|
49256
|
+
* @example
|
|
49257
|
+
* ```tsx
|
|
49258
|
+
* <History
|
|
49259
|
+
* items={[
|
|
49260
|
+
* { date: '01.01.2026', content: 'Account created' },
|
|
49261
|
+
* { date: '03.01.2026', content: 'Plan upgraded', color: '#10b981' },
|
|
49262
|
+
* ]}
|
|
49263
|
+
* />
|
|
49264
|
+
* ```
|
|
49265
|
+
*/
|
|
49266
|
+
const History = ({
|
|
49267
|
+
items,
|
|
49268
|
+
defaultColor,
|
|
49269
|
+
lineColor,
|
|
49270
|
+
dateWidth = DEFAULT_DATE_WIDTH,
|
|
49271
|
+
circleSize = DEFAULT_CIRCLE_SIZE,
|
|
49272
|
+
sx
|
|
49273
|
+
}) => {
|
|
49274
|
+
const theme = (0,react_namespaceObject.useTheme)();
|
|
49275
|
+
const resolvedDefaultColor = defaultColor ?? theme.palette.primary.main;
|
|
49276
|
+
const resolvedLineColor = lineColor ?? theme.colors.greyLighter;
|
|
49277
|
+
const circleTopOffset = Math.max(0, FIRST_LINE_TOP_PADDING + (FIRST_LINE_HEIGHT - circleSize) / 2);
|
|
49278
|
+
return (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
49279
|
+
"data-testid": "history",
|
|
49280
|
+
css: container,
|
|
49281
|
+
style: sx,
|
|
49282
|
+
children: items.map((item, index) => {
|
|
49283
|
+
const isLast = index === items.length - 1;
|
|
49284
|
+
const color = item.color ?? resolvedDefaultColor;
|
|
49285
|
+
return (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
49286
|
+
css: row,
|
|
49287
|
+
children: [(0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
49288
|
+
css: leftColumn(circleSize),
|
|
49289
|
+
style: {
|
|
49290
|
+
marginRight: LEFT_COLUMN_MARGIN_RIGHT
|
|
49291
|
+
},
|
|
49292
|
+
children: [(0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
49293
|
+
css: circle(color, circleSize, circleTopOffset)
|
|
49294
|
+
}), !isLast && (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
49295
|
+
css: connector(resolvedLineColor, circleTopOffset, circleSize)
|
|
49296
|
+
})]
|
|
49297
|
+
}), (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
49298
|
+
css: dateColumn(dateWidth),
|
|
49299
|
+
children: item.date
|
|
49300
|
+
}), (0,jsx_runtime_namespaceObject.jsx)("div", {
|
|
49301
|
+
css: contentColumn,
|
|
49302
|
+
children: item.content
|
|
49303
|
+
})]
|
|
49304
|
+
}, item.key ?? index);
|
|
49305
|
+
})
|
|
49306
|
+
});
|
|
49307
|
+
};
|
|
49308
|
+
;// ./src/components/History/index.ts
|
|
49309
|
+
|
|
49031
49310
|
;// ./src/components/Pagination/styles.tsx
|
|
49032
49311
|
|
|
49033
49312
|
function Pagination_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
@@ -51589,6 +51868,7 @@ const UserProfile = ({
|
|
|
51589
51868
|
|
|
51590
51869
|
|
|
51591
51870
|
|
|
51871
|
+
|
|
51592
51872
|
|
|
51593
51873
|
|
|
51594
51874
|
// ============================================================================
|