@xjur-ui/react 1.0.6 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +279 -68
- package/CHANGELOG.md +114 -0
- package/README.md +146 -0
- package/dist/chunk-2CM3SFOY.js +2 -0
- package/dist/chunk-2CM3SFOY.js.map +1 -0
- package/dist/chunk-2CTBH6VI.js +2 -0
- package/dist/chunk-2CTBH6VI.js.map +1 -0
- package/dist/chunk-4BGTC333.js +2 -0
- package/dist/chunk-4BGTC333.js.map +1 -0
- package/dist/chunk-5WLIDYZH.js +2 -0
- package/dist/chunk-5WLIDYZH.js.map +1 -0
- package/dist/chunk-6AD6O6II.js +2 -0
- package/dist/chunk-6AD6O6II.js.map +1 -0
- package/dist/chunk-AA6V5YEC.js +2 -0
- package/dist/chunk-AA6V5YEC.js.map +1 -0
- package/dist/chunk-BK6FP63A.js +2 -0
- package/dist/chunk-BK6FP63A.js.map +1 -0
- package/dist/chunk-BZDGWC5O.js +2 -0
- package/dist/chunk-BZDGWC5O.js.map +1 -0
- package/dist/chunk-CBFC4QME.js +2 -0
- package/dist/chunk-CBFC4QME.js.map +1 -0
- package/dist/chunk-CI3ZXWEX.js +2 -0
- package/dist/chunk-CI3ZXWEX.js.map +1 -0
- package/dist/chunk-DFXHNK5D.js +2 -0
- package/dist/chunk-DFXHNK5D.js.map +1 -0
- package/dist/chunk-EIG6CBTQ.js +2 -0
- package/dist/chunk-EIG6CBTQ.js.map +1 -0
- package/dist/chunk-EXC2XOL6.js +2 -0
- package/dist/chunk-EXC2XOL6.js.map +1 -0
- package/dist/chunk-F4DYKYWJ.js +2 -0
- package/dist/chunk-F4DYKYWJ.js.map +1 -0
- package/dist/chunk-F5ZLEQGN.js +2 -0
- package/dist/chunk-F5ZLEQGN.js.map +1 -0
- package/dist/chunk-IKL6PSXU.js +2 -0
- package/dist/chunk-IKL6PSXU.js.map +1 -0
- package/dist/chunk-IRHU7PDO.js +2 -0
- package/dist/chunk-IRHU7PDO.js.map +1 -0
- package/dist/chunk-J4X5RQTR.js +2 -0
- package/dist/chunk-J4X5RQTR.js.map +1 -0
- package/dist/chunk-KIFR5VIE.js +2 -0
- package/dist/chunk-KIFR5VIE.js.map +1 -0
- package/dist/chunk-KS6WGBHQ.js +2 -0
- package/dist/chunk-KS6WGBHQ.js.map +1 -0
- package/dist/chunk-L4ET6GIZ.js +2 -0
- package/dist/chunk-L4ET6GIZ.js.map +1 -0
- package/dist/chunk-MZSV4LNY.js +2 -0
- package/dist/chunk-MZSV4LNY.js.map +1 -0
- package/dist/chunk-NELCN6E2.js +2 -0
- package/dist/chunk-NELCN6E2.js.map +1 -0
- package/dist/chunk-OS53BV63.js +3 -0
- package/dist/chunk-OS53BV63.js.map +1 -0
- package/dist/chunk-PKCW37CJ.js +2 -0
- package/dist/chunk-PKCW37CJ.js.map +1 -0
- package/dist/chunk-RWMV7APX.js +2 -0
- package/dist/chunk-RWMV7APX.js.map +1 -0
- package/dist/chunk-SLAAEXWI.js +2 -0
- package/dist/chunk-SLAAEXWI.js.map +1 -0
- package/dist/chunk-SXGSWVMZ.js +2 -0
- package/dist/chunk-SXGSWVMZ.js.map +1 -0
- package/dist/chunk-TB6KI6CL.js +2 -0
- package/dist/chunk-TB6KI6CL.js.map +1 -0
- package/dist/chunk-TSVURBUY.js +2 -0
- package/dist/chunk-TSVURBUY.js.map +1 -0
- package/dist/chunk-UXIVZWLB.js +2 -0
- package/dist/chunk-UXIVZWLB.js.map +1 -0
- package/dist/chunk-WEBAXQID.js +2 -0
- package/dist/chunk-WEBAXQID.js.map +1 -0
- package/dist/chunk-WV7QV2PU.js +2 -0
- package/dist/chunk-WV7QV2PU.js.map +1 -0
- package/dist/chunk-Z47R2CIM.js +2 -0
- package/dist/chunk-Z47R2CIM.js.map +1 -0
- package/dist/chunk-ZVVPUP7V.js +2 -0
- package/dist/chunk-ZVVPUP7V.js.map +1 -0
- package/dist/components/avatar-group.js +2 -179
- package/dist/components/avatar-group.js.map +1 -0
- package/dist/components/avatar.js +2 -59
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.js +2 -111
- package/dist/components/badge.js.map +1 -0
- package/dist/components/breadcrumb.d.ts +20 -0
- package/dist/components/breadcrumb.js +2 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/chip.d.ts +5 -2
- package/dist/components/chip.js +2 -256
- package/dist/components/chip.js.map +1 -0
- package/dist/components/collapsible.js +2 -41
- package/dist/components/collapsible.js.map +1 -0
- package/dist/components/dialog.d.ts +51 -0
- package/dist/components/dialog.js +2 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/divider.js +2 -29
- package/dist/components/divider.js.map +1 -0
- package/dist/components/drag-and-drop/drag-handle.d.ts +15 -0
- package/dist/components/drag-and-drop/drag-handle.js +2 -0
- package/dist/components/drag-and-drop/drag-handle.js.map +1 -0
- package/dist/components/drag-and-drop/drag-list-item.d.ts +14 -0
- package/dist/components/drag-and-drop/drag-list-item.js +2 -0
- package/dist/components/drag-and-drop/drag-list-item.js.map +1 -0
- package/dist/components/drag-and-drop/drag-list.d.ts +14 -0
- package/dist/components/drag-and-drop/drag-list.js +2 -0
- package/dist/components/drag-and-drop/drag-list.js.map +1 -0
- package/dist/components/drag-and-drop/drag-root.d.ts +6 -0
- package/dist/components/drag-and-drop/drag-root.js +2 -0
- package/dist/components/drag-and-drop/drag-root.js.map +1 -0
- package/dist/components/drag-and-drop/index.d.ts +10 -0
- package/dist/components/drag-and-drop/index.js +2 -0
- package/dist/components/drag-and-drop/index.js.map +1 -0
- package/dist/components/drag-and-drop/types/drag-item.d.ts +9 -0
- package/dist/components/drag-and-drop/types/drag-item.js +2 -0
- package/dist/components/drag-and-drop/types/drag-item.js.map +1 -0
- package/dist/components/dropdown-menu.js +2 -295
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/form/button.js +2 -0
- package/dist/components/form/button.js.map +1 -0
- package/dist/components/form/calendar.js +2 -0
- package/dist/components/form/calendar.js.map +1 -0
- package/dist/components/form/checkbox.js +2 -0
- package/dist/components/form/checkbox.js.map +1 -0
- package/dist/components/form/context/field.context.d.ts +15 -0
- package/dist/components/form/context/field.context.js +2 -0
- package/dist/components/form/context/field.context.js.map +1 -0
- package/dist/components/form/date-picker.d.ts +84 -0
- package/dist/components/form/date-picker.js +2 -0
- package/dist/components/form/date-picker.js.map +1 -0
- package/dist/components/form/floating-label.d.ts +6 -0
- package/dist/components/form/floating-label.js +2 -0
- package/dist/components/form/floating-label.js.map +1 -0
- package/dist/components/form/input.d.ts +95 -0
- package/dist/components/form/input.js +2 -0
- package/dist/components/form/input.js.map +1 -0
- package/dist/components/form/otp-input.js +2 -0
- package/dist/components/form/otp-input.js.map +1 -0
- package/dist/components/form/radio.js +2 -0
- package/dist/components/form/radio.js.map +1 -0
- package/dist/components/{rich-editor.d.ts → form/rich-editor.d.ts} +2 -1
- package/dist/components/form/rich-editor.js +2 -0
- package/dist/components/form/rich-editor.js.map +1 -0
- package/dist/components/form/search-input.js +2 -0
- package/dist/components/form/search-input.js.map +1 -0
- package/dist/components/form/select.d.ts +94 -0
- package/dist/components/form/select.js +2 -0
- package/dist/components/form/select.js.map +1 -0
- package/dist/components/form/switch.js +2 -0
- package/dist/components/form/switch.js.map +1 -0
- package/dist/components/full-calendar/calendar-add-event.d.ts +9 -0
- package/dist/components/full-calendar/calendar-add-event.js +2 -0
- package/dist/components/full-calendar/calendar-add-event.js.map +1 -0
- package/dist/components/full-calendar/calendar-body.d.ts +6 -0
- package/dist/components/full-calendar/calendar-body.js +2 -0
- package/dist/components/full-calendar/calendar-body.js.map +1 -0
- package/dist/components/full-calendar/calendar-cell.d.ts +11 -0
- package/dist/components/full-calendar/calendar-cell.js +2 -0
- package/dist/components/full-calendar/calendar-cell.js.map +1 -0
- package/dist/components/full-calendar/calendar-day-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-day-view.js +2 -0
- package/dist/components/full-calendar/calendar-day-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-event.d.ts +18 -0
- package/dist/components/full-calendar/calendar-event.js +2 -0
- package/dist/components/full-calendar/calendar-event.js.map +1 -0
- package/dist/components/full-calendar/calendar-header.d.ts +6 -0
- package/dist/components/full-calendar/calendar-header.js +2 -0
- package/dist/components/full-calendar/calendar-header.js.map +1 -0
- package/dist/components/full-calendar/calendar-month-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-month-view.js +2 -0
- package/dist/components/full-calendar/calendar-month-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.d.ts +9 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.js +2 -0
- package/dist/components/full-calendar/calendar-more-events-dropdown.js.map +1 -0
- package/dist/components/full-calendar/calendar-navigator.d.ts +5 -0
- package/dist/components/full-calendar/calendar-navigator.js +2 -0
- package/dist/components/full-calendar/calendar-navigator.js.map +1 -0
- package/dist/components/full-calendar/calendar-root.d.ts +30 -0
- package/dist/components/full-calendar/calendar-root.js +2 -0
- package/dist/components/full-calendar/calendar-root.js.map +1 -0
- package/dist/components/full-calendar/calendar-today-button.d.ts +9 -0
- package/dist/components/full-calendar/calendar-today-button.js +2 -0
- package/dist/components/full-calendar/calendar-today-button.js.map +1 -0
- package/dist/components/full-calendar/calendar-toggle-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-toggle-view.js +2 -0
- package/dist/components/full-calendar/calendar-toggle-view.js.map +1 -0
- package/dist/components/full-calendar/calendar-view-renderer.d.ts +5 -0
- package/dist/components/full-calendar/calendar-view-renderer.js +2 -0
- package/dist/components/full-calendar/calendar-view-renderer.js.map +1 -0
- package/dist/components/full-calendar/calendar-week-day.d.ts +10 -0
- package/dist/components/full-calendar/calendar-week-day.js +2 -0
- package/dist/components/full-calendar/calendar-week-day.js.map +1 -0
- package/dist/components/full-calendar/calendar-week-view.d.ts +5 -0
- package/dist/components/full-calendar/calendar-week-view.js +2 -0
- package/dist/components/full-calendar/calendar-week-view.js.map +1 -0
- package/dist/components/full-calendar/helpers/calendar.d.ts +25 -0
- package/dist/components/full-calendar/helpers/calendar.js +2 -0
- package/dist/components/full-calendar/helpers/calendar.js.map +1 -0
- package/dist/components/full-calendar/index.d.ts +18 -0
- package/dist/components/full-calendar/index.js +2 -0
- package/dist/components/full-calendar/index.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-cell.d.ts +6 -0
- package/dist/components/full-calendar/types/calendar-cell.js +2 -0
- package/dist/components/full-calendar/types/calendar-cell.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-event.d.ts +8 -0
- package/dist/components/full-calendar/types/calendar-event.js +2 -0
- package/dist/components/full-calendar/types/calendar-event.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-view.d.ts +3 -0
- package/dist/components/full-calendar/types/calendar-view.js +2 -0
- package/dist/components/full-calendar/types/calendar-view.js.map +1 -0
- package/dist/components/full-calendar/types/calendar-week-hour.d.ts +6 -0
- package/dist/components/full-calendar/types/calendar-week-hour.js +2 -0
- package/dist/components/full-calendar/types/calendar-week-hour.js.map +1 -0
- package/dist/components/horizontal-scroll.d.ts +11 -0
- package/dist/components/horizontal-scroll.js +2 -0
- package/dist/components/horizontal-scroll.js.map +1 -0
- package/dist/components/icon.d.ts +3 -4
- package/dist/components/icon.js +2 -177
- package/dist/components/icon.js.map +1 -0
- package/dist/components/list.js +2 -179
- package/dist/components/list.js.map +1 -0
- package/dist/components/logo.js +2 -324
- package/dist/components/logo.js.map +1 -0
- package/dist/components/selection-bar.d.ts +57 -0
- package/dist/components/selection-bar.js +2 -0
- package/dist/components/selection-bar.js.map +1 -0
- package/dist/components/sheet.d.ts +8 -8
- package/dist/components/sheet.js +2 -251
- package/dist/components/sheet.js.map +1 -0
- package/dist/components/skeleton.js +2 -16
- package/dist/components/skeleton.js.map +1 -0
- package/dist/components/status.js +2 -111
- package/dist/components/status.js.map +1 -0
- package/dist/components/table.js +2 -196
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +9 -6
- package/dist/components/tabs.js +2 -54
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/tag.d.ts +5 -2
- package/dist/components/tag.js +2 -189
- package/dist/components/tag.js.map +1 -0
- package/dist/components/tooltip.js +2 -58
- package/dist/components/tooltip.js.map +1 -0
- package/dist/components/typography.js +2 -78
- package/dist/components/typography.js.map +1 -0
- package/dist/components/upload.d.ts +74 -0
- package/dist/components/upload.js +2 -0
- package/dist/components/upload.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/icons-CmDuL0gZ.d.ts +4 -0
- package/dist/index.css +2 -2322
- package/dist/index.css.map +1 -0
- package/dist/logo-PQRZORCS.js +3 -0
- package/dist/logo-PQRZORCS.js.map +1 -0
- package/package.json +60 -18
- package/src/components/breadcrumb.tsx +119 -0
- package/src/components/chip.tsx +11 -3
- package/src/components/dialog.tsx +242 -0
- package/src/components/drag-and-drop/drag-handle.tsx +46 -0
- package/src/components/drag-and-drop/drag-list-item.tsx +91 -0
- package/src/components/drag-and-drop/drag-list.tsx +47 -0
- package/src/components/drag-and-drop/drag-root.tsx +30 -0
- package/src/components/drag-and-drop/index.ts +39 -0
- package/src/components/drag-and-drop/types/drag-item.ts +7 -0
- package/src/components/{calendar.tsx → form/calendar.tsx} +9 -8
- package/src/components/{checkbox.tsx → form/checkbox.tsx} +2 -2
- package/src/components/form/context/field.context.ts +27 -0
- package/src/components/form/date-picker.tsx +199 -0
- package/src/components/form/floating-label.tsx +60 -0
- package/src/components/form/input.tsx +235 -0
- package/src/components/{radio.tsx → form/radio.tsx} +1 -1
- package/src/components/{rich-editor.tsx → form/rich-editor.tsx} +10 -9
- package/src/components/{search-input.tsx → form/search-input.tsx} +2 -2
- package/src/components/form/select.tsx +274 -0
- package/src/components/full-calendar/calendar-add-event.tsx +15 -0
- package/src/components/full-calendar/calendar-body.tsx +12 -0
- package/src/components/full-calendar/calendar-cell.tsx +120 -0
- package/src/components/full-calendar/calendar-day-view.tsx +76 -0
- package/src/components/full-calendar/calendar-event.tsx +178 -0
- package/src/components/full-calendar/calendar-header.tsx +14 -0
- package/src/components/full-calendar/calendar-month-view.tsx +69 -0
- package/src/components/full-calendar/calendar-more-events-dropdown.tsx +39 -0
- package/src/components/full-calendar/calendar-navigator.tsx +86 -0
- package/src/components/full-calendar/calendar-root.tsx +165 -0
- package/src/components/full-calendar/calendar-today-button.tsx +21 -0
- package/src/components/full-calendar/calendar-toggle-view.tsx +61 -0
- package/src/components/full-calendar/calendar-view-renderer.tsx +19 -0
- package/src/components/full-calendar/calendar-week-day.tsx +49 -0
- package/src/components/full-calendar/calendar-week-view.tsx +88 -0
- package/src/components/full-calendar/helpers/calendar.ts +158 -0
- package/src/components/full-calendar/index.ts +16 -0
- package/src/components/full-calendar/types/calendar-cell.ts +4 -0
- package/src/components/full-calendar/types/calendar-event.ts +7 -0
- package/src/components/full-calendar/types/calendar-view.ts +1 -0
- package/src/components/full-calendar/types/calendar-week-hour.ts +4 -0
- package/src/components/horizontal-scroll.tsx +159 -0
- package/src/components/icon.tsx +1 -1
- package/src/components/logo.tsx +25 -20
- package/src/components/selection-bar.tsx +273 -0
- package/src/components/sheet.tsx +2 -2
- package/src/components/tabs.tsx +56 -37
- package/src/components/tag.tsx +11 -3
- package/src/components/upload.tsx +647 -0
- package/src/index.css +2 -2
- package/src/resources/icons.ts +4 -1
- package/src/resources/logo/index.tsx +33 -0
- package/tsup.config.ts +23 -5
- package/dist/components/button.js +0 -98
- package/dist/components/calendar.js +0 -751
- package/dist/components/checkbox.js +0 -153
- package/dist/components/date-picker.d.ts +0 -20
- package/dist/components/date-picker.js +0 -232
- package/dist/components/input.d.ts +0 -32
- package/dist/components/input.js +0 -315
- package/dist/components/otp-input.js +0 -47
- package/dist/components/radio.js +0 -156
- package/dist/components/rich-editor.js +0 -723
- package/dist/components/search-input.js +0 -274
- package/dist/components/select.d.ts +0 -33
- package/dist/components/select.js +0 -550
- package/dist/components/switch.js +0 -36
- package/dist/components/test.d.ts +0 -5
- package/dist/components/test.js +0 -8
- package/dist/index.js +0 -0
- package/src/components/date-picker.tsx +0 -160
- package/src/components/input.tsx +0 -256
- package/src/components/select.tsx +0 -240
- package/src/components/test.tsx +0 -3
- package/src/index.ts +0 -1
- package/src/resources/logo/index.ts +0 -3
- /package/dist/components/{button.d.ts → form/button.d.ts} +0 -0
- /package/dist/components/{calendar.d.ts → form/calendar.d.ts} +0 -0
- /package/dist/components/{checkbox.d.ts → form/checkbox.d.ts} +0 -0
- /package/dist/components/{otp-input.d.ts → form/otp-input.d.ts} +0 -0
- /package/dist/components/{radio.d.ts → form/radio.d.ts} +0 -0
- /package/dist/components/{search-input.d.ts → form/search-input.d.ts} +0 -0
- /package/dist/components/{switch.d.ts → form/switch.d.ts} +0 -0
- /package/src/components/{button.tsx → form/button.tsx} +0 -0
- /package/src/components/{otp-input.tsx → form/otp-input.tsx} +0 -0
- /package/src/components/{switch.tsx → form/switch.tsx} +0 -0
package/dist/components/logo.js
CHANGED
|
@@ -1,324 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// src/resources/logo/horizontal.tsx
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
function LogoHorizontalSolid({ color }) {
|
|
7
|
-
return /* @__PURE__ */ jsxs(
|
|
8
|
-
"svg",
|
|
9
|
-
{
|
|
10
|
-
fill: "none",
|
|
11
|
-
height: "26",
|
|
12
|
-
viewBox: "0 0 95 26",
|
|
13
|
-
width: "95",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ jsx(
|
|
17
|
-
"path",
|
|
18
|
-
{
|
|
19
|
-
d: "M89.14 14.625c4.756-1.796 4.739-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.687-.02-10.03.006v19.822h4.902c0-2.47.002-4.937-.004-7.406 0-.174.05-.221.22-.22q1.266.013 2.53 0c.168-.002.252.06.33.2 1.38 2.426 2.764 4.849 4.142 7.275.068.118.139.167.278.167 1.841-.017 3.68.02 5.52-.017zm-2.579-3.982c-.225.048-.459.068-.689.07-1.555.006-3.11.002-4.666.006-.135 0-.188-.032-.187-.178q.009-1.413 0-2.824c-.001-.157.06-.187.199-.186.843.004 4.203.007 5.04.032.713.022 1.356.523 1.538 1.137.253.858-.3 1.74-1.235 1.943M31.777 3.004 37.552 3c.148 0 .234.045.316.17l3.522 5.338 3.517-5.33c.085-.13.173-.179.329-.178l5.773.004-6.624 9.203c-.103.143-.096.231.003.37l7.378 10.28-5.919-.001c-.126 0-.19-.05-.254-.148l-4.2-6.408-4.17 6.378c-.084.13-.172.179-.328.178l-5.857-.004 7.34-10.253c.12-.167.109-.268-.007-.429zM62.469 3.008c.097 0 .176.08.176.177l.002 10.278c.003 1.018.184 2.003.671 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.672-1.224 3.179-2.785.223-.688.27-1.4.27-2.118V3.131a.13.13 0 0 1 .13-.13h4.663a.13.13 0 0 1 .13.13l-.008 10.222c-.001 1.362-.152 2.7-.658 3.977-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.02-.017-5.826-1.077-2.034-1.193-3.267-3-3.895-5.25a9.4 9.4 0 0 1-.355-2.487l-.03-10.759c0-.097.08-.177.176-.177z",
|
|
20
|
-
fill: color
|
|
21
|
-
}
|
|
22
|
-
),
|
|
23
|
-
/* @__PURE__ */ jsx(
|
|
24
|
-
"path",
|
|
25
|
-
{
|
|
26
|
-
d: "M49.388 17.806c.156.038.286.074.418.1 1.007.192 1.877-.428 2.01-1.451a9 9 0 0 0 .062-1.158l.003-12.146a.15.15 0 0 1 .151-.15l4.62.003c.074 0 .133.059.133.132l.001 12.168c-.003 1.002-.06 2.002-.387 2.963q-.946 2.777-3.602 4.006c-.102.047-.171.065-.253-.049z",
|
|
27
|
-
fill: color
|
|
28
|
-
}
|
|
29
|
-
),
|
|
30
|
-
/* @__PURE__ */ jsx(
|
|
31
|
-
"path",
|
|
32
|
-
{
|
|
33
|
-
d: "m17.777 14.363 1.2-1.202c1.55 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.048 4.679.097 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.899.72-1.69 1.553-2.48 2.385-1.048 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.417.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.948 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
|
|
34
|
-
fill: color
|
|
35
|
-
}
|
|
36
|
-
),
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
38
|
-
"path",
|
|
39
|
-
{
|
|
40
|
-
d: "m3.574 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.076-.013a904 904 0 0 1 8.545-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.939.187-.446-.21-.656-.841-.315-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.385-.512 7.067 3.199-.025 1.1-.461 2.04-1.235 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.7-6.66z",
|
|
41
|
-
fill: color
|
|
42
|
-
}
|
|
43
|
-
),
|
|
44
|
-
/* @__PURE__ */ jsx(
|
|
45
|
-
"path",
|
|
46
|
-
{
|
|
47
|
-
d: "m16.59 10.646-1.193 1.2C12.49 8.736 9.357 5.85 6.349 2.84c-.439-.434-.9-.835-1.504-1.019-2.141-.718-4.149 2.184-2.573 3.9A32 32 0 0 0 4.135 7.6L2.898 8.812c-.572-.53-1.108-1.146-1.677-1.686-3.32-3.144.723-9.057 5.037-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
|
|
48
|
-
fill: color
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
function LogoHorizontalColorful() {
|
|
56
|
-
return /* @__PURE__ */ jsxs(
|
|
57
|
-
"svg",
|
|
58
|
-
{
|
|
59
|
-
fill: "none",
|
|
60
|
-
height: "26",
|
|
61
|
-
viewBox: "0 0 95 26",
|
|
62
|
-
width: "95",
|
|
63
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsx(
|
|
66
|
-
"path",
|
|
67
|
-
{
|
|
68
|
-
d: "M89.14 14.625c4.756-1.796 4.739-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.687-.02-10.03.006v19.822h4.902c0-2.47.002-4.937-.004-7.406 0-.174.05-.221.22-.22q1.266.013 2.53 0c.168-.002.252.06.33.2 1.38 2.426 2.764 4.849 4.142 7.275.068.118.139.167.278.167 1.841-.017 3.68.02 5.52-.017zm-2.579-3.982c-.225.048-.459.068-.689.07-1.555.006-3.11.002-4.666.006-.135 0-.188-.032-.187-.178q.009-1.413 0-2.824c-.001-.157.06-.187.199-.186.843.004 4.203.007 5.04.032.713.022 1.356.523 1.538 1.137.253.858-.3 1.74-1.235 1.943M31.777 3.004 37.552 3c.148 0 .234.045.316.17l3.522 5.338 3.517-5.33c.085-.13.173-.179.329-.178l5.773.004-6.624 9.203c-.103.143-.096.231.003.37l7.378 10.28-5.919-.001c-.126 0-.19-.05-.254-.148l-4.2-6.408-4.17 6.378c-.084.13-.172.179-.328.178l-5.857-.004 7.34-10.253c.12-.167.109-.268-.007-.429zM62.469 3.008c.097 0 .176.08.176.177l.002 10.278c.003 1.018.184 2.003.671 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.672-1.224 3.179-2.785.223-.688.27-1.4.27-2.118V3.131a.13.13 0 0 1 .13-.13h4.663a.13.13 0 0 1 .13.13l-.008 10.222c-.001 1.362-.152 2.7-.658 3.977-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.02-.017-5.826-1.077-2.034-1.193-3.267-3-3.895-5.25a9.4 9.4 0 0 1-.355-2.487l-.03-10.759c0-.097.08-.177.176-.177z",
|
|
69
|
-
fill: "#504E50"
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
/* @__PURE__ */ jsx(
|
|
73
|
-
"path",
|
|
74
|
-
{
|
|
75
|
-
d: "M49.388 17.806c.156.038.286.074.418.1 1.007.192 1.877-.428 2.01-1.451a9 9 0 0 0 .062-1.158l.003-12.146a.15.15 0 0 1 .151-.15l4.62.003c.074 0 .133.059.133.132l.001 12.168c-.003 1.002-.06 2.002-.387 2.963q-.946 2.777-3.602 4.006c-.102.047-.171.065-.253-.049z",
|
|
76
|
-
fill: "#504E50"
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
80
|
-
"path",
|
|
81
|
-
{
|
|
82
|
-
d: "m17.777 14.363 1.2-1.202c1.55 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.048 4.679.097 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.899.72-1.69 1.553-2.48 2.385-1.048 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.417.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.948 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
|
|
83
|
-
fill: "#D68600"
|
|
84
|
-
}
|
|
85
|
-
),
|
|
86
|
-
/* @__PURE__ */ jsx(
|
|
87
|
-
"path",
|
|
88
|
-
{
|
|
89
|
-
d: "m3.574 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.076-.013a904 904 0 0 1 8.545-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.939.187-.446-.21-.656-.841-.315-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.385-.512 7.067 3.199-.025 1.1-.461 2.04-1.235 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.7-6.66z",
|
|
90
|
-
fill: "#66127D"
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
/* @__PURE__ */ jsx(
|
|
94
|
-
"path",
|
|
95
|
-
{
|
|
96
|
-
d: "m16.59 10.646-1.193 1.2C12.49 8.736 9.357 5.85 6.349 2.84c-.439-.434-.9-.835-1.504-1.019-2.141-.718-4.149 2.184-2.573 3.9A32 32 0 0 0 4.135 7.6L2.898 8.812c-.572-.53-1.108-1.146-1.677-1.686-3.32-3.144.723-9.057 5.037-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
|
|
97
|
-
fill: "#D68600"
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
var Horizontal = {
|
|
105
|
-
Solid: LogoHorizontalSolid,
|
|
106
|
-
Colorful: LogoHorizontalColorful
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
// src/resources/logo/vertical.tsx
|
|
110
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
111
|
-
function LogoVerticalSolid({ color }) {
|
|
112
|
-
return /* @__PURE__ */ jsxs2(
|
|
113
|
-
"svg",
|
|
114
|
-
{
|
|
115
|
-
fill: "none",
|
|
116
|
-
height: "50",
|
|
117
|
-
viewBox: "0 0 63 50",
|
|
118
|
-
width: "63",
|
|
119
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
120
|
-
children: [
|
|
121
|
-
/* @__PURE__ */ jsx2(
|
|
122
|
-
"path",
|
|
123
|
-
{
|
|
124
|
-
d: "M58.102 41.769c4.755-1.796 4.738-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.688-.02-10.03.006V49.98h4.901c0-2.47.002-4.937-.004-7.406 0-.174.051-.221.221-.22q1.265.014 2.53 0c.168-.002.251.06.33.2 1.379 2.426 2.763 4.85 4.142 7.275.067.118.138.167.277.167 1.842-.017 3.68.02 5.52-.017zm-2.58-3.982c-.224.048-.459.068-.688.07-1.556.006-3.111.002-4.667.006-.134 0-.188-.032-.187-.178q.01-1.412 0-2.824c0-.157.06-.187.2-.186.842.005 4.203.008 5.038.033.714.02 1.357.522 1.54 1.136.253.858-.301 1.74-1.235 1.943M.739 30.148l5.775-.003c.148 0 .234.044.315.169l3.523 5.338 3.516-5.33c.085-.13.173-.178.33-.178l5.772.004-6.623 9.204c-.103.142-.097.23.003.368L20.727 50H14.81c-.127 0-.19-.05-.255-.148l-4.199-6.408-4.17 6.378c-.084.13-.172.179-.329.178L0 49.996l7.34-10.253c.12-.167.108-.268-.008-.429zM31.43 30.153c.097 0 .176.079.176.176l.003 10.278c.002 1.018.183 2.004.67 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.673-1.224 3.18-2.785.223-.688.27-1.4.27-2.118V30.275a.13.13 0 0 1 .13-.13h4.662a.13.13 0 0 1 .13.13l-.008 10.223c0 1.361-.151 2.7-.658 3.976-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.019-.017-5.826-1.077-2.034-1.193-3.267-3-3.894-5.25a9.4 9.4 0 0 1-.356-2.487l-.03-10.758c0-.098.08-.177.177-.177l4.586.007",
|
|
125
|
-
fill: color
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
/* @__PURE__ */ jsx2(
|
|
129
|
-
"path",
|
|
130
|
-
{
|
|
131
|
-
d: "M18.35 44.95c.155.038.285.074.417.1 1.008.192 1.878-.428 2.01-1.451a9 9 0 0 0 .063-1.158l.003-12.146a.15.15 0 0 1 .15-.15l4.621.003c.073 0 .133.06.133.132v12.168c-.002 1.002-.06 2.003-.387 2.963-.631 1.85-1.83 3.188-3.602 4.006-.102.047-.17.066-.252-.049z",
|
|
132
|
-
fill: color
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ jsx2(
|
|
136
|
-
"path",
|
|
137
|
-
{
|
|
138
|
-
d: "m36.738 14.363 1.201-1.202c1.549 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.047 4.679.096 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.898.72-1.69 1.553-2.48 2.385-1.047 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.418.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.949 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
|
|
139
|
-
fill: color
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
/* @__PURE__ */ jsx2(
|
|
143
|
-
"path",
|
|
144
|
-
{
|
|
145
|
-
d: "m22.535 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.077-.013a904 904 0 0 1 8.544-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.938.187-.447-.21-.657-.841-.316-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.386-.512 7.068 3.199-.026 1.1-.462 2.04-1.236 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.699-6.66",
|
|
146
|
-
fill: color
|
|
147
|
-
}
|
|
148
|
-
),
|
|
149
|
-
/* @__PURE__ */ jsx2(
|
|
150
|
-
"path",
|
|
151
|
-
{
|
|
152
|
-
d: "m35.55 10.646-1.192 1.2c-2.907-3.11-6.04-5.997-9.047-9.007-.44-.434-.901-.835-1.505-1.019-2.141-.718-4.149 2.184-2.573 3.9a32 32 0 0 0 1.863 1.88l-1.237 1.213c-.572-.53-1.108-1.146-1.676-1.686-3.32-3.144.722-9.057 5.036-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
|
|
153
|
-
fill: color
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
]
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
function LogoVerticalColorful() {
|
|
161
|
-
return /* @__PURE__ */ jsxs2(
|
|
162
|
-
"svg",
|
|
163
|
-
{
|
|
164
|
-
fill: "none",
|
|
165
|
-
height: "50",
|
|
166
|
-
viewBox: "0 0 63 50",
|
|
167
|
-
width: "63",
|
|
168
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
169
|
-
children: [
|
|
170
|
-
/* @__PURE__ */ jsx2(
|
|
171
|
-
"path",
|
|
172
|
-
{
|
|
173
|
-
d: "M58.102 41.769c4.755-1.796 4.738-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.688-.02-10.03.006V49.98h4.901c0-2.47.002-4.937-.004-7.406 0-.174.051-.221.221-.22q1.265.014 2.53 0c.168-.002.251.06.33.2 1.379 2.426 2.763 4.85 4.142 7.275.067.118.138.167.277.167 1.842-.017 3.68.02 5.52-.017zm-2.58-3.982c-.224.048-.459.068-.688.07-1.556.006-3.111.002-4.667.006-.134 0-.188-.032-.187-.178q.01-1.412 0-2.824c0-.157.06-.187.2-.186.842.005 4.203.008 5.038.033.714.02 1.357.522 1.54 1.136.253.858-.301 1.74-1.235 1.943M.739 30.148l5.775-.003c.148 0 .234.044.315.169l3.523 5.338 3.516-5.33c.085-.13.173-.178.33-.178l5.772.004-6.623 9.204c-.103.142-.097.23.003.368L20.727 50H14.81c-.127 0-.19-.05-.255-.148l-4.199-6.408-4.17 6.378c-.084.13-.172.179-.329.178L0 49.996l7.34-10.253c.12-.167.108-.268-.008-.429zM31.43 30.153c.097 0 .176.079.176.176l.003 10.278c.002 1.018.183 2.004.67 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.673-1.224 3.18-2.785.223-.688.27-1.4.27-2.118V30.275a.13.13 0 0 1 .13-.13h4.662a.13.13 0 0 1 .13.13l-.008 10.223c0 1.361-.151 2.7-.658 3.976-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.019-.017-5.826-1.077-2.034-1.193-3.267-3-3.894-5.25a9.4 9.4 0 0 1-.356-2.487l-.03-10.758c0-.098.08-.177.177-.177l4.586.007",
|
|
174
|
-
fill: "#504E50"
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsx2(
|
|
178
|
-
"path",
|
|
179
|
-
{
|
|
180
|
-
d: "M18.35 44.95c.155.038.285.074.417.1 1.008.192 1.878-.428 2.01-1.451a9 9 0 0 0 .063-1.158l.003-12.146a.15.15 0 0 1 .15-.15l4.621.003c.073 0 .133.06.133.132v12.168c-.002 1.002-.06 2.003-.387 2.963-.631 1.85-1.83 3.188-3.602 4.006-.102.047-.17.066-.252-.049z",
|
|
181
|
-
fill: "#504E50"
|
|
182
|
-
}
|
|
183
|
-
),
|
|
184
|
-
/* @__PURE__ */ jsx2(
|
|
185
|
-
"path",
|
|
186
|
-
{
|
|
187
|
-
d: "m36.738 14.363 1.201-1.202c1.549 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.047 4.679.096 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.898.72-1.69 1.553-2.48 2.385-1.047 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.418.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.949 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
|
|
188
|
-
fill: "#D68600"
|
|
189
|
-
}
|
|
190
|
-
),
|
|
191
|
-
/* @__PURE__ */ jsx2(
|
|
192
|
-
"path",
|
|
193
|
-
{
|
|
194
|
-
d: "m22.535 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.077-.013a904 904 0 0 1 8.544-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.938.187-.447-.21-.657-.841-.316-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.386-.512 7.068 3.199-.026 1.1-.462 2.04-1.236 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.699-6.66",
|
|
195
|
-
fill: "#66127D"
|
|
196
|
-
}
|
|
197
|
-
),
|
|
198
|
-
/* @__PURE__ */ jsx2(
|
|
199
|
-
"path",
|
|
200
|
-
{
|
|
201
|
-
d: "m35.55 10.646-1.192 1.2c-2.907-3.11-6.04-5.997-9.047-9.007-.44-.434-.901-.835-1.505-1.019-2.141-.718-4.149 2.184-2.573 3.9a32 32 0 0 0 1.863 1.88l-1.237 1.213c-.572-.53-1.108-1.146-1.676-1.686-3.32-3.144.722-9.057 5.036-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
|
|
202
|
-
fill: "#D68600"
|
|
203
|
-
}
|
|
204
|
-
)
|
|
205
|
-
]
|
|
206
|
-
}
|
|
207
|
-
);
|
|
208
|
-
}
|
|
209
|
-
var Vertical = {
|
|
210
|
-
Solid: LogoVerticalSolid,
|
|
211
|
-
Colorful: LogoVerticalColorful
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
// src/resources/logo/icon.tsx
|
|
215
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
216
|
-
function LogoIconSolid({ color }) {
|
|
217
|
-
return /* @__PURE__ */ jsxs3(
|
|
218
|
-
"svg",
|
|
219
|
-
{
|
|
220
|
-
fill: "none",
|
|
221
|
-
height: "26",
|
|
222
|
-
viewBox: "0 0 26 26",
|
|
223
|
-
width: "26",
|
|
224
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
225
|
-
children: [
|
|
226
|
-
/* @__PURE__ */ jsx3(
|
|
227
|
-
"path",
|
|
228
|
-
{
|
|
229
|
-
d: "M17.7771 14.3626C18.1813 13.9583 18.5751 13.5644 18.9779 13.1612C20.5269 14.6679 22.0424 16.2157 23.5793 17.7363C25.4224 19.377 25.6267 22.4146 23.6763 24.05C17.7108 28.8974 15.3367 17.0285 11.1052 19.9875C10.2073 20.7081 9.41678 21.5407 8.62623 22.3732C7.57834 23.4534 6.67195 24.8221 5.06874 25.0287C1.11705 26.0331 -1.6791 20.9798 1.16588 18.1112L4.57331 14.783C4.92332 14.5238 5.3824 14.4309 5.73811 14.7651C6.15548 15.1572 6.01505 15.6913 5.62227 16.0498L2.22482 19.5303C0.594533 21.5289 3.1191 24.3635 5.24981 23.0884C6.71294 22.3263 7.68491 20.9423 8.83937 19.8066C12.2197 15.9533 14.8099 18.0669 17.6149 21.1446C18.1057 21.629 18.5634 22.1473 19.0588 22.6262C21.5923 25.0802 24.9591 21.4749 22.483 19.0431C20.9304 17.4682 19.3333 15.934 17.7778 14.3623L17.7771 14.3626Z",
|
|
230
|
-
fill: color
|
|
231
|
-
}
|
|
232
|
-
),
|
|
233
|
-
/* @__PURE__ */ jsx3(
|
|
234
|
-
"path",
|
|
235
|
-
{
|
|
236
|
-
d: "M3.57427 9.4276C3.95493 9.0462 4.32775 8.6723 4.71412 8.28518C4.74727 8.31556 8.97055 12.4102 11.0061 14.4445C11.7332 15.1712 13.3361 15.1983 14.0824 14.4316C16.9146 11.5384 19.7567 8.64943 22.6266 5.79551C24.6903 3.76946 21.8667 0.560949 19.6148 2.13589C18.2244 3.15071 17.1277 4.52226 15.8856 5.70793C15.6072 5.98889 15.2689 6.05359 14.9464 5.89524C14.5001 5.68506 14.2898 5.05379 14.6306 4.66238C15.6517 3.40772 16.8543 2.31355 18.0116 1.18864C20.6567 -1.42721 25.3964 0.676765 25.0785 4.3875C25.0528 5.48881 24.6169 6.42749 23.8428 7.19137C20.9475 10.0478 18.0337 12.8856 15.1428 15.7463C14.5868 16.2964 13.9523 16.6185 13.1896 16.71C12.1474 16.8351 11.1644 16.6596 10.2729 16.0873C8.25735 14.4205 3.7147 9.46657 3.57391 9.4276H3.57427Z",
|
|
237
|
-
fill: color
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ jsx3(
|
|
241
|
-
"path",
|
|
242
|
-
{
|
|
243
|
-
d: "M16.5895 10.6458C16.1661 11.0719 15.7865 11.454 15.3969 11.8461C12.4899 8.73665 9.35726 5.84949 6.34938 2.83865C5.91027 2.4047 5.44869 2.00399 4.84491 1.82026C2.70386 1.10178 0.696116 4.00359 2.27223 5.71973C2.86461 6.36815 3.49049 7.00228 4.13491 7.59923C3.71397 8.01244 3.31335 8.40564 2.89776 8.8135C2.32569 8.28304 1.78999 7.66679 1.22149 7.12667C-2.09897 3.98286 1.94361 -1.93015 6.25778 0.623506C6.64878 0.850132 7.0216 1.13431 7.3431 1.45316C10.4529 4.4833 13.4476 7.66321 16.5895 10.6458Z",
|
|
244
|
-
fill: color
|
|
245
|
-
}
|
|
246
|
-
)
|
|
247
|
-
]
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
function LogoIconColorful() {
|
|
252
|
-
return /* @__PURE__ */ jsxs3(
|
|
253
|
-
"svg",
|
|
254
|
-
{
|
|
255
|
-
fill: "none",
|
|
256
|
-
height: "26",
|
|
257
|
-
viewBox: "0 0 26 26",
|
|
258
|
-
width: "26",
|
|
259
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
260
|
-
children: [
|
|
261
|
-
/* @__PURE__ */ jsx3(
|
|
262
|
-
"path",
|
|
263
|
-
{
|
|
264
|
-
d: "M17.7771 14.3626C18.1813 13.9583 18.5751 13.5644 18.9779 13.1612C20.5269 14.6679 22.0424 16.2157 23.5793 17.7363C25.4224 19.377 25.6267 22.4146 23.6763 24.05C17.7108 28.8974 15.3367 17.0285 11.1052 19.9875C10.2073 20.7081 9.41678 21.5407 8.62623 22.3732C7.57834 23.4534 6.67195 24.8221 5.06874 25.0287C1.11705 26.0331 -1.6791 20.9798 1.16588 18.1112L4.57331 14.783C4.92332 14.5238 5.3824 14.4309 5.73811 14.7651C6.15548 15.1572 6.01505 15.6913 5.62227 16.0498L2.22482 19.5303C0.594533 21.5289 3.1191 24.3635 5.24981 23.0884C6.71294 22.3263 7.68491 20.9423 8.83937 19.8066C12.2197 15.9533 14.8099 18.0669 17.6149 21.1446C18.1057 21.629 18.5634 22.1473 19.0588 22.6262C21.5923 25.0802 24.9591 21.4749 22.483 19.0431C20.9304 17.4682 19.3333 15.934 17.7778 14.3623L17.7771 14.3626Z",
|
|
265
|
-
fill: "#D68600"
|
|
266
|
-
}
|
|
267
|
-
),
|
|
268
|
-
/* @__PURE__ */ jsx3(
|
|
269
|
-
"path",
|
|
270
|
-
{
|
|
271
|
-
d: "M3.57427 9.4276C3.95493 9.0462 4.32775 8.6723 4.71412 8.28518C4.74727 8.31556 8.97055 12.4102 11.0061 14.4445C11.7332 15.1712 13.3361 15.1983 14.0824 14.4316C16.9146 11.5384 19.7567 8.64943 22.6266 5.79551C24.6903 3.76946 21.8667 0.560949 19.6148 2.13589C18.2244 3.15071 17.1277 4.52226 15.8856 5.70793C15.6072 5.98889 15.2689 6.05359 14.9464 5.89524C14.5001 5.68506 14.2898 5.05379 14.6306 4.66238C15.6517 3.40772 16.8543 2.31355 18.0116 1.18864C20.6567 -1.42721 25.3964 0.676765 25.0785 4.3875C25.0528 5.48881 24.6169 6.42749 23.8428 7.19137C20.9475 10.0478 18.0337 12.8856 15.1428 15.7463C14.5868 16.2964 13.9523 16.6185 13.1896 16.71C12.1474 16.8351 11.1644 16.6596 10.2729 16.0873C8.25735 14.4205 3.7147 9.46657 3.57391 9.4276H3.57427Z",
|
|
272
|
-
fill: "#66127D"
|
|
273
|
-
}
|
|
274
|
-
),
|
|
275
|
-
/* @__PURE__ */ jsx3(
|
|
276
|
-
"path",
|
|
277
|
-
{
|
|
278
|
-
d: "M16.5895 10.6458C16.1661 11.0719 15.7865 11.454 15.3969 11.8461C12.4899 8.73665 9.35726 5.84949 6.34938 2.83865C5.91027 2.4047 5.44869 2.00399 4.84491 1.82026C2.70386 1.10178 0.696116 4.00359 2.27223 5.71973C2.86461 6.36815 3.49049 7.00228 4.13491 7.59923C3.71397 8.01244 3.31335 8.40564 2.89776 8.8135C2.32569 8.28304 1.78999 7.66679 1.22149 7.12667C-2.09897 3.98286 1.94361 -1.93015 6.25778 0.623506C6.64878 0.850132 7.0216 1.13431 7.3431 1.45316C10.4529 4.4833 13.4476 7.66321 16.5895 10.6458Z",
|
|
279
|
-
fill: "#D68600"
|
|
280
|
-
}
|
|
281
|
-
)
|
|
282
|
-
]
|
|
283
|
-
}
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
var Icon = {
|
|
287
|
-
Solid: LogoIconSolid,
|
|
288
|
-
Colorful: LogoIconColorful
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
// src/components/logo.tsx
|
|
292
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
293
|
-
var Logo = memo(
|
|
294
|
-
({ mode = "horizontal", variant = "colorful" }) => {
|
|
295
|
-
const colorToHex = {
|
|
296
|
-
orange: "#D68600",
|
|
297
|
-
purple: "#66127D",
|
|
298
|
-
white: "#FFFFFF",
|
|
299
|
-
gray: "#6B7280"
|
|
300
|
-
};
|
|
301
|
-
switch (mode) {
|
|
302
|
-
case "icon":
|
|
303
|
-
if (variant === "colorful") {
|
|
304
|
-
return /* @__PURE__ */ jsx4(Icon.Colorful, {});
|
|
305
|
-
}
|
|
306
|
-
return /* @__PURE__ */ jsx4(Icon.Solid, { color: colorToHex[variant] });
|
|
307
|
-
case "vertical":
|
|
308
|
-
if (variant === "colorful") {
|
|
309
|
-
return /* @__PURE__ */ jsx4(Vertical.Colorful, {});
|
|
310
|
-
}
|
|
311
|
-
return /* @__PURE__ */ jsx4(Vertical.Solid, { color: colorToHex[variant] });
|
|
312
|
-
case "horizontal":
|
|
313
|
-
default:
|
|
314
|
-
if (variant === "colorful") {
|
|
315
|
-
return /* @__PURE__ */ jsx4(Horizontal.Colorful, {});
|
|
316
|
-
}
|
|
317
|
-
return /* @__PURE__ */ jsx4(Horizontal.Solid, { color: colorToHex[variant] });
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
);
|
|
321
|
-
Logo.displayName = "Logo";
|
|
322
|
-
export {
|
|
323
|
-
Logo
|
|
324
|
-
};
|
|
1
|
+
import {lazy,memo,Suspense}from'react';import {jsx}from'react/jsx-runtime';var a=lazy(()=>import('../logo-PQRZORCS.js'));function t({mode:o}){return jsx("div",{"aria-label":"Loading logo",className:"animate-pulse rounded bg-gray-200",style:o==="icon"?{width:24,height:24}:{width:95,height:26}})}var s=memo(({mode:o="horizontal",variant:e="colorful"})=>jsx(Suspense,{fallback:jsx(t,{mode:o}),children:jsx(a,{color:e!=="colorful"?{orange:"#D68600",purple:"#66127D",white:"#FFFFFF",gray:"#6B7280"}[e]:void 0,mode:o,variant:e})}));s.displayName="Logo";export{s as Logo};//# sourceMappingURL=logo.js.map
|
|
2
|
+
//# sourceMappingURL=logo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/logo.tsx"],"names":["LazyLogos","lazy","LogoFallback","mode","jsx","Logo","memo","variant","Suspense"],"mappings":"2EAQA,IAAMA,CAAAA,CAAYC,IAAAA,CAAK,IAAM,OAAO,qBAAmB,CAAC,CAAA,CAExD,SAASC,CAAAA,CAAa,CAAE,IAAA,CAAAC,CAAK,EAAsB,CAGjD,OACEC,IAAC,KAAA,CAAA,CACC,YAAA,CAAW,eACX,SAAA,CAAU,mCAAA,CACV,KAAA,CALFD,CAAAA,GAAS,MAAA,CAAS,CAAE,MAAO,EAAA,CAAI,MAAA,CAAQ,EAAG,CAAA,CAAI,CAAE,MAAO,EAAA,CAAI,MAAA,CAAQ,EAAG,CAAA,CAMtE,CAEJ,KAEaE,CAAAA,CAAOC,IAAAA,CAClB,CAAC,CAAE,IAAA,CAAAH,EAAO,YAAA,CAAc,OAAA,CAAAI,CAAAA,CAAU,UAAW,CAAA,GASzCH,GAAAA,CAACI,SAAA,CAAS,QAAA,CAAUJ,IAACF,CAAAA,CAAA,CAAa,KAAMC,CAAAA,CAAM,CAAA,CAC5C,QAAA,CAAAC,GAAAA,CAACJ,CAAAA,CAAA,CACC,MAAOO,CAAAA,GAAY,UAAA,CAVN,CACjB,MAAA,CAAQ,SAAA,CACR,OAAQ,SAAA,CACR,KAAA,CAAO,SAAA,CACP,IAAA,CAAM,SACR,CAAA,CAKiDA,CAAO,CAAA,CAAI,MAAA,CACtD,KAAMJ,CAAAA,CACN,OAAA,CAASI,EACX,CAAA,CACF,CAGN,EAEAF,CAAAA,CAAK,WAAA,CAAc,MAAA","file":"logo.js","sourcesContent":["import { memo, lazy, Suspense } from 'react'\n\nexport interface LogoProps {\n mode?: 'horizontal' | 'vertical' | 'icon'\n variant?: 'colorful' | 'orange' | 'purple' | 'white' | 'gray'\n}\n\n// Lazy load logo components to reduce initial bundle size\nconst LazyLogos = lazy(() => import('../resources/logo'))\n\nfunction LogoFallback({ mode }: { mode?: string }) {\n const dimensions =\n mode === 'icon' ? { width: 24, height: 24 } : { width: 95, height: 26 }\n return (\n <div\n aria-label=\"Loading logo\"\n className=\"animate-pulse rounded bg-gray-200\"\n style={dimensions}\n />\n )\n}\n\nexport const Logo = memo(\n ({ mode = 'horizontal', variant = 'colorful' }: LogoProps) => {\n const colorToHex = {\n orange: '#D68600',\n purple: '#66127D',\n white: '#FFFFFF',\n gray: '#6B7280'\n }\n\n return (\n <Suspense fallback={<LogoFallback mode={mode} />}>\n <LazyLogos\n color={variant !== 'colorful' ? colorToHex[variant] : undefined}\n mode={mode}\n variant={variant}\n />\n </Suspense>\n )\n }\n)\n\nLogo.displayName = 'Logo'\n"]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
import { ClassVariantProps } from '@xjur-ui/util';
|
|
5
|
+
import { I as IconType } from '../icons-CmDuL0gZ.js';
|
|
6
|
+
|
|
7
|
+
declare const selectionBarVariants: (props?: ({
|
|
8
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
+
variant?: "primary" | "secondary" | "neutral" | "success" | "warning" | "destructive" | "outline" | null | undefined;
|
|
10
|
+
position?: "fixed" | "absolute" | "relative" | "sticky" | null | undefined;
|
|
11
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
12
|
+
interface SelectionAction {
|
|
13
|
+
id: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
icon: IconType;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
variant?: 'primary' | 'secondary' | 'destructive' | 'tertiary' | 'outlined';
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface SelectionBarProps extends Omit<ComponentProps<'div'>, 'onClose'>, ClassVariantProps<typeof selectionBarVariants> {
|
|
21
|
+
selectedCount: number;
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
actions?: SelectionAction[];
|
|
24
|
+
showCloseButton?: boolean;
|
|
25
|
+
closeButtonText?: string;
|
|
26
|
+
selectedText?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
declare function SelectionBar({ selectedCount, onClose, actions, showCloseButton, selectedText, size, variant, position, className, ...props }: SelectionBarProps): react_jsx_runtime.JSX.Element | null;
|
|
30
|
+
interface SelectionBarContextType {
|
|
31
|
+
selectedItems: Set<string>;
|
|
32
|
+
toggleSelection: (id: string) => void;
|
|
33
|
+
clearSelection: () => void;
|
|
34
|
+
selectAll: (ids: string[]) => void;
|
|
35
|
+
isSelected: (id: string) => boolean;
|
|
36
|
+
selectedCount: number;
|
|
37
|
+
}
|
|
38
|
+
interface SelectionBarProviderProps {
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
onSelectionChange?: (selectedIds: string[]) => void;
|
|
41
|
+
}
|
|
42
|
+
declare function SelectionBarProvider({ children, onSelectionChange }: SelectionBarProviderProps): react_jsx_runtime.JSX.Element;
|
|
43
|
+
declare function useSelectionBar(): SelectionBarContextType;
|
|
44
|
+
interface SelectionBarContainerProps extends Omit<SelectionBarProps, 'selectedCount' | 'onClose'> {
|
|
45
|
+
showCloseButton?: boolean;
|
|
46
|
+
closeButtonText?: string;
|
|
47
|
+
selectedText?: string;
|
|
48
|
+
}
|
|
49
|
+
declare function SelectionBarContainer({ actions, showCloseButton, selectedText, ...props }: SelectionBarContainerProps): react_jsx_runtime.JSX.Element;
|
|
50
|
+
declare const SelectionBarComponents: {
|
|
51
|
+
Root: typeof SelectionBar;
|
|
52
|
+
Provider: typeof SelectionBarProvider;
|
|
53
|
+
Container: typeof SelectionBarContainer;
|
|
54
|
+
useSelectionBar: typeof useSelectionBar;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { type SelectionAction, SelectionBar, SelectionBarComponents, SelectionBarContainer, type SelectionBarContainerProps, type SelectionBarProps, SelectionBarProvider, type SelectionBarProviderProps, selectionBarVariants, useSelectionBar };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b}from'../chunk-PKCW37CJ.js';import {b as b$1}from'../chunk-WV7QV2PU.js';import {createContext,useState,useCallback,useContext}from'react';import {cva,cx}from'@xjur-ui/util';import {jsxs,jsx}from'react/jsx-runtime';var k=cva(["flex items-center gap-4 rounded-lg px-4 py-3 shadow-lg transition-colors duration-200 ease-in-out","fixed bottom-6 left-1/2 -translate-x-1/2 transform z-50","backdrop-blur-sm bg-white/95 border border-border-layer-2"],{variants:{size:{sm:"px-3 py-2 text-sm",md:"px-4 py-3 text-base",lg:"px-6 py-4 text-lg"},variant:{primary:"bg-primary-idle text-neutral-label hover:bg-primary-hover rounded-circle active:bg-primary-pressed",secondary:"bg-secondary-idle text-white border-secondary-idle hover:bg-secondary-hover rounded-circle",success:"bg-success-idle text-white border-success-idle hover:bg-success-hover rounded-circle",warning:"bg-warning-idle text-white border-warning-idle hover:bg-warning-hover rounded-circle",destructive:"bg-destructive-idle text-white border-destructive-idle hover:bg-destructive-hover rounded-circle",neutral:"bg-neutral-dark text-white border-neutral-dark hover:bg-neutral-hover rounded-circle",outline:"bg-white text-neutral-dark border-border-layer-2 hover:bg-layer-2-hover rounded-circle"},position:{fixed:"fixed bottom-6 left-1/2 -translate-x-1/2 transform",absolute:"absolute bottom-6 left-1/2 -translate-x-1/2 transform",relative:"relative",sticky:"sticky bottom-6"}},defaultVariants:{size:"md",variant:"primary",position:"fixed"}});function S({selectedCount:e,onClose:t,actions:o=[],showCloseButton:i=true,selectedText:c,size:n="md",variant:u="primary",position:p="fixed",className:m,...r}){if(e===0)return null;let b$2=()=>c||(e===1?"1 item selecionado":`${e} itens selecionados`),s=()=>{switch(n){case "sm":return "text-sm";case "md":return "text-base";case "lg":return "text-lg";default:return "text-base"}};return jsxs("div",{className:cx(k({size:n,variant:u,position:p}),m),...r,children:[i&&jsx(b,{appearance:"ghost",className:"rounded-full text-current",size:n==="lg"?"md":"sm",variant:"secondary",onClick:()=>t(),children:jsx(b$1,{className:s(),name:"close"})}),jsx("span",{className:"font-medium whitespace-nowrap",children:b$2()}),o.map(a=>jsxs(b,{appearance:"ghost",className:"rounded-full text-current",disabled:a.disabled,size:n==="lg"?"md":"sm",variant:a.variant||"secondary",onClick:()=>a.onClick(),children:[jsx(b$1,{className:s(),name:a.icon}),a.label&&jsx("span",{className:"ml-2",children:a.label})]},a.id))]})}var f=createContext(null);function N({children:e,onSelectionChange:t}){let[o,i]=useState(new Set),c=useCallback(r=>{i(b=>{let s=new Set(b);return s.has(r)?s.delete(r):s.add(r),t?.(Array.from(s)),s});},[t]),n=useCallback(()=>{i(new Set),t?.([]);},[t]),u=useCallback(r=>{i(new Set(r)),t?.(r);},[t]),p=useCallback(r=>o.has(r),[o]),m={selectedItems:o,toggleSelection:c,clearSelection:n,selectAll:u,isSelected:p,selectedCount:o.size};return jsx(f.Provider,{value:m,children:e})}function y(){let e=useContext(f);if(!e)throw new Error("useSelectionBar must be used within a SelectionBarProvider");return e}function T({actions:e=[],showCloseButton:t=true,selectedText:o,...i}){let{selectedCount:c,clearSelection:n}=y();return jsx(S,{actions:e,selectedCount:c,selectedText:o,showCloseButton:t,onClose:()=>n(),...i})}var R={Root:S,Provider:N,Container:T,useSelectionBar:y};export{S as SelectionBar,R as SelectionBarComponents,T as SelectionBarContainer,N as SelectionBarProvider,k as selectionBarVariants,y as useSelectionBar};//# sourceMappingURL=selection-bar.js.map
|
|
2
|
+
//# sourceMappingURL=selection-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/selection-bar.tsx"],"names":["selectionBarVariants","cva","SelectionBar","selectedCount","onClose","actions","showCloseButton","selectedText","size","variant","position","className","props","getSelectedText","getIconSize","jsxs","cx","jsx","Button","Icon","action","SelectionBarContext","createContext","SelectionBarProvider","children","onSelectionChange","selectedItems","setSelectedItems","useState","toggleSelection","useCallback","id","prev","newSet","clearSelection","selectAll","ids","isSelected","value","useSelectionBar","context","useContext","SelectionBarContainer","SelectionBarComponents"],"mappings":"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","file":"selection-bar.js","sourcesContent":["import type { ComponentProps, ReactNode } from 'react'\nimport { createContext, useContext, useState, useCallback } from 'react'\nimport { cva, cx, type ClassVariantProps } from '@xjur-ui/util'\nimport { Icon, type IconType } from './icon'\nimport { Button } from './form/button'\n\nconst selectionBarVariants = cva(\n [\n 'flex items-center gap-4 rounded-lg px-4 py-3 shadow-lg transition-colors duration-200 ease-in-out',\n 'fixed bottom-6 left-1/2 -translate-x-1/2 transform z-50',\n 'backdrop-blur-sm bg-white/95 border border-border-layer-2'\n ],\n {\n variants: {\n size: {\n sm: 'px-3 py-2 text-sm',\n md: 'px-4 py-3 text-base',\n lg: 'px-6 py-4 text-lg'\n },\n variant: {\n primary:\n 'bg-primary-idle text-neutral-label hover:bg-primary-hover rounded-circle active:bg-primary-pressed',\n secondary:\n 'bg-secondary-idle text-white border-secondary-idle hover:bg-secondary-hover rounded-circle',\n success:\n 'bg-success-idle text-white border-success-idle hover:bg-success-hover rounded-circle',\n warning:\n 'bg-warning-idle text-white border-warning-idle hover:bg-warning-hover rounded-circle',\n destructive:\n 'bg-destructive-idle text-white border-destructive-idle hover:bg-destructive-hover rounded-circle',\n neutral:\n 'bg-neutral-dark text-white border-neutral-dark hover:bg-neutral-hover rounded-circle',\n outline:\n 'bg-white text-neutral-dark border-border-layer-2 hover:bg-layer-2-hover rounded-circle'\n },\n position: {\n fixed: 'fixed bottom-6 left-1/2 -translate-x-1/2 transform',\n absolute: 'absolute bottom-6 left-1/2 -translate-x-1/2 transform',\n relative: 'relative',\n sticky: 'sticky bottom-6'\n }\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n position: 'fixed'\n }\n }\n)\n\nexport interface SelectionAction {\n id: string\n label?: string\n icon: IconType\n onClick: () => void\n variant?: 'primary' | 'secondary' | 'destructive' | 'tertiary' | 'outlined'\n disabled?: boolean\n}\n\ninterface SelectionBarProps\n extends Omit<ComponentProps<'div'>, 'onClose'>,\n ClassVariantProps<typeof selectionBarVariants> {\n selectedCount: number\n onClose: () => void\n actions?: SelectionAction[]\n showCloseButton?: boolean\n closeButtonText?: string\n selectedText?: string\n className?: string\n}\n\nfunction SelectionBar({\n selectedCount,\n onClose,\n actions = [],\n showCloseButton = true,\n selectedText,\n size = 'md',\n variant = 'primary',\n position = 'fixed',\n className,\n ...props\n}: SelectionBarProps) {\n if (selectedCount === 0) return null\n\n const getSelectedText = () => {\n if (selectedText) return selectedText\n return selectedCount === 1\n ? '1 item selecionado'\n : `${selectedCount} itens selecionados`\n }\n\n const getIconSize = () => {\n switch (size) {\n case 'sm':\n return 'text-sm'\n case 'md':\n return 'text-base'\n case 'lg':\n return 'text-lg'\n default:\n return 'text-base'\n }\n }\n\n return (\n <div\n className={cx(\n selectionBarVariants({ size, variant, position }),\n className\n )}\n {...props}\n >\n {showCloseButton && (\n <Button\n appearance=\"ghost\"\n className=\"rounded-full text-current\"\n size={size === 'lg' ? 'md' : 'sm'}\n variant=\"secondary\"\n onClick={() => onClose()}\n >\n <Icon className={getIconSize()} name=\"close\" />\n </Button>\n )}\n\n <span className=\"font-medium whitespace-nowrap\">{getSelectedText()}</span>\n\n {actions.map(action => (\n <Button\n appearance=\"ghost\"\n className=\"rounded-full text-current\"\n disabled={action.disabled}\n key={action.id}\n size={size === 'lg' ? 'md' : 'sm'}\n variant={action.variant || 'secondary'}\n onClick={() => action.onClick()}\n >\n <Icon className={getIconSize()} name={action.icon} />\n {action.label && <span className=\"ml-2\">{action.label}</span>}\n </Button>\n ))}\n </div>\n )\n}\n\ninterface SelectionBarContextType {\n selectedItems: Set<string>\n toggleSelection: (id: string) => void\n clearSelection: () => void\n selectAll: (ids: string[]) => void\n isSelected: (id: string) => boolean\n selectedCount: number\n}\n\nconst SelectionBarContext = createContext<SelectionBarContextType | null>(null)\n\ninterface SelectionBarProviderProps {\n children: ReactNode\n onSelectionChange?: (selectedIds: string[]) => void\n}\n\nfunction SelectionBarProvider({\n children,\n onSelectionChange\n}: SelectionBarProviderProps) {\n const [selectedItems, setSelectedItems] = useState<Set<string>>(new Set())\n\n const toggleSelection = useCallback(\n (id: string) => {\n setSelectedItems(prev => {\n const newSet = new Set(prev)\n if (newSet.has(id)) {\n newSet.delete(id)\n } else {\n newSet.add(id)\n }\n onSelectionChange?.(Array.from(newSet))\n return newSet\n })\n },\n [onSelectionChange]\n )\n\n const clearSelection = useCallback(() => {\n setSelectedItems(new Set())\n onSelectionChange?.([])\n }, [onSelectionChange])\n\n const selectAll = useCallback(\n (ids: string[]) => {\n setSelectedItems(new Set(ids))\n onSelectionChange?.(ids)\n },\n [onSelectionChange]\n )\n\n const isSelected = useCallback(\n (id: string) => {\n return selectedItems.has(id)\n },\n [selectedItems]\n )\n\n const value: SelectionBarContextType = {\n selectedItems,\n toggleSelection,\n clearSelection,\n selectAll,\n isSelected,\n selectedCount: selectedItems.size\n }\n\n return (\n <SelectionBarContext.Provider value={value}>\n {children}\n </SelectionBarContext.Provider>\n )\n}\n\nfunction useSelectionBar() {\n const context = useContext(SelectionBarContext)\n if (!context) {\n throw new Error(\n 'useSelectionBar must be used within a SelectionBarProvider'\n )\n }\n return context\n}\n\ninterface SelectionBarContainerProps\n extends Omit<SelectionBarProps, 'selectedCount' | 'onClose'> {\n showCloseButton?: boolean\n closeButtonText?: string\n selectedText?: string\n}\n\nfunction SelectionBarContainer({\n actions = [],\n showCloseButton = true,\n selectedText,\n ...props\n}: SelectionBarContainerProps) {\n const { selectedCount, clearSelection } = useSelectionBar()\n\n return (\n <SelectionBar\n actions={actions}\n selectedCount={selectedCount}\n selectedText={selectedText}\n showCloseButton={showCloseButton}\n onClose={() => clearSelection()}\n {...props}\n />\n )\n}\n\nexport const SelectionBarComponents = {\n Root: SelectionBar,\n Provider: SelectionBarProvider,\n Container: SelectionBarContainer,\n useSelectionBar\n}\n\nexport { SelectionBar }\nexport { SelectionBarProvider }\nexport { SelectionBarContainer }\nexport { useSelectionBar }\nexport { selectionBarVariants }\nexport type {\n SelectionBarProps,\n SelectionBarProviderProps,\n SelectionBarContainerProps\n}\n"]}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import * as
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
|
|
5
|
-
declare function SheetRoot({ ...props }: React.ComponentProps<typeof
|
|
6
|
-
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof
|
|
7
|
-
declare function SheetClose({ children, ...props }: React.ComponentProps<typeof
|
|
8
|
-
declare function SheetPortal({ ...props }: React.ComponentProps<typeof
|
|
9
|
-
declare function SheetOverlay({ className, ...props }: React.ComponentProps<typeof
|
|
10
|
-
declare function SheetContent({ className, children, side, overlay, ...props }: React.ComponentProps<typeof
|
|
5
|
+
declare function SheetRoot({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
7
|
+
declare function SheetClose({ children, ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): react_jsx_runtime.JSX.Element;
|
|
8
|
+
declare function SheetPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare function SheetOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): react_jsx_runtime.JSX.Element;
|
|
10
|
+
declare function SheetContent({ className, children, side, overlay, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
11
11
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
12
12
|
overlay?: boolean;
|
|
13
13
|
}): react_jsx_runtime.JSX.Element;
|
|
14
14
|
declare function SheetBody({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
15
15
|
declare function SheetHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
16
16
|
declare function SheetFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
17
|
-
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof
|
|
17
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
18
18
|
|
|
19
19
|
export { SheetBody, SheetClose, SheetContent, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetRoot, SheetTitle, SheetTrigger };
|