@akira-io/ui 1.3.1 → 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/README.md +2 -2
- package/dist/blocks.d.ts +100 -10
- package/dist/blocks.js +547 -270
- package/dist/blocks.js.map +1 -1
- package/dist/{chunk-3Z2VGVPI.js → chunk-53V4J7MC.js} +17 -7
- package/dist/chunk-53V4J7MC.js.map +1 -0
- package/dist/chunk-BH3B26DK.js +394 -0
- package/dist/chunk-BH3B26DK.js.map +1 -0
- package/dist/chunk-BP2YDMMI.js +29 -0
- package/dist/chunk-BP2YDMMI.js.map +1 -0
- package/dist/chunk-BR3JI3KN.js +458 -0
- package/dist/chunk-BR3JI3KN.js.map +1 -0
- package/dist/{chunk-YBXRJSR3.js → chunk-CAUTXZ4U.js} +15 -7
- package/dist/chunk-CAUTXZ4U.js.map +1 -0
- package/dist/{chunk-I6VVCFZ2.js → chunk-DPLCEU34.js} +342 -238
- package/dist/chunk-DPLCEU34.js.map +1 -0
- package/dist/chunk-IQMRJXEO.js +5 -4
- package/dist/chunk-IQMRJXEO.js.map +1 -1
- package/dist/chunk-L2H5GIF7.js +5 -4
- package/dist/chunk-L2H5GIF7.js.map +1 -1
- package/dist/{chunk-2V6HUWST.js → chunk-NKPFIA32.js} +19 -6
- package/dist/chunk-NKPFIA32.js.map +1 -0
- package/dist/{chunk-QNF4LJVT.js → chunk-OS7YY5R4.js} +8 -6
- package/dist/chunk-OS7YY5R4.js.map +1 -0
- package/dist/{chunk-IDNOI4OK.js → chunk-PCYYU332.js} +15 -8
- package/dist/chunk-PCYYU332.js.map +1 -0
- package/dist/{chunk-KHOA4TEI.js → chunk-PPWJK5T3.js} +60 -25
- package/dist/chunk-PPWJK5T3.js.map +1 -0
- package/dist/{chunk-N2KIFFI7.js → chunk-QZRSQVCN.js} +30 -34
- package/dist/chunk-QZRSQVCN.js.map +1 -0
- package/dist/{chunk-SZUXATOF.js → chunk-XLAOE5MV.js} +170 -76
- package/dist/chunk-XLAOE5MV.js.map +1 -0
- package/dist/{chunk-B3L6PRLX.js → chunk-ZQXZ4UGE.js} +208 -100
- package/dist/chunk-ZQXZ4UGE.js.map +1 -0
- package/dist/code.d.ts +2 -2
- package/dist/code.js +96 -52
- package/dist/code.js.map +1 -1
- package/dist/{context-OwSoVEri.d.ts → context-2wTOwxCk.d.ts} +13 -5
- package/dist/editor.d.ts +1 -1
- package/dist/editor.js +135 -52
- package/dist/editor.js.map +1 -1
- package/dist/{field-DWm5NXeV.d.ts → field-C1TdmC2t.d.ts} +1 -1
- package/dist/index.d.ts +15 -12
- package/dist/index.js +1105 -633
- package/dist/index.js.map +1 -1
- package/dist/inertia.d.ts +11 -3
- package/dist/inertia.js +66 -12
- package/dist/inertia.js.map +1 -1
- package/dist/{input-Dxnsxi-f.d.ts → input-B4uEClxB.d.ts} +1 -1
- package/dist/{json-viewer-BARA2RCW.d.ts → json-viewer-Bssv9mTD.d.ts} +1 -1
- package/dist/locales/fr.d.ts +44 -0
- package/dist/locales/fr.js +248 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/pt.d.ts +10 -9
- package/dist/locales/pt.js +40 -3
- package/dist/locales/pt.js.map +1 -1
- package/dist/shells.d.ts +46 -5
- package/dist/shells.js +211 -71
- package/dist/shells.js.map +1 -1
- package/dist/{sidebar-Bp6Q46j-.d.ts → sidebar-BLL2tgTt.d.ts} +2 -2
- package/dist/types-1LUmNJf_.d.ts +41 -0
- package/dist/{types-cmBL8zOc.d.ts → types-CMZRvMV5.d.ts} +1 -1
- package/dist/{types-B-eGPoFD.d.ts → types-CfAUvz--.d.ts} +1 -1
- package/package.json +8 -2
- package/theme.css +11 -0
- package/dist/chunk-2V6HUWST.js.map +0 -1
- package/dist/chunk-3Z2VGVPI.js.map +0 -1
- package/dist/chunk-B3L6PRLX.js.map +0 -1
- package/dist/chunk-I6VVCFZ2.js.map +0 -1
- package/dist/chunk-IDNOI4OK.js.map +0 -1
- package/dist/chunk-KHOA4TEI.js.map +0 -1
- package/dist/chunk-N2KIFFI7.js.map +0 -1
- package/dist/chunk-NGMG2UWX.js +0 -172
- package/dist/chunk-NGMG2UWX.js.map +0 -1
- package/dist/chunk-QNF4LJVT.js.map +0 -1
- package/dist/chunk-SZUXATOF.js.map +0 -1
- package/dist/chunk-YBXRJSR3.js.map +0 -1
- package/dist/types-u1qfmJQi.d.ts +0 -28
package/dist/locales/pt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/locales/pt.ts"],"names":[],"mappings":";AA2BO,IAAM,aAAA,GAA6B;AAAA,EACtC,YAAA,EAAc,OAAA;AAAA,EACd,SAAA,EAAW;AACf;AAEO,IAAM,wBAAA,GAAmD;AAAA,EAC5D,UAAA,EAAY,cAAA;AAAA,EACZ,UAAA,EAAY,OAAA;AAAA,EACZ,SAAA,EAAW,QAAA;AAAA,EACX,WAAA,EAAa;AACjB;AAEO,IAAM,iBAAA,GAAqC;AAAA,EAC9C,iBAAA,EAAmB,cAAA;AAAA,EACnB,UAAA,EAAY,eAAA;AAAA,EACZ,WAAA,EAAa,MAAA;AAAA,EACb,iBAAA,EAAmB,gBAAA;AAAA,EACnB,iBAAiB,CAAC,IAAA,EAAM,UAAU,CAAA,UAAA,EAAU,IAAI,OAAO,KAAK,CAAA,CAAA;AAAA,EAC5D,cAAA,EAAgB,mBAAA;AAAA,EAChB,YAAY,CAAC,KAAA,KAAU,GAAG,KAAA,CAAM,cAAA,CAAe,OAAO,CAAC,CAAA,SAAA;AAC3D;AAEO,IAAM,qBAAA,GAA6C;AAAA,EACtD,SAAA,EAAW,QAAA;AAAA,EACX,UAAA,EAAY;AAChB;AAEO,IAAM,mBAAA,GAAyC;AAAA,EAClD,WAAA,EAAa,UAAA;AAAA,EACb,SAAA,EAAW,SAAA;AAAA,EACX,WAAA,EAAa;AACjB;AAEO,IAAM,uBAAA,GAAiD;AAAA,EAC1D,UAAA,EAAY,YAAA;AAAA,EACZ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EAAY,kBAAA;AAAA,EACZ,SAAA,EAAW,iBAAA;AAAA,EACX,sBAAA,EAAwB,8BAAA;AAAA,EACxB,UAAA,EAAY,kBAAA;AAAA,EACZ,mBAAA,EAAqB,qBAAA;AAAA,EACrB,iBAAA,EAAmB,mBAAA;AAAA,EACnB,eAAA,EAAiB,iBAAA;AAAA,EACjB,UAAA,EAAY,kBAAA;AAAA,EACZ,eAAA,EAAiB,uBAAA;AAAA,EACjB,aAAA,EAAe,qBAAA;AAAA,EACf,UAAA,EAAY,kBAAA;AAAA,EACZ,aAAA,EAAe,qBAAA;AAAA,EACf,UAAA,EAAY,kBAAA;AAAA,EACZ,QAAA,EAAU,gBAAA;AAAA,EACV,IAAA,EAAM;AACV","file":"pt.js","sourcesContent":["import type { CommandPaletteLabels } from '@/blocks/command-palette';\nimport type { DangerZoneLabels } from '@/blocks/danger-zone';\nimport type {\n DateFilterLabels,\n DateFilterOption,\n} from '@/blocks/date-filter/types';\nimport type { FormOverlayLabels } from '@/blocks/form-overlay';\nimport type { SettingsLabels } from '@/blocks/settings-page';\nimport type { TourLabels } from '@/blocks/tour/types';\nimport type { TwoFactorLabels } from '@/blocks/two-factor/types';\nimport type { AlertLabels } from '@/components/ui/alert';\nimport type { AppearanceToggleLabels } from '@/components/ui/appearance-toggle';\nimport type { CodeBlockLabels } from '@/components/ui/code-block';\nimport type { ComboboxLabels } from '@/components/ui/combobox';\nimport type { ConfirmDialogLabels } from '@/components/ui/confirm-dialog';\nimport type { CopyButtonLabels } from '@/components/ui/copy-button';\nimport type { DataTableLabels } from '@/components/ui/data-table';\nimport type { DataTableFacetedFilterLabels } from '@/components/ui/data-table-faceted-filter';\nimport type { DatePickerLabels } from '@/components/ui/date-picker';\nimport type { DateRangeFilterLabels } from '@/components/ui/date-range-filter';\nimport type { FieldLabels } from '@/components/ui/field';\nimport type { FloatingSheetLabels } from '@/components/ui/floating-sheet';\nimport type { JsonViewerLabels } from '@/components/ui/json-viewer';\nimport type { PasswordInputLabels } from '@/components/ui/password-input';\nimport type { SaveStatusLabels } from '@/components/ui/save-status';\nimport type { UiLabels } from '@/locales/context';\n\nexport const alertLabelsPt: AlertLabels = {\n warningLabel: 'Aviso',\n infoLabel: 'Informação',\n};\n\nexport const appearanceToggleLabelsPt: AppearanceToggleLabels = {\n groupLabel: 'Aparência',\n lightLabel: 'Claro',\n darkLabel: 'Escuro',\n systemLabel: 'Sistema',\n};\n\nexport const dataTableLabelsPt: DataTableLabels = {\n searchPlaceholder: 'Pesquisar...',\n emptyLabel: 'Sem registos.',\n createLabel: 'Novo',\n clearFiltersLabel: 'Limpar filtros',\n paginationLabel: (page, pages) => `Página ${page} de ${pages}`,\n noOptionsLabel: 'Sem opções.',\n totalLabel: (total) => `${total.toLocaleString('pt-PT')} registos`,\n};\n\nexport const floatingSheetLabelsPt: FloatingSheetLabels = {\n backLabel: 'Voltar',\n closeLabel: 'Fechar',\n};\n\nexport const formOverlayLabelsPt: FormOverlayLabels = {\n cancelLabel: 'Cancelar',\n saveLabel: 'Guardar',\n savingLabel: 'A guardar...',\n};\n\nexport const dateRangeFilterLabelsPt: DateRangeFilterLabels = {\n emptyLabel: 'Período',\n dateFormat: 'dd/MM/yy',\n};\n\nexport const datePickerLabelsPt: DatePickerLabels = {\n placeholder: 'Escolha uma data',\n dateFormat: 'dd/MM/yy',\n clearLabel: 'Limpar data',\n};\n\nexport const comboboxLabelsPt: ComboboxLabels = {\n placeholder: 'Seleccione uma opção',\n searchPlaceholder: 'Pesquisar...',\n emptyText: 'Sem resultados.',\n};\n\nexport const confirmDialogLabelsPt: ConfirmDialogLabels = {\n title: 'Confirmar Ação',\n description:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n};\n\nexport const fieldLabelsPt: FieldLabels = {\n requiredLabel: 'Obrigatório',\n};\n\nexport const passwordInputLabelsPt: PasswordInputLabels = {\n showLabel: 'Mostrar palavra-passe',\n hideLabel: 'Ocultar palavra-passe',\n};\n\nexport const dataTableFacetedFilterLabelsPt: DataTableFacetedFilterLabels = {\n noOptionsLabel: 'Sem opções.',\n};\n\nexport const commandPaletteLabelsPt: CommandPaletteLabels = {\n placeholder: 'Pesquisar...',\n noResultsLabel: 'Nenhum resultado encontrado',\n};\n\nexport const tourLabelsPt: TourLabels = {\n next: 'Seguinte',\n previous: 'Anterior',\n done: 'Concluir',\n progress: '{{current}} de {{total}}',\n};\n\nexport const dateFilterPresetsPt: DateFilterOption[] = [\n { value: 'today', label: 'Hoje' },\n { value: 'yesterday', label: 'Ontem' },\n { value: 'previous_week', label: 'Semana anterior' },\n { value: 'previous_7_days', label: 'Últimos 7 dias' },\n { value: 'previous_30_days', label: 'Últimos 30 dias' },\n { value: 'previous_month', label: 'Mês anterior' },\n { value: 'previous_3_months', label: 'Últimos 3 meses' },\n { value: 'previous_12_months', label: 'Últimos 12 meses' },\n];\n\nexport const dateFilterOperatorsPt: DateFilterOption[] = [\n { value: 'between', label: 'Entre' },\n { value: 'before', label: 'Antes de' },\n { value: 'on', label: 'Em' },\n { value: 'after', label: 'Depois de' },\n];\n\nexport const dateFilterUnitsPt: DateFilterOption[] = [\n { value: 'day', label: 'dias' },\n { value: 'week', label: 'semanas' },\n { value: 'month', label: 'meses' },\n { value: 'quarter', label: 'trimestres' },\n { value: 'year', label: 'anos' },\n];\n\nexport const dateFilterLabelsPt: DateFilterLabels = {\n all: 'Todo o período',\n fixed: 'Intervalo fixo...',\n relative: 'Intervalo relativo...',\n relativeTitle: 'Intervalo relativo',\n apply: 'Aplicar filtro',\n back: 'Voltar',\n latest: 'Últimos',\n ago: 'há',\n includeCurrent: 'Incluir período atual',\n startingAgo: 'A começar há',\n removeOffset: 'Remover deslocamento',\n fallback: 'Data',\n};\n\nexport const settingsLabelsPt: SettingsLabels = {\n back: 'Voltar',\n};\n\nexport const saveStatusLabelsPt: SaveStatusLabels = {\n error: 'Não foi possível guardar as alterações',\n idle: 'As alterações são guardadas automaticamente',\n saved: 'Guardado',\n saving: 'A guardar',\n};\n\nexport const copyButtonLabelsPt: CopyButtonLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n};\n\nexport const twoFactorLabelsPt: TwoFactorLabels = {\n setupTitle: 'Autenticação de dois fatores',\n setupDescription:\n 'Acrescente um segundo passo ao seu início de sessão com uma aplicação autenticadora.',\n pendingLabel: 'A preparar a sua chave de configuração',\n scanTitle: 'Leia o código',\n scanDescription:\n 'Abra a aplicação autenticadora e leia o código abaixo para adicionar esta conta.',\n qrFallbackLabel: 'O código QR ainda não está disponível.',\n manualKeyLabel: 'Chave de configuração',\n manualKeyDescription:\n 'Introduza esta chave manualmente se a aplicação não conseguir ler o código.',\n manualKeyRevealLabel: 'Mostrar chave',\n manualKeyHideLabel: 'Ocultar chave',\n continueLabel: 'Continuar',\n confirmTitle: 'Confirme o código',\n confirmDescription:\n 'Introduza o código de seis dígitos apresentado na aplicação autenticadora.',\n codeLabel: 'Código de autenticação',\n recoveryCodeLabel: 'Código de recuperação',\n recoveryCodePlaceholder: 'Introduza um código de recuperação',\n useRecoveryCodeLabel: 'Usar um código de recuperação',\n useCodeLabel: 'Usar um código de autenticação',\n verifyLabel: 'Verificar',\n verifyingLabel: 'A verificar',\n errorFallbackLabel: 'Não resultou. Tente novamente.',\n cancelLabel: 'Cancelar',\n challengeTitle: 'Confirmação em dois passos',\n challengeDescription:\n 'Confirme o acesso à sua conta com o código da aplicação autenticadora.',\n recoveryTitle: 'Códigos de recuperação',\n recoveryDescription:\n 'Guarde estes códigos em lugar seguro. Cada um permite um início de sessão se perder o dispositivo.',\n recoveryWarning:\n 'São mostrados uma única vez e não podem ser lidos depois.',\n revealLabel: 'Mostrar códigos',\n hideLabel: 'Ocultar códigos',\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n copyFailedLabel:\n 'Não é possível copiar aqui. Selecione os códigos manualmente.',\n regenerateLabel: 'Gerar novos códigos',\n doneLabel: 'Concluir',\n disableLabel: 'Desativar autenticação de dois fatores',\n disableTitle: 'Desativar autenticação de dois fatores',\n disableDescription:\n 'A sua conta fica protegida apenas pela palavra-passe. Os códigos de recuperação deixam de funcionar.',\n disableConfirmLabel: 'Desativar',\n disableCancelLabel: 'Manter ativa',\n};\n\nexport const dangerZoneLabelsPt: DangerZoneLabels = {\n title: 'Zona de perigo',\n description: 'Estas ações são permanentes e não podem ser desfeitas.',\n actionLabel: 'Eliminar',\n confirmTitle: 'Confirmar Ação',\n confirmDescription:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n requiredValueLabel: 'Escreva {{value}} para confirmar',\n};\n\nexport const codeBlockLabelsPt: CodeBlockLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n};\n\nexport const jsonViewerLabelsPt: JsonViewerLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n circularLabel: 'Referência circular',\n entriesLabel: (count) => `${count} ${count === 1 ? 'entrada' : 'entradas'}`,\n};\n\nexport const ptLabels: UiLabels = {\n alert: alertLabelsPt,\n codeBlock: codeBlockLabelsPt,\n combobox: comboboxLabelsPt,\n commandPalette: commandPaletteLabelsPt,\n confirmDialog: confirmDialogLabelsPt,\n appearanceToggle: appearanceToggleLabelsPt,\n copyButton: copyButtonLabelsPt,\n dataTable: dataTableLabelsPt,\n dataTableFacetedFilter: dataTableFacetedFilterLabelsPt,\n dateFilter: dateFilterLabelsPt,\n dateFilterOperators: dateFilterOperatorsPt,\n dateFilterPresets: dateFilterPresetsPt,\n dateFilterUnits: dateFilterUnitsPt,\n datePicker: datePickerLabelsPt,\n dateRangeFilter: dateRangeFilterLabelsPt,\n floatingSheet: floatingSheetLabelsPt,\n jsonViewer: jsonViewerLabelsPt,\n passwordInput: passwordInputLabelsPt,\n saveStatus: saveStatusLabelsPt,\n settings: settingsLabelsPt,\n tour: tourLabelsPt,\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../../src/locales/pt.ts"],"sourcesContent":["import type { CommandPaletteLabels } from '@/blocks/command-palette';\nimport type { DangerZoneLabels } from '@/blocks/danger-zone';\nimport type {\n DateFilterLabels,\n DateFilterOption,\n} from '@/blocks/date-filter/types';\nimport type { FormOverlayLabels } from '@/blocks/form-overlay';\nimport type { LoginFormLabels } from '@/blocks/login-form/types';\nimport type { SettingsLabels } from '@/blocks/settings-page';\nimport type { TourLabels } from '@/blocks/tour/types';\nimport type { TwoFactorLabels } from '@/blocks/two-factor/types';\nimport type { AlertLabels } from '@/components/ui/alert';\nimport type { AppearanceToggleLabels } from '@/components/ui/appearance-toggle';\nimport type { CodeBlockLabels } from '@/components/ui/code-block';\nimport type { ComboboxLabels } from '@/components/ui/combobox';\nimport type { ConfirmDialogLabels } from '@/components/ui/confirm-dialog';\nimport type { CopyButtonLabels } from '@/components/ui/copy-button';\nimport type { DataTableLabels } from '@/components/ui/data-table';\nimport type { DataTableFacetedFilterLabels } from '@/components/ui/data-table-faceted-filter';\nimport type { DatePickerLabels } from '@/components/ui/date-picker';\nimport type { DateRangeFilterLabels } from '@/components/ui/date-range-filter';\nimport type { FieldLabels } from '@/components/ui/field';\nimport type { FloatingSheetLabels } from '@/components/ui/floating-sheet';\nimport type { JsonViewerLabels } from '@/components/ui/json-viewer';\nimport type { PasswordInputLabels } from '@/components/ui/password-input';\nimport type { SaveStatusLabels } from '@/components/ui/save-status';\nimport type { FullUiLabels } from '@/locales/context';\n\nexport const alertLabelsPt: AlertLabels = {\n warningLabel: 'Aviso',\n infoLabel: 'Informação',\n};\n\nexport const appearanceToggleLabelsPt: AppearanceToggleLabels = {\n groupLabel: 'Aparência',\n lightLabel: 'Claro',\n darkLabel: 'Escuro',\n systemLabel: 'Sistema',\n};\n\nexport const dataTableLabelsPt: DataTableLabels = {\n searchPlaceholder: 'Pesquisar...',\n emptyLabel: 'Sem registos.',\n createLabel: 'Novo',\n clearFiltersLabel: 'Limpar filtros',\n paginationLabel: (page, pages) => `Página ${page} de ${pages}`,\n noOptionsLabel: 'Sem opções.',\n totalLabel: (total) => `${total.toLocaleString('pt-PT')} registos`,\n};\n\nexport const floatingSheetLabelsPt: FloatingSheetLabels = {\n backLabel: 'Voltar',\n closeLabel: 'Fechar',\n};\n\nexport const formOverlayLabelsPt: FormOverlayLabels = {\n cancelLabel: 'Cancelar',\n saveLabel: 'Guardar',\n savingLabel: 'A guardar...',\n};\n\nexport const dateRangeFilterLabelsPt: DateRangeFilterLabels = {\n emptyLabel: 'Período',\n dateFormat: 'dd/MM/yy',\n};\n\nexport const datePickerLabelsPt: DatePickerLabels = {\n placeholder: 'Escolha uma data',\n dateFormat: 'dd/MM/yy',\n clearLabel: 'Limpar data',\n};\n\nexport const comboboxLabelsPt: ComboboxLabels = {\n placeholder: 'Seleccione uma opção',\n searchPlaceholder: 'Pesquisar...',\n emptyText: 'Sem resultados.',\n};\n\nexport const confirmDialogLabelsPt: ConfirmDialogLabels = {\n title: 'Confirmar Ação',\n description:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n};\n\nexport const fieldLabelsPt: FieldLabels = {\n requiredLabel: 'Obrigatório',\n};\n\nexport const passwordInputLabelsPt: PasswordInputLabels = {\n showLabel: 'Mostrar palavra-passe',\n hideLabel: 'Ocultar palavra-passe',\n};\n\nexport const dataTableFacetedFilterLabelsPt: DataTableFacetedFilterLabels = {\n noOptionsLabel: 'Sem opções.',\n};\n\nexport const commandPaletteLabelsPt: CommandPaletteLabels = {\n placeholder: 'Pesquisar...',\n noResultsLabel: 'Nenhum resultado encontrado',\n};\n\nexport const tourLabelsPt: TourLabels = {\n next: 'Seguinte',\n previous: 'Anterior',\n done: 'Concluir',\n progress: '{{current}} de {{total}}',\n};\n\nexport const dateFilterPresetsPt: DateFilterOption[] = [\n { value: 'today', label: 'Hoje' },\n { value: 'yesterday', label: 'Ontem' },\n { value: 'previous_week', label: 'Semana anterior' },\n { value: 'previous_7_days', label: 'Últimos 7 dias' },\n { value: 'previous_30_days', label: 'Últimos 30 dias' },\n { value: 'previous_month', label: 'Mês anterior' },\n { value: 'previous_3_months', label: 'Últimos 3 meses' },\n { value: 'previous_12_months', label: 'Últimos 12 meses' },\n];\n\nexport const dateFilterOperatorsPt: DateFilterOption[] = [\n { value: 'between', label: 'Entre' },\n { value: 'before', label: 'Antes de' },\n { value: 'on', label: 'Em' },\n { value: 'after', label: 'Depois de' },\n];\n\nexport const dateFilterUnitsPt: DateFilterOption[] = [\n { value: 'day', label: 'dias' },\n { value: 'week', label: 'semanas' },\n { value: 'month', label: 'meses' },\n { value: 'quarter', label: 'trimestres' },\n { value: 'year', label: 'anos' },\n];\n\nexport const dateFilterLabelsPt: DateFilterLabels = {\n all: 'Todo o período',\n fixed: 'Intervalo fixo...',\n relative: 'Intervalo relativo...',\n relativeTitle: 'Intervalo relativo',\n apply: 'Aplicar filtro',\n back: 'Voltar',\n latest: 'Últimos',\n ago: 'há',\n includeCurrent: 'Incluir período atual',\n startingAgo: 'A começar há',\n removeOffset: 'Remover deslocamento',\n fallback: 'Data',\n};\n\nexport const settingsLabelsPt: SettingsLabels = {\n back: 'Voltar',\n};\n\nexport const saveStatusLabelsPt: SaveStatusLabels = {\n error: 'Não foi possível guardar as alterações',\n idle: 'As alterações são guardadas automaticamente',\n saved: 'Guardado',\n saving: 'A guardar',\n};\n\nexport const copyButtonLabelsPt: CopyButtonLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n};\n\nexport const loginFormLabelsPt: LoginFormLabels = {\n emailLabel: 'Endereço de email',\n emailPlaceholder: 'email@exemplo.com',\n passwordLabel: 'Palavra-passe',\n passwordPlaceholder: 'Palavra-passe',\n forgotPasswordLabel: 'Esqueceu-se da palavra-passe?',\n rememberLabel: 'Manter sessão iniciada',\n submitLabel: 'Entrar',\n submittingLabel: 'A entrar',\n};\n\nexport const twoFactorLabelsPt: TwoFactorLabels = {\n setupTitle: 'Autenticação de dois fatores',\n setupDescription:\n 'Acrescente um segundo passo ao seu início de sessão com uma aplicação autenticadora.',\n pendingLabel: 'A preparar a sua chave de configuração',\n scanTitle: 'Leia o código',\n scanDescription:\n 'Abra a aplicação autenticadora e leia o código abaixo para adicionar esta conta.',\n qrFallbackLabel: 'O código QR ainda não está disponível.',\n manualKeyLabel: 'Chave de configuração',\n manualKeyDescription:\n 'Introduza esta chave manualmente se a aplicação não conseguir ler o código.',\n manualKeyRevealLabel: 'Mostrar chave',\n manualKeyHideLabel: 'Ocultar chave',\n continueLabel: 'Continuar',\n confirmTitle: 'Confirme o código',\n confirmDescription:\n 'Introduza o código de seis dígitos apresentado na aplicação autenticadora.',\n codeLabel: 'Código de autenticação',\n recoveryCodeLabel: 'Código de recuperação',\n recoveryCodePlaceholder: 'Introduza um código de recuperação',\n useRecoveryCodeLabel: 'Usar um código de recuperação',\n useCodeLabel: 'Usar um código de autenticação',\n verifyLabel: 'Verificar',\n verifyingLabel: 'A verificar',\n errorFallbackLabel: 'Não resultou. Tente novamente.',\n cancelLabel: 'Cancelar',\n challengeTitle: 'Confirmação em dois passos',\n challengeDescription:\n 'Confirme o acesso à sua conta com o código da aplicação autenticadora.',\n recoveryTitle: 'Códigos de recuperação',\n recoveryDescription:\n 'Guarde estes códigos em lugar seguro. Cada um permite um início de sessão se perder o dispositivo.',\n recoveryWarning:\n 'São mostrados uma única vez e não podem ser lidos depois.',\n revealLabel: 'Mostrar códigos',\n hideLabel: 'Ocultar códigos',\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n copyFailedLabel:\n 'Não é possível copiar aqui. Selecione os códigos manualmente.',\n regenerateLabel: 'Gerar novos códigos',\n doneLabel: 'Concluir',\n disableLabel: 'Desativar autenticação de dois fatores',\n disableTitle: 'Desativar autenticação de dois fatores',\n disableDescription:\n 'A sua conta fica protegida apenas pela palavra-passe. Os códigos de recuperação deixam de funcionar.',\n disableConfirmLabel: 'Desativar',\n disableCancelLabel: 'Manter ativa',\n};\n\nexport const dangerZoneLabelsPt: DangerZoneLabels = {\n title: 'Zona de perigo',\n description: 'Estas ações são permanentes e não podem ser desfeitas.',\n actionLabel: 'Eliminar',\n confirmTitle: 'Confirmar Ação',\n confirmDescription:\n 'Tem a certeza que pretende continuar? Esta ação não pode ser desfeita.',\n confirmText: 'Confirmar',\n cancelText: 'Cancelar',\n requiredValueLabel: 'Escreva {{value}} para confirmar',\n};\n\nexport const codeBlockLabelsPt: CodeBlockLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n};\n\nexport const jsonViewerLabelsPt: JsonViewerLabels = {\n copyLabel: 'Copiar',\n copiedLabel: 'Copiado',\n expandLabel: 'Expandir',\n collapseLabel: 'Recolher',\n circularLabel: 'Referência circular',\n entriesLabel: (count) => `${count} ${count === 1 ? 'entrada' : 'entradas'}`,\n};\n\nexport const ptLabels: FullUiLabels = {\n alert: alertLabelsPt,\n codeBlock: codeBlockLabelsPt,\n combobox: comboboxLabelsPt,\n commandPalette: commandPaletteLabelsPt,\n confirmDialog: confirmDialogLabelsPt,\n appearanceToggle: appearanceToggleLabelsPt,\n copyButton: copyButtonLabelsPt,\n dataTable: dataTableLabelsPt,\n dataTableFacetedFilter: dataTableFacetedFilterLabelsPt,\n dateFilter: dateFilterLabelsPt,\n dateFilterOperators: dateFilterOperatorsPt,\n dateFilterPresets: dateFilterPresetsPt,\n dateFilterUnits: dateFilterUnitsPt,\n datePicker: datePickerLabelsPt,\n dateRangeFilter: dateRangeFilterLabelsPt,\n floatingSheet: floatingSheetLabelsPt,\n jsonViewer: jsonViewerLabelsPt,\n loginForm: loginFormLabelsPt,\n passwordInput: passwordInputLabelsPt,\n saveStatus: saveStatusLabelsPt,\n settings: settingsLabelsPt,\n tour: tourLabelsPt,\n};\n"],"mappings":";AA4BO,IAAM,gBAA6B;AAAA,EACtC,cA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Ae;AAAA,EACf,cAAc,CAAC,UAAU,GAAG,KAAK,IAAI,UAAU,IAAI,YAAY,UAAU;AAC7E;AAEO,IAAM,WAAyB;AAAA,EAClC,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,wBAAwB;AAAA,EACxB,YAAY;AAAA,EACZ,qBAAqB;AAAA,EACrB,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,MAAM;AACV;","names":[]}
|
package/dist/shells.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { U as UrlLike, N as NavGroup,
|
|
2
|
-
export { C as Column, a as ColumnDef, F as FilterFn, I as IconComponent, e as LinkProps,
|
|
1
|
+
import { U as UrlLike, N as NavGroup, c as NavItem, d as SharedUser, L as LinkComponent, B as BreadcrumbItem, S as SlotNameProps } from './types-CMZRvMV5.js';
|
|
2
|
+
export { C as Column, a as ColumnDef, F as FilterFn, I as IconComponent, e as LinkProps, b as LucideIcon, R as Row, T as TableInstance } from './types-CMZRvMV5.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactNode, ComponentPropsWithoutRef, PropsWithChildren } from 'react';
|
|
5
|
-
import { d as SidebarGroup } from './sidebar-
|
|
5
|
+
import { d as SidebarGroup } from './sidebar-BLL2tgTt.js';
|
|
6
6
|
import '@tanstack/react-table';
|
|
7
7
|
import 'lucide-react';
|
|
8
8
|
import 'class-variance-authority/types';
|
|
9
9
|
import 'class-variance-authority';
|
|
10
|
-
import './input-
|
|
10
|
+
import './input-B4uEClxB.js';
|
|
11
11
|
import '@radix-ui/react-separator';
|
|
12
12
|
import '@radix-ui/react-tooltip';
|
|
13
13
|
|
|
@@ -77,6 +77,47 @@ interface AppSidebarHeaderProps {
|
|
|
77
77
|
declare function AppSidebarHeader({ breadcrumbs, linkComponent, onSearchClick, searchLabel, }: AppSidebarHeaderProps): React.JSX.Element;
|
|
78
78
|
|
|
79
79
|
type AuthArrangement = 'centred' | 'split';
|
|
80
|
+
declare function useAuthArrangement(): AuthArrangement;
|
|
81
|
+
interface AuthShellRootProps {
|
|
82
|
+
arrangement?: AuthArrangement;
|
|
83
|
+
appearanceControl?: ReactNode;
|
|
84
|
+
children: ReactNode;
|
|
85
|
+
className?: string;
|
|
86
|
+
}
|
|
87
|
+
declare function AuthShellRoot({ arrangement, appearanceControl, children, className, slotName, }: AuthShellRootProps & SlotNameProps): React.JSX.Element;
|
|
88
|
+
interface AuthShellMainProps {
|
|
89
|
+
children: ReactNode;
|
|
90
|
+
}
|
|
91
|
+
declare function AuthShellMain({ children, slotName, }: AuthShellMainProps & SlotNameProps): React.JSX.Element;
|
|
92
|
+
interface AuthShellPanelProps {
|
|
93
|
+
decorative?: boolean;
|
|
94
|
+
arrangement?: AuthArrangement;
|
|
95
|
+
children: ReactNode;
|
|
96
|
+
}
|
|
97
|
+
declare function AuthShellPanel({ decorative, arrangement, children, slotName, }: AuthShellPanelProps & SlotNameProps): React.JSX.Element | null;
|
|
98
|
+
interface AuthShellSurfaceProps {
|
|
99
|
+
children: ReactNode;
|
|
100
|
+
className?: string;
|
|
101
|
+
}
|
|
102
|
+
declare function AuthShellSurface({ children, className, slotName, }: AuthShellSurfaceProps & SlotNameProps): React.JSX.Element;
|
|
103
|
+
interface AuthShellLogoProps {
|
|
104
|
+
children: ReactNode;
|
|
105
|
+
}
|
|
106
|
+
declare function AuthShellLogo({ children, slotName, }: AuthShellLogoProps & SlotNameProps): React.JSX.Element;
|
|
107
|
+
interface AuthShellHeadingProps {
|
|
108
|
+
title: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
align?: 'start' | 'center';
|
|
111
|
+
}
|
|
112
|
+
declare function AuthShellHeading({ title, description, align, slotName, }: AuthShellHeadingProps & SlotNameProps): React.JSX.Element;
|
|
113
|
+
interface AuthShellBodyProps {
|
|
114
|
+
children: ReactNode;
|
|
115
|
+
}
|
|
116
|
+
declare function AuthShellBody({ children, slotName, }: AuthShellBodyProps & SlotNameProps): React.JSX.Element;
|
|
117
|
+
interface AuthShellFooterProps {
|
|
118
|
+
children: ReactNode;
|
|
119
|
+
}
|
|
120
|
+
declare function AuthShellFooter({ children, slotName, }: AuthShellFooterProps & SlotNameProps): React.JSX.Element;
|
|
80
121
|
interface AuthShellProps {
|
|
81
122
|
logo?: ReactNode;
|
|
82
123
|
title: string;
|
|
@@ -155,4 +196,4 @@ interface UserMenuContentProps {
|
|
|
155
196
|
}
|
|
156
197
|
declare function UserMenuContent({ user, settingsHref, logoutHref, linkComponent, onSettingsClick, onLogout, settingsLabel, logoutLabel, }: UserMenuContentProps): React.JSX.Element;
|
|
157
198
|
|
|
158
|
-
export { AppContent, AppShell, AppSidebar, AppSidebarHeader, type Appearance, type AuthArrangement, AuthShell, type AuthShellProps, BreadcrumbItem, Breadcrumbs, Heading, LinkComponent, NavFooter, NavGroup, NavItem, NavMain, type NavMainProps, NavUser, SIDEBAR_COLLAPSED_GROUPS_KEY, SettingsLayout, type SettingsLayoutProps, SharedUser, SlotNameProps, UrlLike, UserInfo, UserMenuContent, hrefToString, initializeTheme, useAppearance, useCollapsedGroup, useInitials, useIsMobile };
|
|
199
|
+
export { AppContent, AppShell, AppSidebar, AppSidebarHeader, type Appearance, type AuthArrangement, AuthShell, AuthShellBody, type AuthShellBodyProps, AuthShellFooter, type AuthShellFooterProps, AuthShellHeading, type AuthShellHeadingProps, AuthShellLogo, type AuthShellLogoProps, AuthShellMain, type AuthShellMainProps, AuthShellPanel, type AuthShellPanelProps, type AuthShellProps, AuthShellRoot, type AuthShellRootProps, AuthShellSurface, type AuthShellSurfaceProps, BreadcrumbItem, Breadcrumbs, Heading, LinkComponent, NavFooter, NavGroup, NavItem, NavMain, type NavMainProps, NavUser, SIDEBAR_COLLAPSED_GROUPS_KEY, SettingsLayout, type SettingsLayoutProps, SharedUser, SlotNameProps, UrlLike, UserInfo, UserMenuContent, hrefToString, initializeTheme, useAppearance, useAuthArrangement, useCollapsedGroup, useInitials, useIsMobile };
|
package/dist/shells.js
CHANGED
|
@@ -1,13 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
import { Card } from './chunk-2V6HUWST.js';
|
|
3
|
-
export { AppSidebar, AppSidebarHeader, Breadcrumbs, Heading, NavFooter, NavMain, NavUser, SIDEBAR_COLLAPSED_GROUPS_KEY, SettingsLayout, UserInfo, UserMenuContent, useCollapsedGroup, useInitials } from './chunk-SZUXATOF.js';
|
|
4
|
-
import { SidebarInset, SidebarProvider } from './chunk-B3L6PRLX.js';
|
|
5
|
-
export { useIsMobile } from './chunk-B3L6PRLX.js';
|
|
6
|
-
export { hrefToString } from './chunk-L2H5GIF7.js';
|
|
7
|
-
import './chunk-3Z2VGVPI.js';
|
|
8
|
-
import { cn } from './chunk-KHOA4TEI.js';
|
|
9
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
1
|
+
'use client';
|
|
10
2
|
|
|
3
|
+
"use client";
|
|
4
|
+
import {
|
|
5
|
+
initializeTheme,
|
|
6
|
+
useAppearance
|
|
7
|
+
} from "./chunk-IQMRJXEO.js";
|
|
8
|
+
import {
|
|
9
|
+
Card
|
|
10
|
+
} from "./chunk-NKPFIA32.js";
|
|
11
|
+
import {
|
|
12
|
+
AppSidebar,
|
|
13
|
+
AppSidebarHeader,
|
|
14
|
+
Breadcrumbs,
|
|
15
|
+
Heading,
|
|
16
|
+
NavFooter,
|
|
17
|
+
NavMain,
|
|
18
|
+
NavUser,
|
|
19
|
+
SIDEBAR_COLLAPSED_GROUPS_KEY,
|
|
20
|
+
SettingsLayout,
|
|
21
|
+
UserInfo,
|
|
22
|
+
UserMenuContent,
|
|
23
|
+
useCollapsedGroup,
|
|
24
|
+
useInitials
|
|
25
|
+
} from "./chunk-XLAOE5MV.js";
|
|
26
|
+
import {
|
|
27
|
+
SidebarInset,
|
|
28
|
+
SidebarProvider,
|
|
29
|
+
useIsMobile
|
|
30
|
+
} from "./chunk-ZQXZ4UGE.js";
|
|
31
|
+
import {
|
|
32
|
+
hrefToString
|
|
33
|
+
} from "./chunk-L2H5GIF7.js";
|
|
34
|
+
import "./chunk-53V4J7MC.js";
|
|
35
|
+
import {
|
|
36
|
+
cn
|
|
37
|
+
} from "./chunk-PPWJK5T3.js";
|
|
38
|
+
|
|
39
|
+
// src/shells/app-content.tsx
|
|
40
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
41
|
function AppContent({
|
|
12
42
|
variant = "header",
|
|
13
43
|
children,
|
|
@@ -25,6 +55,9 @@ function AppContent({
|
|
|
25
55
|
}
|
|
26
56
|
);
|
|
27
57
|
}
|
|
58
|
+
|
|
59
|
+
// src/shells/app-shell.tsx
|
|
60
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
28
61
|
function AppShell({
|
|
29
62
|
children,
|
|
30
63
|
variant = "header",
|
|
@@ -33,9 +66,9 @@ function AppShell({
|
|
|
33
66
|
defaultOpen = true
|
|
34
67
|
}) {
|
|
35
68
|
if (variant === "header") {
|
|
36
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex min-h-screen w-full flex-col", children });
|
|
37
70
|
}
|
|
38
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ jsx2(
|
|
39
72
|
SidebarProvider,
|
|
40
73
|
{
|
|
41
74
|
open,
|
|
@@ -45,52 +78,23 @@ function AppShell({
|
|
|
45
78
|
}
|
|
46
79
|
);
|
|
47
80
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
81
|
+
|
|
82
|
+
// src/shells/auth-shell.tsx
|
|
83
|
+
import { createContext, useContext } from "react";
|
|
84
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
85
|
+
var ArrangementContext = createContext("centred");
|
|
86
|
+
function useAuthArrangement() {
|
|
87
|
+
return useContext(ArrangementContext);
|
|
88
|
+
}
|
|
89
|
+
function AuthShellRoot({
|
|
52
90
|
arrangement = "centred",
|
|
53
|
-
panel,
|
|
54
|
-
panelDecorative = true,
|
|
55
|
-
footer,
|
|
56
91
|
appearanceControl,
|
|
57
|
-
surface = true,
|
|
58
92
|
children,
|
|
59
93
|
className,
|
|
60
94
|
slotName = "auth-shell"
|
|
61
95
|
}) {
|
|
62
96
|
const split = arrangement === "split";
|
|
63
|
-
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
"data-slot": "auth-shell-form",
|
|
67
|
-
className: "gap-6 max-w-md flex w-full flex-col",
|
|
68
|
-
children: [
|
|
69
|
-
logo && /* @__PURE__ */ jsx(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
"data-slot": "auth-shell-logo",
|
|
73
|
-
className: "flex justify-center",
|
|
74
|
-
children: logo
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
/* @__PURE__ */ jsxs("div", { "data-slot": "auth-shell-heading", className: "space-y-2", children: [
|
|
78
|
-
/* @__PURE__ */ jsx("h1", { className: "text-xl font-bold tracking-tight text-foreground", children: title }),
|
|
79
|
-
description && /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: description })
|
|
80
|
-
] }),
|
|
81
|
-
surface ? /* @__PURE__ */ jsx(Card, { className: "p-6", children: /* @__PURE__ */ jsx("div", { "data-slot": "auth-shell-body", children }) }) : /* @__PURE__ */ jsx("div", { "data-slot": "auth-shell-body", children }),
|
|
82
|
-
footer && /* @__PURE__ */ jsx(
|
|
83
|
-
"footer",
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "auth-shell-footer",
|
|
86
|
-
className: "gap-2 text-sm font-medium flex flex-wrap items-center justify-center text-muted-foreground",
|
|
87
|
-
children: footer
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
return /* @__PURE__ */ jsxs(
|
|
97
|
+
return /* @__PURE__ */ jsx3(ArrangementContext.Provider, { value: arrangement, children: /* @__PURE__ */ jsxs(
|
|
94
98
|
"div",
|
|
95
99
|
{
|
|
96
100
|
"data-arrangement": arrangement,
|
|
@@ -101,24 +105,8 @@ function AuthShell({
|
|
|
101
105
|
),
|
|
102
106
|
"data-slot": slotName,
|
|
103
107
|
children: [
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
{
|
|
107
|
-
"data-slot": "auth-shell-panel",
|
|
108
|
-
"aria-hidden": panelDecorative || void 0,
|
|
109
|
-
className: "p-10 lg:flex hidden flex-col justify-between bg-primary text-primary-foreground",
|
|
110
|
-
children: panel
|
|
111
|
-
}
|
|
112
|
-
),
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
114
|
-
"main",
|
|
115
|
-
{
|
|
116
|
-
"data-slot": "auth-shell-main",
|
|
117
|
-
className: "p-6 flex flex-1 items-center justify-center",
|
|
118
|
-
children: form
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
appearanceControl && /* @__PURE__ */ jsx(
|
|
108
|
+
children,
|
|
109
|
+
appearanceControl && /* @__PURE__ */ jsx3(
|
|
122
110
|
"div",
|
|
123
111
|
{
|
|
124
112
|
"data-slot": "auth-shell-appearance",
|
|
@@ -128,9 +116,161 @@ function AuthShell({
|
|
|
128
116
|
)
|
|
129
117
|
]
|
|
130
118
|
}
|
|
119
|
+
) });
|
|
120
|
+
}
|
|
121
|
+
function AuthShellMain({
|
|
122
|
+
children,
|
|
123
|
+
slotName = "auth-shell-main"
|
|
124
|
+
}) {
|
|
125
|
+
return /* @__PURE__ */ jsx3(
|
|
126
|
+
"main",
|
|
127
|
+
{
|
|
128
|
+
"data-slot": slotName,
|
|
129
|
+
className: "p-6 flex flex-1 items-center justify-center",
|
|
130
|
+
children: /* @__PURE__ */ jsx3(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
"data-slot": "auth-shell-form",
|
|
134
|
+
className: "gap-6 max-w-md flex w-full flex-col",
|
|
135
|
+
children
|
|
136
|
+
}
|
|
137
|
+
)
|
|
138
|
+
}
|
|
131
139
|
);
|
|
132
140
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
141
|
+
function AuthShellPanel({
|
|
142
|
+
decorative = true,
|
|
143
|
+
arrangement,
|
|
144
|
+
children,
|
|
145
|
+
slotName = "auth-shell-panel"
|
|
146
|
+
}) {
|
|
147
|
+
const contextArrangement = useAuthArrangement();
|
|
148
|
+
if ((arrangement ?? contextArrangement) !== "split") {
|
|
149
|
+
return null;
|
|
150
|
+
}
|
|
151
|
+
return /* @__PURE__ */ jsx3(
|
|
152
|
+
"aside",
|
|
153
|
+
{
|
|
154
|
+
"data-slot": slotName,
|
|
155
|
+
"aria-hidden": decorative || void 0,
|
|
156
|
+
className: "p-10 lg:flex hidden flex-col justify-between bg-primary text-primary-foreground",
|
|
157
|
+
children
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
function AuthShellSurface({
|
|
162
|
+
children,
|
|
163
|
+
className,
|
|
164
|
+
slotName = "card"
|
|
165
|
+
}) {
|
|
166
|
+
return /* @__PURE__ */ jsx3(Card, { className: cn("p-6", className), slotName, children });
|
|
167
|
+
}
|
|
168
|
+
function AuthShellLogo({
|
|
169
|
+
children,
|
|
170
|
+
slotName = "auth-shell-logo"
|
|
171
|
+
}) {
|
|
172
|
+
return /* @__PURE__ */ jsx3("div", { "data-slot": slotName, className: "flex justify-center", children });
|
|
173
|
+
}
|
|
174
|
+
function AuthShellHeading({
|
|
175
|
+
title,
|
|
176
|
+
description,
|
|
177
|
+
align = "start",
|
|
178
|
+
slotName = "auth-shell-heading"
|
|
179
|
+
}) {
|
|
180
|
+
return /* @__PURE__ */ jsxs(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
"data-slot": slotName,
|
|
184
|
+
className: cn("space-y-2", align === "center" && "text-center"),
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ jsx3("h1", { className: "text-xl font-bold tracking-tight text-foreground", children: title }),
|
|
187
|
+
description && /* @__PURE__ */ jsx3("p", { className: "text-sm font-medium text-muted-foreground", children: description })
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
function AuthShellBody({
|
|
193
|
+
children,
|
|
194
|
+
slotName = "auth-shell-body"
|
|
195
|
+
}) {
|
|
196
|
+
return /* @__PURE__ */ jsx3("div", { "data-slot": slotName, children });
|
|
197
|
+
}
|
|
198
|
+
function AuthShellFooter({
|
|
199
|
+
children,
|
|
200
|
+
slotName = "auth-shell-footer"
|
|
201
|
+
}) {
|
|
202
|
+
return /* @__PURE__ */ jsx3(
|
|
203
|
+
"footer",
|
|
204
|
+
{
|
|
205
|
+
"data-slot": slotName,
|
|
206
|
+
className: "gap-2 text-sm font-medium flex flex-wrap items-center justify-center text-muted-foreground",
|
|
207
|
+
children
|
|
208
|
+
}
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
function AuthShell({
|
|
212
|
+
logo,
|
|
213
|
+
title,
|
|
214
|
+
description,
|
|
215
|
+
arrangement = "centred",
|
|
216
|
+
panel,
|
|
217
|
+
panelDecorative = true,
|
|
218
|
+
footer,
|
|
219
|
+
appearanceControl,
|
|
220
|
+
surface = true,
|
|
221
|
+
children,
|
|
222
|
+
className,
|
|
223
|
+
slotName = "auth-shell"
|
|
224
|
+
}) {
|
|
225
|
+
const body = /* @__PURE__ */ jsx3(AuthShellBody, { children });
|
|
226
|
+
return /* @__PURE__ */ jsxs(
|
|
227
|
+
AuthShellRoot,
|
|
228
|
+
{
|
|
229
|
+
arrangement,
|
|
230
|
+
appearanceControl,
|
|
231
|
+
className,
|
|
232
|
+
slotName,
|
|
233
|
+
children: [
|
|
234
|
+
panel && /* @__PURE__ */ jsx3(AuthShellPanel, { decorative: panelDecorative, children: panel }),
|
|
235
|
+
/* @__PURE__ */ jsxs(AuthShellMain, { children: [
|
|
236
|
+
logo && /* @__PURE__ */ jsx3(AuthShellLogo, { children: logo }),
|
|
237
|
+
/* @__PURE__ */ jsx3(AuthShellHeading, { title, description }),
|
|
238
|
+
surface ? /* @__PURE__ */ jsx3(AuthShellSurface, { children: body }) : body,
|
|
239
|
+
footer && /* @__PURE__ */ jsx3(AuthShellFooter, { children: footer })
|
|
240
|
+
] })
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
export {
|
|
246
|
+
AppContent,
|
|
247
|
+
AppShell,
|
|
248
|
+
AppSidebar,
|
|
249
|
+
AppSidebarHeader,
|
|
250
|
+
AuthShell,
|
|
251
|
+
AuthShellBody,
|
|
252
|
+
AuthShellFooter,
|
|
253
|
+
AuthShellHeading,
|
|
254
|
+
AuthShellLogo,
|
|
255
|
+
AuthShellMain,
|
|
256
|
+
AuthShellPanel,
|
|
257
|
+
AuthShellRoot,
|
|
258
|
+
AuthShellSurface,
|
|
259
|
+
Breadcrumbs,
|
|
260
|
+
Heading,
|
|
261
|
+
NavFooter,
|
|
262
|
+
NavMain,
|
|
263
|
+
NavUser,
|
|
264
|
+
SIDEBAR_COLLAPSED_GROUPS_KEY,
|
|
265
|
+
SettingsLayout,
|
|
266
|
+
UserInfo,
|
|
267
|
+
UserMenuContent,
|
|
268
|
+
hrefToString,
|
|
269
|
+
initializeTheme,
|
|
270
|
+
useAppearance,
|
|
271
|
+
useAuthArrangement,
|
|
272
|
+
useCollapsedGroup,
|
|
273
|
+
useInitials,
|
|
274
|
+
useIsMobile
|
|
275
|
+
};
|
|
136
276
|
//# sourceMappingURL=shells.js.map
|
package/dist/shells.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/shells/app-content.tsx","../src/shells/app-shell.tsx","../src/shells/auth-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S,yBACNA,GAAAA;AAAA,UAAC,OAAA;AAAA,UAAA;AAAA,YACG,WAAA,EAAU,kBAAA;AAAA,YACV,eAAa,eAAA,IAAmB,MAAA;AAAA,YAChC,SAAA,EAAU,iFAAA;AAAA,YAET,QAAA,EAAA;AAAA;AAAA,SACL;AAAA,wBAGJA,GAAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACG,WAAA,EAAU,iBAAA;AAAA,YACV,SAAA,EAAU,6CAAA;AAAA,YAET,QAAA,EAAA;AAAA;AAAA,SACL;AAAA,QAEC,qCACGA,GAAAA;AAAA,UAAC,KAAA;AAAA,UAAA;AAAA,YACG,WAAA,EAAU,uBAAA;AAAA,YACV,SAAA,EAAU,wBAAA;AAAA,YAET,QAAA,EAAA;AAAA;AAAA;AACL;AAAA;AAAA,GAER;AAER","file":"shells.js","sourcesContent":["import * as React from 'react';\n\nimport { SidebarInset } from '@/components/ui/sidebar';\n\ninterface AppContentProps extends React.ComponentProps<'main'> {\n variant?: 'header' | 'sidebar';\n}\n\nexport function AppContent({\n variant = 'header',\n children,\n ...props\n}: AppContentProps) {\n if (variant === 'sidebar') {\n return <SidebarInset {...props}>{children}</SidebarInset>;\n }\n\n return (\n <main\n className=\"max-w-7xl gap-4 rounded-xl mx-auto flex h-full w-full flex-1 flex-col\"\n {...props}\n >\n {children}\n </main>\n );\n}\n","import * as React from 'react';\n\nimport { SidebarProvider } from '@/components/ui/sidebar';\n\ninterface AppShellProps {\n children: React.ReactNode;\n variant?: 'header' | 'sidebar';\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n defaultOpen?: boolean;\n}\n\nexport function AppShell({\n children,\n variant = 'header',\n open,\n onOpenChange,\n defaultOpen = true,\n}: AppShellProps) {\n if (variant === 'header') {\n return (\n <div className=\"flex min-h-screen w-full flex-col\">{children}</div>\n );\n }\n\n return (\n <SidebarProvider\n open={open}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {children}\n </SidebarProvider>\n );\n}\n","import { Card } from '@/components/ui/card';\nimport { cn } from '@/lib/utils';\nimport type { SlotNameProps } from '@/types';\nimport { type ReactNode } from 'react';\n\nexport type AuthArrangement = 'centred' | 'split';\n\nexport interface AuthShellProps {\n logo?: ReactNode;\n title: string;\n description?: string;\n arrangement?: AuthArrangement;\n panel?: ReactNode;\n panelDecorative?: boolean;\n footer?: ReactNode;\n appearanceControl?: ReactNode;\n surface?: boolean;\n children: ReactNode;\n className?: string;\n}\n\nexport function AuthShell({\n logo,\n title,\n description,\n arrangement = 'centred',\n panel,\n panelDecorative = true,\n footer,\n appearanceControl,\n surface = true,\n children,\n className,\n slotName = 'auth-shell',\n}: AuthShellProps & SlotNameProps) {\n const split = arrangement === 'split';\n\n const form = (\n <div\n data-slot=\"auth-shell-form\"\n className=\"gap-6 max-w-md flex w-full flex-col\"\n >\n {logo && (\n <div\n data-slot=\"auth-shell-logo\"\n className=\"flex justify-center\"\n >\n {logo}\n </div>\n )}\n\n <div data-slot=\"auth-shell-heading\" className=\"space-y-2\">\n <h1 className=\"text-xl font-bold tracking-tight text-foreground\">\n {title}\n </h1>\n {description && (\n <p className=\"text-sm font-medium text-muted-foreground\">\n {description}\n </p>\n )}\n </div>\n\n {surface ? (\n <Card className=\"p-6\">\n <div data-slot=\"auth-shell-body\">{children}</div>\n </Card>\n ) : (\n <div data-slot=\"auth-shell-body\">{children}</div>\n )}\n\n {footer && (\n <footer\n data-slot=\"auth-shell-footer\"\n className=\"gap-2 text-sm font-medium flex flex-wrap items-center justify-center text-muted-foreground\"\n >\n {footer}\n </footer>\n )}\n </div>\n );\n\n return (\n <div\n data-arrangement={arrangement}\n className={cn(\n 'relative flex min-h-screen w-full',\n split && 'lg:grid lg:grid-cols-2',\n className,\n )}\n data-slot={slotName}\n >\n {split && panel && (\n <aside\n data-slot=\"auth-shell-panel\"\n aria-hidden={panelDecorative || undefined}\n className=\"p-10 lg:flex hidden flex-col justify-between bg-primary text-primary-foreground\"\n >\n {panel}\n </aside>\n )}\n\n <main\n data-slot=\"auth-shell-main\"\n className=\"p-6 flex flex-1 items-center justify-center\"\n >\n {form}\n </main>\n\n {appearanceControl && (\n <div\n data-slot=\"auth-shell-appearance\"\n className=\"top-4 right-4 absolute\"\n >\n {appearanceControl}\n </div>\n )}\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/shells/app-content.tsx","../src/shells/app-shell.tsx","../src/shells/auth-shell.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { SidebarInset } from '@/components/ui/sidebar';\n\ninterface AppContentProps extends React.ComponentProps<'main'> {\n variant?: 'header' | 'sidebar';\n}\n\nexport function AppContent({\n variant = 'header',\n children,\n ...props\n}: AppContentProps) {\n if (variant === 'sidebar') {\n return <SidebarInset {...props}>{children}</SidebarInset>;\n }\n\n return (\n <main\n className=\"max-w-7xl gap-4 rounded-xl mx-auto flex h-full w-full flex-1 flex-col\"\n {...props}\n >\n {children}\n </main>\n );\n}\n","import * as React from 'react';\n\nimport { SidebarProvider } from '@/components/ui/sidebar';\n\ninterface AppShellProps {\n children: React.ReactNode;\n variant?: 'header' | 'sidebar';\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n defaultOpen?: boolean;\n}\n\nexport function AppShell({\n children,\n variant = 'header',\n open,\n onOpenChange,\n defaultOpen = true,\n}: AppShellProps) {\n if (variant === 'header') {\n return (\n <div className=\"flex min-h-screen w-full flex-col\">{children}</div>\n );\n }\n\n return (\n <SidebarProvider\n open={open}\n onOpenChange={onOpenChange}\n defaultOpen={defaultOpen}\n >\n {children}\n </SidebarProvider>\n );\n}\n","import { Card } from '@/components/ui/card';\nimport { cn } from '@/lib/utils';\nimport type { SlotNameProps } from '@/types';\nimport { createContext, useContext, type ReactNode } from 'react';\n\nexport type AuthArrangement = 'centred' | 'split';\n\nconst ArrangementContext = createContext<AuthArrangement>('centred');\n\nexport function useAuthArrangement(): AuthArrangement {\n return useContext(ArrangementContext);\n}\n\nexport interface AuthShellRootProps {\n arrangement?: AuthArrangement;\n appearanceControl?: ReactNode;\n children: ReactNode;\n className?: string;\n}\n\nexport function AuthShellRoot({\n arrangement = 'centred',\n appearanceControl,\n children,\n className,\n slotName = 'auth-shell',\n}: AuthShellRootProps & SlotNameProps) {\n const split = arrangement === 'split';\n\n return (\n <ArrangementContext.Provider value={arrangement}>\n <div\n data-arrangement={arrangement}\n className={cn(\n 'relative flex min-h-screen w-full',\n split && 'lg:grid lg:grid-cols-2',\n className,\n )}\n data-slot={slotName}\n >\n {children}\n\n {appearanceControl && (\n <div\n data-slot=\"auth-shell-appearance\"\n className=\"top-4 right-4 absolute\"\n >\n {appearanceControl}\n </div>\n )}\n </div>\n </ArrangementContext.Provider>\n );\n}\n\nexport interface AuthShellMainProps {\n children: ReactNode;\n}\n\nexport function AuthShellMain({\n children,\n slotName = 'auth-shell-main',\n}: AuthShellMainProps & SlotNameProps) {\n return (\n <main\n data-slot={slotName}\n className=\"p-6 flex flex-1 items-center justify-center\"\n >\n <div\n data-slot=\"auth-shell-form\"\n className=\"gap-6 max-w-md flex w-full flex-col\"\n >\n {children}\n </div>\n </main>\n );\n}\n\nexport interface AuthShellPanelProps {\n decorative?: boolean;\n arrangement?: AuthArrangement;\n children: ReactNode;\n}\n\nexport function AuthShellPanel({\n decorative = true,\n arrangement,\n children,\n slotName = 'auth-shell-panel',\n}: AuthShellPanelProps & SlotNameProps) {\n const contextArrangement = useAuthArrangement();\n\n if ((arrangement ?? contextArrangement) !== 'split') {\n return null;\n }\n\n return (\n <aside\n data-slot={slotName}\n aria-hidden={decorative || undefined}\n className=\"p-10 lg:flex hidden flex-col justify-between bg-primary text-primary-foreground\"\n >\n {children}\n </aside>\n );\n}\n\nexport interface AuthShellSurfaceProps {\n children: ReactNode;\n className?: string;\n}\n\nexport function AuthShellSurface({\n children,\n className,\n slotName = 'card',\n}: AuthShellSurfaceProps & SlotNameProps) {\n return (\n <Card className={cn('p-6', className)} slotName={slotName}>\n {children}\n </Card>\n );\n}\n\nexport interface AuthShellLogoProps {\n children: ReactNode;\n}\n\nexport function AuthShellLogo({\n children,\n slotName = 'auth-shell-logo',\n}: AuthShellLogoProps & SlotNameProps) {\n return (\n <div data-slot={slotName} className=\"flex justify-center\">\n {children}\n </div>\n );\n}\n\nexport interface AuthShellHeadingProps {\n title: string;\n description?: string;\n align?: 'start' | 'center';\n}\n\nexport function AuthShellHeading({\n title,\n description,\n align = 'start',\n slotName = 'auth-shell-heading',\n}: AuthShellHeadingProps & SlotNameProps) {\n return (\n <div\n data-slot={slotName}\n className={cn('space-y-2', align === 'center' && 'text-center')}\n >\n <h1 className=\"text-xl font-bold tracking-tight text-foreground\">\n {title}\n </h1>\n {description && (\n <p className=\"text-sm font-medium text-muted-foreground\">\n {description}\n </p>\n )}\n </div>\n );\n}\n\nexport interface AuthShellBodyProps {\n children: ReactNode;\n}\n\nexport function AuthShellBody({\n children,\n slotName = 'auth-shell-body',\n}: AuthShellBodyProps & SlotNameProps) {\n return <div data-slot={slotName}>{children}</div>;\n}\n\nexport interface AuthShellFooterProps {\n children: ReactNode;\n}\n\nexport function AuthShellFooter({\n children,\n slotName = 'auth-shell-footer',\n}: AuthShellFooterProps & SlotNameProps) {\n return (\n <footer\n data-slot={slotName}\n className=\"gap-2 text-sm font-medium flex flex-wrap items-center justify-center text-muted-foreground\"\n >\n {children}\n </footer>\n );\n}\n\nexport interface AuthShellProps {\n logo?: ReactNode;\n title: string;\n description?: string;\n arrangement?: AuthArrangement;\n panel?: ReactNode;\n panelDecorative?: boolean;\n footer?: ReactNode;\n appearanceControl?: ReactNode;\n surface?: boolean;\n children: ReactNode;\n className?: string;\n}\n\nexport function AuthShell({\n logo,\n title,\n description,\n arrangement = 'centred',\n panel,\n panelDecorative = true,\n footer,\n appearanceControl,\n surface = true,\n children,\n className,\n slotName = 'auth-shell',\n}: AuthShellProps & SlotNameProps) {\n const body = <AuthShellBody>{children}</AuthShellBody>;\n\n return (\n <AuthShellRoot\n arrangement={arrangement}\n appearanceControl={appearanceControl}\n className={className}\n slotName={slotName}\n >\n {panel && (\n <AuthShellPanel decorative={panelDecorative}>\n {panel}\n </AuthShellPanel>\n )}\n <AuthShellMain>\n {logo && <AuthShellLogo>{logo}</AuthShellLogo>}\n <AuthShellHeading title={title} description={description} />\n {surface ? <AuthShellSurface>{body}</AuthShellSurface> : body}\n {footer && <AuthShellFooter>{footer}</AuthShellFooter>}\n </AuthShellMain>\n </AuthShellRoot>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAce;AANR,SAAS,WAAW;AAAA,EACvB,UAAU;AAAA,EACV;AAAA,EACA,GAAG;AACP,GAAoB;AAChB,MAAI,YAAY,WAAW;AACvB,WAAO,oBAAC,gBAAc,GAAG,OAAQ,UAAS;AAAA,EAC9C;AAEA,SACI;AAAA,IAAC;AAAA;AAAA,MACG,WAAU;AAAA,MACT,GAAG;AAAA,MAEH;AAAA;AAAA,EACL;AAER;;;ACJY,gBAAAA,YAAA;AATL,SAAS,SAAS;AAAA,EACrB;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,cAAc;AAClB,GAAkB;AACd,MAAI,YAAY,UAAU;AACtB,WACI,gBAAAA,KAAC,SAAI,WAAU,qCAAqC,UAAS;AAAA,EAErE;AAEA,SACI,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA;AAAA,MAEC;AAAA;AAAA,EACL;AAER;;;AC/BA,SAAS,eAAe,kBAAkC;AA4B9C,SAYQ,OAAAC,MAZR;AAxBZ,IAAM,qBAAqB,cAA+B,SAAS;AAE5D,SAAS,qBAAsC;AAClD,SAAO,WAAW,kBAAkB;AACxC;AASO,SAAS,cAAc;AAAA,EAC1B,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACf,GAAuC;AACnC,QAAM,QAAQ,gBAAgB;AAE9B,SACI,gBAAAA,KAAC,mBAAmB,UAAnB,EAA4B,OAAO,aAChC;AAAA,I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,MACG,aAAW;AAAA,MACX,WAAW,GAAG,aAAa,UAAU,YAAY,aAAa;AAAA,MAE9D;AAAA,wBAAAA,KAAC,QAAG,WAAU,oDACT,iBACL;AAAA,QACC,eACG,gBAAAA,KAAC,OAAE,WAAU,6CACR,uBACL;AAAA;AAAA;AAAA,EAER;AAER;AAMO,SAAS,cAAc;AAAA,EAC1B;AAAA,EACA,WAAW;AACf,GAAuC;AACnC,SAAO,gBAAAA,KAAC,SAAI,aAAW,UAAW,UAAS;AAC/C;AAMO,SAAS,gBAAgB;AAAA,EAC5B;AAAA,EACA,WAAW;AACf,GAAyC;AACrC,SACI,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACG,aAAW;AAAA,MACX,WAAU;AAAA,MAET;AAAA;AAAA,EACL;AAER;AAgBO,SAAS,UAAU;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA,kBAAkB;AAAA,EAClB;AAAA,EACA;AAAA,EACA,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA,WAAW;AACf,GAAmC;AAC/B,QAAM,OAAO,gBAAAA,KAAC,iBAAe,UAAS;AAEtC,SACI;AAAA,IAAC;AAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MAEC;AAAA,iBACG,gBAAAA,KAAC,kBAAe,YAAY,iBACvB,iBACL;AAAA,QAEJ,qBAAC,iBACI;AAAA,kBAAQ,gBAAAA,KAAC,iBAAe,gBAAK;AAAA,UAC9B,gBAAAA,KAAC,oBAAiB,OAAc,aAA0B;AAAA,UACzD,UAAU,gBAAAA,KAAC,oBAAkB,gBAAK,IAAsB;AAAA,UACxD,UAAU,gBAAAA,KAAC,mBAAiB,kBAAO;AAAA,WACxC;AAAA;AAAA;AAAA,EACJ;AAER;","names":["jsx","jsx"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { I as Input, B as Button } from './input-
|
|
4
|
+
import { I as Input, B as Button } from './input-B4uEClxB.js';
|
|
5
5
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
6
|
-
import { S as SlotNameProps } from './types-
|
|
6
|
+
import { S as SlotNameProps } from './types-CMZRvMV5.js';
|
|
7
7
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
8
8
|
|
|
9
9
|
declare function Separator({ className, orientation, decorative, slotName, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root> & SlotNameProps): React.JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
interface LoginFormLabels {
|
|
2
|
+
emailLabel: string;
|
|
3
|
+
emailPlaceholder: string;
|
|
4
|
+
passwordLabel: string;
|
|
5
|
+
passwordPlaceholder: string;
|
|
6
|
+
forgotPasswordLabel: string;
|
|
7
|
+
rememberLabel: string;
|
|
8
|
+
submitLabel: string;
|
|
9
|
+
submittingLabel: string;
|
|
10
|
+
}
|
|
11
|
+
declare const loginFormLabels: LoginFormLabels;
|
|
12
|
+
type LoginFormErrors = Record<string, string | string[] | undefined>;
|
|
13
|
+
|
|
14
|
+
type TourBreakpoint = 'mobile' | 'desktop';
|
|
15
|
+
type TourOutcome = 'completed' | 'skipped' | 'dismissed';
|
|
16
|
+
interface TourStep {
|
|
17
|
+
target: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
breakpoints?: TourBreakpoint[];
|
|
21
|
+
}
|
|
22
|
+
interface TourDefinition {
|
|
23
|
+
id: string;
|
|
24
|
+
version: number;
|
|
25
|
+
steps: TourStep[];
|
|
26
|
+
}
|
|
27
|
+
interface TourProgress {
|
|
28
|
+
tour: string;
|
|
29
|
+
version: number;
|
|
30
|
+
lastStep: number;
|
|
31
|
+
outcome: TourOutcome;
|
|
32
|
+
}
|
|
33
|
+
interface TourLabels {
|
|
34
|
+
next: string;
|
|
35
|
+
previous: string;
|
|
36
|
+
done: string;
|
|
37
|
+
progress: string;
|
|
38
|
+
}
|
|
39
|
+
declare const DEFAULT_TOUR_LABELS: TourLabels;
|
|
40
|
+
|
|
41
|
+
export { DEFAULT_TOUR_LABELS as D, type LoginFormErrors as L, type TourStep as T, type LoginFormLabels as a, type TourDefinition as b, type TourBreakpoint as c, type TourProgress as d, type TourLabels as e, type TourOutcome as f, loginFormLabels as l };
|
|
@@ -48,4 +48,4 @@ interface LinkProps {
|
|
|
48
48
|
}
|
|
49
49
|
type LinkComponent = ComponentType<LinkProps>;
|
|
50
50
|
|
|
51
|
-
export type { BreadcrumbItem as B, Column as C, FilterFn as F, IconComponent as I,
|
|
51
|
+
export type { BreadcrumbItem as B, Column as C, FilterFn as F, IconComponent as I, LinkComponent as L, NavGroup as N, Row as R, SlotNameProps as S, TableInstance as T, UrlLike as U, ColumnDef as a, LucideIcon as b, NavItem as c, SharedUser as d, LinkProps as e };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akira-io/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Open-source React component library: the full shadcn/ui set on an OKLCH design-token system with swappable brand palettes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -64,6 +64,10 @@
|
|
|
64
64
|
"types": "./dist/locales/pt.d.ts",
|
|
65
65
|
"import": "./dist/locales/pt.js"
|
|
66
66
|
},
|
|
67
|
+
"./locales/fr": {
|
|
68
|
+
"types": "./dist/locales/fr.d.ts",
|
|
69
|
+
"import": "./dist/locales/fr.js"
|
|
70
|
+
},
|
|
67
71
|
"./theme.css": "./theme.css",
|
|
68
72
|
"./themes/*.css": "./themes/*.css"
|
|
69
73
|
},
|
|
@@ -114,7 +118,7 @@
|
|
|
114
118
|
"vaul": "^1.1.2"
|
|
115
119
|
},
|
|
116
120
|
"peerDependencies": {
|
|
117
|
-
"@inertiajs/react": "^1.
|
|
121
|
+
"@inertiajs/react": "^2.1.2 || ^3.0.0",
|
|
118
122
|
"@tanstack/react-table": "^8.21.3",
|
|
119
123
|
"@tiptap/core": "^3.29.2",
|
|
120
124
|
"@tiptap/pm": "^3.29.2",
|
|
@@ -157,6 +161,7 @@
|
|
|
157
161
|
}
|
|
158
162
|
},
|
|
159
163
|
"devDependencies": {
|
|
164
|
+
"@inertiajs/react": "3.6.1",
|
|
160
165
|
"@tanstack/react-table": "^8.21.3",
|
|
161
166
|
"@testing-library/jest-dom": "^7.0.0",
|
|
162
167
|
"@testing-library/react": "^16.3.2",
|
|
@@ -167,6 +172,7 @@
|
|
|
167
172
|
"@tiptap/starter-kit": "3.29.2",
|
|
168
173
|
"@types/react": "^19.2.10",
|
|
169
174
|
"@types/react-dom": "^19.2.3",
|
|
175
|
+
"esbuild-plugin-preserve-directives": "^0.0.11",
|
|
170
176
|
"jsdom": "^30.0.1",
|
|
171
177
|
"prettier": "^3.8.1",
|
|
172
178
|
"prettier-plugin-organize-imports": "^4.3.0",
|