@cuemath/leap 3.5.73 → 3.5.74
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/features/blockers/multi-tab-blocker/multi-tab-blocker.js +10 -10
- package/dist/features/blockers/multi-tab-blocker/multi-tab-blocker.js.map +1 -1
- package/dist/features/chapters/chapter/comps/supplementary-resources/supplementary-resources.js +15 -15
- package/dist/features/chapters/chapter/comps/supplementary-resources/supplementary-resources.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/block-section.js +22 -22
- package/dist/features/chapters/lpar-chapter/block-section/block-section.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-action.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-action.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-header.js +11 -11
- package/dist/features/chapters/lpar-chapter/block-section/chapter-block/chapter-block-header.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +20 -20
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js +10 -10
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-summary/question-overview.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/student-actions/student-actions.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/context-menu-helper/menu-element.js +5 -5
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/context-menu-helper/menu-element.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/student-actions/student-actions.js +12 -12
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/teacher-actions/teacher-actions.js +6 -6
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/rewards-n-actions/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/sheet-item.js +15 -15
- package/dist/features/chapters/lpar-chapter/block-section/sheet-item/sheet-item.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/comps/chapter-progress.js +5 -5
- package/dist/features/chapters/lpar-chapter/comps/chapter-progress.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/comps/tab-section.js +9 -9
- package/dist/features/chapters/lpar-chapter/comps/tab-section.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/lpar-chapter-banner/chapter-banner.js +24 -24
- package/dist/features/chapters/lpar-chapter/lpar-chapter-banner/chapter-banner.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/cue-coins.js +6 -6
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/cue-coins.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/puzzle-card.js +23 -23
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-card/puzzle-card.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-section.js +11 -11
- package/dist/features/chapters/lpar-chapter/puzzle-section/puzzle-section.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/block-section/block-section.js +21 -21
- package/dist/features/chapters/lpar-milestone-chapter/block-section/block-section.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/rewards-n-actions/rewards-n-actions.js +12 -12
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/rewards-n-actions/rewards-n-actions.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/sheet-info.js +13 -13
- package/dist/features/chapters/lpar-milestone-chapter/block-section/sheet-item/sheet-info.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/extra-practice-section/extra-practice-section.js +13 -13
- package/dist/features/chapters/lpar-milestone-chapter/extra-practice-section/extra-practice-section.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-card.js +22 -22
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-card.js.map +1 -1
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-section.js +12 -12
- package/dist/features/chapters/lpar-milestone-chapter/puzzle-section/puzzle-section.js.map +1 -1
- package/dist/features/chapters-v2/chapter-details/chapter-details.js +10 -10
- package/dist/features/chapters-v2/chapter-details/chapter-details.js.map +1 -1
- package/dist/features/cue-canvas/bottombar/homework-controls.js +1 -1
- package/dist/features/cue-canvas/bottombar/homework-controls.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/homework/homework-menu.js +10 -10
- package/dist/features/cue-canvas/sidebar/homework/homework-menu.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/homework/homework-request.js +12 -12
- package/dist/features/cue-canvas/sidebar/homework/homework-request.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filter-selection-menu.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js +11 -11
- package/dist/features/cue-canvas/sidebar/puzzles/filters-section.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/filters.js +31 -31
- package/dist/features/cue-canvas/sidebar/puzzles/filters.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu-header.js.map +1 -1
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js +18 -18
- package/dist/features/cue-canvas/sidebar/puzzles/puzzle-menu.js.map +1 -1
- package/dist/features/extra-practice/extra-practice.js +16 -16
- package/dist/features/extra-practice/extra-practice.js.map +1 -1
- package/dist/features/extra-practice/list/list.js +16 -16
- package/dist/features/extra-practice/list/list.js.map +1 -1
- package/dist/features/milestone/create/comps/info-points/info-points.js +5 -5
- package/dist/features/milestone/create/comps/info-points/info-points.js.map +1 -1
- package/dist/features/milestone/create/comps/milestone-progress/milestone-progress.js +11 -11
- package/dist/features/milestone/create/comps/milestone-progress/milestone-progress.js.map +1 -1
- package/dist/features/milestone/create/submit-modal/submit-with-plan-modal/submit-with-plan-modal.js +32 -32
- package/dist/features/milestone/create/submit-modal/submit-with-plan-modal/submit-with-plan-modal.js.map +1 -1
- package/dist/features/milestone/edit/comps/delete-milestone/confirm-delete.js +3 -3
- package/dist/features/milestone/edit/comps/delete-milestone/confirm-delete.js.map +1 -1
- package/dist/features/milestone/edit/comps/edit-milestone-modal/edit-milestone.js +19 -19
- package/dist/features/milestone/edit/comps/edit-milestone-modal/edit-milestone.js.map +1 -1
- package/dist/features/milestone/milestone-action-widget/milestone-action-widget.js +21 -21
- package/dist/features/milestone/milestone-action-widget/milestone-action-widget.js.map +1 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js +1 -1
- package/dist/features/milestone/milestone-resources/resources-assign/resources-assign.js.map +1 -1
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js +16 -16
- package/dist/features/milestone/milestone-resources/resources-list/resources-list.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js +14 -14
- package/dist/features/milestone/milestone-tests/tests-creation/tests-creation.js.map +1 -1
- package/dist/features/milestone/outcome/comps/achievement/achievement-constants.js +6 -6
- package/dist/features/milestone/outcome/comps/achievement/achievement-constants.js.map +1 -1
- package/dist/features/milestone/outcome/comps/achievement/achievement-container.js +20 -20
- package/dist/features/milestone/outcome/comps/achievement/achievement-container.js.map +1 -1
- package/dist/features/milestone/outcome/comps/achievement/reason-submit-modal.js +8 -8
- package/dist/features/milestone/outcome/comps/achievement/reason-submit-modal.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/input-descriptor.js +4 -4
- package/dist/features/milestone/outcome/comps/outcome-collection/input-descriptor.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/milestone-outcome-collection-container.js +5 -5
- package/dist/features/milestone/outcome/comps/outcome-collection/milestone-outcome-collection-container.js.map +1 -1
- package/dist/features/milestone/outcome/comps/outcome-collection/rank-inputs/index.js +12 -12
- package/dist/features/milestone/outcome/comps/outcome-collection/rank-inputs/index.js.map +1 -1
- package/dist/features/milestone/outcome/comps/past-milestone/past-milestone-container.js +5 -5
- package/dist/features/milestone/outcome/comps/past-milestone/past-milestone-container.js.map +1 -1
- package/dist/features/milestone/outcome/comps/past-milestone/question.js +3 -3
- package/dist/features/milestone/outcome/comps/past-milestone/question.js.map +1 -1
- package/dist/features/milestone/outcome/milestone-outcome-container.js +8 -8
- package/dist/features/milestone/outcome/milestone-outcome-container.js.map +1 -1
- package/dist/features/milestone/start/milestone-start.js +8 -8
- package/dist/features/milestone/start/milestone-start.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +1 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +1 -1
- package/dist/features/sheet-tools/tool-header/tool-header.js +19 -19
- package/dist/features/sheet-tools/tool-header/tool-header.js.map +1 -1
- package/dist/features/sheets/reference-sheet/reference-sheet.js +1 -1
- package/dist/features/sheets/reference-sheet/reference-sheet.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/context-menu-helper/menu-element/menu-element.js +9 -9
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/context-menu-helper/menu-element/menu-element.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/reward-n-actions.js +6 -6
- package/dist/features/sheets/sheets-list/sheet-item/reward-n-actions/reward-n-actions.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item-tag.js +15 -15
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item-tag.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item.js +16 -16
- package/dist/features/sheets/sheets-list/sheet-item/sheet-item.js.map +1 -1
- package/dist/features/sheets/sheets-list/sheets-list.js +18 -18
- package/dist/features/sheets/sheets-list/sheets-list.js.map +1 -1
- package/dist/features/student-details/student-details.js +6 -6
- package/dist/features/student-details/student-details.js.map +1 -1
- package/dist/features/student-details/wins-preview/wins-preview.js +8 -8
- package/dist/features/student-details/wins-preview/wins-preview.js.map +1 -1
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js +3 -3
- package/dist/features/timeline/monthly-timeline/ptm-report/comps/support-card/support-card.js.map +1 -1
- package/dist/features/trial-session/comps/clock/clock.js +6 -6
- package/dist/features/trial-session/comps/clock/clock.js.map +1 -1
- package/dist/features/trial-session/comps/cue-tips/cues/index.js +5 -5
- package/dist/features/trial-session/comps/cue-tips/cues/index.js.map +1 -1
- package/dist/features/trial-session/comps/cue-tips/tips/index.js +6 -6
- package/dist/features/trial-session/comps/cue-tips/tips/index.js.map +1 -1
- package/dist/features/trial-session/comps/solutions/index.js +9 -9
- package/dist/features/trial-session/comps/solutions/index.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +16 -16
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js +7 -7
- package/dist/features/ui/arrow-tooltip/comps/tooltip-body.js.map +1 -1
- package/dist/features/ui/callout/callout.js +5 -5
- package/dist/features/ui/callout/callout.js.map +1 -1
- package/dist/features/ui/error/error.js +14 -14
- package/dist/features/ui/error/error.js.map +1 -1
- package/dist/features/ui/inputs/base-input/base-input.js +4 -4
- package/dist/features/ui/inputs/base-input/base-input.js.map +1 -1
- package/dist/features/ui/inputs/base-select-input/select-option/select-option.js +8 -8
- package/dist/features/ui/inputs/base-select-input/select-option/select-option.js.map +1 -1
- package/dist/features/ui/inputs/base-select-input/select-section/select-section.js +12 -12
- package/dist/features/ui/inputs/base-select-input/select-section/select-section.js.map +1 -1
- package/dist/features/ui/inputs/num-range-input/num-range-input.js +6 -6
- package/dist/features/ui/inputs/num-range-input/num-range-input.js.map +1 -1
- package/dist/features/ui/inputs/radio-input/radio-option/radio-option.js +3 -3
- package/dist/features/ui/inputs/radio-input/radio-option/radio-option.js.map +1 -1
- package/dist/features/ui/perfect-hits/perfect-hits.js +3 -3
- package/dist/features/ui/perfect-hits/perfect-hits.js.map +1 -1
- package/dist/features/ui/radio-cards/radio-card-option/radio-card-option.js +9 -9
- package/dist/features/ui/radio-cards/radio-card-option/radio-card-option.js.map +1 -1
- package/dist/features/ui/stepper/stepper.js +7 -7
- package/dist/features/ui/stepper/stepper.js.map +1 -1
- package/dist/features/ui/tag/tag.js +1 -1
- package/dist/features/ui/tag/tag.js.map +1 -1
- package/dist/features/ui/theme/input.js +13 -13
- package/dist/features/ui/theme/input.js.map +1 -1
- package/dist/features/ui/theme/tab.js +4 -4
- package/dist/features/ui/theme/tab.js.map +1 -1
- package/dist/features/ui/theme/text-button.js +3 -3
- package/dist/features/ui/theme/text-button.js.map +1 -1
- package/dist/features/ui/timers/countdown-timer/countdown-timer.js +14 -14
- package/dist/features/ui/timers/countdown-timer/countdown-timer.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/belts.js +27 -27
- package/dist/features/wins-dashboard/belts-elements-stickers/belts.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/elements.js +15 -23
- package/dist/features/wins-dashboard/belts-elements-stickers/elements.js.map +1 -1
- package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js +12 -12
- package/dist/features/wins-dashboard/belts-elements-stickers/reward-elements.js.map +1 -1
- package/dist/features/wins-dashboard/header/wins-header.js +10 -10
- package/dist/features/wins-dashboard/header/wins-header.js.map +1 -1
- package/dist/features/wins-dashboard/student-badges/animated-tabbar.js +13 -13
- package/dist/features/wins-dashboard/student-badges/animated-tabbar.js.map +1 -1
- package/dist/features/wins-dashboard/student-badges/student-badge.js +18 -18
- package/dist/features/wins-dashboard/student-badges/student-badge.js.map +1 -1
- package/dist/features/wins-dashboard/student-badges/student-badges-lists.js +10 -10
- package/dist/features/wins-dashboard/student-badges/student-badges-lists.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-intervention.js +2 -2
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-intervention.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review-available.js +4 -4
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review-available.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review.js +7 -7
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-review.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-student-submission.js +2 -2
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/exit-ticket-student-submission.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-assignment.js +5 -5
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-assignment.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-skip.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-blocker/blockers/optional-items-skip.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js +20 -20
- package/dist/features/worksheet/worksheet/worksheet-navigation/worksheet-item-number/worksheet-item-number.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js +11 -11
- package/dist/features/worksheet/worksheet/worksheet-permissions/error.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-permissions/sheet-locked.js +12 -12
- package/dist/features/worksheet/worksheet/worksheet-permissions/sheet-locked.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/header/header-tags.js +7 -7
- package/dist/features/worksheet/worksheet/worksheet-question/header/header-tags.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/header/header.js +21 -21
- package/dist/features/worksheet/worksheet/worksheet-question/header/header.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/advanced-practice-intro.js +6 -6
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/advanced-practice-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/basic-practice-intro.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/basic-practice-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/exit-ticket-intro.js +4 -4
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/exit-ticket-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/regular-practice-intro.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/intros/system-intros/regular-practice-intro.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js +41 -41
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-feedback.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js +23 -23
- package/dist/features/worksheet/worksheet/worksheet-question/subjective-review.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js +6 -6
- package/dist/features/worksheet/worksheet/worksheet-questions-summary/worksheet-questions-summary.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js +1 -1
- package/dist/features/worksheet/worksheet/worksheet-summary/worksheet-summary.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js +18 -18
- package/dist/features/worksheet/worksheet/worksheet-teaching-tools/worksheet-teaching-tools.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js +11 -11
- package/dist/features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js +14 -14
- package/dist/features/worksheet/worksheet-preview/worksheet-preview-view.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +9 -12
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as u } from "react";
|
|
3
3
|
import { useTheme as a } from "styled-components";
|
|
4
|
-
import { RadioOptionWrapper as f, InputOptionCircle as t, InputOptionInnerCircleWrraper as
|
|
4
|
+
import { RadioOptionWrapper as f, InputOptionCircle as t, InputOptionInnerCircleWrraper as c, Label as m } from "./radio-option-styled.js";
|
|
5
5
|
const $ = ({
|
|
6
6
|
id: e,
|
|
7
7
|
label: l,
|
|
@@ -16,8 +16,8 @@ const $ = ({
|
|
|
16
16
|
r || n(e);
|
|
17
17
|
}, [r, n, e]);
|
|
18
18
|
return /* @__PURE__ */ s(f, { onClick: p, children: [
|
|
19
|
-
/* @__PURE__ */ i(t, { $size: o, $innerCircle: !1, children: r && /* @__PURE__ */ i(
|
|
20
|
-
/* @__PURE__ */ i(
|
|
19
|
+
/* @__PURE__ */ i(t, { $size: o, $innerCircle: !1, children: r && /* @__PURE__ */ i(c, { children: /* @__PURE__ */ i(t, { $size: o * 0.5, $innerCircle: !0 }) }) }),
|
|
20
|
+
/* @__PURE__ */ i(m, { $renderAs: r ? "ub1-bold" : "ub1", children: l })
|
|
21
21
|
] });
|
|
22
22
|
};
|
|
23
23
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-option.js","sources":["../../../../../../src/features/ui/inputs/radio-input/radio-option/radio-option.tsx"],"sourcesContent":["import { useCallback, type ReactElement } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport * as Styled from './radio-option-styled';\nimport type { IRadioOptionProps } from './radio-option-types';\n\nconst RadioOption = <IDType extends string | number>({\n id,\n label,\n checked,\n onChange,\n}: IRadioOptionProps<IDType>): ReactElement => {\n const {\n layout: { gutter },\n } = useTheme();\n const handleOnClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) onChange(id);\n }, [checked, onChange, id]);\n\n return (\n <Styled.RadioOptionWrapper onClick={handleOnClick}>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircleWrraper>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircleWrraper>\n )}\n </Styled.InputOptionCircle>\n <Styled.Label $renderAs={checked ? '
|
|
1
|
+
{"version":3,"file":"radio-option.js","sources":["../../../../../../src/features/ui/inputs/radio-input/radio-option/radio-option.tsx"],"sourcesContent":["import { useCallback, type ReactElement } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport * as Styled from './radio-option-styled';\nimport type { IRadioOptionProps } from './radio-option-types';\n\nconst RadioOption = <IDType extends string | number>({\n id,\n label,\n checked,\n onChange,\n}: IRadioOptionProps<IDType>): ReactElement => {\n const {\n layout: { gutter },\n } = useTheme();\n const handleOnClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) onChange(id);\n }, [checked, onChange, id]);\n\n return (\n <Styled.RadioOptionWrapper onClick={handleOnClick}>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircleWrraper>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircleWrraper>\n )}\n </Styled.InputOptionCircle>\n <Styled.Label $renderAs={checked ? 'ub1-bold' : 'ub1'}>{label}</Styled.Label>\n </Styled.RadioOptionWrapper>\n );\n};\n\nexport default RadioOption;\n"],"names":["RadioOption","id","label","checked","onChange","gutter","useTheme","handleOnClick","useCallback","jsxs","Styled.RadioOptionWrapper","jsx","Styled.InputOptionCircle","Styled.InputOptionInnerCircleWrraper","Styled.Label"],"mappings":";;;;AAMA,MAAMA,IAAc,CAAiC;AAAA,EACnD,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,UAAAC;AACF,MAA+C;AACvC,QAAA;AAAA,IACJ,QAAQ,EAAE,QAAAC,EAAO;AAAA,MACfC,EAAS,GACPC,IAAgBC,EAAY,MAAM;AAClC,QAAA,OAAOJ,KAAa;AAChB,YAAA,IAAI,MAAM,6BAA6B;AAG3C,IAACD,KAASC,EAASH,CAAE;AAAA,EACxB,GAAA,CAACE,GAASC,GAAUH,CAAE,CAAC;AAE1B,SACG,gBAAAQ,EAAAC,GAAA,EAA0B,SAASH,GAClC,UAAA;AAAA,IAAC,gBAAAI,EAAAC,GAAA,EAAyB,OAAOP,GAAQ,cAAc,IACpD,UACCF,KAAA,gBAAAQ,EAACE,GAAA,EACC,UAAC,gBAAAF,EAAAC,GAAA,EAAyB,OAAOP,IAAS,KAAK,cAAc,GAAM,CAAA,EACrE,CAAA,GAEJ;AAAA,IACA,gBAAAM,EAACG,GAAA,EAAa,WAAWX,IAAU,aAAa,OAAQ,UAAMD,GAAA;AAAA,EAChE,EAAA,CAAA;AAEJ;"}
|
|
@@ -50,11 +50,11 @@ const w = ({ value: e }) => {
|
|
|
50
50
|
n && clearTimeout(n);
|
|
51
51
|
};
|
|
52
52
|
}, [e, c, l]), /* @__PURE__ */ C(S, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", children: [
|
|
53
|
-
/* @__PURE__ */ f(D, { $renderAs: "
|
|
53
|
+
/* @__PURE__ */ f(D, { $renderAs: "ah3-bold", $color: "YELLOW_4", $animationType: h, children: T }),
|
|
54
54
|
/* @__PURE__ */ f(E, { ref: r, $width: 90, $height: 55 })
|
|
55
55
|
] });
|
|
56
|
-
},
|
|
56
|
+
}, _ = L(w);
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
_ as default
|
|
59
59
|
};
|
|
60
60
|
//# sourceMappingURL=perfect-hits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perfect-hits.js","sources":["../../../../src/features/ui/perfect-hits/perfect-hits.tsx"],"sourcesContent":["import lottieWeb, { type AnimationItem } from 'lottie-web';\nimport { memo, useCallback, useEffect, useRef, useState, type FC } from 'react';\n\nimport { RANGE_SIZE, getAnimationFile } from './perfect-hits-helpers';\nimport { Wrapper, AnimatedText, AnimationContainer } from './perfect-hits-styled';\nimport type { IPerfectHitsProps, TTextAnimationType } from './perfect-hits-types';\n\nconst PerfectHits: FC<IPerfectHitsProps> = ({ value }) => {\n const lottieContainer = useRef<HTMLDivElement | null>(null);\n const lottieInstance = useRef<AnimationItem | null>(null);\n const [textAnimationType, setTextAnimationType] = useState<TTextAnimationType>('reveal');\n const [displayValue, setDisplayValue] = useState(value ?? 0);\n\n const playAnimation = useCallback(\n (num: number) => {\n const isLevelChanged = num % RANGE_SIZE === 0;\n\n if (isLevelChanged && lottieInstance.current) {\n lottieInstance.current.playSegments([84, 117], true);\n lottieInstance.current.addEventListener('complete', async () => {\n if (lottieContainer.current) {\n lottieInstance.current?.destroy();\n const nextAnimationData = await getAnimationFile(num);\n\n if (nextAnimationData) {\n const nextInstance = lottieWeb.loadAnimation({\n container: lottieContainer.current,\n renderer: 'svg',\n loop: false,\n autoplay: false,\n animationData: nextAnimationData,\n });\n\n lottieInstance.current = nextInstance;\n lottieInstance.current.playSegments([0, 36], true);\n }\n }\n });\n } else {\n lottieInstance.current?.playSegments([36, 83], true);\n }\n },\n [lottieInstance],\n );\n\n const initializeAnimation = useCallback(async (num: number) => {\n const animationData = await getAnimationFile(num);\n\n if (animationData && lottieContainer.current) {\n const instance = lottieWeb.loadAnimation({\n container: lottieContainer.current,\n renderer: 'svg',\n loop: false,\n autoplay: false,\n animationData,\n });\n\n lottieInstance.current = instance;\n\n lottieInstance.current.goToAndStop(36, true);\n }\n }, []);\n\n useEffect(() => {\n return () => {\n if (lottieInstance.current) {\n lottieInstance.current.destroy();\n }\n };\n }, []);\n\n useEffect(() => {\n let timeoutId: NodeJS.Timeout | null = null;\n\n if (value > 0 && lottieInstance.current) {\n playAnimation(value);\n setTextAnimationType('disappear');\n timeoutId = setTimeout(() => {\n setDisplayValue(value);\n setTextAnimationType('reveal');\n }, 1200);\n } else if (!lottieInstance.current && value >= 0) {\n setDisplayValue(value);\n initializeAnimation(value);\n }\n\n return () => {\n if (timeoutId) clearTimeout(timeoutId);\n };\n }, [value, playAnimation, initializeAnimation]);\n\n return (\n <Wrapper $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\">\n <AnimatedText $renderAs=\"
|
|
1
|
+
{"version":3,"file":"perfect-hits.js","sources":["../../../../src/features/ui/perfect-hits/perfect-hits.tsx"],"sourcesContent":["import lottieWeb, { type AnimationItem } from 'lottie-web';\nimport { memo, useCallback, useEffect, useRef, useState, type FC } from 'react';\n\nimport { RANGE_SIZE, getAnimationFile } from './perfect-hits-helpers';\nimport { Wrapper, AnimatedText, AnimationContainer } from './perfect-hits-styled';\nimport type { IPerfectHitsProps, TTextAnimationType } from './perfect-hits-types';\n\nconst PerfectHits: FC<IPerfectHitsProps> = ({ value }) => {\n const lottieContainer = useRef<HTMLDivElement | null>(null);\n const lottieInstance = useRef<AnimationItem | null>(null);\n const [textAnimationType, setTextAnimationType] = useState<TTextAnimationType>('reveal');\n const [displayValue, setDisplayValue] = useState(value ?? 0);\n\n const playAnimation = useCallback(\n (num: number) => {\n const isLevelChanged = num % RANGE_SIZE === 0;\n\n if (isLevelChanged && lottieInstance.current) {\n lottieInstance.current.playSegments([84, 117], true);\n lottieInstance.current.addEventListener('complete', async () => {\n if (lottieContainer.current) {\n lottieInstance.current?.destroy();\n const nextAnimationData = await getAnimationFile(num);\n\n if (nextAnimationData) {\n const nextInstance = lottieWeb.loadAnimation({\n container: lottieContainer.current,\n renderer: 'svg',\n loop: false,\n autoplay: false,\n animationData: nextAnimationData,\n });\n\n lottieInstance.current = nextInstance;\n lottieInstance.current.playSegments([0, 36], true);\n }\n }\n });\n } else {\n lottieInstance.current?.playSegments([36, 83], true);\n }\n },\n [lottieInstance],\n );\n\n const initializeAnimation = useCallback(async (num: number) => {\n const animationData = await getAnimationFile(num);\n\n if (animationData && lottieContainer.current) {\n const instance = lottieWeb.loadAnimation({\n container: lottieContainer.current,\n renderer: 'svg',\n loop: false,\n autoplay: false,\n animationData,\n });\n\n lottieInstance.current = instance;\n\n lottieInstance.current.goToAndStop(36, true);\n }\n }, []);\n\n useEffect(() => {\n return () => {\n if (lottieInstance.current) {\n lottieInstance.current.destroy();\n }\n };\n }, []);\n\n useEffect(() => {\n let timeoutId: NodeJS.Timeout | null = null;\n\n if (value > 0 && lottieInstance.current) {\n playAnimation(value);\n setTextAnimationType('disappear');\n timeoutId = setTimeout(() => {\n setDisplayValue(value);\n setTextAnimationType('reveal');\n }, 1200);\n } else if (!lottieInstance.current && value >= 0) {\n setDisplayValue(value);\n initializeAnimation(value);\n }\n\n return () => {\n if (timeoutId) clearTimeout(timeoutId);\n };\n }, [value, playAnimation, initializeAnimation]);\n\n return (\n <Wrapper $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\">\n <AnimatedText $renderAs=\"ah3-bold\" $color=\"YELLOW_4\" $animationType={textAnimationType}>\n {displayValue}\n </AnimatedText>\n\n <AnimationContainer ref={lottieContainer} $width={90} $height={55} />\n </Wrapper>\n );\n};\n\nexport default memo(PerfectHits);\n"],"names":["PerfectHits","value","lottieContainer","useRef","lottieInstance","textAnimationType","setTextAnimationType","useState","displayValue","setDisplayValue","playAnimation","useCallback","num","RANGE_SIZE","_a","nextAnimationData","getAnimationFile","nextInstance","lottieWeb","initializeAnimation","animationData","instance","useEffect","timeoutId","Wrapper","jsx","AnimatedText","AnimationContainer","perfectHits","memo"],"mappings":";;;;;;AAOA,MAAMA,IAAqC,CAAC,EAAE,OAAAC,QAAY;AAClD,QAAAC,IAAkBC,EAA8B,IAAI,GACpDC,IAAiBD,EAA6B,IAAI,GAClD,CAACE,GAAmBC,CAAoB,IAAIC,EAA6B,QAAQ,GACjF,CAACC,GAAcC,CAAe,IAAIF,EAASN,KAAS,CAAC,GAErDS,IAAgBC;AAAA,IACpB,CAACC,MAAgB;;AAGX,MAFmBA,IAAMC,MAAe,KAEtBT,EAAe,WACnCA,EAAe,QAAQ,aAAa,CAAC,IAAI,GAAG,GAAG,EAAI,GACpCA,EAAA,QAAQ,iBAAiB,YAAY,YAAY;;AAC9D,YAAIF,EAAgB,SAAS;AAC3B,WAAAY,IAAAV,EAAe,YAAf,QAAAU,EAAwB;AAClB,gBAAAC,IAAoB,MAAMC,EAAiBJ,CAAG;AAEpD,cAAIG,GAAmB;AACf,kBAAAE,IAAeC,EAAU,cAAc;AAAA,cAC3C,WAAWhB,EAAgB;AAAA,cAC3B,UAAU;AAAA,cACV,MAAM;AAAA,cACN,UAAU;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AAAC,EAACC,KAAa,WAAU,YAAW,QAAO,YAAW,gBAAgBrB,GAClE,UACHG,EAAA,CAAA;AAAA,sBAECmB,GAAmB,EAAA,KAAKzB,GAAiB,QAAQ,IAAI,SAAS,IAAI;AAAA,EACrE,EAAA,CAAA;AAEJ,GAEe0B,IAAAC,EAAK7B,CAAW;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback as w } from "react";
|
|
3
3
|
import { useTheme as I } from "styled-components";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import b from "../../hooks/use-response-handler.js";
|
|
5
|
+
import g from "../../layout/flex-view.js";
|
|
6
6
|
import a from "../../text/text.js";
|
|
7
|
-
import { DummyBorder as
|
|
7
|
+
import { DummyBorder as O, RadioCardOptionWrapper as R, RadioImageContainer as y, ImageWrapper as A, InputOptionCircle as p, InputOptionInnerCircle as T } from "./radio-card-option-styled.js";
|
|
8
8
|
const F = ({
|
|
9
9
|
id: n,
|
|
10
10
|
title: c,
|
|
@@ -18,12 +18,12 @@ const F = ({
|
|
|
18
18
|
analyticsProps: h,
|
|
19
19
|
horizontalCard: i
|
|
20
20
|
}) => {
|
|
21
|
-
const x = I(), { gutter: m } = x.layout, s =
|
|
21
|
+
const x = I(), { gutter: m } = x.layout, s = b({ analyticsLabel: $, analyticsProps: h }), C = w(() => {
|
|
22
22
|
if (typeof t != "function")
|
|
23
23
|
throw new Error("onChange must be a function");
|
|
24
24
|
r || (t(n), s(n));
|
|
25
25
|
}, [r, s, n, t]);
|
|
26
|
-
return /* @__PURE__ */ e(
|
|
26
|
+
return /* @__PURE__ */ e(O, { $selected: r, children: /* @__PURE__ */ o(
|
|
27
27
|
R,
|
|
28
28
|
{
|
|
29
29
|
$width: f,
|
|
@@ -32,16 +32,16 @@ const F = ({
|
|
|
32
32
|
onClick: C,
|
|
33
33
|
children: [
|
|
34
34
|
/* @__PURE__ */ o(
|
|
35
|
-
|
|
35
|
+
y,
|
|
36
36
|
{
|
|
37
37
|
$flexDirection: i ? "row" : "column",
|
|
38
38
|
$alignItems: "flex-start",
|
|
39
39
|
$flexGap: i ? 0 : 16,
|
|
40
40
|
children: [
|
|
41
41
|
/* @__PURE__ */ e(A, { children: d }),
|
|
42
|
-
/* @__PURE__ */ o(
|
|
43
|
-
/* @__PURE__ */ e(a, { $renderAs: "
|
|
44
|
-
l && /* @__PURE__ */ e(a, { $renderAs: "
|
|
42
|
+
/* @__PURE__ */ o(g, { $gutter: i ? 16 : 0, $flexGapX: 0.25, children: [
|
|
43
|
+
/* @__PURE__ */ e(a, { $renderAs: "ab1-bold", children: c }),
|
|
44
|
+
l && /* @__PURE__ */ e(a, { $renderAs: "ub2", $color: "BLACK_75", children: l })
|
|
45
45
|
] })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-card-option.js","sources":["../../../../../src/features/ui/radio-cards/radio-card-option/radio-card-option.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport useResponseHandler from '../../hooks/use-response-handler';\nimport FlexView from '../../layout/flex-view';\nimport Text from '../../text/text';\nimport * as Styled from './radio-card-option-styled';\nimport type { IRadioCardOptionProps } from './radio-card-option-types';\n\nconst RadioCardOption = <IDTypes extends string | number>({\n id,\n title,\n description,\n checked,\n Icon,\n onChange,\n width,\n widthX,\n analyticsLabel,\n analyticsProps,\n horizontalCard,\n}: IRadioCardOptionProps<IDTypes>) => {\n const theme = useTheme();\n const { gutter } = theme.layout;\n\n const handleTracking = useResponseHandler({ analyticsLabel, analyticsProps });\n\n const handleOnCardClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) {\n onChange(id);\n handleTracking(id);\n }\n }, [checked, handleTracking, id, onChange]);\n\n return (\n <Styled.DummyBorder $selected={checked}>\n <Styled.RadioCardOptionWrapper\n $width={width}\n $widthX={widthX}\n $selected={checked}\n onClick={handleOnCardClick}\n >\n <Styled.RadioImageContainer\n $flexDirection={horizontalCard ? 'row' : 'column'}\n $alignItems=\"flex-start\"\n $flexGap={horizontalCard ? 0 : 16}\n >\n <Styled.ImageWrapper>{Icon}</Styled.ImageWrapper>\n\n <FlexView $gutter={horizontalCard ? 16 : 0} $flexGapX={0.25}>\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"radio-card-option.js","sources":["../../../../../src/features/ui/radio-cards/radio-card-option/radio-card-option.tsx"],"sourcesContent":["import { useCallback } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport useResponseHandler from '../../hooks/use-response-handler';\nimport FlexView from '../../layout/flex-view';\nimport Text from '../../text/text';\nimport * as Styled from './radio-card-option-styled';\nimport type { IRadioCardOptionProps } from './radio-card-option-types';\n\nconst RadioCardOption = <IDTypes extends string | number>({\n id,\n title,\n description,\n checked,\n Icon,\n onChange,\n width,\n widthX,\n analyticsLabel,\n analyticsProps,\n horizontalCard,\n}: IRadioCardOptionProps<IDTypes>) => {\n const theme = useTheme();\n const { gutter } = theme.layout;\n\n const handleTracking = useResponseHandler({ analyticsLabel, analyticsProps });\n\n const handleOnCardClick = useCallback(() => {\n if (typeof onChange !== 'function') {\n throw new Error('onChange must be a function');\n }\n\n if (!checked) {\n onChange(id);\n handleTracking(id);\n }\n }, [checked, handleTracking, id, onChange]);\n\n return (\n <Styled.DummyBorder $selected={checked}>\n <Styled.RadioCardOptionWrapper\n $width={width}\n $widthX={widthX}\n $selected={checked}\n onClick={handleOnCardClick}\n >\n <Styled.RadioImageContainer\n $flexDirection={horizontalCard ? 'row' : 'column'}\n $alignItems=\"flex-start\"\n $flexGap={horizontalCard ? 0 : 16}\n >\n <Styled.ImageWrapper>{Icon}</Styled.ImageWrapper>\n\n <FlexView $gutter={horizontalCard ? 16 : 0} $flexGapX={0.25}>\n <Text $renderAs=\"ab1-bold\">{title}</Text>\n {description && (\n <Text $renderAs=\"ub2\" $color=\"BLACK_75\">\n {description}\n </Text>\n )}\n </FlexView>\n </Styled.RadioImageContainer>\n <Styled.InputOptionCircle $size={gutter} $innerCircle={false}>\n {checked && (\n <Styled.InputOptionInnerCircle>\n <Styled.InputOptionCircle $size={gutter * 0.5} $innerCircle={true} />\n </Styled.InputOptionInnerCircle>\n )}\n </Styled.InputOptionCircle>\n </Styled.RadioCardOptionWrapper>\n </Styled.DummyBorder>\n );\n};\n\nexport default RadioCardOption;\n"],"names":["RadioCardOption","id","title","description","checked","Icon","onChange","width","widthX","analyticsLabel","analyticsProps","horizontalCard","theme","useTheme","gutter","handleTracking","useResponseHandler","handleOnCardClick","useCallback","jsx","Styled.DummyBorder","jsxs","Styled.RadioCardOptionWrapper","Styled.RadioImageContainer","Styled.ImageWrapper","FlexView","Text","Styled.InputOptionCircle","Styled.InputOptionInnerCircle"],"mappings":";;;;;;;AASA,MAAMA,IAAkB,CAAkC;AAAA,EACxD,IAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,gBAAAC;AACF,MAAsC;AACpC,QAAMC,IAAQC,KACR,EAAE,QAAAC,EAAO,IAAIF,EAAM,QAEnBG,IAAiBC,EAAmB,EAAE,gBAAAP,GAAgB,gBAAAC,EAAgB,CAAA,GAEtEO,IAAoBC,EAAY,MAAM;AACtC,QAAA,OAAOZ,KAAa;AAChB,YAAA,IAAI,MAAM,6BAA6B;AAG/C,IAAKF,MACHE,EAASL,CAAE,GACXc,EAAed,CAAE;AAAA,KAElB,CAACG,GAASW,GAAgBd,GAAIK,CAAQ,CAAC;AAE1C,SACG,gBAAAa,EAAAC,GAAA,EAAmB,WAAWhB,GAC7B,UAAA,gBAAAiB;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,QAAQf;AAAA,MACR,SAASC;AAAA,MACT,WAAWJ;AAAA,MACX,SAASa;AAAA,MAET,UAAA;AAAA,QAAA,gBAAAI;AAAA,UAACE;AAAAA,UAAA;AAAA,YACC,gBAAgBZ,IAAiB,QAAQ;AAAA,YACzC,aAAY;AAAA,YACZ,UAAUA,IAAiB,IAAI;AAAA,YAE/B,UAAA;AAAA,cAAC,gBAAAQ,EAAAK,GAAA,EAAqB,UAAKnB,EAAA,CAAA;AAAA,gCAE1BoB,GAAS,EAAA,SAASd,IAAiB,KAAK,GAAG,WAAW,MACrD,UAAA;AAAA,gBAAC,gBAAAQ,EAAAO,GAAA,EAAK,WAAU,YAAY,UAAMxB,GAAA;AAAA,gBACjCC,KACE,gBAAAgB,EAAAO,GAAA,EAAK,WAAU,OAAM,QAAO,YAC1B,UACHvB,GAAA;AAAA,cAAA,GAEJ;AAAA,YAAA;AAAA,UAAA;AAAA,QACF;AAAA,QACA,gBAAAgB,EAACQ,GAAA,EAAyB,OAAOb,GAAQ,cAAc,IACpD,UAAAV,KACE,gBAAAe,EAAAS,GAAA,EACC,UAAA,gBAAAT,EAACQ,GAAA,EAAyB,OAAOb,IAAS,KAAK,cAAc,GAAM,CAAA,EACrE,CAAA,GAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
@@ -2,14 +2,14 @@ import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import l from "../../../assets/line-icons/icons/check.js";
|
|
3
3
|
import m from "../text/text.js";
|
|
4
4
|
import { getTheme as p } from "../theme/get-theme.js";
|
|
5
|
-
import { MainWrapper as a, HorizontalLine as
|
|
5
|
+
import { MainWrapper as a, HorizontalLine as g, Wrapper as d, NumberWrapper as f, StyledText as s } from "./stepper-styled.js";
|
|
6
6
|
const { layout: u } = p(), { gutter: i } = u;
|
|
7
|
-
function
|
|
7
|
+
function j({ stepsInfo: n = [], currentStep: e = 2 }) {
|
|
8
8
|
const c = n.length && e >= 1 ? (e - 1) / n.length * 100 : 0;
|
|
9
9
|
return /* @__PURE__ */ o(a, { $flexDirection: "row", $width: "fit-content", $gutterX: 0.625, $gapX: 0.625, children: [
|
|
10
|
-
/* @__PURE__ */ t(
|
|
10
|
+
/* @__PURE__ */ t(g, { $percentageCompleted: c, $height: 1 }),
|
|
11
11
|
n.map(({ id: $, label: h }, r) => /* @__PURE__ */ o(
|
|
12
|
-
|
|
12
|
+
d,
|
|
13
13
|
{
|
|
14
14
|
$flexDirection: "row",
|
|
15
15
|
$alignItems: "center",
|
|
@@ -25,10 +25,10 @@ function W({ stepsInfo: n = [], currentStep: e = 2 }) {
|
|
|
25
25
|
$justifyContent: "center",
|
|
26
26
|
$heightX: 1.25,
|
|
27
27
|
$widthX: 1.25,
|
|
28
|
-
children: r + 1 < e ? /* @__PURE__ */ t(l, { height: i, width: i }) : /* @__PURE__ */ t(m, { $renderAs: "
|
|
28
|
+
children: r + 1 < e ? /* @__PURE__ */ t(l, { height: i, width: i }) : /* @__PURE__ */ t(m, { $renderAs: "ub3", $color: "WHITE", children: $ })
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
r + 1 === e && /* @__PURE__ */ t(s, { $renderAs: "
|
|
31
|
+
r + 1 === e && /* @__PURE__ */ t(s, { $renderAs: "ub2", children: h })
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
r
|
|
@@ -36,6 +36,6 @@ function W({ stepsInfo: n = [], currentStep: e = 2 }) {
|
|
|
36
36
|
] });
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
j as default
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=stepper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.js","sources":["../../../../src/features/ui/stepper/stepper.tsx"],"sourcesContent":["import CheckIcon from '../../../assets/line-icons/icons/check';\nimport Text from '../text/text';\nimport { getTheme } from '../theme/get-theme';\nimport { MainWrapper, NumberWrapper, Wrapper, StyledText, HorizontalLine } from './stepper-styled';\nimport type { IStepperProps } from './stepper-types';\n\nconst { layout } = getTheme();\nconst { gutter } = layout;\n\nfunction Stepper({ stepsInfo = [], currentStep = 2 }: IStepperProps) {\n const percentageCompleted =\n stepsInfo.length && currentStep >= 1 ? ((currentStep - 1) / stepsInfo.length) * 100 : 0;\n\n return (\n <MainWrapper $flexDirection=\"row\" $width=\"fit-content\" $gutterX={0.625} $gapX={0.625}>\n <HorizontalLine $percentageCompleted={percentageCompleted} $height={1} />\n {stepsInfo.map(({ id, label }, idx) => (\n <Wrapper\n key={idx}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"WHITE\"\n >\n <NumberWrapper\n $stepNumber={idx + 1}\n $currentStep={currentStep}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $heightX={1.25}\n $widthX={1.25}\n >\n {idx + 1 < currentStep ? (\n <CheckIcon height={gutter} width={gutter} />\n ) : (\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"stepper.js","sources":["../../../../src/features/ui/stepper/stepper.tsx"],"sourcesContent":["import CheckIcon from '../../../assets/line-icons/icons/check';\nimport Text from '../text/text';\nimport { getTheme } from '../theme/get-theme';\nimport { MainWrapper, NumberWrapper, Wrapper, StyledText, HorizontalLine } from './stepper-styled';\nimport type { IStepperProps } from './stepper-types';\n\nconst { layout } = getTheme();\nconst { gutter } = layout;\n\nfunction Stepper({ stepsInfo = [], currentStep = 2 }: IStepperProps) {\n const percentageCompleted =\n stepsInfo.length && currentStep >= 1 ? ((currentStep - 1) / stepsInfo.length) * 100 : 0;\n\n return (\n <MainWrapper $flexDirection=\"row\" $width=\"fit-content\" $gutterX={0.625} $gapX={0.625}>\n <HorizontalLine $percentageCompleted={percentageCompleted} $height={1} />\n {stepsInfo.map(({ id, label }, idx) => (\n <Wrapper\n key={idx}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $background=\"WHITE\"\n >\n <NumberWrapper\n $stepNumber={idx + 1}\n $currentStep={currentStep}\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $heightX={1.25}\n $widthX={1.25}\n >\n {idx + 1 < currentStep ? (\n <CheckIcon height={gutter} width={gutter} />\n ) : (\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n {id}\n </Text>\n )}\n </NumberWrapper>\n {idx + 1 === currentStep && <StyledText $renderAs=\"ub2\">{label}</StyledText>}\n </Wrapper>\n ))}\n </MainWrapper>\n );\n}\n\nexport default Stepper;\n"],"names":["layout","getTheme","gutter","Stepper","stepsInfo","currentStep","percentageCompleted","jsxs","MainWrapper","jsx","HorizontalLine","id","label","idx","Wrapper","NumberWrapper","CheckIcon","Text","StyledText"],"mappings":";;;;;AAMA,MAAM,EAAE,QAAAA,EAAO,IAAIC,KACb,EAAE,QAAAC,EAAW,IAAAF;AAEnB,SAASG,EAAQ,EAAE,WAAAC,IAAY,CAAI,GAAA,aAAAC,IAAc,KAAoB;AAC7D,QAAAC,IACJF,EAAU,UAAUC,KAAe,KAAMA,IAAc,KAAKD,EAAU,SAAU,MAAM;AAGtF,SAAA,gBAAAG,EAACC,KAAY,gBAAe,OAAM,QAAO,eAAc,UAAU,OAAO,OAAO,OAC7E,UAAA;AAAA,IAAA,gBAAAC,EAACC,GAAe,EAAA,sBAAsBJ,GAAqB,SAAS,GAAG;AAAA,IACtEF,EAAU,IAAI,CAAC,EAAE,IAAAO,GAAI,OAAAC,EAAA,GAASC,MAC7B,gBAAAN;AAAA,MAACO;AAAA,MAAA;AAAA,QAEC,gBAAe;AAAA,QACf,aAAY;AAAA,QACZ,iBAAgB;AAAA,QAChB,aAAY;AAAA,QAEZ,UAAA;AAAA,UAAA,gBAAAL;AAAA,YAACM;AAAA,YAAA;AAAA,cACC,aAAaF,IAAM;AAAA,cACnB,cAAcR;AAAA,cACd,aAAY;AAAA,cACZ,iBAAgB;AAAA,cAChB,UAAU;AAAA,cACV,SAAS;AAAA,cAER,cAAM,IAAIA,IACR,gBAAAI,EAAAO,GAAA,EAAU,QAAQd,GAAQ,OAAOA,EAAQ,CAAA,sBAEzCe,GAAK,EAAA,WAAU,OAAM,QAAO,SAC1B,UACHN,GAAA;AAAA,YAAA;AAAA,UAEJ;AAAA,UACCE,IAAM,MAAMR,uBAAgBa,GAAW,EAAA,WAAU,OAAO,UAAMN,GAAA;AAAA,QAAA;AAAA,MAAA;AAAA,MAtB1DC;AAAA,IAAA,CAwBR;AAAA,EACH,EAAA,CAAA;AAEJ;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import n from "../text/text.js";
|
|
3
3
|
import { Wrapper as a } from "./tag-styled.js";
|
|
4
|
-
const c = ({ text: o, backgroundColor: e, textColor: t }) => /* @__PURE__ */ r(a, { $backgroundColor: e, children: /* @__PURE__ */ r(n, { $renderAs: "
|
|
4
|
+
const c = ({ text: o, backgroundColor: e, textColor: t }) => /* @__PURE__ */ r(a, { $backgroundColor: e, children: /* @__PURE__ */ r(n, { $renderAs: "ub3", $color: t, children: o }) }), i = c;
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sources":["../../../../src/features/ui/tag/tag.tsx"],"sourcesContent":["import { type FC } from 'react';\n\nimport Text from '../text/text';\nimport * as Styled from './tag-styled';\nimport type { ITagProps } from './tag-types';\n\nconst Tag: FC<ITagProps> = ({ text, backgroundColor, textColor }) => {\n return (\n <Styled.Wrapper $backgroundColor={backgroundColor}>\n <Text $renderAs=\"
|
|
1
|
+
{"version":3,"file":"tag.js","sources":["../../../../src/features/ui/tag/tag.tsx"],"sourcesContent":["import { type FC } from 'react';\n\nimport Text from '../text/text';\nimport * as Styled from './tag-styled';\nimport type { ITagProps } from './tag-types';\n\nconst Tag: FC<ITagProps> = ({ text, backgroundColor, textColor }) => {\n return (\n <Styled.Wrapper $backgroundColor={backgroundColor}>\n <Text $renderAs=\"ub3\" $color={textColor}>\n {text}\n </Text>\n </Styled.Wrapper>\n );\n};\n\nexport default Tag;\n"],"names":["Tag","text","backgroundColor","textColor","jsx","Styled.Wrapper","Text","Tag$1"],"mappings":";;;AAMA,MAAMA,IAAqB,CAAC,EAAE,MAAAC,GAAM,iBAAAC,GAAiB,WAAAC,QAEhD,gBAAAC,EAAAC,GAAA,EAAe,kBAAkBH,GAChC,UAAC,gBAAAE,EAAAE,GAAA,EAAK,WAAU,OAAM,QAAQH,GAC3B,aACH,EACF,CAAA,GAIJI,IAAeP;"}
|
|
@@ -10,9 +10,9 @@ const l = (a) => {
|
|
|
10
10
|
paddingLeft: a,
|
|
11
11
|
paddingRight: a * 0.75,
|
|
12
12
|
borderRadius: a * 0.5,
|
|
13
|
-
inputTextVariant: "
|
|
14
|
-
labelTextVariant: "
|
|
15
|
-
messageTextVariant: "
|
|
13
|
+
inputTextVariant: "ub1",
|
|
14
|
+
labelTextVariant: "ub1",
|
|
15
|
+
messageTextVariant: "ub3",
|
|
16
16
|
iconsize: a * 1.5,
|
|
17
17
|
iconPadding: a
|
|
18
18
|
// padding between left of icon and input
|
|
@@ -27,9 +27,9 @@ const l = (a) => {
|
|
|
27
27
|
paddingLeft: a * 0.5,
|
|
28
28
|
paddingRight: a * 0.5,
|
|
29
29
|
borderRadius: a * 0.5,
|
|
30
|
-
inputTextVariant: "
|
|
31
|
-
labelTextVariant: "
|
|
32
|
-
messageTextVariant: "
|
|
30
|
+
inputTextVariant: "ub3",
|
|
31
|
+
labelTextVariant: "ub3",
|
|
32
|
+
messageTextVariant: "ub3",
|
|
33
33
|
iconsize: a * 1.25,
|
|
34
34
|
iconPadding: a * 0.5
|
|
35
35
|
// padding between left of icon and input
|
|
@@ -44,9 +44,9 @@ const l = (a) => {
|
|
|
44
44
|
paddingLeft: a * 0.75,
|
|
45
45
|
paddingRight: a * 0.5,
|
|
46
46
|
borderRadius: a * 0.5,
|
|
47
|
-
inputTextVariant: "
|
|
48
|
-
labelTextVariant: "
|
|
49
|
-
messageTextVariant: "
|
|
47
|
+
inputTextVariant: "ub3",
|
|
48
|
+
labelTextVariant: "ub3",
|
|
49
|
+
messageTextVariant: "ub3",
|
|
50
50
|
iconsize: a,
|
|
51
51
|
iconPadding: a * 0.5
|
|
52
52
|
// padding between left of icon and input
|
|
@@ -76,7 +76,7 @@ const l = (a) => {
|
|
|
76
76
|
disabled: 0.5,
|
|
77
77
|
enabled: 1
|
|
78
78
|
}
|
|
79
|
-
},
|
|
79
|
+
}, r = {
|
|
80
80
|
...e,
|
|
81
81
|
backgroundColorName: "GREY_1",
|
|
82
82
|
optionHoverColorName: "WHITE",
|
|
@@ -110,10 +110,10 @@ const l = (a) => {
|
|
|
110
110
|
active: "WHITE_T_60",
|
|
111
111
|
disabled: "WHITE_T_15"
|
|
112
112
|
}
|
|
113
|
-
},
|
|
113
|
+
}, d = {
|
|
114
114
|
primary: e,
|
|
115
115
|
"primary-dark": i,
|
|
116
|
-
secondary:
|
|
116
|
+
secondary: r,
|
|
117
117
|
success: {
|
|
118
118
|
opacity: e.opacity,
|
|
119
119
|
valueColorName: e.valueColorName,
|
|
@@ -180,7 +180,7 @@ const l = (a) => {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
return { sizes: o, variants:
|
|
183
|
+
return { sizes: o, variants: d };
|
|
184
184
|
};
|
|
185
185
|
export {
|
|
186
186
|
l as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../../../src/features/ui/theme/input.ts"],"sourcesContent":["import type { IInputSizeConfig, IInputVariantConfig, TInputSizes, TInputVariants } from '../types';\n\ninterface IGetInputConfig {\n (gutter: number): {\n sizes: Record<TInputSizes, IInputSizeConfig>;\n variants: Record<TInputVariants, IInputVariantConfig>;\n };\n}\nconst getInputConfig: IGetInputConfig = gutter => {\n const sizes: Record<TInputSizes, IInputSizeConfig> = {\n regular: {\n height: gutter * 2.75, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: gutter * 1.5, // extra space for message comes on bottom of input\n paddingLeft: gutter,\n paddingRight: gutter * 0.75,\n borderRadius: gutter * 0.5,\n inputTextVariant: '
|
|
1
|
+
{"version":3,"file":"input.js","sources":["../../../../src/features/ui/theme/input.ts"],"sourcesContent":["import type { IInputSizeConfig, IInputVariantConfig, TInputSizes, TInputVariants } from '../types';\n\ninterface IGetInputConfig {\n (gutter: number): {\n sizes: Record<TInputSizes, IInputSizeConfig>;\n variants: Record<TInputVariants, IInputVariantConfig>;\n };\n}\nconst getInputConfig: IGetInputConfig = gutter => {\n const sizes: Record<TInputSizes, IInputSizeConfig> = {\n regular: {\n height: gutter * 2.75, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: gutter * 1.5, // extra space for message comes on bottom of input\n paddingLeft: gutter,\n paddingRight: gutter * 0.75,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'ub1',\n labelTextVariant: 'ub1',\n messageTextVariant: 'ub3',\n iconsize: gutter * 1.5,\n iconPadding: gutter, // padding between left of icon and input\n },\n small: {\n height: gutter * 2.125, // height of input\n marginTop: gutter * 0.5, // extra space when label is on top of input\n marginBottom: 0, // extra space for message comes on bottom of input\n paddingLeft: gutter * 0.5,\n paddingRight: gutter * 0.5,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'ub3',\n labelTextVariant: 'ub3',\n messageTextVariant: 'ub3',\n iconsize: gutter * 1.25,\n iconPadding: gutter * 0.5, // padding between left of icon and input\n },\n xsmall: {\n height: gutter * 1.75, // height of input\n marginTop: 0, // extra space when label is on top of input\n marginBottom: 0, // extra space for message comes on bottom of input\n paddingLeft: gutter * 0.75,\n paddingRight: gutter * 0.5,\n borderRadius: gutter * 0.5,\n inputTextVariant: 'ub3',\n labelTextVariant: 'ub3',\n messageTextVariant: 'ub3',\n iconsize: gutter,\n iconPadding: gutter * 0.5, // padding between left of icon and input\n },\n };\n const primaryVariant: IInputVariantConfig = {\n valueColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'BLACK_T_15',\n active: 'BLACK_T_87',\n disabled: 'BLACK_T_15',\n },\n labelColorName: {\n inactive: 'BLACK_75',\n active: 'BLACK',\n disabled: 'BLACK_50',\n },\n messageColorName: {\n inactive: 'BLACK_75',\n active: 'BLACK_75',\n disabled: 'BLACK_50',\n },\n opacity: {\n disabled: 0.5,\n enabled: 1,\n },\n };\n\n const secondaryVariant: IInputVariantConfig = {\n ...primaryVariant,\n backgroundColorName: 'GREY_1',\n optionHoverColorName: 'WHITE',\n borderColorName: {\n active: 'TRANSPARENT',\n inactive: 'TRANSPARENT',\n disabled: 'TRANSPARENT',\n },\n };\n const primaryDarkVariant: IInputVariantConfig = {\n opacity: primaryVariant.opacity,\n labelBackgroundColorName: 'TRANSPARENT',\n backgroundColorName: 'TRANSPARENT',\n errorMessageColorName: 'ORANGE_4',\n valueColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE_T_15',\n active: 'WHITE',\n disabled: 'WHITE_T_15',\n },\n labelColorName: {\n inactive: 'WHITE_T_60',\n active: 'WHITE_T_60',\n disabled: 'WHITE_T_15',\n },\n messageColorName: {\n inactive: 'WHITE_T_60',\n active: 'WHITE_T_60',\n disabled: 'WHITE_T_15',\n },\n };\n\n const variants: Record<TInputVariants, IInputVariantConfig> = {\n 'primary': primaryVariant,\n 'primary-dark': primaryDarkVariant,\n 'secondary': secondaryVariant,\n 'success': {\n opacity: primaryVariant.opacity,\n valueColorName: primaryVariant.valueColorName,\n borderColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n labelColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n messageColorName: {\n inactive: 'GREEN_5',\n active: 'GREEN_5',\n disabled: 'GREEN_5',\n },\n },\n 'success-dark': {\n ...primaryDarkVariant,\n borderColorName: {\n inactive: 'GREEN_4',\n active: 'GREEN_4',\n disabled: 'GREEN_4',\n },\n messageColorName: {\n inactive: 'GREEN_4',\n active: 'GREEN_4',\n disabled: 'GREEN_4',\n },\n },\n 'error': {\n opacity: primaryVariant.opacity,\n valueColorName: primaryVariant.valueColorName,\n borderColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n labelColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n messageColorName: {\n inactive: 'RED',\n active: 'RED',\n disabled: 'RED',\n },\n },\n 'error-dark': {\n ...primaryDarkVariant,\n errorMessageColorName: 'ORANGE_4',\n borderColorName: {\n inactive: 'ORANGE_4',\n active: 'ORANGE_4',\n disabled: 'ORANGE_4',\n },\n messageColorName: {\n inactive: 'ORANGE_4',\n active: 'ORANGE_4',\n disabled: 'ORANGE_4',\n },\n },\n };\n\n return { sizes, variants };\n};\n\nexport default getInputConfig;\n"],"names":["getInputConfig","gutter","sizes","primaryVariant","secondaryVariant","primaryDarkVariant","variants"],"mappings":"AAQA,MAAMA,IAAkC,CAAUC,MAAA;AAChD,QAAMC,IAA+C;AAAA,IACnD,SAAS;AAAA,MACP,QAAQD,IAAS;AAAA;AAAA,MACjB,WAAWA,IAAS;AAAA;AAAA,MACpB,cAAcA,IAAS;AAAA;AAAA,MACvB,aAAaA;AAAA,MACb,cAAcA,IAAS;AAAA,MACvB,cAAcA,IAAS;AAAA,MACvB,kBAAkB;AAAA,MAClB,kBAAkB;AAAA,MAClB,oBAAoB;AAAA,MACpB,UAAUA,IAAS;AAAA,MACnB,aAAaA;AAAA;AAAA,IACf;AAAA,IACA,OAAO;AAAA,MACL,QAAQA,IAAS;AAAA;AAAA,MACjB,WAAWA,IAAS;AAAA;AAAA,MACpB,cAAc;AAAA;AAAA,MACd,aAAaA,IAAS;AAAA,MACtB,cAAcA,IAAS;AAAA,MACvB,cAAcA,IAAS;AAAA,MACvB,kBAAkB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;AAAA,MACvB,iBAAiB;AAAA,QACf,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,MACA,kBAAkB;AAAA,QAChB,UAAU;AAAA,QACV,QAAQ;AAAA,QACR,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EAAA;AAGK,SAAA,EAAE,OAAAH,GAAO,UAAAI;AAClB;"}
|
|
@@ -2,22 +2,22 @@ const o = (a) => ({ sizes: {
|
|
|
2
2
|
xsmall: {
|
|
3
3
|
height: a * 1.625,
|
|
4
4
|
paddingHorizontal: a * 0.5,
|
|
5
|
-
textVariant: "
|
|
5
|
+
textVariant: "ub3"
|
|
6
6
|
},
|
|
7
7
|
small: {
|
|
8
8
|
height: a * 2,
|
|
9
9
|
paddingHorizontal: a * 0.75,
|
|
10
|
-
textVariant: "
|
|
10
|
+
textVariant: "ub2"
|
|
11
11
|
},
|
|
12
12
|
regular: {
|
|
13
13
|
height: a * 2.5,
|
|
14
14
|
paddingHorizontal: a,
|
|
15
|
-
textVariant: "
|
|
15
|
+
textVariant: "ub1"
|
|
16
16
|
},
|
|
17
17
|
medium: {
|
|
18
18
|
height: a * 3,
|
|
19
19
|
paddingHorizontal: a,
|
|
20
|
-
textVariant: "
|
|
20
|
+
textVariant: "ub1"
|
|
21
21
|
}
|
|
22
22
|
}, variants: {
|
|
23
23
|
primary: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/theme/tab.ts"],"sourcesContent":["import type { ITabSizeConfig, ITabVariantConfig, TTabSizes, TTabVariants } from '../types';\n\ninterface IGetTabConfig {\n (gutter: number): {\n sizes: Record<TTabSizes, ITabSizeConfig>;\n variants: Record<TTabVariants, ITabVariantConfig>;\n };\n}\n\nconst getTabConfig: IGetTabConfig = (gutter: number) => {\n const sizes: Record<TTabSizes, ITabSizeConfig> = {\n xsmall: {\n height: gutter * 1.625,\n paddingHorizontal: gutter * 0.5,\n textVariant: '
|
|
1
|
+
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/theme/tab.ts"],"sourcesContent":["import type { ITabSizeConfig, ITabVariantConfig, TTabSizes, TTabVariants } from '../types';\n\ninterface IGetTabConfig {\n (gutter: number): {\n sizes: Record<TTabSizes, ITabSizeConfig>;\n variants: Record<TTabVariants, ITabVariantConfig>;\n };\n}\n\nconst getTabConfig: IGetTabConfig = (gutter: number) => {\n const sizes: Record<TTabSizes, ITabSizeConfig> = {\n xsmall: {\n height: gutter * 1.625,\n paddingHorizontal: gutter * 0.5,\n textVariant: 'ub3',\n },\n small: {\n height: gutter * 2,\n paddingHorizontal: gutter * 0.75,\n textVariant: 'ub2',\n },\n regular: {\n height: gutter * 2.5,\n paddingHorizontal: gutter,\n textVariant: 'ub1',\n },\n medium: {\n height: gutter * 3,\n paddingHorizontal: gutter,\n textVariant: 'ub1',\n },\n };\n\n const variants: Record<TTabVariants, ITabVariantConfig> = {\n primary: {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n hover: 'WHITE',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'GREY_3',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n fontWeight: {\n inactive: 400,\n active: 500,\n hover: 500,\n disabled: 400,\n },\n },\n secondary: {\n backgroundColorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n hover: 'WHITE',\n disabled: 'GREY_1',\n },\n colorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n fontWeight: {\n inactive: 400,\n active: 500,\n hover: 500,\n disabled: 400,\n },\n },\n };\n\n return { sizes, variants };\n};\n\nexport default getTabConfig;\n"],"names":["getTabConfig","gutter"],"mappings":"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AA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AAAA;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const t = () => ({ sizes: {
|
|
2
2
|
small: {
|
|
3
|
-
textVariant: "
|
|
3
|
+
textVariant: "ub3-bold",
|
|
4
4
|
underlineHeight: 1.5,
|
|
5
5
|
underlineOffset: 5
|
|
6
6
|
},
|
|
7
7
|
regular: {
|
|
8
|
-
textVariant: "
|
|
8
|
+
textVariant: "ub2-bold",
|
|
9
9
|
underlineHeight: 1.5,
|
|
10
10
|
underlineOffset: 5
|
|
11
11
|
},
|
|
12
12
|
medium: {
|
|
13
|
-
textVariant: "
|
|
13
|
+
textVariant: "ub1-bold",
|
|
14
14
|
underlineHeight: 2,
|
|
15
15
|
underlineOffset: 4
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-button.js","sources":["../../../../src/features/ui/theme/text-button.ts"],"sourcesContent":["import type { ITextButtonSizeConfig, TTextButtonSizes } from '../types';\n\ninterface IGetTextButtonConfig {\n (): {\n sizes: Record<TTextButtonSizes, ITextButtonSizeConfig>;\n };\n}\n\nconst getTextButtonConfig: IGetTextButtonConfig = () => {\n const sizes: Record<TTextButtonSizes, ITextButtonSizeConfig> = {\n small: {\n textVariant: '
|
|
1
|
+
{"version":3,"file":"text-button.js","sources":["../../../../src/features/ui/theme/text-button.ts"],"sourcesContent":["import type { ITextButtonSizeConfig, TTextButtonSizes } from '../types';\n\ninterface IGetTextButtonConfig {\n (): {\n sizes: Record<TTextButtonSizes, ITextButtonSizeConfig>;\n };\n}\n\nconst getTextButtonConfig: IGetTextButtonConfig = () => {\n const sizes: Record<TTextButtonSizes, ITextButtonSizeConfig> = {\n small: {\n textVariant: 'ub3-bold',\n underlineHeight: 1.5,\n underlineOffset: 5,\n },\n regular: {\n textVariant: 'ub2-bold',\n underlineHeight: 1.5,\n underlineOffset: 5,\n },\n medium: {\n textVariant: 'ub1-bold',\n underlineHeight: 2,\n underlineOffset: 4,\n },\n };\n\n return { sizes };\n};\n\nexport default getTextButtonConfig;\n"],"names":["getTextButtonConfig"],"mappings":"AAQA,MAAMA,IAA4C,OAmBzC,EAAE,OAlBsD;AAAA,EAC7D,OAAO;AAAA,IACL,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,EACnB;AAAA,EACA,SAAS;AAAA,IACP,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,EACnB;AAAA,EACA,QAAQ;AAAA,IACN,aAAa;AAAA,IACb,iBAAiB;AAAA,IACjB,iBAAiB;AAAA,EACnB;AAAA,EAGa;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as o, jsx as
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import n from "styled-components";
|
|
3
|
-
import { ILLUSTRATIONS as
|
|
3
|
+
import { ILLUSTRATIONS as d } from "../../../../assets/illustrations/illustrations.js";
|
|
4
4
|
import m from "../../layout/flex-view.js";
|
|
5
5
|
import p from "../../loader/reverse-circular-bar/reverse-circular-bar.js";
|
|
6
6
|
import f from "../../text/text.js";
|
|
@@ -13,21 +13,21 @@ const R = n.div`
|
|
|
13
13
|
`, $ = n(m)`
|
|
14
14
|
position: relative;
|
|
15
15
|
`, h = ({
|
|
16
|
-
hideDigits:
|
|
16
|
+
hideDigits: e,
|
|
17
17
|
onTimerComplete: a,
|
|
18
|
-
timeRemaining:
|
|
19
|
-
duration:
|
|
18
|
+
timeRemaining: l,
|
|
19
|
+
duration: s,
|
|
20
20
|
theme: t
|
|
21
21
|
}) => {
|
|
22
|
-
const { timeRemaining:
|
|
23
|
-
initialTimeRemaining:
|
|
22
|
+
const { timeRemaining: c, formattedTime: i } = g({
|
|
23
|
+
initialTimeRemaining: l,
|
|
24
24
|
onTimerComplete: a
|
|
25
25
|
});
|
|
26
26
|
return /* @__PURE__ */ o(
|
|
27
27
|
m,
|
|
28
28
|
{
|
|
29
29
|
$gap: 4,
|
|
30
|
-
$gutter:
|
|
30
|
+
$gutter: e ? 4 : 8,
|
|
31
31
|
$background: t,
|
|
32
32
|
$flexDirection: "row",
|
|
33
33
|
$alignItems: "center",
|
|
@@ -36,24 +36,24 @@ const R = n.div`
|
|
|
36
36
|
$flexGap: 4,
|
|
37
37
|
children: [
|
|
38
38
|
/* @__PURE__ */ o($, { children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ r("img", { src: d.CROSSHAIR_CIRCLE, width: 28, height: 28 }),
|
|
40
|
+
/* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(
|
|
41
41
|
p,
|
|
42
42
|
{
|
|
43
|
-
timeRemaining:
|
|
44
|
-
duration:
|
|
43
|
+
timeRemaining: c,
|
|
44
|
+
duration: s,
|
|
45
45
|
color: t === "GREEN_1" ? "GREEN_5" : "ORANGE_5",
|
|
46
46
|
width: 14,
|
|
47
47
|
height: 14
|
|
48
48
|
}
|
|
49
49
|
) })
|
|
50
50
|
] }),
|
|
51
|
-
!
|
|
51
|
+
!e && /* @__PURE__ */ r(
|
|
52
52
|
f,
|
|
53
53
|
{
|
|
54
54
|
$width: i.length > 5 ? 66 : 46,
|
|
55
55
|
$alignSelf: "center",
|
|
56
|
-
$renderAs: "
|
|
56
|
+
$renderAs: "ac3-black",
|
|
57
57
|
children: i
|
|
58
58
|
}
|
|
59
59
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countdown-timer.js","sources":["../../../../../src/features/ui/timers/countdown-timer/countdown-timer.tsx"],"sourcesContent":["import { type FC } from 'react';\nimport styled from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport FlexView from '../../layout/flex-view';\nimport CircularProgressiveBar from '../../loader/reverse-circular-bar/reverse-circular-bar';\nimport Text from '../../text/text';\nimport useTimeRemaining from '../hooks/use-time-remaining';\n\ninterface ICountdownTimer {\n hideDigits: boolean;\n onTimerComplete?: () => void;\n timeRemaining: number;\n duration: number;\n theme: 'GREEN_1' | 'ORANGE_1';\n}\n\nconst LoaderWrapper = styled.div`\n position: absolute;\n left: 50%;\n top: 54%;\n transform: translate(-50%, -50%);\n`;\n\nconst ImageWrapper = styled(FlexView)`\n position: relative;\n`;\n\nconst CountdownTimer: FC<ICountdownTimer> = ({\n hideDigits,\n onTimerComplete,\n timeRemaining: initialTimeRemaining,\n duration,\n theme,\n}) => {\n const { timeRemaining, formattedTime } = useTimeRemaining({\n initialTimeRemaining,\n onTimerComplete,\n });\n\n return (\n <FlexView\n $gap={4}\n $gutter={hideDigits ? 4 : 8}\n $background={theme}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $borderRadius={18}\n $width=\"fit-content\"\n $flexGap={4}\n >\n <ImageWrapper>\n <img src={ILLUSTRATIONS.CROSSHAIR_CIRCLE} width={28} height={28} />\n <LoaderWrapper>\n <CircularProgressiveBar\n timeRemaining={timeRemaining}\n duration={duration}\n color={theme === 'GREEN_1' ? 'GREEN_5' : 'ORANGE_5'}\n width={14}\n height={14}\n />\n </LoaderWrapper>\n </ImageWrapper>\n\n {!hideDigits && (\n <Text\n $width={formattedTime.length > 5 ? 66 : 46} // while hour is missing\n $alignSelf=\"center\"\n $renderAs=\"
|
|
1
|
+
{"version":3,"file":"countdown-timer.js","sources":["../../../../../src/features/ui/timers/countdown-timer/countdown-timer.tsx"],"sourcesContent":["import { type FC } from 'react';\nimport styled from 'styled-components';\n\nimport { ILLUSTRATIONS } from '../../../../assets/illustrations/illustrations';\nimport FlexView from '../../layout/flex-view';\nimport CircularProgressiveBar from '../../loader/reverse-circular-bar/reverse-circular-bar';\nimport Text from '../../text/text';\nimport useTimeRemaining from '../hooks/use-time-remaining';\n\ninterface ICountdownTimer {\n hideDigits: boolean;\n onTimerComplete?: () => void;\n timeRemaining: number;\n duration: number;\n theme: 'GREEN_1' | 'ORANGE_1';\n}\n\nconst LoaderWrapper = styled.div`\n position: absolute;\n left: 50%;\n top: 54%;\n transform: translate(-50%, -50%);\n`;\n\nconst ImageWrapper = styled(FlexView)`\n position: relative;\n`;\n\nconst CountdownTimer: FC<ICountdownTimer> = ({\n hideDigits,\n onTimerComplete,\n timeRemaining: initialTimeRemaining,\n duration,\n theme,\n}) => {\n const { timeRemaining, formattedTime } = useTimeRemaining({\n initialTimeRemaining,\n onTimerComplete,\n });\n\n return (\n <FlexView\n $gap={4}\n $gutter={hideDigits ? 4 : 8}\n $background={theme}\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $borderRadius={18}\n $width=\"fit-content\"\n $flexGap={4}\n >\n <ImageWrapper>\n <img src={ILLUSTRATIONS.CROSSHAIR_CIRCLE} width={28} height={28} />\n <LoaderWrapper>\n <CircularProgressiveBar\n timeRemaining={timeRemaining}\n duration={duration}\n color={theme === 'GREEN_1' ? 'GREEN_5' : 'ORANGE_5'}\n width={14}\n height={14}\n />\n </LoaderWrapper>\n </ImageWrapper>\n\n {!hideDigits && (\n <Text\n $width={formattedTime.length > 5 ? 66 : 46} // while hour is missing\n $alignSelf=\"center\"\n $renderAs=\"ac3-black\"\n >\n {formattedTime}\n </Text>\n )}\n </FlexView>\n );\n};\n\nexport default CountdownTimer;\n"],"names":["LoaderWrapper","styled","ImageWrapper","FlexView","CountdownTimer","hideDigits","onTimerComplete","initialTimeRemaining","duration","theme","timeRemaining","formattedTime","useTimeRemaining","jsxs","jsx","ILLUSTRATIONS","CircularProgressiveBar","Text","CountdownTimer$1"],"mappings":";;;;;;;AAiBA,MAAMA,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAOvBC,IAAeD,EAAOE,CAAQ;AAAA;AAAA,GAI9BC,IAAsC,CAAC;AAAA,EAC3C,YAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,eAAeC;AAAA,EACf,UAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACJ,QAAM,E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