@semiont/react-ui 0.5.26 → 0.5.27
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 +28 -4
- package/dist/{PdfAnnotationCanvas.client-6ZSF6ZTJ.js → PdfAnnotationCanvas.client-EVUPTUWZ.js} +5 -5
- package/dist/PdfAnnotationCanvas.client-EVUPTUWZ.js.map +1 -0
- package/dist/{PdfAnnotationCanvas.client-JCJMXWWJ.css → PdfAnnotationCanvas.client-TGDPPGXJ.css} +6 -1
- package/dist/PdfAnnotationCanvas.client-TGDPPGXJ.css.map +1 -0
- package/dist/{ar-YTUUGK2O.js → ar-OU3DQGC6.js} +53 -7
- package/dist/ar-OU3DQGC6.js.map +1 -0
- package/dist/{bn-ASGNGPMD.js → bn-PHWCR6AZ.js} +53 -7
- package/dist/bn-PHWCR6AZ.js.map +1 -0
- package/dist/{chunk-OBQOZCJE.js → chunk-5VDTWRXJ.js} +31 -31
- package/dist/{chunk-L3WKRWP3.js → chunk-PCRRBU7H.js} +53 -7
- package/dist/chunk-PCRRBU7H.js.map +1 -0
- package/dist/{cs-WMYVAOZY.js → cs-NEXYZ62I.js} +53 -7
- package/dist/cs-NEXYZ62I.js.map +1 -0
- package/dist/{da-FSHHN4D6.js → da-FAT43YCU.js} +53 -7
- package/dist/da-FAT43YCU.js.map +1 -0
- package/dist/{de-FJFO3TPT.js → de-KRQ3WBCU.js} +53 -7
- package/dist/de-KRQ3WBCU.js.map +1 -0
- package/dist/{el-XOH4QIAG.js → el-Q4IU3EKC.js} +53 -7
- package/dist/el-Q4IU3EKC.js.map +1 -0
- package/dist/{en-3FCBW3YD.js → en-2KADE7N4.js} +4 -2
- package/dist/{es-HDX4QI7E.js → es-2IO3R2MK.js} +53 -7
- package/dist/es-2IO3R2MK.js.map +1 -0
- package/dist/{fa-DJ6WTFTJ.js → fa-Q5GOQFXX.js} +53 -7
- package/dist/fa-Q5GOQFXX.js.map +1 -0
- package/dist/{fi-4S7H7W7U.js → fi-R6NMRWBE.js} +53 -7
- package/dist/fi-R6NMRWBE.js.map +1 -0
- package/dist/{fr-6UJSYHXC.js → fr-QY4D5E6J.js} +53 -7
- package/dist/fr-QY4D5E6J.js.map +1 -0
- package/dist/{he-ZZJOHJX2.js → he-X6Y77XHY.js} +53 -7
- package/dist/he-X6Y77XHY.js.map +1 -0
- package/dist/{hi-HZJTAW7U.js → hi-XL7IOEQM.js} +53 -7
- package/dist/hi-XL7IOEQM.js.map +1 -0
- package/dist/{id-E3I6ILEM.js → id-QZ4ZZS67.js} +53 -7
- package/dist/id-QZ4ZZS67.js.map +1 -0
- package/dist/index.css +105 -454
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +155 -54
- package/dist/index.js +1798 -1637
- package/dist/index.js.map +1 -1
- package/dist/integrations/css-modules-helper.js +1 -3
- package/dist/integrations/css-modules-helper.js.map +1 -1
- package/dist/{it-ULAPAD7U.js → it-ME2Q7OB6.js} +53 -7
- package/dist/it-ME2Q7OB6.js.map +1 -0
- package/dist/{ja-SAHZQ4CZ.js → ja-HX7QASRI.js} +53 -7
- package/dist/ja-HX7QASRI.js.map +1 -0
- package/dist/{ko-DFU2ADQ4.js → ko-EQO5AHAV.js} +53 -7
- package/dist/ko-EQO5AHAV.js.map +1 -0
- package/dist/{ms-NWL76XNT.js → ms-UILFSF3I.js} +53 -7
- package/dist/ms-UILFSF3I.js.map +1 -0
- package/dist/{nl-ATCM76WN.js → nl-NNI45PMK.js} +53 -7
- package/dist/nl-NNI45PMK.js.map +1 -0
- package/dist/{no-UIAQ5RJF.js → no-MAL5F6P6.js} +53 -7
- package/dist/no-MAL5F6P6.js.map +1 -0
- package/dist/{pl-NOECQDXD.js → pl-4RMY6JAJ.js} +53 -7
- package/dist/pl-4RMY6JAJ.js.map +1 -0
- package/dist/{pt-SVWIIUPC.js → pt-VQH2X3QQ.js} +53 -7
- package/dist/pt-VQH2X3QQ.js.map +1 -0
- package/dist/{ro-NR2DRTZG.js → ro-XXCQO2OG.js} +53 -7
- package/dist/ro-XXCQO2OG.js.map +1 -0
- package/dist/{sv-STVJ37JP.js → sv-7Z6EJ6U4.js} +53 -7
- package/dist/sv-7Z6EJ6U4.js.map +1 -0
- package/dist/test-utils.css +1 -1
- package/dist/test-utils.css.map +1 -1
- package/dist/test-utils.d.ts +1 -1
- package/dist/test-utils.js +2 -2
- package/dist/test-utils.js.map +1 -1
- package/dist/{th-UWQR4K54.js → th-L3DXXYVQ.js} +53 -7
- package/dist/th-L3DXXYVQ.js.map +1 -0
- package/dist/{tr-WNXZSD27.js → tr-P3DFVLFJ.js} +53 -7
- package/dist/tr-P3DFVLFJ.js.map +1 -0
- package/dist/{uk-SJRMB47Y.js → uk-7C5D3PXS.js} +53 -7
- package/dist/uk-7C5D3PXS.js.map +1 -0
- package/dist/{vi-TMRQFES2.js → vi-ZLTLEO7P.js} +53 -7
- package/dist/vi-ZLTLEO7P.js.map +1 -0
- package/dist/{zh-QOL3LYEM.js → zh-5FHVWDIN.js} +53 -7
- package/dist/zh-5FHVWDIN.js.map +1 -0
- package/package.json +7 -7
- package/src/components/AssistProgress.tsx +144 -134
- package/src/components/{EntityFoundLog.tsx → ItemFoundLog.tsx} +12 -7
- package/src/components/ProtectedErrorBoundary.css +3 -1
- package/src/components/StatusDisplay.css +1 -1
- package/src/components/Toast.css +3 -1
- package/src/components/__tests__/AssistProgress.test.tsx +216 -148
- package/src/components/annotation/annotation-entries.css +0 -4
- package/src/components/annotation/references.css +0 -4
- package/src/components/image-annotation/AnnotationOverlay.tsx +6 -6
- package/src/components/image-annotation/SvgDrawingCanvas.tsx +1 -1
- package/src/components/image-annotation/__tests__/AnnotationOverlay.click.test.tsx +7 -9
- package/src/components/image-annotation/__tests__/SvgDrawingCanvas.click.test.tsx +1 -2
- package/src/components/layout/Header.css +0 -4
- package/src/components/layout/LeftSidebar.css +0 -4
- package/src/components/modals/ConfigureGenerationStep.tsx +109 -48
- package/src/components/modals/ConfigureSearchStep.tsx +23 -40
- package/src/components/modals/ReferenceWizardModal.tsx +55 -16
- package/src/components/modals/ResourceGenerateModal.tsx +24 -8
- package/src/components/modals/ResourceSearchModal.tsx +1 -1
- package/src/components/modals/SearchModal.css +0 -12
- package/src/components/modals/SearchModal.tsx +1 -1
- package/src/components/modals/SearchResultsStep.tsx +2 -20
- package/src/components/modals/WizardFooter.tsx +63 -0
- package/src/components/modals/__tests__/ConfigureGenerationStep.test.tsx +255 -0
- package/src/components/modals/__tests__/ConfigureSearchStep.test.tsx +72 -0
- package/src/components/modals/__tests__/ReferenceWizardModal.test.tsx +256 -0
- package/src/components/modals/__tests__/ResourceGenerateModal.test.tsx +1 -0
- package/src/components/modals/__tests__/ResourceSearchModal.test.tsx +6 -2
- package/src/components/modals/__tests__/SearchModal.search-wiring.test.tsx +6 -2
- package/src/components/modals/__tests__/WizardFooter.test.tsx +235 -0
- package/src/components/modals/modals.css +16 -42
- package/src/components/navigation/NavigationTabs.css +0 -20
- package/src/components/pdf-annotation/PdfAnnotationCanvas.css +21 -2
- package/src/components/pdf-annotation/PdfAnnotationCanvas.tsx +2 -2
- package/src/components/pdf-annotation/__tests__/PdfAnnotationCanvas.test.tsx +3 -5
- package/src/components/resource/AnnotateView.tsx +16 -5
- package/src/components/resource/AnnotationHistory.tsx +2 -0
- package/src/components/resource/BrowseView.tsx +15 -4
- package/src/components/resource/ResourceViewer.tsx +23 -24
- package/src/components/resource/__tests__/AnnotateView.focus.test.tsx +50 -0
- package/src/components/resource/__tests__/AnnotationHistory.test.tsx +2 -0
- package/src/components/resource/__tests__/BrowseView.test.tsx +29 -3
- package/src/components/resource/__tests__/ResourceViewer.embeddable.test.tsx +47 -3
- package/src/components/resource/event-formatting.ts +0 -3
- package/src/components/resource/panels/AssessmentEntry.tsx +1 -1
- package/src/components/resource/panels/AssessmentPanel.css +5 -6
- package/src/components/resource/panels/AssistSection.css +68 -271
- package/src/components/resource/panels/AssistSection.tsx +4 -4
- package/src/components/resource/panels/AssistShell.tsx +12 -4
- package/src/components/resource/panels/CollaborationPanel.css +47 -22
- package/src/components/resource/panels/CollaborationPanel.tsx +93 -2
- package/src/components/resource/panels/CommentEntry.tsx +1 -1
- package/src/components/resource/panels/CommentsPanel.css +0 -16
- package/src/components/resource/panels/HighlightEntry.tsx +1 -1
- package/src/components/resource/panels/HighlightPanel.css +0 -7
- package/src/components/resource/panels/JsonLdPanel.css +0 -4
- package/src/components/resource/panels/ReferenceEntry.tsx +1 -1
- package/src/components/resource/panels/ReferencesPanel.css +0 -12
- package/src/components/resource/panels/ReferencesPanel.tsx +12 -20
- package/src/components/resource/panels/ResourceInfoPanel.css +0 -32
- package/src/components/resource/panels/ResourceInfoPanel.tsx +1 -1
- package/src/components/resource/panels/StatisticsPanel.css +0 -20
- package/src/components/resource/panels/TagEntry.tsx +1 -1
- package/src/components/resource/panels/TaggingPanel.css +0 -4
- package/src/components/resource/panels/TaggingPanel.tsx +2 -10
- package/src/components/resource/panels/UnifiedAnnotationsPanel.css +0 -4
- package/src/components/resource/panels/__tests__/AssessmentEntry.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/AssistSection.test.tsx +48 -50
- package/src/components/resource/panels/__tests__/AssistShell.test.tsx +11 -6
- package/src/components/resource/panels/__tests__/CollaborationPanel.test.tsx +89 -0
- package/src/components/resource/panels/__tests__/CommentEntry.test.tsx +1 -2
- package/src/components/resource/panels/__tests__/HighlightEntry.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/HighlightPanel.annotationProgress.test.tsx +44 -36
- package/src/components/resource/panels/__tests__/ReferenceEntry.test.tsx +0 -1
- package/src/components/resource/panels/__tests__/ReferencesPanel.headless.test.tsx +1 -1
- package/src/components/resource/panels/__tests__/ReferencesPanel.test.tsx +34 -53
- package/src/components/resource/panels/__tests__/ResourceInfoPanel.test.tsx +37 -1
- package/src/components/resource/panels/__tests__/TagEntry.test.tsx +0 -1
- package/src/components/settings/SettingsPanel.css +0 -4
- package/src/features/auth/auth.css +2 -26
- package/src/features/resource-compose/state/__tests__/compose-page-state-unit.test.ts +25 -1
- package/src/features/resource-compose/state/compose-page-state-unit.ts +11 -2
- package/src/features/resource-discovery/__tests__/ResourceDiscoveryPage.test.tsx +55 -0
- package/src/features/resource-discovery/components/ResourceDiscoveryPage.tsx +29 -0
- package/src/features/resource-discovery/state/__tests__/discover-state-unit.test.ts +53 -3
- package/src/features/resource-discovery/state/discover-state-unit.ts +29 -8
- package/src/features/resource-viewer/components/ResourceViewerPage.tsx +41 -20
- package/src/features/resource-viewer/hooks/__tests__/useResourceViewedReport.test.tsx +63 -0
- package/src/features/resource-viewer/hooks/useResourceViewedReport.ts +33 -0
- package/src/features/resource-viewer/state/__tests__/resource-viewer-page-state-unit.test.ts +2 -2
- package/src/features/resource-viewer/state/resource-viewer-page-state-unit.ts +1 -1
- package/src/styles/core/buttons.css +3 -1
- package/src/styles/core/forms.css +0 -21
- package/src/styles/core/indicators.css +0 -4
- package/src/styles/core/inputs.css +0 -4
- package/src/styles/core/progress.css +2 -34
- package/src/styles/core/sliders.css +0 -4
- package/src/styles/core/toggles.css +0 -4
- package/src/styles/features/resource-discovery.css +13 -0
- package/src/styles/features/resource-viewer.css +0 -20
- package/src/styles/motivations/motivation-assessment.css +2 -2
- package/src/styles/panels/history-panel.css +0 -40
- package/src/styles/panels/user-panel.css +0 -3
- package/src/styles/patterns/panel-helpers.css +0 -27
- package/src/styles/patterns/panel-sections.css +0 -59
- package/src/styles/patterns/panels-base.css +0 -32
- package/translations/ar.json +49 -5
- package/translations/bn.json +49 -5
- package/translations/cs.json +49 -5
- package/translations/da.json +49 -5
- package/translations/de.json +49 -5
- package/translations/el.json +49 -5
- package/translations/en.json +49 -5
- package/translations/es.json +49 -5
- package/translations/fa.json +49 -5
- package/translations/fi.json +49 -5
- package/translations/fr.json +49 -5
- package/translations/he.json +49 -5
- package/translations/hi.json +49 -5
- package/translations/id.json +49 -5
- package/translations/it.json +49 -5
- package/translations/ja.json +49 -5
- package/translations/ko.json +49 -5
- package/translations/ms.json +49 -5
- package/translations/nl.json +49 -5
- package/translations/no.json +49 -5
- package/translations/pl.json +49 -5
- package/translations/pt.json +49 -5
- package/translations/ro.json +49 -5
- package/translations/sv.json +49 -5
- package/translations/th.json +49 -5
- package/translations/tr.json +49 -5
- package/translations/uk.json +49 -5
- package/translations/vi.json +49 -5
- package/translations/zh.json +49 -5
- package/dist/PdfAnnotationCanvas.client-6ZSF6ZTJ.js.map +0 -1
- package/dist/PdfAnnotationCanvas.client-JCJMXWWJ.css.map +0 -1
- package/dist/ar-YTUUGK2O.js.map +0 -1
- package/dist/bn-ASGNGPMD.js.map +0 -1
- package/dist/chunk-L3WKRWP3.js.map +0 -1
- package/dist/chunk-XUDKYAVC.js +0 -21
- package/dist/chunk-XUDKYAVC.js.map +0 -1
- package/dist/cs-WMYVAOZY.js.map +0 -1
- package/dist/da-FSHHN4D6.js.map +0 -1
- package/dist/de-FJFO3TPT.js.map +0 -1
- package/dist/el-XOH4QIAG.js.map +0 -1
- package/dist/es-HDX4QI7E.js.map +0 -1
- package/dist/fa-DJ6WTFTJ.js.map +0 -1
- package/dist/fi-4S7H7W7U.js.map +0 -1
- package/dist/fr-6UJSYHXC.js.map +0 -1
- package/dist/he-ZZJOHJX2.js.map +0 -1
- package/dist/hi-HZJTAW7U.js.map +0 -1
- package/dist/id-E3I6ILEM.js.map +0 -1
- package/dist/it-ULAPAD7U.js.map +0 -1
- package/dist/ja-SAHZQ4CZ.js.map +0 -1
- package/dist/ko-DFU2ADQ4.js.map +0 -1
- package/dist/ms-NWL76XNT.js.map +0 -1
- package/dist/nl-ATCM76WN.js.map +0 -1
- package/dist/no-UIAQ5RJF.js.map +0 -1
- package/dist/pl-NOECQDXD.js.map +0 -1
- package/dist/pt-SVWIIUPC.js.map +0 -1
- package/dist/ro-NR2DRTZG.js.map +0 -1
- package/dist/sv-STVJ37JP.js.map +0 -1
- package/dist/th-UWQR4K54.js.map +0 -1
- package/dist/tr-WNXZSD27.js.map +0 -1
- package/dist/uk-SJRMB47Y.js.map +0 -1
- package/dist/vi-TMRQFES2.js.map +0 -1
- package/dist/zh-QOL3LYEM.js.map +0 -1
- package/src/integrations/tailwind-plugin.cjs +0 -224
- /package/dist/{chunk-OBQOZCJE.js.map → chunk-5VDTWRXJ.js.map} +0 -0
- /package/dist/{en-3FCBW3YD.js.map → en-2KADE7N4.js.map} +0 -0
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tailwind CSS Plugin for Semiont Components
|
|
3
|
-
*
|
|
4
|
-
* This plugin provides utilities for styling Semiont components
|
|
5
|
-
* using Tailwind CSS classes while respecting the data-attribute architecture.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const plugin = require('tailwindcss/plugin');
|
|
9
|
-
const { tokens } = require('../design-tokens');
|
|
10
|
-
|
|
11
|
-
module.exports = plugin(function({ addBase, addComponents, addUtilities, theme }) {
|
|
12
|
-
// Add base styles for CSS variables
|
|
13
|
-
addBase({
|
|
14
|
-
':root': Object.entries(tokens.colors.primary).reduce((acc, [key, value]) => ({
|
|
15
|
-
...acc,
|
|
16
|
-
[`--semiont-color-primary-${key}`]: value
|
|
17
|
-
}), {}),
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
// Add component styles
|
|
21
|
-
addComponents({
|
|
22
|
-
// Button component styles
|
|
23
|
-
'.semiont-button': {
|
|
24
|
-
'@apply relative inline-flex items-center justify-center': {},
|
|
25
|
-
'@apply font-medium transition-all duration-200': {},
|
|
26
|
-
'@apply focus:outline-hidden focus:ring-2 focus:ring-offset-2': {},
|
|
27
|
-
'@apply disabled:opacity-50 disabled:cursor-not-allowed': {},
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
// Button variants
|
|
31
|
-
'.semiont-button[data-variant="primary"]': {
|
|
32
|
-
'@apply bg-blue-500 text-white hover:bg-blue-600 active:bg-blue-700': {},
|
|
33
|
-
'@apply focus:ring-blue-500': {},
|
|
34
|
-
},
|
|
35
|
-
'.semiont-button[data-variant="secondary"]': {
|
|
36
|
-
'@apply bg-gray-100 text-gray-900 hover:bg-gray-200 active:bg-gray-300': {},
|
|
37
|
-
'@apply focus:ring-gray-500': {},
|
|
38
|
-
},
|
|
39
|
-
'.semiont-button[data-variant="tertiary"]': {
|
|
40
|
-
'@apply bg-transparent text-blue-600 ring-1 ring-inset ring-blue-200': {},
|
|
41
|
-
'@apply hover:bg-blue-50 hover:ring-blue-300 active:bg-blue-100': {},
|
|
42
|
-
'@apply focus:ring-blue-500': {},
|
|
43
|
-
},
|
|
44
|
-
'.semiont-button[data-variant="danger"]': {
|
|
45
|
-
'@apply bg-red-500 text-white hover:bg-red-600 active:bg-red-700': {},
|
|
46
|
-
'@apply focus:ring-red-500': {},
|
|
47
|
-
},
|
|
48
|
-
'.semiont-button[data-variant="warning"]': {
|
|
49
|
-
'@apply bg-amber-500 text-gray-900 hover:bg-amber-600 active:bg-amber-700': {},
|
|
50
|
-
'@apply focus:ring-amber-500': {},
|
|
51
|
-
},
|
|
52
|
-
'.semiont-button[data-variant="ghost"]': {
|
|
53
|
-
'@apply bg-transparent text-gray-700 hover:bg-gray-100 active:bg-gray-200': {},
|
|
54
|
-
'@apply focus:ring-gray-500': {},
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
// Button sizes
|
|
58
|
-
'.semiont-button[data-size="xs"]': {
|
|
59
|
-
'@apply px-2 py-1 text-xs rounded-sm min-h-[1.75rem]': {},
|
|
60
|
-
},
|
|
61
|
-
'.semiont-button[data-size="sm"]': {
|
|
62
|
-
'@apply px-3 py-1.5 text-sm rounded-sm min-h-[2rem]': {},
|
|
63
|
-
},
|
|
64
|
-
'.semiont-button[data-size="md"]': {
|
|
65
|
-
'@apply px-4 py-2 text-base rounded-md min-h-[2.5rem]': {},
|
|
66
|
-
},
|
|
67
|
-
'.semiont-button[data-size="lg"]': {
|
|
68
|
-
'@apply px-6 py-2.5 text-lg rounded-md min-h-[3rem]': {},
|
|
69
|
-
},
|
|
70
|
-
'.semiont-button[data-size="xl"]': {
|
|
71
|
-
'@apply px-8 py-3 text-xl rounded-lg min-h-[3.5rem]': {},
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
// Icon-only buttons
|
|
75
|
-
'.semiont-button[data-icon-only="true"][data-size="xs"]': {
|
|
76
|
-
'@apply p-1 w-7 h-7': {},
|
|
77
|
-
},
|
|
78
|
-
'.semiont-button[data-icon-only="true"][data-size="sm"]': {
|
|
79
|
-
'@apply p-1.5 w-8 h-8': {},
|
|
80
|
-
},
|
|
81
|
-
'.semiont-button[data-icon-only="true"][data-size="md"]': {
|
|
82
|
-
'@apply p-2 w-10 h-10': {},
|
|
83
|
-
},
|
|
84
|
-
'.semiont-button[data-icon-only="true"][data-size="lg"]': {
|
|
85
|
-
'@apply p-2.5 w-12 h-12': {},
|
|
86
|
-
},
|
|
87
|
-
'.semiont-button[data-icon-only="true"][data-size="xl"]': {
|
|
88
|
-
'@apply p-3 w-14 h-14': {},
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
// Full width
|
|
92
|
-
'.semiont-button[data-full-width="true"]': {
|
|
93
|
-
'@apply w-full': {},
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
// Loading state
|
|
97
|
-
'.semiont-button[data-loading="true"]': {
|
|
98
|
-
'@apply pointer-events-none': {},
|
|
99
|
-
},
|
|
100
|
-
'.semiont-button[data-loading="true"] .semiont-button-content': {
|
|
101
|
-
'@apply invisible': {},
|
|
102
|
-
},
|
|
103
|
-
'.semiont-button[data-loading="true"] .semiont-button-icon': {
|
|
104
|
-
'@apply invisible': {},
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
// Button spinner
|
|
108
|
-
'.semiont-button-spinner': {
|
|
109
|
-
'@apply absolute inset-0 flex items-center justify-center': {},
|
|
110
|
-
},
|
|
111
|
-
'.semiont-spinner-svg': {
|
|
112
|
-
'@apply animate-spin w-5 h-5': {},
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
// Button content and icons
|
|
116
|
-
'.semiont-button-content': {
|
|
117
|
-
'@apply inline-flex items-center': {},
|
|
118
|
-
},
|
|
119
|
-
'.semiont-button-icon': {
|
|
120
|
-
'@apply inline-flex items-center justify-center flex-shrink-0': {},
|
|
121
|
-
},
|
|
122
|
-
'.semiont-button-icon-left': {
|
|
123
|
-
'@apply mr-2': {},
|
|
124
|
-
},
|
|
125
|
-
'.semiont-button-icon-right': {
|
|
126
|
-
'@apply ml-2': {},
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
// Button group
|
|
130
|
-
'.semiont-button-group': {
|
|
131
|
-
'@apply flex': {},
|
|
132
|
-
},
|
|
133
|
-
'.semiont-button-group[data-orientation="horizontal"]': {
|
|
134
|
-
'@apply flex-row': {},
|
|
135
|
-
},
|
|
136
|
-
'.semiont-button-group[data-orientation="vertical"]': {
|
|
137
|
-
'@apply flex-col': {},
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
// Button group spacing
|
|
141
|
-
'.semiont-button-group[data-spacing="xs"]': {
|
|
142
|
-
'@apply gap-1': {},
|
|
143
|
-
},
|
|
144
|
-
'.semiont-button-group[data-spacing="sm"]': {
|
|
145
|
-
'@apply gap-2': {},
|
|
146
|
-
},
|
|
147
|
-
'.semiont-button-group[data-spacing="md"]': {
|
|
148
|
-
'@apply gap-4': {},
|
|
149
|
-
},
|
|
150
|
-
'.semiont-button-group[data-spacing="lg"]': {
|
|
151
|
-
'@apply gap-6': {},
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
// Attached button groups
|
|
155
|
-
'.semiont-button-group[data-attached="true"]': {
|
|
156
|
-
'@apply gap-0': {},
|
|
157
|
-
},
|
|
158
|
-
'.semiont-button-group[data-attached="true"][data-orientation="horizontal"] .semiont-button:not(:first-child)': {
|
|
159
|
-
'@apply rounded-l-none -ml-px': {},
|
|
160
|
-
},
|
|
161
|
-
'.semiont-button-group[data-attached="true"][data-orientation="horizontal"] .semiont-button:not(:last-child)': {
|
|
162
|
-
'@apply rounded-r-none': {},
|
|
163
|
-
},
|
|
164
|
-
'.semiont-button-group[data-attached="true"][data-orientation="vertical"] .semiont-button:not(:first-child)': {
|
|
165
|
-
'@apply rounded-t-none -mt-px': {},
|
|
166
|
-
},
|
|
167
|
-
'.semiont-button-group[data-attached="true"][data-orientation="vertical"] .semiont-button:not(:last-child)': {
|
|
168
|
-
'@apply rounded-b-none': {},
|
|
169
|
-
},
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
// Add utility classes for custom data attributes
|
|
173
|
-
addUtilities({
|
|
174
|
-
'.semiont-variant-primary': {
|
|
175
|
-
'&[data-variant="primary"]': {
|
|
176
|
-
'@apply bg-blue-500 text-white': {},
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
'.semiont-variant-secondary': {
|
|
180
|
-
'&[data-variant="secondary"]': {
|
|
181
|
-
'@apply bg-gray-100 text-gray-900': {},
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
'.semiont-size-sm': {
|
|
185
|
-
'&[data-size="sm"]': {
|
|
186
|
-
'@apply px-3 py-1.5 text-sm': {},
|
|
187
|
-
},
|
|
188
|
-
},
|
|
189
|
-
'.semiont-size-md': {
|
|
190
|
-
'&[data-size="md"]': {
|
|
191
|
-
'@apply px-4 py-2 text-base': {},
|
|
192
|
-
},
|
|
193
|
-
},
|
|
194
|
-
'.semiont-size-lg': {
|
|
195
|
-
'&[data-size="lg"]': {
|
|
196
|
-
'@apply px-6 py-2.5 text-lg': {},
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
});
|
|
200
|
-
}, {
|
|
201
|
-
// Plugin configuration
|
|
202
|
-
theme: {
|
|
203
|
-
extend: {
|
|
204
|
-
colors: {
|
|
205
|
-
semiont: {
|
|
206
|
-
primary: tokens.colors.primary,
|
|
207
|
-
secondary: tokens.colors.secondary,
|
|
208
|
-
semantic: tokens.colors.semantic,
|
|
209
|
-
neutral: tokens.colors.neutral,
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
spacing: tokens.spacing,
|
|
213
|
-
fontSize: tokens.typography.fontSize,
|
|
214
|
-
borderRadius: tokens.borderRadius,
|
|
215
|
-
transitionDuration: tokens.transitions.duration,
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
});
|
|
219
|
-
|
|
220
|
-
// Export for CommonJS
|
|
221
|
-
module.exports.semiontPlugin = module.exports;
|
|
222
|
-
|
|
223
|
-
// Export for ESM
|
|
224
|
-
module.exports.default = module.exports;
|
|
File without changes
|
|
File without changes
|