@elaraai/east-ui 1.0.85 → 1.0.87
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/src/buttons/button/index.d.ts +4 -0
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +8 -1
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/button/types.d.ts +6 -5
- package/dist/src/buttons/button/types.d.ts.map +1 -1
- package/dist/src/buttons/button/types.js.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +5 -5
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +8 -2
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/types.d.ts +8 -12
- package/dist/src/buttons/icon-button/types.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/types.js +2 -2
- package/dist/src/buttons/icon-button/types.js.map +1 -1
- package/dist/src/buttons/toggle/index.d.ts +4 -0
- package/dist/src/buttons/toggle/index.d.ts.map +1 -1
- package/dist/src/buttons/toggle/index.js +6 -1
- package/dist/src/buttons/toggle/index.js.map +1 -1
- package/dist/src/buttons/toggle/types.d.ts +3 -2
- package/dist/src/buttons/toggle/types.d.ts.map +1 -1
- package/dist/src/buttons/toggle/types.js.map +1 -1
- package/dist/src/charts/chart/index.d.ts.map +1 -1
- package/dist/src/charts/chart/index.js +3 -3
- package/dist/src/charts/chart/index.js.map +1 -1
- package/dist/src/charts/spec/index.d.ts.map +1 -1
- package/dist/src/charts/spec/index.js +5 -2
- package/dist/src/charts/spec/index.js.map +1 -1
- package/dist/src/collections/deck/index.d.ts.map +1 -1
- package/dist/src/collections/deck/index.js +2 -2
- package/dist/src/collections/deck/index.js.map +1 -1
- package/dist/src/collections/index.d.ts +0 -6
- package/dist/src/collections/index.d.ts.map +1 -1
- package/dist/src/collections/index.js +0 -6
- package/dist/src/collections/index.js.map +1 -1
- package/dist/src/collections/library/index.d.ts +1 -1
- package/dist/src/collections/library/index.d.ts.map +1 -1
- package/dist/src/collections/library/index.js +2 -2
- package/dist/src/collections/library/index.js.map +1 -1
- package/dist/src/collections/schematic/index.d.ts.map +1 -1
- package/dist/src/collections/schematic/index.js +2 -2
- package/dist/src/collections/schematic/index.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +1 -1
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +2 -2
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +11 -32
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +15 -10
- package/dist/src/collections/tree-view/index.js.map +1 -1
- package/dist/src/component.d.ts +673 -9344
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +5 -259
- package/dist/src/component.js.map +1 -1
- package/dist/src/contracts/approval.d.ts +6 -8
- package/dist/src/contracts/approval.d.ts.map +1 -1
- package/dist/src/contracts/approval.js +6 -8
- package/dist/src/contracts/approval.js.map +1 -1
- package/dist/src/contracts/drag.d.ts +1 -1
- package/dist/src/contracts/drag.d.ts.map +1 -1
- package/dist/src/contracts/drag.js +4 -5
- package/dist/src/contracts/drag.js.map +1 -1
- package/dist/src/contracts/editing.d.ts +19 -19
- package/dist/src/contracts/editing.js +14 -14
- package/dist/src/contracts/fields.d.ts +471 -0
- package/dist/src/contracts/fields.d.ts.map +1 -0
- package/dist/src/contracts/fields.js +492 -0
- package/dist/src/contracts/fields.js.map +1 -0
- package/dist/src/contracts/index.d.ts +1 -0
- package/dist/src/contracts/index.d.ts.map +1 -1
- package/dist/src/contracts/index.js +1 -0
- package/dist/src/contracts/index.js.map +1 -1
- package/dist/src/contracts/indexed-source.d.ts +118 -0
- package/dist/src/contracts/indexed-source.d.ts.map +1 -0
- package/dist/src/contracts/indexed-source.js +89 -0
- package/dist/src/contracts/indexed-source.js.map +1 -0
- package/dist/src/contracts/pick.d.ts +0 -16
- package/dist/src/contracts/pick.d.ts.map +1 -1
- package/dist/src/contracts/review.d.ts +4 -6
- package/dist/src/contracts/review.d.ts.map +1 -1
- package/dist/src/contracts/review.js +4 -6
- package/dist/src/contracts/review.js.map +1 -1
- package/dist/src/contracts/source.d.ts +2 -2
- package/dist/src/contracts/source.d.ts.map +1 -1
- package/dist/src/contracts/source.js.map +1 -1
- package/dist/src/contracts/states.d.ts +1 -3
- package/dist/src/contracts/states.d.ts.map +1 -1
- package/dist/src/contracts/states.js +1 -3
- package/dist/src/contracts/states.js.map +1 -1
- package/dist/src/display/editable-chip/index.d.ts +2 -0
- package/dist/src/display/editable-chip/index.d.ts.map +1 -1
- package/dist/src/display/editable-chip/index.js +4 -1
- package/dist/src/display/editable-chip/index.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +14 -31
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +15 -19
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/icon/solid.d.ts +24 -0
- package/dist/src/display/icon/solid.d.ts.map +1 -0
- package/dist/src/display/icon/solid.js +39 -0
- package/dist/src/display/icon/solid.js.map +1 -0
- package/dist/src/display/icon/types.d.ts +14 -38
- package/dist/src/display/icon/types.d.ts.map +1 -1
- package/dist/src/display/icon/types.js +6 -15
- package/dist/src/display/icon/types.js.map +1 -1
- package/dist/src/display/metric-chip/index.d.ts +2 -0
- package/dist/src/display/metric-chip/index.d.ts.map +1 -1
- package/dist/src/display/metric-chip/index.js +4 -1
- package/dist/src/display/metric-chip/index.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +2 -0
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +4 -1
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/stat/types.d.ts +3 -5
- package/dist/src/display/stat/types.d.ts.map +1 -1
- package/dist/src/display/stat/types.js +5 -2
- package/dist/src/display/stat/types.js.map +1 -1
- package/dist/src/feedback/banner/index.d.ts +5 -3
- package/dist/src/feedback/banner/index.d.ts.map +1 -1
- package/dist/src/feedback/banner/index.js +4 -1
- package/dist/src/feedback/banner/index.js.map +1 -1
- package/dist/src/feedback/empty-state/index.d.ts +16 -19
- package/dist/src/feedback/empty-state/index.d.ts.map +1 -1
- package/dist/src/feedback/empty-state/index.js +17 -10
- package/dist/src/feedback/empty-state/index.js.map +1 -1
- package/dist/src/feedback/status/index.d.ts +5 -3
- package/dist/src/feedback/status/index.d.ts.map +1 -1
- package/dist/src/feedback/status/index.js +4 -1
- package/dist/src/feedback/status/index.js.map +1 -1
- package/dist/src/index.d.ts +5 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +12 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal.d.ts +23 -16
- package/dist/src/internal.d.ts.map +1 -1
- package/dist/src/internal.js +29 -13
- package/dist/src/internal.js.map +1 -1
- package/dist/src/navigation/index.d.ts +0 -2
- package/dist/src/navigation/index.d.ts.map +1 -1
- package/dist/src/navigation/index.js +0 -2
- package/dist/src/navigation/index.js.map +1 -1
- package/dist/src/navigation/nav-list/index.d.ts +2 -0
- package/dist/src/navigation/nav-list/index.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/index.js +4 -1
- package/dist/src/navigation/nav-list/index.js.map +1 -1
- package/dist/src/navigation/nav-list/types.d.ts +3 -14
- package/dist/src/navigation/nav-list/types.d.ts.map +1 -1
- package/dist/src/navigation/nav-list/types.js.map +1 -1
- package/dist/src/overlays/command-palette/index.d.ts +2 -0
- package/dist/src/overlays/command-palette/index.d.ts.map +1 -1
- package/dist/src/overlays/command-palette/index.js +5 -0
- package/dist/src/overlays/command-palette/index.js.map +1 -1
- package/dist/src/overlays/command-palette/types.d.ts +0 -8
- package/dist/src/overlays/command-palette/types.d.ts.map +1 -1
- package/dist/src/pick/index.d.ts +1 -17
- package/dist/src/pick/index.d.ts.map +1 -1
- package/dist/src/pick/index.js +1 -1
- package/dist/src/platform/slice/index.d.ts +1324 -2039
- package/dist/src/platform/slice/index.d.ts.map +1 -1
- package/dist/src/platform/slice/index.js +55 -74
- package/dist/src/platform/slice/index.js.map +1 -1
- package/dist/src/platform/slice/local.d.ts +743 -0
- package/dist/src/platform/slice/local.d.ts.map +1 -0
- package/dist/src/platform/slice/local.js +133 -0
- package/dist/src/platform/slice/local.js.map +1 -0
- package/dist/src/platform/slice/record-chrome.d.ts +211 -0
- package/dist/src/platform/slice/record-chrome.d.ts.map +1 -0
- package/dist/src/platform/slice/record-chrome.js +52 -0
- package/dist/src/platform/slice/record-chrome.js.map +1 -0
- package/dist/src/platform/slice/record-interval.d.ts +24 -0
- package/dist/src/platform/slice/record-interval.d.ts.map +1 -0
- package/dist/src/platform/slice/record-interval.js +61 -0
- package/dist/src/platform/slice/record-interval.js.map +1 -0
- package/dist/src/platform/slice/record-plan.d.ts +54 -0
- package/dist/src/platform/slice/record-plan.d.ts.map +1 -0
- package/dist/src/platform/slice/record-plan.js +139 -0
- package/dist/src/platform/slice/record-plan.js.map +1 -0
- package/dist/src/platform/slice/record-types.d.ts +2739 -0
- package/dist/src/platform/slice/record-types.d.ts.map +1 -0
- package/dist/src/platform/slice/record-types.js +209 -0
- package/dist/src/platform/slice/record-types.js.map +1 -0
- package/dist/src/platform/slice/record.d.ts +109 -0
- package/dist/src/platform/slice/record.d.ts.map +1 -0
- package/dist/src/platform/slice/record.js +210 -0
- package/dist/src/platform/slice/record.js.map +1 -0
- package/dist/src/reactive/match.d.ts +4 -6
- package/dist/src/reactive/match.d.ts.map +1 -1
- package/dist/src/reactive/match.js +4 -6
- package/dist/src/reactive/match.js.map +1 -1
- package/dist/src/runtime/collections/deck.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.d.ts +0 -6
- package/dist/src/runtime/collections/index.d.ts.map +1 -1
- package/dist/src/runtime/collections/index.js +0 -6
- package/dist/src/runtime/collections/index.js.map +1 -1
- package/dist/src/runtime/display/icon.d.ts +6 -5
- package/dist/src/runtime/display/icon.d.ts.map +1 -1
- package/dist/src/runtime/display/icon.js +6 -5
- package/dist/src/runtime/display/icon.js.map +1 -1
- package/dist/src/runtime/feedback/empty-state.d.ts +5 -5
- package/dist/src/runtime/feedback/empty-state.js +5 -5
- package/dist/src/runtime/layout/dock.d.ts +2 -1
- package/dist/src/runtime/layout/dock.d.ts.map +1 -1
- package/dist/src/runtime/layout/dock.js +2 -1
- package/dist/src/runtime/layout/dock.js.map +1 -1
- package/dist/src/runtime/navigation/index.d.ts +0 -3
- package/dist/src/runtime/navigation/index.d.ts.map +1 -1
- package/dist/src/runtime/navigation/index.js +0 -3
- package/dist/src/runtime/navigation/index.js.map +1 -1
- package/dist/src/runtime/reactive/match.d.ts +2 -3
- package/dist/src/runtime/reactive/match.d.ts.map +1 -1
- package/dist/src/runtime/reactive/match.js +2 -3
- package/dist/src/runtime/reactive/match.js.map +1 -1
- package/dist/src/runtime/record-slice-source.d.ts +78 -0
- package/dist/src/runtime/record-slice-source.d.ts.map +1 -0
- package/dist/src/runtime/record-slice-source.js +201 -0
- package/dist/src/runtime/record-slice-source.js.map +1 -0
- package/dist/src/runtime/record-slice.d.ts +110 -0
- package/dist/src/runtime/record-slice.d.ts.map +1 -0
- package/dist/src/runtime/record-slice.js +374 -0
- package/dist/src/runtime/record-slice.js.map +1 -0
- package/dist/src/runtime/slice.d.ts +11 -13
- package/dist/src/runtime/slice.d.ts.map +1 -1
- package/dist/src/runtime/slice.js +41 -93
- package/dist/src/runtime/slice.js.map +1 -1
- package/dist/src/shared/plot-gutter.d.ts +1 -1
- package/dist/src/shared/plot-gutter.js +1 -1
- package/dist/src/shared/resolve-tag.d.ts +23 -0
- package/dist/src/shared/resolve-tag.d.ts.map +1 -0
- package/dist/src/shared/resolve-tag.js +26 -0
- package/dist/src/shared/resolve-tag.js.map +1 -0
- package/dist/src/shared/tree.d.ts +1 -1
- package/dist/src/shared/tree.js +1 -1
- package/dist/src/slice/breakdown/index.d.ts +1 -1
- package/dist/src/slice/breakdown/index.d.ts.map +1 -1
- package/dist/src/slice/breakdown/index.js +3 -3
- package/dist/src/slice/breakdown/index.js.map +1 -1
- package/dist/src/slice/cohort/index.d.ts +4 -5
- package/dist/src/slice/cohort/index.d.ts.map +1 -1
- package/dist/src/slice/cohort/index.js +6 -7
- package/dist/src/slice/cohort/index.js.map +1 -1
- package/dist/src/slice/filter/index.d.ts +1 -1
- package/dist/src/slice/filter/index.d.ts.map +1 -1
- package/dist/src/slice/filter/index.js +3 -3
- package/dist/src/slice/filter/index.js.map +1 -1
- package/dist/src/slice/index.d.ts +20 -2230
- package/dist/src/slice/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.d.ts +2 -2
- package/dist/src/slice/legend/index.d.ts.map +1 -1
- package/dist/src/slice/legend/index.js +4 -4
- package/dist/src/slice/legend/index.js.map +1 -1
- package/dist/src/slice/rail/index.d.ts +7 -4
- package/dist/src/slice/rail/index.d.ts.map +1 -1
- package/dist/src/slice/rail/index.js +10 -5
- package/dist/src/slice/rail/index.js.map +1 -1
- package/dist/src/slice/range/index.d.ts +1 -1
- package/dist/src/slice/range/index.d.ts.map +1 -1
- package/dist/src/slice/range/index.js +3 -3
- package/dist/src/slice/range/index.js.map +1 -1
- package/dist/src/slice/record/index.d.ts +171 -0
- package/dist/src/slice/record/index.d.ts.map +1 -0
- package/dist/src/slice/record/index.js +10 -0
- package/dist/src/slice/record/index.js.map +1 -0
- package/dist/src/slice/search/index.d.ts +6 -6
- package/dist/src/slice/search/index.d.ts.map +1 -1
- package/dist/src/slice/search/index.js +7 -7
- package/dist/src/slice/search/index.js.map +1 -1
- package/dist/src/slice/summary/index.d.ts +1 -1
- package/dist/src/slice/summary/index.d.ts.map +1 -1
- package/dist/src/slice/summary/index.js +3 -3
- package/dist/src/slice/summary/index.js.map +1 -1
- package/dist/src/typography/list/index.d.ts +2 -8
- package/dist/src/typography/list/index.d.ts.map +1 -1
- package/dist/src/typography/list/index.js +4 -1
- package/dist/src/typography/list/index.js.map +1 -1
- package/dist/src/typography/list/types.d.ts +0 -8
- package/dist/src/typography/list/types.d.ts.map +1 -1
- package/dist/test/collections/deck.examples.d.ts.map +1 -1
- package/dist/test/collections/deck.examples.js +6 -7
- package/dist/test/collections/deck.examples.js.map +1 -1
- package/dist/test/collections/index.d.ts +0 -1
- package/dist/test/collections/index.d.ts.map +1 -1
- package/dist/test/collections/index.js +0 -1
- package/dist/test/collections/index.js.map +1 -1
- package/dist/test/collections/library.examples.d.ts.map +1 -1
- package/dist/test/collections/library.examples.js +6 -7
- package/dist/test/collections/library.examples.js.map +1 -1
- package/dist/test/collections/schematic.examples.d.ts.map +1 -1
- package/dist/test/collections/schematic.examples.js +11 -19
- package/dist/test/collections/schematic.examples.js.map +1 -1
- package/dist/test/collections/tree-view.examples.js +2 -2
- package/dist/test/contracts/editing.examples.d.ts +1 -0
- package/dist/test/contracts/editing.examples.d.ts.map +1 -1
- package/dist/test/contracts/editing.examples.js +37 -6
- package/dist/test/contracts/editing.examples.js.map +1 -1
- package/dist/test/contracts/fields.examples.d.ts +7 -0
- package/dist/test/contracts/fields.examples.d.ts.map +1 -0
- package/dist/test/contracts/fields.examples.js +42 -0
- package/dist/test/contracts/fields.examples.js.map +1 -0
- package/dist/test/display/avatar.examples.d.ts.map +1 -1
- package/dist/test/display/avatar.examples.js +3 -3
- package/dist/test/display/avatar.examples.js.map +1 -1
- package/dist/test/display/icon.examples.d.ts.map +1 -1
- package/dist/test/display/icon.examples.js +12 -11
- package/dist/test/display/icon.examples.js.map +1 -1
- package/dist/test/feedback/empty-state.examples.js +9 -9
- package/dist/test/feedback/empty-state.examples.js.map +1 -1
- package/dist/test/layout/dock.examples.d.ts +0 -8
- package/dist/test/layout/dock.examples.d.ts.map +1 -1
- package/dist/test/layout/dock.examples.js +2 -42
- package/dist/test/layout/dock.examples.js.map +1 -1
- package/dist/test/layout/snap-grid.examples.d.ts.map +1 -1
- package/dist/test/layout/snap-grid.examples.js +18 -28
- package/dist/test/layout/snap-grid.examples.js.map +1 -1
- package/dist/test/navigation/index.d.ts +0 -2
- package/dist/test/navigation/index.d.ts.map +1 -1
- package/dist/test/navigation/index.js +0 -2
- package/dist/test/navigation/index.js.map +1 -1
- package/dist/test/navigation/nav-list.examples.js.map +1 -1
- package/dist/test/platform/index.d.ts +1 -0
- package/dist/test/platform/index.d.ts.map +1 -1
- package/dist/test/platform/index.js +1 -0
- package/dist/test/platform/index.js.map +1 -1
- package/dist/test/platform/slice-local.examples.d.ts +2 -0
- package/dist/test/platform/slice-local.examples.d.ts.map +1 -0
- package/dist/test/platform/slice-local.examples.js +31 -0
- package/dist/test/platform/slice-local.examples.js.map +1 -0
- package/dist/test/platform/slice.examples.js +61 -61
- package/dist/test/platform/slice.examples.js.map +1 -1
- package/dist/test/slice/slice.examples.d.ts +0 -1
- package/dist/test/slice/slice.examples.d.ts.map +1 -1
- package/dist/test/slice/slice.examples.js +67 -181
- package/dist/test/slice/slice.examples.js.map +1 -1
- package/package.json +4 -4
- package/dist/src/collections/board/index.d.ts +0 -855
- package/dist/src/collections/board/index.d.ts.map +0 -1
- package/dist/src/collections/board/index.js +0 -416
- package/dist/src/collections/board/index.js.map +0 -1
- package/dist/src/collections/board/types.d.ts +0 -111
- package/dist/src/collections/board/types.d.ts.map +0 -1
- package/dist/src/collections/board/types.js +0 -89
- package/dist/src/collections/board/types.js.map +0 -1
- package/dist/src/collections/calendar/index.d.ts +0 -446
- package/dist/src/collections/calendar/index.d.ts.map +0 -1
- package/dist/src/collections/calendar/index.js +0 -287
- package/dist/src/collections/calendar/index.js.map +0 -1
- package/dist/src/collections/calendar/types.d.ts +0 -338
- package/dist/src/collections/calendar/types.d.ts.map +0 -1
- package/dist/src/collections/calendar/types.js +0 -206
- package/dist/src/collections/calendar/types.js.map +0 -1
- package/dist/src/collections/flowchart/index.d.ts +0 -430
- package/dist/src/collections/flowchart/index.d.ts.map +0 -1
- package/dist/src/collections/flowchart/index.js +0 -292
- package/dist/src/collections/flowchart/index.js.map +0 -1
- package/dist/src/collections/flowchart/types.d.ts +0 -333
- package/dist/src/collections/flowchart/types.d.ts.map +0 -1
- package/dist/src/collections/flowchart/types.js +0 -263
- package/dist/src/collections/flowchart/types.js.map +0 -1
- package/dist/src/collections/plan/assemble.d.ts +0 -2274
- package/dist/src/collections/plan/assemble.d.ts.map +0 -1
- package/dist/src/collections/plan/assemble.js +0 -210
- package/dist/src/collections/plan/assemble.js.map +0 -1
- package/dist/src/collections/plan/builders.d.ts +0 -765
- package/dist/src/collections/plan/builders.d.ts.map +0 -1
- package/dist/src/collections/plan/builders.js +0 -673
- package/dist/src/collections/plan/builders.js.map +0 -1
- package/dist/src/collections/plan/factories.d.ts +0 -512
- package/dist/src/collections/plan/factories.d.ts.map +0 -1
- package/dist/src/collections/plan/factories.js +0 -539
- package/dist/src/collections/plan/factories.js.map +0 -1
- package/dist/src/collections/plan/index.d.ts +0 -324
- package/dist/src/collections/plan/index.d.ts.map +0 -1
- package/dist/src/collections/plan/index.js +0 -193
- package/dist/src/collections/plan/index.js.map +0 -1
- package/dist/src/collections/plan/ir.d.ts +0 -2490
- package/dist/src/collections/plan/ir.d.ts.map +0 -1
- package/dist/src/collections/plan/ir.js +0 -107
- package/dist/src/collections/plan/ir.js.map +0 -1
- package/dist/src/collections/plan/pick.d.ts +0 -133
- package/dist/src/collections/plan/pick.d.ts.map +0 -1
- package/dist/src/collections/plan/pick.js +0 -208
- package/dist/src/collections/plan/pick.js.map +0 -1
- package/dist/src/collections/plan/root.d.ts +0 -297
- package/dist/src/collections/plan/root.d.ts.map +0 -1
- package/dist/src/collections/plan/root.js +0 -427
- package/dist/src/collections/plan/root.js.map +0 -1
- package/dist/src/collections/plan/series.d.ts +0 -13887
- package/dist/src/collections/plan/series.d.ts.map +0 -1
- package/dist/src/collections/plan/series.js +0 -1710
- package/dist/src/collections/plan/series.js.map +0 -1
- package/dist/src/collections/plan/types.d.ts +0 -12612
- package/dist/src/collections/plan/types.d.ts.map +0 -1
- package/dist/src/collections/plan/types.js +0 -1345
- package/dist/src/collections/plan/types.js.map +0 -1
- package/dist/src/collections/roster/index.d.ts +0 -787
- package/dist/src/collections/roster/index.d.ts.map +0 -1
- package/dist/src/collections/roster/index.js +0 -325
- package/dist/src/collections/roster/index.js.map +0 -1
- package/dist/src/collections/roster/types.d.ts +0 -97
- package/dist/src/collections/roster/types.d.ts.map +0 -1
- package/dist/src/collections/roster/types.js +0 -72
- package/dist/src/collections/roster/types.js.map +0 -1
- package/dist/src/collections/sheet/bridge.d.ts +0 -376
- package/dist/src/collections/sheet/bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/bridge.js +0 -773
- package/dist/src/collections/sheet/bridge.js.map +0 -1
- package/dist/src/collections/sheet/columns.d.ts +0 -410
- package/dist/src/collections/sheet/columns.d.ts.map +0 -1
- package/dist/src/collections/sheet/columns.js +0 -99
- package/dist/src/collections/sheet/columns.js.map +0 -1
- package/dist/src/collections/sheet/context-bridge.d.ts +0 -48
- package/dist/src/collections/sheet/context-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/context-bridge.js +0 -216
- package/dist/src/collections/sheet/context-bridge.js.map +0 -1
- package/dist/src/collections/sheet/draft-bridge.d.ts +0 -37
- package/dist/src/collections/sheet/draft-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/draft-bridge.js +0 -153
- package/dist/src/collections/sheet/draft-bridge.js.map +0 -1
- package/dist/src/collections/sheet/drafts.d.ts +0 -14
- package/dist/src/collections/sheet/drafts.d.ts.map +0 -1
- package/dist/src/collections/sheet/drafts.js +0 -14
- package/dist/src/collections/sheet/drafts.js.map +0 -1
- package/dist/src/collections/sheet/editing-bridge.d.ts +0 -36
- package/dist/src/collections/sheet/editing-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/editing-bridge.js +0 -196
- package/dist/src/collections/sheet/editing-bridge.js.map +0 -1
- package/dist/src/collections/sheet/editing-types.d.ts +0 -268
- package/dist/src/collections/sheet/editing-types.d.ts.map +0 -1
- package/dist/src/collections/sheet/editing-types.js +0 -34
- package/dist/src/collections/sheet/editing-types.js.map +0 -1
- package/dist/src/collections/sheet/edits.d.ts +0 -37
- package/dist/src/collections/sheet/edits.d.ts.map +0 -1
- package/dist/src/collections/sheet/edits.js +0 -31
- package/dist/src/collections/sheet/edits.js.map +0 -1
- package/dist/src/collections/sheet/group.d.ts +0 -165
- package/dist/src/collections/sheet/group.d.ts.map +0 -1
- package/dist/src/collections/sheet/group.js +0 -52
- package/dist/src/collections/sheet/group.js.map +0 -1
- package/dist/src/collections/sheet/index.d.ts +0 -351
- package/dist/src/collections/sheet/index.d.ts.map +0 -1
- package/dist/src/collections/sheet/index.js +0 -208
- package/dist/src/collections/sheet/index.js.map +0 -1
- package/dist/src/collections/sheet/link.d.ts +0 -398
- package/dist/src/collections/sheet/link.d.ts.map +0 -1
- package/dist/src/collections/sheet/link.js +0 -228
- package/dist/src/collections/sheet/link.js.map +0 -1
- package/dist/src/collections/sheet/registers.d.ts +0 -278
- package/dist/src/collections/sheet/registers.d.ts.map +0 -1
- package/dist/src/collections/sheet/registers.js +0 -268
- package/dist/src/collections/sheet/registers.js.map +0 -1
- package/dist/src/collections/sheet/root.d.ts +0 -328
- package/dist/src/collections/sheet/root.d.ts.map +0 -1
- package/dist/src/collections/sheet/root.js +0 -432
- package/dist/src/collections/sheet/root.js.map +0 -1
- package/dist/src/collections/sheet/seed-bridge.d.ts +0 -14
- package/dist/src/collections/sheet/seed-bridge.d.ts.map +0 -1
- package/dist/src/collections/sheet/seed-bridge.js +0 -51
- package/dist/src/collections/sheet/seed-bridge.js.map +0 -1
- package/dist/src/collections/sheet/sub-rows.d.ts +0 -249
- package/dist/src/collections/sheet/sub-rows.d.ts.map +0 -1
- package/dist/src/collections/sheet/sub-rows.js +0 -222
- package/dist/src/collections/sheet/sub-rows.js.map +0 -1
- package/dist/src/collections/sheet/transactions.d.ts +0 -76
- package/dist/src/collections/sheet/transactions.d.ts.map +0 -1
- package/dist/src/collections/sheet/transactions.js +0 -40
- package/dist/src/collections/sheet/transactions.js.map +0 -1
- package/dist/src/collections/sheet/types.d.ts +0 -14992
- package/dist/src/collections/sheet/types.d.ts.map +0 -1
- package/dist/src/collections/sheet/types.js +0 -1061
- package/dist/src/collections/sheet/types.js.map +0 -1
- package/dist/src/navigation/app/index.d.ts +0 -150
- package/dist/src/navigation/app/index.d.ts.map +0 -1
- package/dist/src/navigation/app/index.js +0 -191
- package/dist/src/navigation/app/index.js.map +0 -1
- package/dist/src/navigation/pages/index.d.ts +0 -165
- package/dist/src/navigation/pages/index.d.ts.map +0 -1
- package/dist/src/navigation/pages/index.js +0 -152
- package/dist/src/navigation/pages/index.js.map +0 -1
- package/dist/src/navigation/pages/types.d.ts +0 -111
- package/dist/src/navigation/pages/types.d.ts.map +0 -1
- package/dist/src/navigation/pages/types.js +0 -101
- package/dist/src/navigation/pages/types.js.map +0 -1
- package/dist/src/runtime/collections/board.d.ts +0 -73
- package/dist/src/runtime/collections/board.d.ts.map +0 -1
- package/dist/src/runtime/collections/board.js +0 -68
- package/dist/src/runtime/collections/board.js.map +0 -1
- package/dist/src/runtime/collections/calendar.d.ts +0 -54
- package/dist/src/runtime/collections/calendar.d.ts.map +0 -1
- package/dist/src/runtime/collections/calendar.js +0 -54
- package/dist/src/runtime/collections/calendar.js.map +0 -1
- package/dist/src/runtime/collections/flowchart.d.ts +0 -58
- package/dist/src/runtime/collections/flowchart.d.ts.map +0 -1
- package/dist/src/runtime/collections/flowchart.js +0 -54
- package/dist/src/runtime/collections/flowchart.js.map +0 -1
- package/dist/src/runtime/collections/plan.d.ts +0 -181
- package/dist/src/runtime/collections/plan.d.ts.map +0 -1
- package/dist/src/runtime/collections/plan.js +0 -186
- package/dist/src/runtime/collections/plan.js.map +0 -1
- package/dist/src/runtime/collections/roster.d.ts +0 -60
- package/dist/src/runtime/collections/roster.d.ts.map +0 -1
- package/dist/src/runtime/collections/roster.js +0 -59
- package/dist/src/runtime/collections/roster.js.map +0 -1
- package/dist/src/runtime/collections/sheet.d.ts +0 -122
- package/dist/src/runtime/collections/sheet.d.ts.map +0 -1
- package/dist/src/runtime/collections/sheet.js +0 -73
- package/dist/src/runtime/collections/sheet.js.map +0 -1
- package/dist/src/runtime/navigation/app.d.ts +0 -52
- package/dist/src/runtime/navigation/app.d.ts.map +0 -1
- package/dist/src/runtime/navigation/app.js +0 -53
- package/dist/src/runtime/navigation/app.js.map +0 -1
- package/dist/src/runtime/navigation/pages.d.ts +0 -50
- package/dist/src/runtime/navigation/pages.d.ts.map +0 -1
- package/dist/src/runtime/navigation/pages.js +0 -52
- package/dist/src/runtime/navigation/pages.js.map +0 -1
- package/dist/src/runtime/navigation/route.d.ts +0 -46
- package/dist/src/runtime/navigation/route.d.ts.map +0 -1
- package/dist/src/runtime/navigation/route.js +0 -47
- package/dist/src/runtime/navigation/route.js.map +0 -1
- package/dist/test/collections/board.examples.d.ts +0 -18
- package/dist/test/collections/board.examples.d.ts.map +0 -1
- package/dist/test/collections/board.examples.js +0 -297
- package/dist/test/collections/board.examples.js.map +0 -1
- package/dist/test/collections/calendar.examples.d.ts +0 -5
- package/dist/test/collections/calendar.examples.d.ts.map +0 -1
- package/dist/test/collections/calendar.examples.js +0 -147
- package/dist/test/collections/calendar.examples.js.map +0 -1
- package/dist/test/collections/flowchart.examples.d.ts +0 -17
- package/dist/test/collections/flowchart.examples.d.ts.map +0 -1
- package/dist/test/collections/flowchart.examples.js +0 -243
- package/dist/test/collections/flowchart.examples.js.map +0 -1
- package/dist/test/collections/plan.examples.d.ts +0 -200
- package/dist/test/collections/plan.examples.d.ts.map +0 -1
- package/dist/test/collections/plan.examples.js +0 -3665
- package/dist/test/collections/plan.examples.js.map +0 -1
- package/dist/test/collections/roster.examples.d.ts +0 -26
- package/dist/test/collections/roster.examples.d.ts.map +0 -1
- package/dist/test/collections/roster.examples.js +0 -237
- package/dist/test/collections/roster.examples.js.map +0 -1
- package/dist/test/collections/sheet-link.examples.d.ts +0 -7
- package/dist/test/collections/sheet-link.examples.d.ts.map +0 -1
- package/dist/test/collections/sheet-link.examples.js +0 -41
- package/dist/test/collections/sheet-link.examples.js.map +0 -1
- package/dist/test/collections/sheet-transactions.examples.d.ts +0 -7
- package/dist/test/collections/sheet-transactions.examples.d.ts.map +0 -1
- package/dist/test/collections/sheet-transactions.examples.js +0 -58
- package/dist/test/collections/sheet-transactions.examples.js.map +0 -1
- package/dist/test/collections/sheet.examples.d.ts +0 -96
- package/dist/test/collections/sheet.examples.d.ts.map +0 -1
- package/dist/test/collections/sheet.examples.js +0 -1040
- package/dist/test/collections/sheet.examples.js.map +0 -1
- package/dist/test/navigation/app.examples.d.ts +0 -22
- package/dist/test/navigation/app.examples.d.ts.map +0 -1
- package/dist/test/navigation/app.examples.js +0 -136
- package/dist/test/navigation/app.examples.js.map +0 -1
- package/dist/test/navigation/pages.examples.d.ts +0 -13
- package/dist/test/navigation/pages.examples.d.ts.map +0 -1
- package/dist/test/navigation/pages.examples.js +0 -113
- package/dist/test/navigation/pages.examples.js.map +0 -1
- package/dist/test/navigation/route.examples.d.ts +0 -13
- package/dist/test/navigation/route.examples.d.ts.map +0 -1
- package/dist/test/navigation/route.examples.js +0 -69
- package/dist/test/navigation/route.examples.js.map +0 -1
|
@@ -5,15 +5,14 @@
|
|
|
5
5
|
import { type ExprType } from "@elaraai/east";
|
|
6
6
|
import { UIComponentType } from "../../component.js";
|
|
7
7
|
import { type IconStyle } from "./types.js";
|
|
8
|
-
export { IconSizeType, IconVariantType, IconStyleType, IconType, type IconSizeLiteral, type IconVariantLiteral, type IconStyle, type IconName, } from "./types.js";
|
|
8
|
+
export { IconSizeType, IconVariantType, IconStyleType, IconType, type IconSizeLiteral, type IconVariantLiteral, type IconStyle, type IconName, type SolidIconPrefix, } from "./types.js";
|
|
9
9
|
/**
|
|
10
|
-
* Creates an Icon component value — a Font Awesome icon with optional
|
|
10
|
+
* Creates an Icon component value — a Font Awesome solid icon with optional
|
|
11
11
|
* styling and accessible labelling.
|
|
12
12
|
*
|
|
13
|
-
* @param
|
|
14
|
-
* @param name - The Font Awesome icon name (`"user"`, `"home"`, `"chevron-right"`, …)
|
|
15
|
-
* @param style - Optional `label` (a11y) + visual style fields (see {@link IconStyle})
|
|
13
|
+
* @param options - `prefix` (`"fas"`, the solid set) and `name` (`"user"`, `"house"`, `"chevron-right"`, …), an optional `label` (a11y) and the visual style fields (see {@link IconStyle})
|
|
16
14
|
* @returns An East expression of type `UIComponentType`
|
|
15
|
+
* @throws When `prefix` is not `"fas"` — East UI draws Font Awesome's solid set only (#1263)
|
|
17
16
|
*
|
|
18
17
|
* @remarks
|
|
19
18
|
* **Accessibility contract:** the renderer reads `label` from the
|
|
@@ -22,9 +21,9 @@ export { IconSizeType, IconVariantType, IconStyleType, IconType, type IconSizeLi
|
|
|
22
21
|
* `aria-label={label}`. Apps pairing Icon with adjacent text that already
|
|
23
22
|
* describes the glyph should leave `label` unset.
|
|
24
23
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
24
|
+
* `name` is type-safe via Font Awesome's TypeScript types. East UI draws
|
|
25
|
+
* Font Awesome's solid set only (#1263): `prefix` is `"fas"`, and another
|
|
26
|
+
* prefix is refused at build, naming the icon.
|
|
28
27
|
*
|
|
29
28
|
* @example
|
|
30
29
|
* ```ts
|
|
@@ -48,8 +47,9 @@ export declare const Icon: {
|
|
|
48
47
|
/**
|
|
49
48
|
* Creates an Icon component value.
|
|
50
49
|
*
|
|
51
|
-
* @param options - Required `prefix` + `name`, optional `label` (a11y) and visual style fields
|
|
50
|
+
* @param options - Required `prefix` (`"fas"`) + `name`, optional `label` (a11y) and visual style fields
|
|
52
51
|
* @returns An East expression of type `UIComponentType`
|
|
52
|
+
* @throws When `prefix` is not `"fas"` — East UI draws Font Awesome's solid set only (#1263)
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
55
|
* Pass `label` for meaningful icons (rendered with `aria-label`); omit
|
|
@@ -77,7 +77,7 @@ export declare const Icon: {
|
|
|
77
77
|
* `style` sub-struct for visual presentation per the main/style
|
|
78
78
|
* type-shape convention.
|
|
79
79
|
*
|
|
80
|
-
* @property prefix - Font Awesome prefix
|
|
80
|
+
* @property prefix - Font Awesome prefix: `"fas"`, the solid set, the one East UI draws (#1263)
|
|
81
81
|
* @property name - Font Awesome icon name
|
|
82
82
|
* @property label - Accessible label — absent ⇒ decorative (aria-hidden), present ⇒ aria-label
|
|
83
83
|
* @property style - Optional visual style sub-struct (see `Style`)
|
|
@@ -97,10 +97,6 @@ export declare const Icon: {
|
|
|
97
97
|
}>>;
|
|
98
98
|
readonly variant: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
99
99
|
readonly solid: import("@elaraai/east").NullType;
|
|
100
|
-
readonly regular: import("@elaraai/east").NullType;
|
|
101
|
-
readonly light: import("@elaraai/east").NullType;
|
|
102
|
-
readonly thin: import("@elaraai/east").NullType;
|
|
103
|
-
readonly brands: import("@elaraai/east").NullType;
|
|
104
100
|
}>>;
|
|
105
101
|
readonly color: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
106
102
|
readonly background: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
@@ -172,7 +168,7 @@ export declare const Icon: {
|
|
|
172
168
|
* dimensions, and padding / margin.
|
|
173
169
|
*
|
|
174
170
|
* @property size - Icon size (xs / sm / md / lg / xl / 2xl)
|
|
175
|
-
* @property variant -
|
|
171
|
+
* @property variant - Icon set: `solid`, the one East UI draws (#1263)
|
|
176
172
|
* @property color - Icon tint
|
|
177
173
|
* @property background - Icon tile background
|
|
178
174
|
* @property colorPalette - Colour palette token
|
|
@@ -201,10 +197,6 @@ export declare const Icon: {
|
|
|
201
197
|
}>>;
|
|
202
198
|
readonly variant: import("@elaraai/east").OptionType<import("@elaraai/east").VariantType<{
|
|
203
199
|
readonly solid: import("@elaraai/east").NullType;
|
|
204
|
-
readonly regular: import("@elaraai/east").NullType;
|
|
205
|
-
readonly light: import("@elaraai/east").NullType;
|
|
206
|
-
readonly thin: import("@elaraai/east").NullType;
|
|
207
|
-
readonly brands: import("@elaraai/east").NullType;
|
|
208
200
|
}>>;
|
|
209
201
|
readonly color: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
210
202
|
readonly background: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
@@ -287,25 +279,16 @@ export declare const Icon: {
|
|
|
287
279
|
readonly "2xl": import("@elaraai/east").NullType;
|
|
288
280
|
}>;
|
|
289
281
|
/**
|
|
290
|
-
* Font Awesome icon
|
|
282
|
+
* Font Awesome icon set.
|
|
291
283
|
*
|
|
292
284
|
* @remarks
|
|
293
|
-
* Mirror of `IconVariantType` from `./types.js`.
|
|
294
|
-
*
|
|
295
|
-
* the free tier.
|
|
285
|
+
* Mirror of `IconVariantType` from `./types.js`. East UI draws
|
|
286
|
+
* Font Awesome's solid set only (#1263): `solid` is its one case.
|
|
296
287
|
*
|
|
297
288
|
* @property solid - Solid filled icons (`fas`)
|
|
298
|
-
* @property regular - Regular outlined icons (`far`)
|
|
299
|
-
* @property light - Light weight icons (`fal`) — requires FA Pro
|
|
300
|
-
* @property thin - Thin weight icons (`fat`) — requires FA Pro
|
|
301
|
-
* @property brands - Brand logos (`fab`)
|
|
302
289
|
*/
|
|
303
290
|
readonly Variant: import("@elaraai/east").VariantType<{
|
|
304
291
|
readonly solid: import("@elaraai/east").NullType;
|
|
305
|
-
readonly regular: import("@elaraai/east").NullType;
|
|
306
|
-
readonly light: import("@elaraai/east").NullType;
|
|
307
|
-
readonly thin: import("@elaraai/east").NullType;
|
|
308
|
-
readonly brands: import("@elaraai/east").NullType;
|
|
309
292
|
}>;
|
|
310
293
|
};
|
|
311
294
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/icon/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAKhB,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/icon/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAKhB,MAAM,eAAe,CAAC;AAKvB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAMH,KAAK,SAAS,EACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,YAAY,EACZ,eAAe,EACf,aAAa,EACb,QAAQ,EACR,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,eAAe,GACvB,MAAM,YAAY,CAAC;AA2GpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,iBAAS,UAAU,CACf,OAAO,EAAE,SAAS,GACnB,QAAQ,CAAC,eAAe,CAAC,CAU3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,IAAI;IACb;;;;;;;;;;;;;;;;;;;;OAoBG;;;QAGC;;;;;;;;;;;;;;WAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAEH;;;;;;;;;;;;WAYG;;;;;;;;;QAEH;;;;;;;;WAQG;;;;;CAGD,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { East, variant, some, none, } from "@elaraai/east";
|
|
|
6
6
|
import { ColorSchemeType, OverflowType } from "../../style.js";
|
|
7
7
|
import { PaddingType, MarginType } from "../../layout/style.js";
|
|
8
8
|
import { UIComponentType } from "../../component.js";
|
|
9
|
-
import { IconSizeType, IconVariantType, IconStyleType, IconType, } from "./types.js";
|
|
9
|
+
import { IconSizeType, IconVariantType, IconStyleType, IconType, refuseNonSolid, } from "./types.js";
|
|
10
10
|
export { IconSizeType, IconVariantType, IconStyleType, IconType, } from "./types.js";
|
|
11
11
|
/**
|
|
12
12
|
* Internal — wraps a flat `IconStyle`'s visual fields into an `IconStyleType`
|
|
@@ -112,13 +112,12 @@ function buildIconStyle(style) {
|
|
|
112
112
|
}, IconStyleType);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
* Creates an Icon component value — a Font Awesome icon with optional
|
|
115
|
+
* Creates an Icon component value — a Font Awesome solid icon with optional
|
|
116
116
|
* styling and accessible labelling.
|
|
117
117
|
*
|
|
118
|
-
* @param
|
|
119
|
-
* @param name - The Font Awesome icon name (`"user"`, `"home"`, `"chevron-right"`, …)
|
|
120
|
-
* @param style - Optional `label` (a11y) + visual style fields (see {@link IconStyle})
|
|
118
|
+
* @param options - `prefix` (`"fas"`, the solid set) and `name` (`"user"`, `"house"`, `"chevron-right"`, …), an optional `label` (a11y) and the visual style fields (see {@link IconStyle})
|
|
121
119
|
* @returns An East expression of type `UIComponentType`
|
|
120
|
+
* @throws When `prefix` is not `"fas"` — East UI draws Font Awesome's solid set only (#1263)
|
|
122
121
|
*
|
|
123
122
|
* @remarks
|
|
124
123
|
* **Accessibility contract:** the renderer reads `label` from the
|
|
@@ -127,9 +126,9 @@ function buildIconStyle(style) {
|
|
|
127
126
|
* `aria-label={label}`. Apps pairing Icon with adjacent text that already
|
|
128
127
|
* describes the glyph should leave `label` unset.
|
|
129
128
|
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
129
|
+
* `name` is type-safe via Font Awesome's TypeScript types. East UI draws
|
|
130
|
+
* Font Awesome's solid set only (#1263): `prefix` is `"fas"`, and another
|
|
131
|
+
* prefix is refused at build, naming the icon.
|
|
133
132
|
*
|
|
134
133
|
* @example
|
|
135
134
|
* ```ts
|
|
@@ -142,6 +141,7 @@ function buildIconStyle(style) {
|
|
|
142
141
|
* ```
|
|
143
142
|
*/
|
|
144
143
|
function createIcon(options) {
|
|
144
|
+
refuseNonSolid("Icon", options);
|
|
145
145
|
const { prefix, name, label } = options;
|
|
146
146
|
const styleValue = buildIconStyle(options);
|
|
147
147
|
return East.value(variant("Icon", {
|
|
@@ -162,8 +162,9 @@ export const Icon = {
|
|
|
162
162
|
/**
|
|
163
163
|
* Creates an Icon component value.
|
|
164
164
|
*
|
|
165
|
-
* @param options - Required `prefix` + `name`, optional `label` (a11y) and visual style fields
|
|
165
|
+
* @param options - Required `prefix` (`"fas"`) + `name`, optional `label` (a11y) and visual style fields
|
|
166
166
|
* @returns An East expression of type `UIComponentType`
|
|
167
|
+
* @throws When `prefix` is not `"fas"` — East UI draws Font Awesome's solid set only (#1263)
|
|
167
168
|
*
|
|
168
169
|
* @remarks
|
|
169
170
|
* Pass `label` for meaningful icons (rendered with `aria-label`); omit
|
|
@@ -191,7 +192,7 @@ export const Icon = {
|
|
|
191
192
|
* `style` sub-struct for visual presentation per the main/style
|
|
192
193
|
* type-shape convention.
|
|
193
194
|
*
|
|
194
|
-
* @property prefix - Font Awesome prefix
|
|
195
|
+
* @property prefix - Font Awesome prefix: `"fas"`, the solid set, the one East UI draws (#1263)
|
|
195
196
|
* @property name - Font Awesome icon name
|
|
196
197
|
* @property label - Accessible label — absent ⇒ decorative (aria-hidden), present ⇒ aria-label
|
|
197
198
|
* @property style - Optional visual style sub-struct (see `Style`)
|
|
@@ -207,7 +208,7 @@ export const Icon = {
|
|
|
207
208
|
* dimensions, and padding / margin.
|
|
208
209
|
*
|
|
209
210
|
* @property size - Icon size (xs / sm / md / lg / xl / 2xl)
|
|
210
|
-
* @property variant -
|
|
211
|
+
* @property variant - Icon set: `solid`, the one East UI draws (#1263)
|
|
211
212
|
* @property color - Icon tint
|
|
212
213
|
* @property background - Icon tile background
|
|
213
214
|
* @property colorPalette - Colour palette token
|
|
@@ -241,18 +242,13 @@ export const Icon = {
|
|
|
241
242
|
*/
|
|
242
243
|
Size: IconSizeType,
|
|
243
244
|
/**
|
|
244
|
-
* Font Awesome icon
|
|
245
|
+
* Font Awesome icon set.
|
|
245
246
|
*
|
|
246
247
|
* @remarks
|
|
247
|
-
* Mirror of `IconVariantType` from `./types.js`.
|
|
248
|
-
*
|
|
249
|
-
* the free tier.
|
|
248
|
+
* Mirror of `IconVariantType` from `./types.js`. East UI draws
|
|
249
|
+
* Font Awesome's solid set only (#1263): `solid` is its one case.
|
|
250
250
|
*
|
|
251
251
|
* @property solid - Solid filled icons (`fas`)
|
|
252
|
-
* @property regular - Regular outlined icons (`far`)
|
|
253
|
-
* @property light - Light weight icons (`fal`) — requires FA Pro
|
|
254
|
-
* @property thin - Thin weight icons (`fat`) — requires FA Pro
|
|
255
|
-
* @property brands - Brand logos (`fab`)
|
|
256
252
|
*/
|
|
257
253
|
Variant: IconVariantType,
|
|
258
254
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/display/icon/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACH,YAAY,EACZ,eAAe,EACf,aAAa,EACb,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/display/icon/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,WAAW,EA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c,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE;QAC9B,MAAM;QACN,IAAI;QACJ,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;QAC/C,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI;KAC9C,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAChB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE;QACH;;;;;;;;;;;;;;WAcG;QACH,IAAI,EAAE,QAAQ;QACd;;;;;;;;;;;;;;;;;;;;;;;;;;;WA2BG;QACH,KAAK,EAAE,aAAa;QACpB;;;;;;;;;;;;WAYG;QACH,IAAI,EAAE,YAAY;QAClB;;;;;;;;WAQG;QACH,OAAO,EAAE,eAAe;KAC3B;CACK,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/** Font Awesome's solid set: the one prefix an East UI icon takes (#1263). */
|
|
6
|
+
export declare const SOLID_PREFIX = "fas";
|
|
7
|
+
/**
|
|
8
|
+
* The one prefix an East UI icon takes: Font Awesome's solid set (#1263).
|
|
9
|
+
*/
|
|
10
|
+
export type SolidIconPrefix = typeof SOLID_PREFIX;
|
|
11
|
+
/**
|
|
12
|
+
* Refuses an icon given by value that is not of Font Awesome's solid set
|
|
13
|
+
* (#1263), naming it and its remedy.
|
|
14
|
+
*
|
|
15
|
+
* @param where - The factory taking it, as the message names it: `Icon`, `TreeView.Item`, …
|
|
16
|
+
* @param icon - The icon as the factory took it: a `{ prefix, name }`, an Icon value, an East expression, or none
|
|
17
|
+
* @throws {Error} When the icon is a value whose `prefix` is not `"fas"`
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* An East expression, or a value whose prefix is one, passes: what it holds
|
|
21
|
+
* is known only when it runs.
|
|
22
|
+
*/
|
|
23
|
+
export declare function refuseNonSolid(where: string, icon: unknown): void;
|
|
24
|
+
//# sourceMappingURL=solid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solid.d.ts","sourceRoot":"","sources":["../../../../src/display/icon/solid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAcH,8EAA8E;AAC9E,eAAO,MAAM,YAAY,QAAQ,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,YAAY,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,CAQjE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
+
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* East UI draws Font Awesome's solid icons only (#1263): an icon's `prefix` is
|
|
7
|
+
* `"fas"`. Each factory that takes an icon by value refuses another prefix as
|
|
8
|
+
* it builds, naming the icon and its remedy. An icon given as an East
|
|
9
|
+
* expression is known only when it runs; the renderers register the solid set
|
|
10
|
+
* alone, so an icon of another set draws nothing.
|
|
11
|
+
*
|
|
12
|
+
* @packageDocumentation
|
|
13
|
+
*/
|
|
14
|
+
import { Expr } from "@elaraai/east";
|
|
15
|
+
/** Font Awesome's solid set: the one prefix an East UI icon takes (#1263). */
|
|
16
|
+
export const SOLID_PREFIX = "fas";
|
|
17
|
+
/**
|
|
18
|
+
* Refuses an icon given by value that is not of Font Awesome's solid set
|
|
19
|
+
* (#1263), naming it and its remedy.
|
|
20
|
+
*
|
|
21
|
+
* @param where - The factory taking it, as the message names it: `Icon`, `TreeView.Item`, …
|
|
22
|
+
* @param icon - The icon as the factory took it: a `{ prefix, name }`, an Icon value, an East expression, or none
|
|
23
|
+
* @throws {Error} When the icon is a value whose `prefix` is not `"fas"`
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* An East expression, or a value whose prefix is one, passes: what it holds
|
|
27
|
+
* is known only when it runs.
|
|
28
|
+
*/
|
|
29
|
+
export function refuseNonSolid(where, icon) {
|
|
30
|
+
if (icon === undefined || icon === null || typeof icon !== "object" || icon instanceof Expr)
|
|
31
|
+
return;
|
|
32
|
+
const { prefix, name } = icon;
|
|
33
|
+
if (typeof prefix !== "string" || prefix === SOLID_PREFIX)
|
|
34
|
+
return;
|
|
35
|
+
const named = typeof name === "string" ? name : "<icon>";
|
|
36
|
+
throw new Error(`${where}: \`${prefix} ${named}\` is not a Font Awesome solid icon (#1263) — East UI draws solid icons only: ` +
|
|
37
|
+
`use a solid one, as \`{ prefix: "fas", name: "${named}" }\``);
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=solid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solid.js","sourceRoot":"","sources":["../../../../src/display/icon/solid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;GAQG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,8EAA8E;AAC9E,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC;AAOlC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,IAAa;IACvD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,YAAY,IAAI;QAAE,OAAO;IACpG,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,IAA4C,CAAC;IACtE,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,YAAY;QAAE,OAAO;IAClE,MAAM,KAAK,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IACzD,MAAM,IAAI,KAAK,CACX,GAAG,KAAK,OAAO,MAAM,IAAI,KAAK,gFAAgF;QAC9G,iDAAiD,KAAK,OAAO,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -6,8 +6,10 @@ import { type SubtypeExprOrValue, FloatType, NullType, OptionType, StructType, S
|
|
|
6
6
|
import { ColorSchemeType, OverflowType } from "../../style.js";
|
|
7
7
|
import type { ColorSchemeLiteral, OverflowLiteral } from "../../style.js";
|
|
8
8
|
import { PaddingType, MarginType } from "../../layout/style.js";
|
|
9
|
-
import type {
|
|
9
|
+
import type { SolidIconPrefix } from "./solid.js";
|
|
10
|
+
import type { IconName } from "@fortawesome/fontawesome-common-types";
|
|
10
11
|
export type { IconName, IconPrefix } from "@fortawesome/fontawesome-common-types";
|
|
12
|
+
export { SOLID_PREFIX, refuseNonSolid, type SolidIconPrefix } from "./solid.js";
|
|
11
13
|
/**
|
|
12
14
|
* Size options for Icon component.
|
|
13
15
|
*
|
|
@@ -47,34 +49,24 @@ export type IconSizeLiteral = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
|
47
49
|
* Font Awesome icon style/variant.
|
|
48
50
|
*
|
|
49
51
|
* @remarks
|
|
50
|
-
*
|
|
52
|
+
* Names the icon set: East UI draws Font Awesome's solid set only (#1263), so
|
|
53
|
+
* `solid` is its one case — the regular, light, thin and brands sets came off
|
|
54
|
+
* with it.
|
|
51
55
|
*
|
|
52
56
|
* @property solid - Solid filled icons (fas)
|
|
53
|
-
* @property regular - Regular outlined icons (far)
|
|
54
|
-
* @property light - Light weight icons (fal) - requires FA Pro
|
|
55
|
-
* @property thin - Thin weight icons (fat) - requires FA Pro
|
|
56
|
-
* @property brands - Brand logos (fab)
|
|
57
57
|
*/
|
|
58
58
|
export declare const IconVariantType: VariantType<{
|
|
59
59
|
/** Solid filled icons (fas) */
|
|
60
60
|
readonly solid: NullType;
|
|
61
|
-
/** Regular outlined icons (far) */
|
|
62
|
-
readonly regular: NullType;
|
|
63
|
-
/** Light weight icons (fal) - requires FA Pro */
|
|
64
|
-
readonly light: NullType;
|
|
65
|
-
/** Thin weight icons (fat) - requires FA Pro */
|
|
66
|
-
readonly thin: NullType;
|
|
67
|
-
/** Brand logos (fab) */
|
|
68
|
-
readonly brands: NullType;
|
|
69
61
|
}>;
|
|
70
62
|
/**
|
|
71
63
|
* Type representing the IconVariant structure.
|
|
72
64
|
*/
|
|
73
65
|
export type IconVariantType = typeof IconVariantType;
|
|
74
66
|
/**
|
|
75
|
-
* String literal type for icon variant values.
|
|
67
|
+
* String literal type for icon variant values: the solid set alone (#1263).
|
|
76
68
|
*/
|
|
77
|
-
export type IconVariantLiteral = "solid"
|
|
69
|
+
export type IconVariantLiteral = "solid";
|
|
78
70
|
/**
|
|
79
71
|
* Style type for the Icon component.
|
|
80
72
|
*
|
|
@@ -85,7 +77,7 @@ export type IconVariantLiteral = "solid" | "regular" | "light" | "thin" | "brand
|
|
|
85
77
|
* struct.
|
|
86
78
|
*
|
|
87
79
|
* @property size - Icon size (xs / sm / md / lg / xl / 2xl)
|
|
88
|
-
* @property variant - Icon
|
|
80
|
+
* @property variant - Icon set: `solid`, the one East UI draws (#1263)
|
|
89
81
|
* @property color - Explicit icon tint (CSS colour or Chakra colour token)
|
|
90
82
|
* @property background - Explicit icon tile background override
|
|
91
83
|
* @property colorPalette - Colour palette for the icon
|
|
@@ -121,14 +113,6 @@ export declare const IconStyleType: StructType<{
|
|
|
121
113
|
readonly variant: OptionType<VariantType<{
|
|
122
114
|
/** Solid filled icons (fas) */
|
|
123
115
|
readonly solid: NullType;
|
|
124
|
-
/** Regular outlined icons (far) */
|
|
125
|
-
readonly regular: NullType;
|
|
126
|
-
/** Light weight icons (fal) - requires FA Pro */
|
|
127
|
-
readonly light: NullType;
|
|
128
|
-
/** Thin weight icons (fat) - requires FA Pro */
|
|
129
|
-
readonly thin: NullType;
|
|
130
|
-
/** Brand logos (fab) */
|
|
131
|
-
readonly brands: NullType;
|
|
132
116
|
}>>;
|
|
133
117
|
readonly color: OptionType<StringType>;
|
|
134
118
|
readonly background: OptionType<StringType>;
|
|
@@ -202,7 +186,7 @@ export type IconStyleType = typeof IconStyleType;
|
|
|
202
186
|
* `IconStyleType` sub-struct expected by the IR.
|
|
203
187
|
*
|
|
204
188
|
* @property size - Icon size (xs / sm / md / lg / xl / 2xl)
|
|
205
|
-
* @property variant - Icon
|
|
189
|
+
* @property variant - Icon set: `solid`, the one East UI draws (#1263)
|
|
206
190
|
* @property color - Icon tint (CSS colour or Chakra colour token)
|
|
207
191
|
* @property background - Icon tile background colour
|
|
208
192
|
* @property colorPalette - Colour palette for the icon
|
|
@@ -221,8 +205,8 @@ export type IconStyleType = typeof IconStyleType;
|
|
|
221
205
|
* @property margin - Margin (struct or shorthand for all 4 sides)
|
|
222
206
|
*/
|
|
223
207
|
export interface IconStyle {
|
|
224
|
-
/** Font Awesome icon prefix
|
|
225
|
-
prefix:
|
|
208
|
+
/** Font Awesome icon prefix: `"fas"`, the solid set, the one East UI draws (#1263) — required; another is refused at build. */
|
|
209
|
+
prefix: SolidIconPrefix;
|
|
226
210
|
/** Font Awesome icon name — required. */
|
|
227
211
|
name: IconName;
|
|
228
212
|
/**
|
|
@@ -237,7 +221,7 @@ export interface IconStyle {
|
|
|
237
221
|
label?: SubtypeExprOrValue<StringType>;
|
|
238
222
|
/** Icon size (xs / sm / md / lg / xl / 2xl) */
|
|
239
223
|
size?: SubtypeExprOrValue<IconSizeType> | IconSizeLiteral;
|
|
240
|
-
/** Icon
|
|
224
|
+
/** Icon set: `solid`, the one East UI draws (#1263) */
|
|
241
225
|
variant?: SubtypeExprOrValue<IconVariantType> | IconVariantLiteral;
|
|
242
226
|
/** Icon tint (CSS colour or Chakra colour token) */
|
|
243
227
|
color?: SubtypeExprOrValue<StringType>;
|
|
@@ -286,7 +270,7 @@ export interface IconStyle {
|
|
|
286
270
|
* `aria-label={label}`. Apps using Icon alongside text that already
|
|
287
271
|
* describes the glyph should leave `label` unset.
|
|
288
272
|
*
|
|
289
|
-
* @property prefix - Font Awesome prefix
|
|
273
|
+
* @property prefix - Font Awesome prefix: `"fas"`, the solid set — East UI draws no other (#1263)
|
|
290
274
|
* @property name - Font Awesome icon name (e.g. "user", "home", "chevron-right")
|
|
291
275
|
* @property label - Accessible label — absent ⇒ decorative (aria-hidden), present ⇒ aria-label
|
|
292
276
|
* @property style - Optional visual style sub-struct (see {@link IconStyleType})
|
|
@@ -313,14 +297,6 @@ export declare const IconType: StructType<{
|
|
|
313
297
|
readonly variant: OptionType<VariantType<{
|
|
314
298
|
/** Solid filled icons (fas) */
|
|
315
299
|
readonly solid: NullType;
|
|
316
|
-
/** Regular outlined icons (far) */
|
|
317
|
-
readonly regular: NullType;
|
|
318
|
-
/** Light weight icons (fal) - requires FA Pro */
|
|
319
|
-
readonly light: NullType;
|
|
320
|
-
/** Thin weight icons (fat) - requires FA Pro */
|
|
321
|
-
readonly thin: NullType;
|
|
322
|
-
/** Brand logos (fab) */
|
|
323
|
-
readonly brands: NullType;
|
|
324
300
|
}>>;
|
|
325
301
|
readonly color: OptionType<StringType>;
|
|
326
302
|
readonly background: OptionType<StringType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/display/icon/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,kBAAkB,EACvB,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,YAAY,EAA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|
|
|
5
5
|
import { FloatType, NullType, OptionType, StructType, StringType, VariantType, } from "@elaraai/east";
|
|
6
6
|
import { ColorSchemeType, OverflowType } from "../../style.js";
|
|
7
7
|
import { PaddingType, MarginType } from "../../layout/style.js";
|
|
8
|
+
export { SOLID_PREFIX, refuseNonSolid } from "./solid.js";
|
|
8
9
|
// ============================================================================
|
|
9
10
|
// Icon Size Type
|
|
10
11
|
// ============================================================================
|
|
@@ -42,25 +43,15 @@ export const IconSizeType = VariantType({
|
|
|
42
43
|
* Font Awesome icon style/variant.
|
|
43
44
|
*
|
|
44
45
|
* @remarks
|
|
45
|
-
*
|
|
46
|
+
* Names the icon set: East UI draws Font Awesome's solid set only (#1263), so
|
|
47
|
+
* `solid` is its one case — the regular, light, thin and brands sets came off
|
|
48
|
+
* with it.
|
|
46
49
|
*
|
|
47
50
|
* @property solid - Solid filled icons (fas)
|
|
48
|
-
* @property regular - Regular outlined icons (far)
|
|
49
|
-
* @property light - Light weight icons (fal) - requires FA Pro
|
|
50
|
-
* @property thin - Thin weight icons (fat) - requires FA Pro
|
|
51
|
-
* @property brands - Brand logos (fab)
|
|
52
51
|
*/
|
|
53
52
|
export const IconVariantType = VariantType({
|
|
54
53
|
/** Solid filled icons (fas) */
|
|
55
54
|
solid: NullType,
|
|
56
|
-
/** Regular outlined icons (far) */
|
|
57
|
-
regular: NullType,
|
|
58
|
-
/** Light weight icons (fal) - requires FA Pro */
|
|
59
|
-
light: NullType,
|
|
60
|
-
/** Thin weight icons (fat) - requires FA Pro */
|
|
61
|
-
thin: NullType,
|
|
62
|
-
/** Brand logos (fab) */
|
|
63
|
-
brands: NullType,
|
|
64
55
|
});
|
|
65
56
|
// ============================================================================
|
|
66
57
|
// Icon Style Type (component styling)
|
|
@@ -75,7 +66,7 @@ export const IconVariantType = VariantType({
|
|
|
75
66
|
* struct.
|
|
76
67
|
*
|
|
77
68
|
* @property size - Icon size (xs / sm / md / lg / xl / 2xl)
|
|
78
|
-
* @property variant - Icon
|
|
69
|
+
* @property variant - Icon set: `solid`, the one East UI draws (#1263)
|
|
79
70
|
* @property color - Explicit icon tint (CSS colour or Chakra colour token)
|
|
80
71
|
* @property background - Explicit icon tile background override
|
|
81
72
|
* @property colorPalette - Colour palette for the icon
|
|
@@ -130,7 +121,7 @@ export const IconStyleType = StructType({
|
|
|
130
121
|
* `aria-label={label}`. Apps using Icon alongside text that already
|
|
131
122
|
* describes the glyph should leave `label` unset.
|
|
132
123
|
*
|
|
133
|
-
* @property prefix - Font Awesome prefix
|
|
124
|
+
* @property prefix - Font Awesome prefix: `"fas"`, the solid set — East UI draws no other (#1263)
|
|
134
125
|
* @property name - Font Awesome icon name (e.g. "user", "home", "chevron-right")
|
|
135
126
|
* @property label - Accessible label — absent ⇒ decorative (aria-hidden), present ⇒ aria-label
|
|
136
127
|
* @property style - Optional visual style sub-struct (see {@link IconStyleType})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/display/icon/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEH,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMhE,+EAA+E;AAC/E,iBAAiB;AACjB,+EAA+E;AAE/E;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACpC,uBAAuB;IACvB,EAAE,EAAE,QAAQ;IACZ,iBAAiB;IACjB,EAAE,EAAE,QAAQ;IACZ,4BAA4B;IAC5B,EAAE,EAAE,QAAQ;IACZ,iBAAiB;IACjB,EAAE,EAAE,QAAQ;IACZ,uBAAuB;IACvB,EAAE,EAAE,QAAQ;IACZ,oBAAoB;IACpB,KAAK,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Ae,CAAC;IACpC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7B,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;IAClC,YAAY,EAAE,UAAU,CAAC,eAAe,CAAC;IACzC,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC;IAC9B,YAAY,EAAE,UAAU,CAAC,UAAU,CAAC;IACpC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC,SAAS,EAAE,UAAU,CAAC,YAAY,CAAC;IACnC,SAAS,EAAE,UAAU,CAAC,YAAY,CAAC;IACnC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7B,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;IAC9B,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC;IAChC,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;IACjC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC;IAChC,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC;IACjC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IAChC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;CACjC,CAAC,CAAC;AAuFH,+EAA+E;AAC/E,YAAY;AACZ,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,UAAU,CAAC;IAC/B,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IAC7B,KAAK,EAAE,UAAU,CAAC,aAAa,CAAC;CACnC,CAAC,CAAC"}
|
|
@@ -43,6 +43,8 @@ export type MetricChipType = typeof MetricChipType;
|
|
|
43
43
|
* `"negative"` / `"neutral"` / `"info"`, or East expression); plus optional
|
|
44
44
|
* `unit` / `icon` content + visual style fields.
|
|
45
45
|
* @returns An East expression of type `UIComponentType`
|
|
46
|
+
* @throws When `icon` is a value of another set than Font Awesome's solid —
|
|
47
|
+
* East UI draws the solid set only (#1263)
|
|
46
48
|
*
|
|
47
49
|
* @remarks
|
|
48
50
|
* The default palette is driven by `tone`; overrides can be applied via
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/metric-chip/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,UAAU,EACV,UAAU,EACV,UAAU,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/metric-chip/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,UAAU,EACV,UAAU,EACV,UAAU,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAkB,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACH,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,iBAAiB,EACzB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACH,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,GACzB,MAAM,YAAY,CAAC;AAMpB;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC;IACpC,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAC7B,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC3B,IAAI,EAAE,kBAAkB,CAAC;IACzB,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACjC,KAAK,EAAE,UAAU,CAAC,mBAAmB,CAAC,CAAC;CAC1C,CAOC,CAAC;AAEH,qCAAqC;AACrC,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AA0CnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,iBAAS,gBAAgB,CACrB,KAAK,EAAE,kBAAkB,CAAC,eAAe,CAAC,EAC1C,OAAO,EAAE,iBAAiB,GAC3B,QAAQ,CAAC,eAAe,CAAC,CAoB3B;AAED,UAAU,mBAAmB;IACzB,IAAI,EAAE,OAAO,gBAAgB,CAAC;IAC9B,KAAK,EAAE;QACH,UAAU,EAAE,OAAO,cAAc,CAAC;QAClC,IAAI,EAAE,OAAO,kBAAkB,CAAC;QAChC,QAAQ,EAAE,OAAO,sBAAsB,CAAC;QACxC,KAAK,EAAE,OAAO,mBAAmB,CAAC;KACrC,CAAC;CACL;AAED;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,EAAE,mBAsExB,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { East, StringType, OptionType, StructType, variant, some, none, } from "@elaraai/east";
|
|
6
6
|
import { DensityType, SizeType } from "../../style.js";
|
|
7
7
|
import { UIComponentType } from "../../component.js";
|
|
8
|
-
import { IconType } from "../icon/types.js";
|
|
8
|
+
import { IconType, refuseNonSolid } from "../icon/types.js";
|
|
9
9
|
import { MetricChipToneType, MetricChipEmphasisType, MetricChipStyleType, } from "./types.js";
|
|
10
10
|
export { MetricChipToneType, MetricChipEmphasisType, MetricChipStyleType, } from "./types.js";
|
|
11
11
|
// ============================================================================
|
|
@@ -80,6 +80,8 @@ function buildMetricChipStyle(options) {
|
|
|
80
80
|
* `"negative"` / `"neutral"` / `"info"`, or East expression); plus optional
|
|
81
81
|
* `unit` / `icon` content + visual style fields.
|
|
82
82
|
* @returns An East expression of type `UIComponentType`
|
|
83
|
+
* @throws When `icon` is a value of another set than Font Awesome's solid —
|
|
84
|
+
* East UI draws the solid set only (#1263)
|
|
83
85
|
*
|
|
84
86
|
* @remarks
|
|
85
87
|
* The default palette is driven by `tone`; overrides can be applied via
|
|
@@ -102,6 +104,7 @@ function buildMetricChipStyle(options) {
|
|
|
102
104
|
* ```
|
|
103
105
|
*/
|
|
104
106
|
function createMetricChip(value, options) {
|
|
107
|
+
refuseNonSolid("MetricChip icon", options.icon);
|
|
105
108
|
const toneValue = typeof options.tone === "string"
|
|
106
109
|
? East.value(variant(options.tone, null), MetricChipToneType)
|
|
107
110
|
: options.tone;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/display/metric-chip/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,IAAI,EACJ,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/display/metric-chip/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAGH,IAAI,EACJ,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,EACP,IAAI,EACJ,IAAI,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACH,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AC,CAAC,CAAC,IAAI;KAC9C,CAAC,EAAE,eAAe,CAAC,CAAC;AACzB,CAAC;AAYD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAwB;IAC3C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,IAAI,EAAE,gBAAgB;IACtB,KAAK,EAAE;QACH;;;;;;;;;;;;;;;WAeG;QACH,UAAU,EAAE,cAAc;QAC1B;;;;;;;WAOG;QACH,IAAI,EAAE,kBAAkB;QACxB;;;;;;WAMG;QACH,QAAQ,EAAE,sBAAsB;QAChC;;;;;;;;;WASG;QACH,KAAK,EAAE,mBAAmB;KAC7B;CACJ,CAAC"}
|
|
@@ -50,6 +50,8 @@ type StatType = typeof StatType;
|
|
|
50
50
|
* (`helpText` / `baseline` / `delta` / `info` / `indicator`), `format`,
|
|
51
51
|
* and visual style fields (see {@link StatStyle})
|
|
52
52
|
* @returns An East expression of type `UIComponentType`
|
|
53
|
+
* @throws When the indicator's `icon` is a value of another set than Font
|
|
54
|
+
* Awesome's solid — East UI draws the solid set only (#1263)
|
|
53
55
|
*
|
|
54
56
|
* @remarks
|
|
55
57
|
* **Indicator shorthand:**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/display/stat/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,KAAK,QAAQ,EAKb,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAY,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD,OAAO,EACH,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,KAAK,SAAS,EAGjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAC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