se-design 1.0.64 → 1.0.66-dev
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/assets/icons/checkbox-disabled-minus.svg +1 -1
- package/dist/assets/icons/checkbox-disabled-tick.svg +1 -1
- package/dist/assets/icons/checkbox-fill.svg +1 -1
- package/dist/assets/icons/checkbox-hover-fill.svg +1 -1
- package/dist/assets/icons/checkbox-hover-minus.svg +1 -1
- package/dist/assets/icons/checkbox-hover-tick.svg +1 -1
- package/dist/assets/icons/checkbox-minus.svg +1 -1
- package/dist/assets/icons/checkbox-tick.svg +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/components/BreadCrumbs/index.d.ts +1 -0
- package/dist/components/CustomAccordion/index.d.ts +2 -0
- package/dist/components/InputWithIcon/index.d.ts +28 -2
- package/dist/components/ShimmerLoader/index.d.ts +4 -2
- package/dist/index186.js +5 -5
- package/dist/index186.js.map +1 -1
- package/dist/index19.js +9 -6
- package/dist/index19.js.map +1 -1
- package/dist/index215.js +32 -41
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +44 -0
- package/dist/index216.js.map +1 -0
- package/dist/index227.js +1 -1
- package/dist/index228.js +1 -1
- package/dist/index229.js +9 -21
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +9 -18
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +4 -9
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +170 -10
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +11 -5
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +22 -170
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +19 -11
- package/dist/index235.js.map +1 -1
- package/dist/index26.js +17 -12
- package/dist/index26.js.map +1 -1
- package/dist/index31.js +10 -11
- package/dist/index32.js +9 -9
- package/dist/index32.js.map +1 -1
- package/dist/index35.js +68 -32
- package/dist/index35.js.map +1 -1
- package/dist/index41.js +7 -8
- package/dist/index42.js +6 -7
- package/dist/index48.js +2 -2
- package/dist/index49.js +40 -38
- package/dist/index49.js.map +1 -1
- package/dist/index51.js +71 -43
- package/dist/index51.js.map +1 -1
- package/dist/index54.js +58 -51
- package/dist/index54.js.map +1 -1
- package/dist/index6.js +36 -26
- package/dist/index6.js.map +1 -1
- package/dist/index64.js +1 -2
- package/dist/index84.js +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/package.json +1 -1
- package/dist/index214.js +0 -35
- package/dist/index214.js.map +0 -1
package/dist/index51.js
CHANGED
|
@@ -1,68 +1,96 @@
|
|
|
1
1
|
import t from "react";
|
|
2
|
-
import { Icon as
|
|
2
|
+
import { Icon as S } from "./index5.js";
|
|
3
|
+
import { useStableId as T } from "./index188.js";
|
|
4
|
+
import { getA11yNameAttributes as W } from "./index70.js";
|
|
3
5
|
/* empty css */
|
|
4
|
-
function
|
|
6
|
+
function J({
|
|
5
7
|
disabled: c,
|
|
6
8
|
error: a,
|
|
7
|
-
errorMessage:
|
|
8
|
-
|
|
9
|
+
errorMessage: E,
|
|
10
|
+
id: N,
|
|
11
|
+
inputStyle: r,
|
|
9
12
|
label: s,
|
|
10
13
|
leftIcon: l,
|
|
11
14
|
maxLength: n,
|
|
12
|
-
onChange:
|
|
13
|
-
onClick:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
onChange: m,
|
|
16
|
+
onClick: o,
|
|
17
|
+
onKeyDown: $,
|
|
18
|
+
placeholder: b,
|
|
19
|
+
readOnly: d,
|
|
20
|
+
rightIcon: u,
|
|
21
|
+
style: y,
|
|
22
|
+
tag: I,
|
|
23
|
+
type: k = "text",
|
|
24
|
+
value: p,
|
|
25
|
+
className: D = "",
|
|
26
|
+
automationId: g = "",
|
|
27
|
+
ariaLabel: A,
|
|
28
|
+
ariaLabelledBy: C,
|
|
29
|
+
ariaDescribedBy: K,
|
|
30
|
+
ariaHasPopup: R
|
|
22
31
|
}) {
|
|
23
|
-
const
|
|
32
|
+
const v = T(N, "se-input-icon"), _ = I || "input", x = W({
|
|
33
|
+
ariaLabel: A,
|
|
34
|
+
ariaLabelledBy: C,
|
|
35
|
+
ariaDescribedBy: K
|
|
36
|
+
}), i = !!d && !!o, h = (e) => {
|
|
24
37
|
if (!e) return null;
|
|
25
|
-
const
|
|
38
|
+
const w = c || e.disabled, f = i || w ? void 0 : e.onClick;
|
|
26
39
|
return /* @__PURE__ */ t.createElement("div", {
|
|
27
|
-
className: `input-with-icon-icon input-with-icon-icon-${e.position} ${e.className || ""} ${
|
|
28
|
-
style: e.style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
name: e.name
|
|
40
|
+
className: `input-with-icon-icon input-with-icon-icon-${e.position} ${e.className || ""} ${w ? "disabled" : ""} ${e.disableHover ? "no-hover" : ""}`,
|
|
41
|
+
style: e.style
|
|
42
|
+
}, /* @__PURE__ */ t.createElement(S, {
|
|
43
|
+
name: e.name,
|
|
44
|
+
onClick: f,
|
|
45
|
+
ariaLabel: f ? e.ariaLabel : void 0
|
|
34
46
|
}));
|
|
35
|
-
},
|
|
47
|
+
}, F = (e) => {
|
|
48
|
+
i && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o(e)), $?.(e);
|
|
49
|
+
}, H = !!l, M = !!u;
|
|
36
50
|
return /* @__PURE__ */ t.createElement("div", {
|
|
37
|
-
className: `input-with-icon-main-container ${
|
|
38
|
-
style:
|
|
39
|
-
"data-automation-id":
|
|
40
|
-
}, s && /* @__PURE__ */ t.createElement("
|
|
41
|
-
className: "label-container"
|
|
51
|
+
className: `input-with-icon-main-container ${D}`,
|
|
52
|
+
style: y,
|
|
53
|
+
"data-automation-id": g
|
|
54
|
+
}, s && /* @__PURE__ */ t.createElement("label", {
|
|
55
|
+
className: "label-container",
|
|
56
|
+
htmlFor: v
|
|
42
57
|
}, s), /* @__PURE__ */ t.createElement("div", {
|
|
43
|
-
className: `input-with-icon-wrapper ${
|
|
44
|
-
onClick: i ? (e) =>
|
|
45
|
-
|
|
58
|
+
className: `input-with-icon-wrapper ${H ? "has-left-icon" : ""} ${M ? "has-right-icon" : ""}`,
|
|
59
|
+
onClick: i ? (e) => o(e) : void 0,
|
|
60
|
+
style: i ? {
|
|
61
|
+
cursor: "pointer"
|
|
46
62
|
} : void 0
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
63
|
+
}, h(l), /* @__PURE__ */ t.createElement(_, {
|
|
64
|
+
id: v,
|
|
65
|
+
value: p,
|
|
66
|
+
onChange: m ? (e) => m(e.target.value) : void 0,
|
|
67
|
+
// In trigger mode don't attach onClick to the input — the wrapper handles it.
|
|
68
|
+
onClick: i ? void 0 : o,
|
|
69
|
+
onKeyDown: F,
|
|
51
70
|
disabled: c,
|
|
52
|
-
|
|
71
|
+
readOnly: d,
|
|
72
|
+
type: k,
|
|
53
73
|
className: `input-with-icon-element ${a ? "input-with-icon-container-error" : "input-with-icon-container-default"} ${c ? "input-with-icon-container-disabled" : ""}`,
|
|
54
74
|
maxLength: n || void 0,
|
|
55
|
-
placeholder:
|
|
56
|
-
|
|
57
|
-
|
|
75
|
+
placeholder: b,
|
|
76
|
+
// In trigger mode: pointer cursor so it matches the wrapper, and no text selection
|
|
77
|
+
// since the value is display-only — selecting "90 days" with a caret is misleading.
|
|
78
|
+
style: i ? {
|
|
79
|
+
cursor: "pointer",
|
|
80
|
+
userSelect: "none",
|
|
81
|
+
...r
|
|
82
|
+
} : r,
|
|
83
|
+
"aria-haspopup": R,
|
|
84
|
+
...x
|
|
85
|
+
}), h(u)), (a || n) && /* @__PURE__ */ t.createElement("div", {
|
|
58
86
|
className: `${a ? "error-and-max-word" : "max-word-container"}`
|
|
59
87
|
}, a && /* @__PURE__ */ t.createElement("div", {
|
|
60
88
|
className: "error-message"
|
|
61
|
-
},
|
|
89
|
+
}, E), n && /* @__PURE__ */ t.createElement("div", {
|
|
62
90
|
className: "max-word"
|
|
63
|
-
}, n &&
|
|
91
|
+
}, n && p?.length + "/" + n)));
|
|
64
92
|
}
|
|
65
93
|
export {
|
|
66
|
-
|
|
94
|
+
J as InputWithIcon
|
|
67
95
|
};
|
|
68
96
|
//# sourceMappingURL=index51.js.map
|
package/dist/index51.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index51.js","sources":["../src/components/InputWithIcon/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from '../Icon';\nimport './styles.scss';\n\nexport interface InputIconProps {\n className?: string;\n disabled?: boolean;\n disableHover?: boolean;\n name: string;\n onClick?: () => void;\n position: 'left' | 'right';\n style?: React.CSSProperties;\n}\n\nexport interface InputWithIconProps {\n disabled?: boolean;\n error?: boolean;\n errorMessage?: string;\n inputStyle?: React.CSSProperties;\n label?: string;\n leftIcon?: InputIconProps;\n maxLength?: number | undefined;\n onChange: (value: string) => void;\n onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;\n placeholder?: string;\n rightIcon?: InputIconProps;\n style?: React.CSSProperties;\n tag?: string;\n type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';\n value: string;\n className?: string;\n automationId?: string;\n}\n\nexport function InputWithIcon({\n disabled,\n error,\n errorMessage,\n inputStyle,\n label,\n leftIcon,\n maxLength,\n onChange,\n onClick,\n placeholder,\n rightIcon,\n style,\n tag,\n type = 'text',\n value,\n className = '',\n automationId = ''\n}: InputWithIconProps) {\n const Element = tag || 'input';\n\n const renderIcon = (iconProps: InputIconProps) => {\n if (!iconProps) return null;\n \n const isIconDisabled = disabled || iconProps.disabled;\n \n return (\n <div \n className={`input-with-icon-icon input-with-icon-icon-${iconProps.position} ${iconProps.className || ''} ${isIconDisabled ? 'disabled' : ''} ${iconProps.disableHover ? 'no-hover' : ''}`}\n style={iconProps.style}\n onClick={isIconDisabled ? undefined : (e) => {\n // First trigger the icon's own onClick handler\n if (iconProps.onClick) {\n iconProps.onClick();\n }\n // Then also trigger the input's onClick handler\n if (onClick) {\n onClick(e as any);\n }\n }}\n >\n <Icon name={iconProps.name} />\n </div>\n );\n };\n\n const hasLeftIcon = !!leftIcon;\n const hasRightIcon = !!rightIcon;\n\n return (\n <div className={`input-with-icon-main-container ${className}`} style={style} data-automation-id={automationId}>\n {label && <div className=\"label-container\">{label}</div>}\n <div \n className={`input-with-icon-wrapper ${hasLeftIcon ? 'has-left-icon' : ''} ${hasRightIcon ? 'has-right-icon' : ''}`}\n onClick={onClick ? (e) => {\n // Trigger input onClick when clicking on wrapper area (but not on icons, as they handle it themselves)\n const target = e.target as HTMLElement;\n const isClickingIcon = target.closest('.input-with-icon-icon');\n \n if (!isClickingIcon) {\n onClick(e as any);\n }\n } : undefined}\n >\n {renderIcon(leftIcon!)}\n {React.createElement(Element, {\n value,\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => onChange(e.target.value),\n onClick: onClick,\n disabled,\n type,\n className: `input-with-icon-element ${error ? 'input-with-icon-container-error' : 'input-with-icon-container-default'} ${disabled ? 'input-with-icon-container-disabled' : ''}`,\n maxLength: maxLength ? maxLength : undefined,\n placeholder: placeholder,\n style: inputStyle\n })}\n {renderIcon(rightIcon!)}\n </div>\n {(error || maxLength) &&\n <div className={`${error ? 'error-and-max-word' : 'max-word-container'}`}>\n {error && <div className=\"error-message\">{errorMessage}</div>}\n {maxLength && <div className=\"max-word\">{maxLength && value?.length + '/' + maxLength}</div>}\n </div>\n }\n </div>\n );\n}\n"],"names":["React__default","Icon","InputWithIcon","disabled","error","errorMessage","inputStyle","label","leftIcon","maxLength","onChange","onClick","placeholder","rightIcon","style","tag","type","value","className","automationId","Element","renderIcon","iconProps","isIconDisabled","React","createElement","position","disableHover","undefined","e","name","hasLeftIcon","hasRightIcon","target","closest","length"],"mappings":"AAkCO,OAAAA,OAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,OAAA;AAAA,SAASC,EAAc;AAAA,EAC5BC,UAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,KAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,OAAAA;AAAAA,EACAC,WAAAA,IAAY;AAAA,EACZC,cAAAA,IAAe;AACG,GAAG;AACrB,QAAMC,IAAUL,KAAO,SAEjBM,IAAaA,CAACC,MAA8B;AAChD,QAAI,CAACA,EAAW,QAAO;AAEvB,UAAMC,IAAiBpB,KAAYmB,EAAUnB;AAE7C,WACEqB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,MACEP,WAAW,6CAA6CI,EAAUI,QAAQ,IAAIJ,EAAUJ,aAAa,EAAE,IAAIK,IAAiB,aAAa,EAAE,IAAID,EAAUK,eAAe,aAAa,EAAE;AAAA,MACvLb,OAAOQ,EAAUR;AAAAA,MACjBH,SAASY,IAAiBK,SAAaC,CAAAA,MAAM;AAE3C,QAAIP,EAAUX,WACZW,EAAUX,QAAAA,GAGRA,KACFA,EAAQkB,CAAQ;AAAA,MAEpB;AAAA,IAAA,GAEAL,gBAAAA,EAAAC,cAACxB,GAAI;AAAA,MAAC6B,MAAMR,EAAUQ;AAAAA,IAAAA,CAAO,CAC1B;AAAA,EAET,GAEMC,IAAc,CAAC,CAACvB,GAChBwB,IAAe,CAA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"}
|
|
1
|
+
{"version":3,"file":"index51.js","sources":["../src/components/InputWithIcon/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from '../Icon';\nimport { useStableId } from '../../utils/useStableId';\nimport { getA11yNameAttributes } from '../../utils/a11y';\nimport './styles.scss';\n\nexport interface InputIconProps {\n className?: string;\n disabled?: boolean;\n disableHover?: boolean;\n name: string;\n onClick?: () => void;\n position: 'left' | 'right';\n style?: React.CSSProperties;\n /**\n * Accessible name for the icon when it is interactive (onClick provided).\n * Required for a11y when the icon has its own onClick.\n */\n ariaLabel?: string;\n}\n\nexport interface InputWithIconProps {\n disabled?: boolean;\n error?: boolean;\n errorMessage?: string;\n id?: string;\n inputStyle?: React.CSSProperties;\n label?: string;\n leftIcon?: InputIconProps;\n maxLength?: number | undefined;\n onChange?: (value: string) => void;\n onClick?: (e: React.MouseEvent<HTMLInputElement>) => void;\n onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n placeholder?: string;\n readOnly?: boolean;\n rightIcon?: InputIconProps;\n style?: React.CSSProperties;\n tag?: string;\n type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search';\n value: string;\n className?: string;\n automationId?: string;\n /**\n * Accessible name when no visible label exists.\n * Prefer a visible label prop instead where possible.\n */\n ariaLabel?: string;\n /**\n * ID(s) of external visible element(s) that label this input.\n */\n ariaLabelledBy?: string;\n /**\n * ID(s) of element(s) that describe this input (hints, notes, constraints).\n * Announced by screen readers after the label and value, giving extra context.\n */\n ariaDescribedBy?: string;\n /**\n * Set to \"dialog\" when this input opens a date picker or other dialog.\n */\n ariaHasPopup?: 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';\n}\n\nexport function InputWithIcon({\n disabled,\n error,\n errorMessage,\n id,\n inputStyle,\n label,\n leftIcon,\n maxLength,\n onChange,\n onClick,\n onKeyDown,\n placeholder,\n readOnly,\n rightIcon,\n style,\n tag,\n type = 'text',\n value,\n className = '',\n automationId = '',\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy,\n ariaHasPopup\n}: InputWithIconProps) {\n const inputId = useStableId(id, 'se-input-icon');\n const Element = tag || 'input';\n\n const accessibleNameProps = getA11yNameAttributes({ ariaLabel, ariaLabelledBy, ariaDescribedBy });\n\n // Trigger mode: readOnly + onClick means the whole widget acts as one interactive element\n // (e.g. a date picker trigger). ONE tab stop — the input — and the icon is always decorative.\n // The wrapper div becomes the unified mouse click zone so clicking anywhere, including the\n // icon area, fires the action without a second focusable element.\n //\n // Non-trigger mode: normal editable input. If an icon has its own onClick it is an independent\n // action (e.g. show/hide password) and becomes its own accessible button via Icon's useAccessiblePress.\n const isTriggerMode = !!readOnly && !!onClick;\n\n const renderIcon = (iconProps: InputIconProps) => {\n if (!iconProps) return null;\n\n const isIconDisabled = disabled || iconProps.disabled;\n // In trigger mode icon is always decorative — the wrapper is the click zone for the whole widget.\n // In non-trigger mode pass onClick to Icon so it uses useAccessiblePress:\n // role=\"button\", tabIndex=0, Enter/Space, focus-outline. Decorative when no onClick.\n const iconOnClick = isTriggerMode || isIconDisabled ? undefined : iconProps.onClick;\n\n return (\n <div\n className={`input-with-icon-icon input-with-icon-icon-${iconProps.position} ${iconProps.className || ''} ${isIconDisabled ? 'disabled' : ''} ${iconProps.disableHover ? 'no-hover' : ''}`}\n style={iconProps.style}\n >\n <Icon\n name={iconProps.name}\n onClick={iconOnClick}\n ariaLabel={iconOnClick ? iconProps.ariaLabel : undefined}\n />\n </div>\n );\n };\n\n // In trigger mode Enter/Space on the focused input fires the action, same as a button would.\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (isTriggerMode && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onClick!(e as any);\n }\n onKeyDown?.(e);\n };\n\n const hasLeftIcon = !!leftIcon;\n const hasRightIcon = !!rightIcon;\n\n return (\n <div className={`input-with-icon-main-container ${className}`} style={style} data-automation-id={automationId}>\n {label && <label className=\"label-container\" htmlFor={inputId}>{label}</label>}\n <div\n className={`input-with-icon-wrapper ${hasLeftIcon ? 'has-left-icon' : ''} ${hasRightIcon ? 'has-right-icon' : ''}`}\n // In trigger mode the wrapper is the unified mouse click zone — clicking anywhere in the\n // widget (including the icon area) fires the action. Don't also put onClick on the input\n // element or it would double-fire when the input itself is clicked.\n onClick={isTriggerMode ? (e) => onClick!(e as any) : undefined}\n style={isTriggerMode ? { cursor: 'pointer' } : undefined}\n >\n {renderIcon(leftIcon!)}\n {React.createElement(Element, {\n id: inputId,\n value,\n onChange: onChange\n ? (e: React.ChangeEvent<HTMLInputElement>) => onChange(e.target.value)\n : undefined,\n // In trigger mode don't attach onClick to the input — the wrapper handles it.\n onClick: isTriggerMode ? undefined : onClick,\n onKeyDown: handleKeyDown,\n disabled,\n readOnly,\n type,\n className: `input-with-icon-element ${error ? 'input-with-icon-container-error' : 'input-with-icon-container-default'} ${disabled ? 'input-with-icon-container-disabled' : ''}`,\n maxLength: maxLength ? maxLength : undefined,\n placeholder: placeholder,\n // In trigger mode: pointer cursor so it matches the wrapper, and no text selection\n // since the value is display-only — selecting \"90 days\" with a caret is misleading.\n style: isTriggerMode\n ? { cursor: 'pointer', userSelect: 'none', ...inputStyle }\n : inputStyle,\n 'aria-haspopup': ariaHasPopup,\n ...accessibleNameProps\n })}\n {renderIcon(rightIcon!)}\n </div>\n {(error || maxLength) &&\n <div className={`${error ? 'error-and-max-word' : 'max-word-container'}`}>\n {error && <div className=\"error-message\">{errorMessage}</div>}\n {maxLength && <div className=\"max-word\">{maxLength && value?.length + '/' + maxLength}</div>}\n </div>\n }\n </div>\n );\n}\n"],"names":["React__default","Icon","useStableId","getA11yNameAttributes","InputWithIcon","disabled","error","errorMessage","id","inputStyle","label","leftIcon","maxLength","onChange","onClick","onKeyDown","placeholder","readOnly","rightIcon","style","tag","type","value","className","automationId","ariaLabel","ariaLabelledBy","ariaDescribedBy","ariaHasPopup","inputId","Element","accessibleNameProps","isTriggerMode","renderIcon","iconProps","isIconDisabled","iconOnClick","undefined","React","createElement","position","disableHover","name","handleKeyDown","e","key","preventDefault","hasLeftIcon","hasRightIcon","htmlFor","cursor","target","userSelect","length"],"mappings":"AA8DO,OAAAA,OAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,SAAA,eAAAC,SAAA;AAAA,SAAA,yBAAAC,SAAA;AAAA,OAAA;AAAA,SAASC,EAAc;AAAA,EAC5BC,UAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,cAAAA;AAAAA,EACAC,IAAAA;AAAAA,EACAC,YAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,UAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,OAAAA;AAAAA,EACAC,KAAAA;AAAAA,EACAC,MAAAA,IAAO;AAAA,EACPC,OAAAA;AAAAA,EACAC,WAAAA,IAAY;AAAA,EACZC,cAAAA,IAAe;AAAA,EACfC,WAAAA;AAAAA,EACAC,gBAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACAC,cAAAA;AACkB,GAAG;AACrB,QAAMC,IAAU3B,EAAYM,GAAI,eAAe,GACzCsB,IAAUV,KAAO,SAEjBW,IAAsB5B,EAAsB;AAAA,IAAEsB,WAAAA;AAAAA,IAAWC,gBAAAA;AAAAA,IAAgBC,iBAAAA;AAAAA,EAAAA,CAAiB,GAS1FK,IAAgB,CAAC,CAACf,KAAY,CAAC,CAACH,GAEhCmB,IAAaA,CAACC,MAA8B;AAChD,QAAI,CAACA,EAAW,QAAO;AAEvB,UAAMC,IAAiB9B,KAAY6B,EAAU7B,UAIvC+B,IAAcJ,KAAiBG,IAAiBE,SAAYH,EAAUpB;AAE5E,WACEwB,gBAAAA,EAAAC,cAAA,OAAA;AAAA,MACEhB,WAAW,6CAA6CW,EAAUM,QAAQ,IAAIN,EAAUX,aAA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vB,SAASkB,IAAgBK,SAAYvB;AAAAA,IACrCC,WAAW4B;AAAAA,IACXtC,UAAAA;AAAAA,IACAY,UAAAA;AAAAA,IACAI,MAAAA;AAAAA,IACAE,WAAW,2BAA2BjB,IAAQ,oCAAoC,mCAAmC,IAAID,IAAW,uCAAuC,EAAE;AAAA,IAC7KO,WAAWA,KAAwByB;AAAAA,IACnCrB,aAAAA;AAAAA;AAAAA;AAAAA,IAGAG,OAAOa,IACH;AAAA,MAAEkB,QAAQ;AAAA,MAAWE,YAAY;AAAA,MAAQ,GAAG3C;AAAAA,IAAAA,IAC5CA;AAAAA,IACJ,iBAAiBmB;AAAAA,IACjB,GAAGG;AAAAA,EAAAA,CACJ,GACAE,EAAWf,CAAU,CACnB,IACHZ,KAASM,MACT0B,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKhB,WAAW,GAAGjB,IAAQ,uBAAuB,oBAAoB;AAAA,EAAA,GACnEA,KAASgC,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKhB,WAAU;AAAA,EAAA,GAAiBhB,CAAkB,GAC3DK,KAAa0B,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKhB,WAAU;AAAA,EAAA,GAAYX,KAAaU,GAAO+B,SAAS,MAAMzC,CAAe,CACxF,CAEJ;AAET;"}
|
package/dist/index54.js
CHANGED
|
@@ -1,88 +1,95 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "react";
|
|
2
2
|
/* empty css */
|
|
3
3
|
const n = ({
|
|
4
4
|
element: e,
|
|
5
|
-
animationDuration:
|
|
6
|
-
baseColor:
|
|
7
|
-
highlightColor:
|
|
5
|
+
animationDuration: d,
|
|
6
|
+
baseColor: s,
|
|
7
|
+
highlightColor: m
|
|
8
8
|
}) => {
|
|
9
|
-
const
|
|
9
|
+
const i = {
|
|
10
10
|
width: typeof e.width == "number" ? `${e.width}px` : e.width,
|
|
11
11
|
height: typeof e.height == "number" ? `${e.height}px` : e.height,
|
|
12
12
|
borderRadius: e.borderRadius ? typeof e.borderRadius == "number" ? `${e.borderRadius}px` : e.borderRadius : void 0,
|
|
13
13
|
margin: e.margin,
|
|
14
|
-
"--shimmer-duration": `${
|
|
15
|
-
"--shimmer-base-color":
|
|
16
|
-
"--shimmer-highlight-color":
|
|
17
|
-
},
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
className:
|
|
20
|
-
style:
|
|
21
|
-
}, e.children && e.children.map((t, p) => /* @__PURE__ */
|
|
14
|
+
"--shimmer-duration": `${d}s`,
|
|
15
|
+
"--shimmer-base-color": s,
|
|
16
|
+
"--shimmer-highlight-color": m
|
|
17
|
+
}, r = `se-design-shimmer-element se-design-shimmer-${e.type}`;
|
|
18
|
+
return /* @__PURE__ */ a.createElement("div", {
|
|
19
|
+
className: r,
|
|
20
|
+
style: i
|
|
21
|
+
}, e.children && e.children.map((t, p) => /* @__PURE__ */ a.createElement(n, {
|
|
22
22
|
key: p,
|
|
23
23
|
element: t,
|
|
24
|
-
animationDuration:
|
|
25
|
-
baseColor:
|
|
26
|
-
highlightColor:
|
|
24
|
+
animationDuration: d,
|
|
25
|
+
baseColor: s,
|
|
26
|
+
highlightColor: m
|
|
27
27
|
})));
|
|
28
|
-
},
|
|
28
|
+
}, y = ({
|
|
29
29
|
container: e,
|
|
30
|
-
animationDuration:
|
|
31
|
-
baseColor:
|
|
32
|
-
highlightColor:
|
|
30
|
+
animationDuration: d,
|
|
31
|
+
baseColor: s,
|
|
32
|
+
highlightColor: m
|
|
33
33
|
}) => {
|
|
34
|
-
const
|
|
34
|
+
const i = {
|
|
35
35
|
display: "flex",
|
|
36
36
|
flexDirection: e.direction || "column",
|
|
37
37
|
gap: typeof e.gap == "number" ? `${e.gap}px` : e.gap,
|
|
38
38
|
padding: e.padding,
|
|
39
|
-
margin: e.margin
|
|
39
|
+
margin: e.margin,
|
|
40
|
+
alignItems: e.alignItems,
|
|
41
|
+
flex: e.flex
|
|
40
42
|
};
|
|
41
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ a.createElement("div", {
|
|
42
44
|
className: `se-design-shimmer-container ${e.className || ""}`,
|
|
43
|
-
style:
|
|
44
|
-
}, e.children.map((
|
|
45
|
+
style: i
|
|
46
|
+
}, e.children.map((r, t) => r.type === "container" ? /* @__PURE__ */ a.createElement(y, {
|
|
47
|
+
key: t,
|
|
48
|
+
container: r,
|
|
49
|
+
animationDuration: d,
|
|
50
|
+
baseColor: s,
|
|
51
|
+
highlightColor: m
|
|
52
|
+
}) : /* @__PURE__ */ a.createElement(n, {
|
|
45
53
|
key: t,
|
|
46
|
-
element:
|
|
47
|
-
animationDuration:
|
|
48
|
-
baseColor:
|
|
49
|
-
highlightColor:
|
|
54
|
+
element: r,
|
|
55
|
+
animationDuration: d,
|
|
56
|
+
baseColor: s,
|
|
57
|
+
highlightColor: m
|
|
50
58
|
})));
|
|
51
|
-
},
|
|
59
|
+
}, g = ({
|
|
52
60
|
structure: e,
|
|
53
|
-
className:
|
|
54
|
-
animationDuration:
|
|
55
|
-
baseColor:
|
|
56
|
-
highlightColor:
|
|
57
|
-
width:
|
|
61
|
+
className: d = "",
|
|
62
|
+
animationDuration: s = 1.5,
|
|
63
|
+
baseColor: m = "var(--color-gray-400)",
|
|
64
|
+
highlightColor: i = "var(--color-gray-600)",
|
|
65
|
+
width: r,
|
|
58
66
|
height: t
|
|
59
67
|
}) => {
|
|
60
68
|
const p = {
|
|
61
|
-
width:
|
|
69
|
+
width: r ? typeof r == "number" ? `${r}px` : r : "100%",
|
|
62
70
|
height: t ? typeof t == "number" ? `${t}px` : t : "auto",
|
|
63
|
-
"--shimmer-duration": `${
|
|
64
|
-
"--shimmer-base-color":
|
|
65
|
-
"--shimmer-highlight-color":
|
|
71
|
+
"--shimmer-duration": `${s}s`,
|
|
72
|
+
"--shimmer-base-color": m,
|
|
73
|
+
"--shimmer-highlight-color": i
|
|
66
74
|
};
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
-
className: `se-design-shimmer-loader ${
|
|
75
|
+
return /* @__PURE__ */ a.createElement("div", {
|
|
76
|
+
className: `se-design-shimmer-loader ${d}`,
|
|
69
77
|
style: p
|
|
70
|
-
}, e.map((c, o) => c.type === "container" ? /* @__PURE__ */
|
|
78
|
+
}, e.map((c, o) => c.type === "container" ? /* @__PURE__ */ a.createElement(y, {
|
|
71
79
|
key: o,
|
|
72
80
|
container: c,
|
|
73
|
-
animationDuration:
|
|
74
|
-
baseColor:
|
|
75
|
-
highlightColor:
|
|
76
|
-
}) : /* @__PURE__ */
|
|
81
|
+
animationDuration: s,
|
|
82
|
+
baseColor: m,
|
|
83
|
+
highlightColor: i
|
|
84
|
+
}) : /* @__PURE__ */ a.createElement(n, {
|
|
77
85
|
key: o,
|
|
78
86
|
element: c,
|
|
79
|
-
animationDuration:
|
|
80
|
-
baseColor:
|
|
81
|
-
highlightColor:
|
|
87
|
+
animationDuration: s,
|
|
88
|
+
baseColor: m,
|
|
89
|
+
highlightColor: i
|
|
82
90
|
})));
|
|
83
91
|
};
|
|
84
92
|
export {
|
|
85
|
-
|
|
86
|
-
f as default
|
|
93
|
+
g as ShimmerLoader
|
|
87
94
|
};
|
|
88
95
|
//# sourceMappingURL=index54.js.map
|
package/dist/index54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index54.js","sources":["../src/components/ShimmerLoader/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport './style.scss';\n\nexport interface ShimmerElement {\n type: 'text' | 'rect' | 'circle' | 'avatar' | 'image' | 'button';\n width: number | string;\n height: number | string;\n borderRadius?: number | string;\n margin?: string;\n className?: string;\n children?: ShimmerElement[];\n}\n\nexport interface ShimmerContainer {\n type: 'container';\n direction?: 'row' | 'column';\n gap?: number | string;\n padding?: string;\n margin?: string;\n className?: string;\n children: ShimmerElement[];\n}\n\nexport type ShimmerStructure = (ShimmerElement | ShimmerContainer)[];\n\nexport interface ShimmerLoaderProps {\n structure: ShimmerStructure;\n className?: string;\n animationDuration?: number;\n baseColor?: string;\n highlightColor?: string;\n width?: number | string;\n height?: number | string;\n}\n\nconst ShimmerElementComponent: FC<{\n element: ShimmerElement;\n animationDuration: number;\n baseColor: string;\n highlightColor: string;\n}> = ({ element, animationDuration, baseColor, highlightColor }) => {\n const style: React.CSSProperties = {\n width: typeof element.width === 'number' ? `${element.width}px` : element.width,\n height: typeof element.height === 'number' ? `${element.height}px` : element.height,\n borderRadius: element.borderRadius\n ? typeof element.borderRadius === 'number'\n ? `${element.borderRadius}px`\n : element.borderRadius\n : undefined,\n margin: element.margin,\n '--shimmer-duration': `${animationDuration}s`,\n '--shimmer-base-color': baseColor,\n '--shimmer-highlight-color': highlightColor\n } as React.CSSProperties;\n\n const shimmerClass = `se-design-shimmer-element se-design-shimmer-${element.type}`;\n\n return (\n <div className={shimmerClass} style={style}>\n {element.children &&\n element.children.map((child, index) => (\n <ShimmerElementComponent\n key={index}\n element={child}\n animationDuration={animationDuration}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n ))}\n </div>\n );\n};\n\nconst ShimmerContainerComponent: FC<{\n container: ShimmerContainer;\n animationDuration: number;\n baseColor: string;\n highlightColor: string;\n}> = ({ container, animationDuration, baseColor, highlightColor }) => {\n const style: React.CSSProperties = {\n display: 'flex',\n flexDirection: container.direction || 'column',\n gap: typeof container.gap === 'number' ? `${container.gap}px` : container.gap,\n padding: container.padding,\n margin: container.margin\n };\n\n return (\n <div className={`se-design-shimmer-container ${container.className || ''}`} style={style}>\n {container.children.map((element, index)
|
|
1
|
+
{"version":3,"file":"index54.js","sources":["../src/components/ShimmerLoader/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport './style.scss';\n\nexport interface ShimmerElement {\n type: 'text' | 'rect' | 'rect-sm' | 'circle' | 'avatar' | 'image' | 'button';\n width: number | string;\n height: number | string;\n borderRadius?: number | string;\n margin?: string;\n className?: string;\n children?: ShimmerElement[];\n}\n\nexport interface ShimmerContainer {\n type: 'container';\n direction?: 'row' | 'column';\n gap?: number | string;\n padding?: string;\n margin?: string;\n alignItems?: string;\n flex?: number | string;\n className?: string;\n children: (ShimmerElement | ShimmerContainer)[];\n}\n\nexport type ShimmerStructure = (ShimmerElement | ShimmerContainer)[];\n\nexport interface ShimmerLoaderProps {\n structure: ShimmerStructure;\n className?: string;\n animationDuration?: number;\n baseColor?: string;\n highlightColor?: string;\n width?: number | string;\n height?: number | string;\n}\n\nconst ShimmerElementComponent: FC<{\n element: ShimmerElement;\n animationDuration: number;\n baseColor: string;\n highlightColor: string;\n}> = ({ element, animationDuration, baseColor, highlightColor }) => {\n const style: React.CSSProperties = {\n width: typeof element.width === 'number' ? `${element.width}px` : element.width,\n height: typeof element.height === 'number' ? `${element.height}px` : element.height,\n borderRadius: element.borderRadius\n ? typeof element.borderRadius === 'number'\n ? `${element.borderRadius}px`\n : element.borderRadius\n : undefined,\n margin: element.margin,\n '--shimmer-duration': `${animationDuration}s`,\n '--shimmer-base-color': baseColor,\n '--shimmer-highlight-color': highlightColor\n } as React.CSSProperties;\n\n const shimmerClass = `se-design-shimmer-element se-design-shimmer-${element.type}`;\n\n return (\n <div className={shimmerClass} style={style}>\n {element.children &&\n element.children.map((child, index) => (\n <ShimmerElementComponent\n key={index}\n element={child}\n animationDuration={animationDuration}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n ))}\n </div>\n );\n};\n\nconst ShimmerContainerComponent: FC<{\n container: ShimmerContainer;\n animationDuration: number;\n baseColor: string;\n highlightColor: string;\n}> = ({ container, animationDuration, baseColor, highlightColor }) => {\n const style: React.CSSProperties = {\n display: 'flex',\n flexDirection: container.direction || 'column',\n gap: typeof container.gap === 'number' ? `${container.gap}px` : container.gap,\n padding: container.padding,\n margin: container.margin,\n alignItems: container.alignItems,\n flex: container.flex\n };\n\n return (\n <div className={`se-design-shimmer-container ${container.className || ''}`} style={style}>\n {container.children.map((element, index) =>\n element.type === 'container' ? (\n <ShimmerContainerComponent\n key={index}\n container={element}\n animationDuration={animationDuration}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n ) : (\n <ShimmerElementComponent\n key={index}\n element={element}\n animationDuration={animationDuration}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n )\n )}\n </div>\n );\n};\n\nexport const ShimmerLoader: FC<ShimmerLoaderProps> = ({\n structure,\n className = '',\n animationDuration = 1.5,\n baseColor = 'var(--color-gray-400)',\n highlightColor = 'var(--color-gray-600)',\n width,\n height\n}) => {\n const containerStyle: React.CSSProperties = {\n width: width ? (typeof width === 'number' ? `${width}px` : width) : '100%',\n height: height ? (typeof height === 'number' ? `${height}px` : height) : 'auto',\n '--shimmer-duration': `${animationDuration}s`,\n '--shimmer-base-color': baseColor,\n '--shimmer-highlight-color': highlightColor\n } as React.CSSProperties;\n\n return (\n <div className={`se-design-shimmer-loader ${className}`} style={containerStyle}>\n {structure.map((item, index) => {\n if (item.type === 'container') {\n return (\n <ShimmerContainerComponent\n key={index}\n container={item}\n animationDuration={animationDuration}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n );\n } else {\n return (\n <ShimmerElementComponent\n key={index}\n element={item}\n animationDuration={animationDuration}\n baseColor={baseColor}\n highlightColor={highlightColor}\n />\n );\n }\n })}\n </div>\n );\n};\n\nexport default ShimmerLoader;\n"],"names":["ShimmerElementComponent","element","animationDuration","baseColor","highlightColor","style","width","height","borderRadius","undefined","margin","shimmerClass","type","React","createElement","className","children","map","child","index","key","ShimmerContainerComponent","container","display","flexDirection","direction","gap","padding","alignItems","flex","ShimmerLoader","structure","containerStyle","item"],"mappings":";;AAqCA,MAAMA,IAKDA,CAAC;AAAA,EAAEC,SAAAA;AAAAA,EAASC,mBAAAA;AAAAA,EAAmBC,WAAAA;AAAAA,EAAWC,gBAAAA;AAAe,MAAM;AAClE,QAAMC,IAA6B;AAAA,IACjCC,OAAO,OAAOL,EAAQK,SAAU,WAAW,GAAGL,EAAQK,KAAK,OAAOL,EAAQK;AAAAA,IAC1EC,QAAQ,OAAON,EAAQM,UAAW,WAAW,GA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,mBAAAA;AAAAA,IACAC,WAAAA;AAAAA,IACAC,gBAAAA;AAAAA,EAAAA,CACD,CAGN,CACE;AAET;"}
|
package/dist/index6.js
CHANGED
|
@@ -1,37 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { isElementVisible as
|
|
3
|
-
const
|
|
1
|
+
import c, { useState as h, useCallback as i } from "react";
|
|
2
|
+
import { isElementVisible as p } from "./index187.js";
|
|
3
|
+
const w = ({
|
|
4
4
|
skipLinks: n,
|
|
5
5
|
className: s = ""
|
|
6
6
|
}) => {
|
|
7
|
-
const [r,
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
return
|
|
11
|
-
});
|
|
12
|
-
c(e);
|
|
13
|
-
}, [n]), a = o(() => {
|
|
14
|
-
i();
|
|
15
|
-
}, [i]), u = o((e) => {
|
|
16
|
-
const t = document.getElementById(e);
|
|
17
|
-
t && t.focus({
|
|
18
|
-
preventScroll: !1
|
|
7
|
+
const [r, u] = h(n), l = i(() => {
|
|
8
|
+
const t = n.filter((e) => {
|
|
9
|
+
const o = document.getElementById(e.id);
|
|
10
|
+
return p(o);
|
|
19
11
|
});
|
|
12
|
+
u(t);
|
|
13
|
+
}, [n]), a = i(() => {
|
|
14
|
+
l();
|
|
15
|
+
}, [l]), d = i((t) => {
|
|
16
|
+
const e = document.getElementById(t);
|
|
17
|
+
if (e) {
|
|
18
|
+
const o = document.getElementById("main-header") || document.querySelector("header");
|
|
19
|
+
if (e === o) {
|
|
20
|
+
e.focus();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const f = o ? o.offsetHeight : 0, m = e.getBoundingClientRect().top + window.scrollY - f - 16;
|
|
24
|
+
window.scrollTo({
|
|
25
|
+
top: m,
|
|
26
|
+
behavior: "smooth"
|
|
27
|
+
}), e.focus({
|
|
28
|
+
preventScroll: !0
|
|
29
|
+
});
|
|
30
|
+
}
|
|
20
31
|
}, []);
|
|
21
|
-
return n.length === 0 ? null : /* @__PURE__ */
|
|
22
|
-
className: `se-design-skip-links-bar
|
|
32
|
+
return n.length === 0 ? null : /* @__PURE__ */ c.createElement("div", {
|
|
33
|
+
className: `se-design-skip-links-bar relative w-full h-0 overflow-hidden p-0 flex items-center justify-center bg-[var(--color-blue-50)] transition-[height] duration-300 ease-out focus-within:h-auto focus-within:py-1 focus-within:px-2 ${s}`,
|
|
23
34
|
onFocus: a
|
|
24
|
-
}, r.map((
|
|
25
|
-
key:
|
|
26
|
-
href: `#${
|
|
27
|
-
className: "absolute -left-[9999px] [clip:rect(0,0,0,0)] no-underline text-[var(--color-
|
|
28
|
-
onClick: (
|
|
29
|
-
|
|
35
|
+
}, r.map((t) => /* @__PURE__ */ c.createElement("a", {
|
|
36
|
+
key: t.id,
|
|
37
|
+
href: `#${t.id}`,
|
|
38
|
+
className: "absolute -left-[9999px] [clip:rect(0,0,0,0)] no-underline text-[var(--color-blue-500)] text-md py-1 px-2.5 rounded capitalize focus:static focus:left-auto focus:[clip:auto] focus:outline-none focus-visible:!outline-none hover:text-[var(--color-blue-600)] hover:bg-[var(--color-blue-200)]",
|
|
39
|
+
onClick: (e) => {
|
|
40
|
+
e.preventDefault(), d(t.id);
|
|
30
41
|
}
|
|
31
|
-
},
|
|
42
|
+
}, t.label)));
|
|
32
43
|
};
|
|
33
44
|
export {
|
|
34
|
-
|
|
35
|
-
g as default
|
|
45
|
+
w as SkipLinksBar
|
|
36
46
|
};
|
|
37
47
|
//# sourceMappingURL=index6.js.map
|
package/dist/index6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","sources":["../src/components/SkipLinksBar/index.tsx"],"sourcesContent":["import React, { useState, useCallback } from 'react';\nimport { isElementVisible } from '../../utils/a11y';\n\nexport interface SkipLink {\n id: string; \n label: string;\n}\n\nexport interface SkipLinksBarProps {\n skipLinks: SkipLink[]; // Required: array of skip targets\n className?: string; \n}\n\nexport const SkipLinksBar: React.FC<SkipLinksBarProps> = ({\n skipLinks,\n className = '',\n}) => {\n const [visibleLinks, setVisibleLinks] = useState<SkipLink[]>(skipLinks);\n\n // Check which target elements exist in DOM AND are visible\n const checkVisibleLinks = useCallback(() => {\n const existing = skipLinks.filter(link => {\n const element = document.getElementById(link.id);\n return isElementVisible(element);\n });\n setVisibleLinks(existing);\n }, [skipLinks]);\n\n // Only check on focus — by the time user tabs in, all child routes have rendered\n const handleContainerFocus = useCallback(() => {\n checkVisibleLinks();\n }, [checkVisibleLinks]);\n\n const handleSkipLinkClick = useCallback((targetId: string) => {\n const targetElement = document.getElementById(targetId);\n if (targetElement) {\n targetElement.focus({ preventScroll:
|
|
1
|
+
{"version":3,"file":"index6.js","sources":["../src/components/SkipLinksBar/index.tsx"],"sourcesContent":["import React, { useState, useCallback } from 'react';\nimport { isElementVisible } from '../../utils/a11y';\n\nexport interface SkipLink {\n id: string; \n label: string;\n}\n\nexport interface SkipLinksBarProps {\n skipLinks: SkipLink[]; // Required: array of skip targets\n className?: string; \n}\n\nexport const SkipLinksBar: React.FC<SkipLinksBarProps> = ({\n skipLinks,\n className = '',\n}) => {\n const [visibleLinks, setVisibleLinks] = useState<SkipLink[]>(skipLinks);\n\n // Check which target elements exist in DOM AND are visible\n const checkVisibleLinks = useCallback(() => {\n const existing = skipLinks.filter(link => {\n const element = document.getElementById(link.id);\n return isElementVisible(element);\n });\n setVisibleLinks(existing);\n }, [skipLinks]);\n\n // Only check on focus — by the time user tabs in, all child routes have rendered\n const handleContainerFocus = useCallback(() => {\n checkVisibleLinks();\n }, [checkVisibleLinks]);\n\n const handleSkipLinkClick = useCallback((targetId: string) => {\n const targetElement = document.getElementById(targetId);\n if (targetElement) {\n // Find sticky/fixed header that should be accounted for\n const header = document.getElementById('main-header')||document.querySelector('header');\n \n // If target is the header itself, just focus it (it's already at top)\n if (targetElement === header) {\n targetElement.focus();\n return;\n }\n \n const headerHeight = header ? header.offsetHeight : 0;\n \n // Scroll with offset to avoid content being hidden behind sticky headers\n const elementPosition = targetElement.getBoundingClientRect().top + window.scrollY;\n const offsetPosition = elementPosition - headerHeight - 16; // 16px padding for breathing room\n \n window.scrollTo({\n top: offsetPosition,\n behavior: 'smooth'\n });\n \n targetElement.focus({ preventScroll: true });\n }\n }, []);\n\n if (skipLinks.length === 0) {\n return null;\n }\n\n return (\n <div\n className={`se-design-skip-links-bar relative w-full h-0 overflow-hidden p-0 flex items-center justify-center bg-[var(--color-blue-50)] transition-[height] duration-300 ease-out focus-within:h-auto focus-within:py-1 focus-within:px-2 ${className}`}\n onFocus={handleContainerFocus}\n >\n {visibleLinks.map((link) => (\n <a\n key={link.id}\n href={`#${link.id}`}\n className=\"absolute -left-[9999px] [clip:rect(0,0,0,0)] no-underline text-[var(--color-blue-500)] text-md py-1 px-2.5 rounded capitalize focus:static focus:left-auto focus:[clip:auto] focus:outline-none focus-visible:!outline-none hover:text-[var(--color-blue-600)] hover:bg-[var(--color-blue-200)]\"\n onClick={(e) => {\n e.preventDefault();\n handleSkipLinkClick(link.id);\n }}\n >\n {link.label}\n </a>\n ))}\n </div>\n );\n};\n\nexport default SkipLinksBar;\n"],"names":["SkipLinksBar","skipLinks","className","visibleLinks","setVisibleLinks","useState","checkVisibleLinks","useCallback","existing","filter","link","element","document","getElementById","id","isElementVisible","handleContainerFocus","handleSkipLinkClick","targetId","targetElement","header","querySelector","focus","headerHeight","offsetHeight","offsetPosition","getBoundingClientRect","top","window","scrollY","scrollTo","behavior","preventScroll","length","React","createElement","onFocus","map","key","href","onClick","e","preventDefault","label"],"mappings":";;AAaO,MAAMA,IAA4CA,CAAC;AAAA,EACxDC,WAAAA;AAAAA,EACAC,WAAAA,IAAY;AACd,MAAM;AACJ,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAqBJ,CAAS,GAGhEK,IAAoBC,EAAY,MAAM;AAC1C,UAAMC,IAAWP,EAAUQ,OAAOC,CAAAA,MAAQ;AACxC,YAAMC,IAAUC,SAASC,eAAeH,EAAKI,EAAE;AAC/C,aAAOC,EAAiBJ,CAAO;AAAA,IAC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20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M12%208H4'%20stroke='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M12%208H4'%20stroke='%237a90b4'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index84.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index84.js","sources":["../src/assets/icons/checkbox-disabled-minus.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M12%208H4'%20stroke='%
|
|
1
|
+
{"version":3,"file":"index84.js","sources":["../src/assets/icons/checkbox-disabled-minus.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M12%208H4'%20stroke='%237a90b4'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_12"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index85.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M11.8082%205.5L6.89749%2010.5L4.66534%208.22727'%20stroke='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M11.8082%205.5L6.89749%2010.5L4.66534%208.22727'%20stroke='%237a90b4'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index85.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index85.js","sources":["../src/assets/icons/checkbox-disabled-tick.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M11.8082%205.5L6.89749%2010.5L4.66534%208.22727'%20stroke='%
|
|
1
|
+
{"version":3,"file":"index85.js","sources":["../src/assets/icons/checkbox-disabled-tick.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23E4E9F1'/%3e%3cpath%20d='M11.8082%205.5L6.89749%2010.5L4.66534%208.22727'%20stroke='%237a90b4'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_13"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index88.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='white'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='white'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%237a90b4'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index88.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index88.js","sources":["../src/assets/icons/checkbox-fill.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='white'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%
|
|
1
|
+
{"version":3,"file":"index88.js","sources":["../src/assets/icons/checkbox-fill.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='white'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%237a90b4'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_16"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index89.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='%23f2f4f8'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='%23f2f4f8'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%234D678A'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index89.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index89.js","sources":["../src/assets/icons/checkbox-hover-fill.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='%23f2f4f8'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%
|
|
1
|
+
{"version":3,"file":"index89.js","sources":["../src/assets/icons/checkbox-hover-fill.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20fill='%23f2f4f8'/%3e%3cpath%20d='M0.6%204C0.6%202.12223%202.12223%200.6%204%200.6H12C13.8778%200.6%2015.4%202.12223%2015.4%204V12C15.4%2013.8778%2013.8778%2015.4%2012%2015.4H4C2.12223%2015.4%200.6%2013.8778%200.6%2012V4Z'%20stroke='%234D678A'%20stroke-width='1.2'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_17"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index90.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%2300539E'/%3e%3cpath%20d='M12%208H4'%20stroke='white'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index90.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index90.js","sources":["../src/assets/icons/checkbox-hover-minus.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%
|
|
1
|
+
{"version":3,"file":"index90.js","sources":["../src/assets/icons/checkbox-hover-minus.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%2300539E'/%3e%3cpath%20d='M12%208H4'%20stroke='white'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_18"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index91.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%2300539E'/%3e%3cpath%20d='M11.8082%205.5L6.89749%2010.5L4.66534%208.22727'%20stroke='white'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index91.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index91.js","sources":["../src/assets/icons/checkbox-hover-tick.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%
|
|
1
|
+
{"version":3,"file":"index91.js","sources":["../src/assets/icons/checkbox-hover-tick.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%2300539E'/%3e%3cpath%20d='M11.8082%205.5L6.89749%2010.5L4.66534%208.22727'%20stroke='white'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_19"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index92.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%230C6FC4'/%3e%3cpath%20d='M12%208H4'%20stroke='white'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index92.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index92.js","sources":["../src/assets/icons/checkbox-minus.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%
|
|
1
|
+
{"version":3,"file":"index92.js","sources":["../src/assets/icons/checkbox-minus.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%230C6FC4'/%3e%3cpath%20d='M12%208H4'%20stroke='white'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_20"],"mappings":"AAAA,MAAAA,IAAe;"}
|